text stringlengths 8 267k | meta dict |
|---|---|
Q: How do you determine the values in a binding? I have defined a binding that I use to connect to two different services. One I call my Master service that provides configuration information to my program and tells it which Local service to connect to. The Local service returns, along with other things, items that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Select values of checkbox group with jQuery I'm using Zend_Form to output a set group of checkboxes:
<label style="white-space: nowrap;"><input type="checkbox" name="user_group[]" id="user_group-20" value="20">This Group</label>
With a normal HTTP Post these values are passed as an array, but when I'm somewhat stum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Empty _ASSERTE Dialog Box from ISAPI Extension I have an ISAPI extension DLL written in C++ using Microsoft Visual Studio 2003 running in IIS 5.1 on XP Pro. Whenever an _ASSERTE fires I just get a an empty message box with 'Error' in the title bar and Abort/Retry/Ignore buttons. What I don't see is any of the expres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to organize the controller of a MVC-based program with multiple screens/panels? I'm currently working on a hobby project, written in Java, containing about two different JFrames with about 3-4 JPanels each. The problem I'm facing is that I'm not so sure how to handle the interaction with my controller and differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create a passwordless secondary ssh key for setting up a ssh tunnel I need to create a script that automatically setup a ssh tunnel. I think that a dedicated ssh key without password is a good start but I couldn't find if this is possible and how to do it.
This key should have limited privileges (only set the tunne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Common Runtime? Something I'm not to clear about, I understand there are differences between C# and VB.NET (mainly in the use of pointers) but why if both have a Common CLR, does XNA (for example) only work with C# and not VB.NET, or is it that the add ins to visual studio have been aimed at C# rather than VB.Net, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interesting uses of fluent interfaces? I am wondering where and when fluent interfaces are a good idea, so I am looking for examples. So far I have found only 3 useful cases, e.g. Ruby's collections, like
unique_words = File.read("words.txt").downcase.split.sort.uniq.length
and Fest (Java) for unit testing:
assertT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace panel scrollbar with custom scrollbar Is there a way to inject a panel with a custom scrollbar?
I have the following issues with the current scrollbar:
*
*the software I create has to work on both Compact framework and full framework
*on the cf a touchscreen is attached and the default scrollbars aren't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do page anchors sometimes miss? On an HTML page, a link like this:
<a href="#pagelocation">Location on Page</a>
...should navigate to this spot on the page:
<a name="pagelocation">
But in my experience, it sometimes misses - especially when linking from another page (like <a href="somepage.html#pagelocation">)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Web user expectations When designing a good Web GUI what expectations can we expect from an end user?
I've come up with the following, but I wonder if there are any others which can suggest..
*
*If I click on a hyperlink it will take me to another page/part of this page
*If I tick/untick a checkbox it might alt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Getting a Signature Mismatch Error when Compiling Even though it Matches in VS.NET 2005 I changed a reference in my project from pointing to a specific hard-coded DLL to a project reference and now I'm getting an error telling me that the signature for some event handlers don't match even though they do.
Here's one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Join and Include in Entity Framework I have the following query of linq to entities. The problem is that it doesn't seem to load the "Tags" relation even though i have included a thing for it. It works fine if i do not join on tags but i need to do that.
var items = from i in db.Items.Include("Tags")
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How can I extract a page from a PDF file? Is there any Perl script to get the pages from a PDF file and convert the same to another PDF file?
A: PdfTK.
~$ pdftk multi-page.pdf burst
A: You asked for Perl, so here's a good solution via CAM::PDF. Say you just want pages 3-6 of orig.pdf to be saved to new.pdf:
dele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What should my AST look like for easy transforms? I have a minimal toy language similar to javascript. I generate an AST to try out some optimization techniques like escape analysis, type inference. I tried a few approaches like generalizing operator tokens instead of a class/function for each one, keeping type info... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determining a User's Group Membership How can I determine if a user, in say Access, is a member of an Active Directory Security Group?
I'd rather not build a whole authentication system into my little Access DB.
Thanks
A: Found this online
Function IsMember(strDomain As String, strGroup _
As String, strMember As ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ASP.NET: GridView value set to null when column is not visible I'm using a list of objects as the data source of my GridView and when I set columns to not be visible the updates fail because the value of those columns is changed to null (and the column doesn't allow nulls). The values do exist when the columns are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get dialog result from WebBrowser.ShowPageSetupDialog I'm using a WebBrowser control in my Visual C# (.net 2.0) application.
Now I'd like to add a print button which shows the page setup dialog and then directly prints when the user presses the OK button or cancels the printing when the user presses the cance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a new subdirectory structure in ClearCase? I'm a ClearCase newbie and up until now have been used to SVN. Therefore, I'm a bit confused on the steps I need to take to create a new directory structure containing multiple files to ClearCase.
So, say for example there is an existing directory structure within ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Insert Picture into SQL Server 2005 Image Field using only SQL Using SQL Server 2005 and Management Studio how do I insert a picture into an Image type column of a table?
Most importantly how do I verify if it is there?
A: CREATE TABLE Employees
(
Id int,
Name varchar(50) not null,
Photo varbinary(ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: ExecutorService vs Swing Timer I've been reading Filthy Rich Clients lately and noticed that, although the version of Java is 6, there is no mention of the Concurrent Framework. So, they talk about java.util.Timer and javax.swing.Timer but not about the ExecutorService.
I read about the advantages of ExecutorService... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I rotate a label in C#? I want to show a label rotated 90 degrees (so I can put a bunch of them at the top of a table as the headings). Is there an easy way to do this?
A: You can also take a look at the Windows ToolStrip control. It has an option for TextDirection that can be set to Vertical90 or Vertical27... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: C++ ATL Member Variable access help I am not familiar with this, and can use a kick start.
I am using ATL (unmanaged C++) user control and would like to use the ShockWave ActiveX object. I need to know how to declare it so that I can set a property or call a method.
For instance, if I could assign a variable to it, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I access the child rows of an Infragistics Web Grid row? I need to modify the contents of the child rows of a hierarchical Infragistics web grid when it is expanded. I can get the parent row from "e.Row" in the following code. But how do I get its child rows to edit?
For that matter, how can I get the rows fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Optimizing PHP string concatenation This post is not really a question, but it could be useful to share some coding tips.
Here is the one I'd like to share with you. I'm going to show 4 examples that do the same thing. But only the last one will be the best.
$foo = 'John SMITH';
echo "Hello $foo, welcome on my webs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: SQLite 3 C API Transactions I am using SQLite3 for iPhone development and I'm attempting to wrap a few insert statements into a transaction. Currently I have the below code which is working properly however after reading another question on SO I realized it would be better to have these in one transaction rather tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Minimizing the sum of a special function over a list Say I have a list and I want it arranged so that the sum of a certain function operating over its consecutive elements is minimum.
For example consider the list { 1, 2, 3, 4 } and sum a^b for consecutive pairs (a,b) over the entire list. ie. 1^2 + 2^3 + 3^4 = 90.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I navigate to the source for a method in an external reference in Visual Studio 2005? I have a C# project in VS 2005, with a reference to Foo.dll, a library of C++ .NET code, at c:\Foo\Foo.dll. It shows the reference in the Object Browser properly, but for a given object + method, I can't figure out how to na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Date and time conversions My problem is that I receive for example a date in a concatenated format:
Ex: 20050728
And I have to retrieve it in a readable format through my xslt.
Ex. 28 July 2005
I also have a similar question regards time.
Ex: 0004
To be displayed as 00:04
How is this done?
A: Use the XPath subst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Swing components are light-weight? Whenever I read about Swing they say they are light weight components. So I just googled Swing and found that it means Swing does not depend on native peers. Is that why they are called "light weight"? I mean by light weight I thought maybe the Swing components occupy less memory t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: is it possible to print all reductions in Haskell - using WinHugs? I have written the following function.. and executed using WinHugs
teneven = [x | x <- [1..10], even x]
My output:
Main> teneven
[2,4,6,8,10] :: [Integer]
(63 reductions, 102 cells)
is there anyway to print all the reductions.. so I can learn the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Change a shortcut's target from command prompt I'm normally a Linux guy, but I need to write a batch script on Windows to change the target of some shortcuts. Is there a command to do that?
A: There isn't a native program that comes with windows to achieve this. I scoured the internet for this same functionality a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Sending NSdata from device to desktop (mail)? I have an app holding an array of instances of a class called SwimmingPool.
At present my application persistence is dealt with by encoding everything into NSData and saving that to the iPhone. This is then reloaded everytime the app starts.
I have a few friends populati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get attribute name in addition to attribute value in xml I am receiving dynamic xml where I won't know the attribute names, if you'll look at the xml and code... I tried to make a simple example, I can get the attribute values i.e. "myName", "myNextAttribute", and "blah", but I can't get the attribute names i.e. "n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can Hibernate return a collection of result objects OTHER than a List? Does the Hibernate API support object result sets in the form of a collection other than a List?
For example, I have process that runs hundreds of thousands of iterations in order to create some data for a client. This process uses records from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the definitive link for C and C++ programming languages? Lately all modern programming languages have a definitive web site to support, distribute, learn the programming language, as well as community forums, e-mail lists and so on. Java has java.sun.com, python has python.org, etc.
However C/C++ does not s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Automatically update AddedBy and EditedBy fields in SubSonic I have a data model that includes common columns like addedBy, editedby (user), addedDate, editedDate.
Is there a setting I can use in SubSonic 2.1 that will automatically update these fields appropriately instead of having to explicitly specify in every u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing a date where only the year may be known What's the best way to store a date value for which in many cases only the year may be known?
MySQL allows zeros in date parts unless the NO_ZEROES_IN_DATE sql mode is enabled, which isn't by default. Is there any reason not to use a date field where if the month and d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XmlSerializer, sgen.exe and generics I have a generic type:
public class Packet<T> where T : IContent
{
private int id;
public int Id { get { return this.id; } }
private T content;
public T Content { get { return this.content; } }
}
I want to deserialize/serialize instances of this type from/to XML... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is topdir set to its default value when rpmbuild called from tcl? I have a tcl script which 'exec' rpmbuild. When doing so, the 'topdir' used by rpmbuild is wrong. I have a .rpmmacros file in my home directory and if I call manually rpmbuild, it works fine, ie. the 'topdir' is not the default one.
I added a [ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: unable to display image in client machine I have a web application.
I have inserted an image into my web application homepage using html tags.It is working very well in server machine. But when any client is accessing my web page everything that is present in the homepage of the web application is displayed except t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: unable to display image in client machine This is a duplicate of unable to display image in client machine, by the same person.
I have a web application.
I have inserted an image into my web application homepage using html tags. It is working very well in server machine. But when any client is accessing my web page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is Google Web Toolkit useful to develop complex javascripts? Iam a great fan of javascript frameworks especially jQuery .I have always wanted to design sites like "plurk.com" but i know that it needs very huge lines of javascript.so that shut me off.But since i came to know GWT , i really want to test it out and wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/416998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ASP.NET MVC - Mapping more than one query string parameter to a pretty url I am a bit stuck on the design of my seo friendly urls for mvc....Take for example the following url:
http://myapp/venues/resturants.aspx?location=central&orderBy=top-rated
With my mvc app i have mapped it as follows:
http://myapp/venues/list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: can c# be used for communicating mobile and pc? As a minor project in my degree I would like to communicate mobile and pc .I am interested to communicate through bluetooth is it possible to do so in c#?
If possible please provide me list of application or hardware i would requiere in order to do so.
thanks in advanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unicode characters in window caption We're having trouble setting window captions using cyrillic or japanese characters. We either see question marks or random garbage, but not the text we want. We've tried using different encodings, SetWindowText(), SetWindowTextW(), SetWindowTextA(), and so on. We can't even get i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I Use a .NET DLL in "Delphi 2007 for Win32"? Is it possible to use a .NET DLL in Delphi 2007 for Win32? I've tried to import the DLL in the same way I've done for an ActiveX component, but it doesn't appear to work (Component Menu -> Import Component -> Import .NET Assembly.
Is it possible and if so what are th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I notify TFS of build stats? I am told TFS can accept data on build/test metrics from 3rd party continuous integration tools. Does anyone know how this works or have any good links for me? My google-fu seems weak today and I cannot find any info on this. We would like to have a short powershell script or app ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a cross-browser way to condense text on a page? I am looking for a way to condense relatively small areas of text on a page in an effort to mimic a graphic button that was done with a non-standard font. Ideally, just the letters would get squished or made thinner, leaving the space between words more or les... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I get a reference to a pending transaction from a SqlConnection object? Suppose someone (other than me) writes the following code and compiles it into an assembly:
using (SqlConnection conn = new SqlConnection(connString))
{
conn.Open();
using (var transaction = conn.BeginTransaction())
{
/*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: SQL Reporting Services: Why does my report shrink when it's emailed? I created a simple report and uploaded it to my report server. It looks correct on the report server, but when I set up an email subscription, the report is much narrower than it is supposed to be.
Here is what the report looks like in the designer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to build a "defaulting map" data structure I have some configuration data that I'd like to model in code as so:
Key1, Key2, Key3, Value
null, null, null, 1
1, null, null, 2
9, null, null, 21
1, null, 3, 3
null, 2, 3, 4
1, 2, 3, 5
With this configuration set, I the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Enumerations in Hibernate It is often useful to have a field in a DAO whose value comes from a Java enumeration. A typical example is a login DAO where you usually have a field that characterises the user as "NORMAL" or "ADMIN". In Hibernate, I would use the following 2 objects to represent this relationship in a (s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: WebBrowser control: How to overwrite URL property This is a bit special:
I'm loading some HTML in string form into the WebBrowser control via the DocumentText property.
Now when I print the page with a PDF printer (Bullzip PDF Printer in my case) it always takes the URL as document name which is "about:blank".
Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse PDT Ant I downloaded the Eclipse PDT 2.0 GA release (Eclipse 3.4), however, it doesn't look like the Ant tools are included in this package. How can I install the eclipse Ant tools (editor, executable, etc...)?
A: So I found the answer to my own question. You need to install the Eclipse Java Development T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: ASP.NET - how to stop unrequired server validation I have used ValidatorEnable to disable a RequiredFieldValidator in javascript. However on postback the control being validated by the validator is still validated ... even though I disabled the validator on the client.
I understand why this is happening since I've o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I spread awareness of my open source project? I've got a couple open-source projects on Codeplex (I'll link if someone asks, but otherwise, I'm not quite that shameless ;)), but I'm not really sure how to go about spreading the word or getting people to take notice. Any suggestions for attracting users/contri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: C# How do I run some code for the selected item in a listbox? I have a listbox of names, I want to click one of the names so that it is highlighted and then click a button that runs some code for the selected item. How do I call this selected item?
private void btnEcho_Click(object sender, EventArgs e)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nesting content tags in rails Hey. I've got some code from Agile Web Development that wraps some HTML around a method call as so:
# from tagged_builder.rb, included as a FormBuilder helper
def self.create_tagged_field(method_name)
define_method(method_name) do |label, *args|
@template.content_tag("p",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Max File Extension Length Is there a maximum lengh for a file extension? The longest one I've seen is .compiled (8 chars)
Useless Background
I'm creating a IHttpHandler to return image icons for a specific filename. I'm simply calling a FileImage.axd?ext=pptx. I'm generating the files on the fly using SHGetFileIn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why are there dashes in a .NET GUID? Why are there dashes in a .NET GUID? Are there dashes in most implementations of a GUID, or is it just a Microsoft thing?
Signed,
741ecf77-9c92-4435-8e6b-85975bd13452
A: It's just a convenience.
http://en.wikipedia.org/wiki/GUID
A: Technically, there are no "dashes" in a GUID. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: .NET force COM objects release I have an ASP.NET 2.0 application under IIS that has the functionnality of
exporting some data to a software called HFM (Oracle Hyperion Financial Management).
To perform that export, the .net application uses an API based on COM objects provided by the HFM client (the client is insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I programatically translate a MSSQL server alias to an IP address using .NET? The Windows default instalation comes with MSSQL client has a cliconfg application that is used to set aliases to Servers IP addresses and ports. Sometimes we use in our ConnectionStrings some of those aliases instead of IP address... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to parse string for capitalized words I have this string: " Mimi loves Toto and Tata hate Mimi so Toto killed Tata"
I want to write a code that print only the words that begin with capital letters, avoiding repetition
the Output should be like
Mimi
Toto
Tata
I tried to do so but I'm sure its wrong even though n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hosting a bare-bones XAML editor in my application? In our application, we allow administrators of an install to design templates for name tags that are printed when they check-in from a kiosk (sort of like checking in for a flight at a kiosk and printing out a boarding pass).
For example, the template might look so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Trigger an update of the UpdatePanel by a control that is in different ContentPlaceHolder I have a page with two ContentPlaceHolders. One has a DropDown and another UpdatePanel with content.
How can I trigger update to the UpdatePanel by the DropDown's selectedItemChanged event when they are in different ContentPl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Configuring 'Cassini' (ASP.NET Development server) for CAC cards for testing - How? I'm developing a new website (ASP.Net, VB codebehind pages, .Net 3.5) to replace a "Classic ASP" site.
Some of the pages are 'public' and the rest require authentication - in this case it's done by reading DoD-issued CAC cards throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: add rows to a dataset Is it possible to add rows to a dataset?
A: Yes, you can certainly add rows to the datatables in a dataset.
Check this MSDN page for a how-to. It covers both strongly typed datasets and untyped datasets.
To add a new record to a typed dataset
Declare a new instance of the typed dataset. In th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Continuous Integration vs. Nightly Builds Reading this post has left me wondering; are nightly builds ever better for a situation than continuous integration? The consensus of the answers seems to be pretty lopsided in favor of continuous integration, is that evangelism or is there really no reason to use nightly bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What is the maximum length of a URL in different browsers?
*
*What is the maximum length of a URL for each browser?
*Is a maximum URL length part of the HTTP specification?
A: The URI RFC (of which URLs are a subset) doesn't define a maximum length, however, it does recommend that the hostname part of the URI (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5577"
} |
Q: How do I write a WSDL file to accept arbitrary SOAP Headers? I have a client that wants to send a large number of SOAP Header fields to my web service. The only thing I am expected to do with these values is reflect them back.
What is the proper way to handle this? They would like me to define each of them in the W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to 'wrap up' a C++ dll/h/lib/xml/exe based SDK into a COM to use in a C# 2.0 project I just got handed an SDK made of C++ dll, lib, exe, and various .h files. I presume it is meant for C++ developers. The sample projects they provide with their documentation are all written in C++. I am able to spin them up w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I set Java's min and max heap size through environment variables? How do I set Java's min and max heap size through environment variables?
I know that the heap sizes can be set when launching java, but I would like to have this adjusted through environment variables on my server.
A: You can't do it using env... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: Java Servlet Filter Equivalent in Ruby [on Rails] and PHP? Not sure if the terminology is correct, but are there rough equivalents to Java Servlet Filters in Ruby and PHP ? Are they actual concrete classes ?
I assume there is also a number of common web app libraries/frameworks in Python. Is there an equivalent ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross Platform SWF Playback with Python? I'm looking for different solutions to playing back SWF files on Windows, OSX and Linux using Python. Ideally I'd like to embed the player inside a wxPython frame/window.
One possibility I'm investigating is the Mozilla XPCOM framework since its used by FireFox to load the F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Anyone with Postsharp experience in production? Has anyone out there used Postsharp AOP framework in a production environment? Are there any pitfalls? In order to do some logging etc, can Postsharp be used in conjunction with Log4Net?
Any tutorials on using Postsharp with Web Apps and/or Log4Net will be highly appre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to avoid duplicate code when using mocks in unittests I am using dependency injection to supply mocks for code outside of my class under test. I find myself writing alot of the same code over and over as I need to mock out AuthProvider, ConfigurationManager, etc. which are used in the method I want to test. The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Returning Oracle ref cursor and appending multiple results I have this problem I'm hoping someone knows the answer to. I have an oracle stored procedure that takes a customer id and returns all the customer's orders in a ref_cursor. Oversimplifying it, this is what I have:
Orders
- orderId
- siteID
Customers
- site... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How does Ruby know where to find a required file? Here is one more newbie question:
require 'tasks/rails'
I saw this line in Rakefile in the root path of every rails project. I guess this line is used to require vendor/rails/railties/lib/tasks/rails.rb to get all rake tasks loaded:
$VERBOSE = nil
# Load Rails rakef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: .NET: Which Exception to Throw When a Required Configuration Setting is Missing? Here's a standard scenario:
if(string.IsNullOrEmpty(Configuration.AppSettings["foobar"]))
throw new SomeStandardException("Application not configured correctly, bozo.");
The problem is, I am not entirely certain which exception Some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "150"
} |
Q: How to re-position the asp.net ajax ValidatorCalloutExtender I'm using the ValidatorCalloutExtender found in AjaxControlToolkit version 3.0.20299.9. The validation is occuring in a browser window that has resizable=0 set. The popout box is getting positioned mostly outside of the viewable window - off to the right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Trimming the Log4J Message I have an appender that I only want the first X characters (for this example, we'll say 5) of the message to display.
I am using a PatternLayout but I can't get the message to truncate the message correctly.
For example, if my log message is
The quick brown fox
I just want to see :
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Trigger and control inside DetailView I have a DetailsView control with a LinkButton inside the TemplateField.
I wrap the DetailsView inside the UpdatePanel and set trigger with the LinkButton inside the DetailsView . However, i got error saying it can't find the LinkButton. I tried to google on setting trigger tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making Development Better with Static Analysis I find, when I'm reviewing VBA code, that most of the bugs are easily classified errors, such as typos, not setting things to Nothing, not closing DB connections, etc.
I know that using "Option Explicit" can solve some of these, but I'd rather use something more powerfu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What's the best way to move a directory into place in a Makefile install? I'm currently using the usual technique in my Makefile to install individual files:
install:
install -D executable ${BIN_DIR}
But I just ran across a situation where I need to move a whole directory and all files underneath it into place.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Filtering lists using LINQ I've got a list of People that are returned from an external app and I'm creating an exclusion list in my local app to give me the option of manually removing people from the list.
I have a composite key which I have created that is common to both and I want to find an efficient way of r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Easy UNICODE in C++ Is there a way to make all character sequences UNICODE by default?
For instance, now I have to say:
std::wstring wstr(L"rofl");
instead, I'd like to say
std::wstring wstr("rofl");
Thanks!
Visual C++ 8.0
A: No, you have to use L"" in order to specify a wide-string literal.
A: No, there is no s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can an App.Config be loaded from a string or memory stream? I know that I can load an app.config file from a different location using the following line of code:
AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", ConfigFile);
where ConfigFile is a full path location. What I'd like to do though is be able to load a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Prompt user when cell is changed I'm very new to creating macros and programming in general. I have a worksheet of 38 tabs. 31 tabs are for the days of the month. I would like to create a macro that will prompt users with a warning message any time "MCO" is selected in column N for each of these 31 tabs. Is that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VBC + NAnt. Error compiling WinForm It should first be noted that I am trying to avoid rewriting all my scripts to use msbuild.
I have noticed that there are several problems when using NAnt with the VBC task and compiling a WinForms application. The main problem seems to be that VBC can't find Sub Main. This is o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Developing a NavigationBar Based application including one Open GL View : How? My question starts from a problem :
I started a project in Xcode : a Navigation Bar based one (with a TableView).
Then I added a few views, through IB or programmatically... which works perfectly fine.
Then, I decided to write my Own View... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does "|" sign mean in a Django template? I often see something like that:
something.property|escape
something is an object, property is it's string property. escape - i don't know :)
What does this mean? And what min python version it is used in?
EDIT: The question was asked wrongly, it said "What does | me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Anchoring a Windows Forms Tooltip to the mouse I want to show a tooltip when hovering over a button and as long as the mouse is over the button the tooltip should follow the mouse. What is the correct way to achieve that?
When I add a MouseMove event that calls tooltip.Show(...) with the updated mouse position it fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET Attributes: Why does GetCustomAttributes() make a new attribute instance every time? So I was playing around a little more with attributes in .NET, and realized that every call to Type.GetCustomAttributes() creates a new instance of my attribute. Why is that? I would think that the attribute instance would basi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Actionscript: how can I determine the type of some loaded content? I have a situation where I'm loading some content using a URLLoader but the content could either be a video (flv or swf) an image(jpg or png or gif) or a swf. The trick is, I need to react in different ways based on the type of content that's loaded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Equivalent code for instance method synchronization in Java While discussing a Java synchronization question, someone made a comment that the following snippets are not equivalent (and may compile to different bytecodes):
public synchronized void someMethod() {
//stuff
}
and
public void someMethod() {
synchroni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: JavaScript in Flash I have a java script code that works fine when run through a browser, is there a way i can use that code in flash without much editing, i want the to get the input from user through flash and have the code do the computing and display the result in flash, any clues?
A: Well, ActionScript 1 is es... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Profiling for analyzing the low level memory accesses of my program I have to analyze the memory accesses of several programs. What I am looking for is a profiler that allow me to see which one of my programs is more memory intensive insted of computing intensive. I am very interested in the number of accesses to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What should I look out for when migrating a project from VS2003 to VS2005 In the very near future I'll be migrating some web applications from VS2003 projects to VS2005 projects.
What should I watch out for?
Anyone done this in the past and have it go bad?
How much time should I expect it will take to migrate a proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting up Dim and Fact tables for a Data Warehouse I'm tasked with creating a datawarehouse for a client. The tables involved don't really follow the traditional examples out there (product/orders), so I need some help getting started. The client is essentially a processing center for cases (similar to a legal ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How many digits can be stored for a number in SQL Server 2005? I have a number from an Oracle database of 47306832975095894070.85314746810624532. When I bring it into SQL Server, it certainly doesn't show that many digits. It shows as 4.73068329750959E+19, and the field is defined as FLOAT.
I think that probably... | {
"language": "en",
"url": "https://stackoverflow.com/questions/417305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.