text stringlengths 8 267k | meta dict |
|---|---|
Q: What is the difference between const_iterator and non-const iterator in the C++ STL? What is the difference between a const_iterator and an iterator and where would you use one over the other?
A: Unfortunaty, a lot of the methods for the STL containers takes iterators instead of const_iterators as parameters. So if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "175"
} |
Q: How can I append the name of a file to end of each line in that file? I need to do the following for hundreds of files:
Append the name of the file (which may contain spaces) to the end of each line in the file.
It seems to me there should be some way to do this:
sed -e 's/$/FILENAME/' *
where FILENAME represents t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connect to a MySQL server over SSH in PHP I'd like to establish an ssh tunnel over ssh to my mysql server.
Ideally I'd return a mysqli db pointer just like I was connecting directly.
I'm on a shared host that doesn't have the SSH2 libraries but I might be able to get them installed locally using PECL.
If there's a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Subversion web based browser What web based interface for browsing Subversion repositories do you like the most? We have tried Viewvc, but the installation seemed too complex for us.
This is no poll. I'd really love to allow people at the office to be able to access the data at the repositories with their web browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What Cases Require Synchronized Method Access in Java? In what cases is it necessary to synchronize access to instance members?
I understand that access to static members of a class always needs to be synchronized- because they are shared across all object instances of the class.
My question is when would I be inco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is it possible to create a message box that shows html-contents? I want to diaplay message boxes that looks good, with the possibillity to use bold/italic text and text with different colors. The standard MessageBox.Show doesn't provide this functionality.
I have been trying to create a message box using the WebBrow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent Pocket PC device from Shutting down application on power off How can I prevent the pocket PC device from shutting down from my application when the power button pressed? I am using C#.
A: You could use the Microsoft.WindowsCE.Form.MessageWindows class to intercept the Power Button event. This solution will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xml Serialization and Schemas in .net (C#) The following questions are about XML serialization/deserialization and schema validation for a .net library of types which are to be used for data exchange.
First question, if I have a custom xml namespace say "http://mydomain/mynamespace" do I have to add a
[XmlRoot(Name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Responsibilities of Delegates and Controllers in Cocoa Touch? I'm new to development on the iPhone. Just about every sample project (as well as the default project templates) have one or more delegates and controllers. Can someone give me a breakdown of what the delegates are responsible for vs. what the controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Sharepoint web services to edit existing list from desktop Perhaps I am not asking or searching for this correctly:
I want to have a desktop script (currently using python) that will update a list on a sharepoint site.
The current script reads various file shares, ftp sites and a ArcGIS database to determine which m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I display information when I mouseover a chart line in Flex? I'm building a simple Flex applicaton where I want to show a line chart, then display some information in a little popup box when user mouses over a line.
A: You can set the showDataTips property of the LineChart to true. The property is defined ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programmatically generating typed DataSet for LINQ - "Metadata file" missing? Title says what i'm trying to do. I can successfully generate an assembly if i don't specify the LinqOverTypedDatasets option, but i want my typed DataSet to support queries with LINQ.
My code outputs the error:
error CS0006: Metadata fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UI's in Sharepoint Our web team has been asked to build some user interfaces in Sharepoint. The UI's would primarily be forms that would need to write to a SQL Server database.
Is ASP.NET the best way to do this? If so what's the best way to integrate the ASP.NET application into Sharepoint?
A: You have 4 option... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight 2 User Control - Unknown attribute name on element Update:
Screenshot http://farm4.static.flickr.com/3277/3048788466_661e8e5e78_b.jpg
To reproduce:
*
*Get this sample project from Silveright.net - http://download.microsoft.com/download/5/9/2/5922d533-7ed5-4065-a138-ce3d9ca266e5/4-UserControls_Source_CS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I use boost on uclibc linux? Does anyone have any experience with running C++ applications that use the boost libraries on uclibc-based systems? Is it even possible? Which C++ standard library would you use? Is uclibc++ usable with boost?
A: We are using many of the Boost libraries (thread, filesystem, signa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Need a good ASP.NET menu I am looking for a good menu to use in an ASP.NET. I am currently using the asp menu. I need
it to work in IE 6,7,8, Firefox and Safari. I also need it to not add a lot of overhead to the page client-side. I need to be able to load it from the database.
A: Write your own Server Control whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I make a swing JButton repeat its action when it is held down? I am creating an touch screen application using Swing and have a request to change one of buttons so that it will behave like a keyboard when the button is held down.
(First of all, I am not sure that the touch screen will allow the user to "hold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to Establish Inheritance Between Objects in JavaScript? I have the following code that creates two objects (ProfileManager and EmployerManager) where the object EmployerManager is supposed to inherit from the object ProfileManager.
However, when I do alert(pm instanceof ProfileManager); it returns false.
functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get form fields from a specific fieldset? I'm writing a HTML form that's divided in fieldsets, and I need to get the form fields from a specific fiedset in a function.
Currently it's like this:
function conta(Fieldset){
var Inputs = Fieldset.getElementsByTagName("input");
var Selects = Fieldset.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET 2.0: How to make a page remember viewstate without creating history points? I have a page with a few fields and a runtime-generated image on it. The contents of this page are inside an UpdatePanel. There is a button to take the user to a secondary page, which has a button that calls javascript:history.go(-1)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System.Reflection.PropertyInfo.SetValue() calling default event handler of button So i'm not really sure why this is happening but I'm running through some DataRows where I have the control name, property, and value that I want to set. Everything works fine except when I set the TEXT property of a button. For some r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to correctly unit test my DAL? I'm new to unit testing. But how do I unit test my DAL which is written with Entity Framework, so I can make sure my DAL code is working correctly but no database is actually touched? Could someone give as much detail as possible please.
A: Unit testing a DAL is a very common he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Dependency injection framework for Cocoa? Interface Builder can be used for basic dependency injection in a Cocoa app, but is anyone aware of more complete dependency injection frameworks for Objective-C/Cocoa for when you don't want to instantiate objects in a NIB file?
Edit
To clarify, I recognize that IB can be u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Flash TextField HTML - How do I prevent the error dialogue for missing images? (Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found) I'm using a Flash TextField control to display some HTML content inside a Flash presentation to be shown on a large touch-screen kiosk. Unfortunately, if any image ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: View a list of recent documents in Vim Is there a way to view the list of recent documents you've opened in Vim?
I realize I could view the cursor jump list, :ju, and then go to a cursor position in the list but this is not ideal because there will be multiple listings of the same document in the list.
Is there anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "171"
} |
Q: Angular Momentum Transfer equations Does anyone have any good references for equations which can be implemented relatively easily for how to compute the transfer of angular momentum between two rigid bodies?
I've been searching for this sort of thing for a while, and I haven't found any particularly comprehensible e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a better way to convert to ASCII from an arbitrary input? I need to be able to take an arbitrary text input that may have a byte order marker (BOM) on it to mark its encoding, and output it as ASCII. We have some old tools that don't understand BOM's and I need to send them ASCII-only data.
Now, I just got ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best UI for Search/Filter/Boolean expression There are some simple ones, some complex ones, but I cannot find the gold standard.
Can anyone point me to "the best" way to let a user define a search criteria (or filter) to retrieve results?
This is complicated since:
*
*Need to support about 10 different types of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to refer to the outer class in another instance of a non-static inner class? I'm using the Apache Commons EqualsBuilder to build the equals method for a non-static Java inner class. For example:
import org.apache.commons.lang.builder.EqualsBuilder;
public class Foo {
public class Bar {
private Bar()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: inheritance from two parent classes I read about this ages ago but never tried it now I can't remember if this is possible or not. Is it possible to extend a class from two parents on php5 e.g.
class_d extends class_c and class_b
moreover can you do this if class_c and class_b are themselves extended from class_a ..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP Script to check when a link was last modified Is there a basic php method that accepts a URL and retrieves the date last modified from the header?
It would seem like something php can do, but I'm not sure which object to check.
Thanks
A: Give this a go.. using cURL.
$c = curl_init('http://...');
curl_setopt($... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Check that a variable is a number in UNIX shell How do I check to see if a variable is a number, or contains a number, in UNIX shell?
A: In either ksh93 or bash with the extglob option enabled:
if [[ $var == +([0-9]) ]]; then ...
A: Here's a version using only the features available in a bare-bones shell (ie it'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Ruby statement chaining Given following Ruby statements:
(Read input and store each word in array removing spaces between words etc)
input = gets.chomp
inArr = []
input.strip.each (" ") { |w| inArr.push w }
inArr.delete_if {|ele| ele == " "}
inArr.each {|w| w.strip!}
I was wondering if anyone can suggest a way to o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS block elements on a line What's the most common way to deal with a series of block elements that need to be on a line (if javascript needs to be able to modify their widths, for example)? What are the pros and cons to applying float:left to each of them vs. using positioning to place them?
A: Floating would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to design a class that has only one heavy duty work method and data returning other methods? I want to design a class that will parse a string into tokens that are meaningful to my application.
How do I design it?
*
*Provide a ctor that accepts a string, provide a Parse method and provide methods (let's call ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Full Text Searching for single characters I have a table with a TEXT column where the contents is just strings of CSV numbers. Example ",1,76,77,115," Each string can have an arbitrary number of numbers.
I am trying to set up Full Text Indexing so that I can search this column rapidly. This works great. Instead of r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I force Postgres to use a particular index? How do I force Postgres to use an index when it would otherwise insist on doing a sequential scan?
A: One thing to note with PostgreSQL; where you are expecting an index to be used and it is not being used, is to VACUUM ANALYZE the table.
VACUUM ANALYZE schema.tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "159"
} |
Q: Declare-and-throw vs. throw-without-being-declared exceptions In Java, what is the difference between the twin methods?
public void methodA() throws AnException {
//do something
throw new AnException();
}
public void methodA() {
//do the same thing
throw new AnException();
}
I have a intuition that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Declarations, definitions, initializations in C, C++, C#, Java and Python What do the terms mean in each of the above languages? Why do the languages differ (wherever they do, if at all they do) in this respect?
A: C/C++:
A declaration is a statement that says "here is the name of something and the type of thing th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Setting an Event handler without doing it manually in the classname.designer.cs file Is there any way to set an event handler without doing it manually in the classname.designer.cs file other than double clicking the UI element?
A: If I follow your question correctly, you can just do it in your code-behind like thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TIME_WAIT on Loopback Interface Why is it that TCP connections to a loopback interface end up in TIME_WAIT (socket closed with SO_DONTLINGER set), but identical connections to a different host do not end up in TIME_WAIT (they are reset/destroyed immediately)?
Here are scenarios to illustrate:
(A) Two applications, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Gridview Column Width in ASP.NET 2.0 How do you control the column width in a gridview control in ASP.NET 2.0?
A: You can use the HeaderStyle-Width, ItemStyle-Width or FooterStyle-Width properties. These can be applied to all the columns or per-column basis.
<asp:GridView ID="GridView1" runat="server">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Pascal Style RailRoad Diagrams Where can I find pascal-style railroad diagrams to describe C++ syntax?
(As an alternative to EBNF)
A: There don't exist any, as far as I know. The C++ syntax can't even be expressed in a proper EBNF - it's a context-sensitive grammar, and anything attempting to parse it has to be cap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL: How to ask for a date greater than today when a date is in a string I'm try to extract info from a MySQL DB into a MS SQL DB. The DB is a mess and the developer is no longer available.
All dates are in char fields, and I use
SELECT concat( mid(DueDate, 7, 4), mid(DueDate, 4, 2), mid(DueDate, 1, 2)) as DueDat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS Conventions / Code Layout Models Has there been any attempt and creating a formalized method for organizing CSS code? Before I go and make up my own strategy for keeping things readable, I'm wondering what else is out there. Google hasn't been very helpful, as I'm not entirely sure what terms to search for.
I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: What is the best way today to maintain clipper 5.3 code? Are there any successor products on DOS, Windows or Linux?
A: There are quite a few Clipper compilers available: Harbour, CLIP, and xHarbour, to name a few of the free ones.
A: It's no doubt, the way to go is Harbour. Don't waste time with projects abandoned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Should I commit or rollback a read transaction? I have a read query that I execute within a transaction so that I can specify the isolation level. Once the query is complete, what should I do?
*
*Commit the transaction
*Rollback the transaction
*Do nothing (which will cause the transaction to be rolled back a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: Mapping a class with multiple collection properties containing the same object type Our system generates emails with user-chosen lists of To / CC / BCC contacts. I wanted to store them as follows in our SQL Server database, here's the simplified database table structure:
CREATE TABLE [Contact] (
[ContactID] [in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is an elegant way to track the size of a set of objects without a single authoritative collection to reference? Update: Please read this question in the context of design principles, elegance, expression of intent, and especially the "signals" sent to other programmers by design choices.
I have two "views" of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Padding is Invalid and cannot be removed" exception on WebResource.axd I have an ASP.NET 2.0 application that is working fine in our local environment. When published to a test server, we're getting intermittent errors on the server.
Here's the most common:
Padding is invalid and cannot be removed.
Description: An... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Custom view transition in OpenGL ES I'm trying to create a custom transition, to serve as a replacement for a default transition you would get here, for example:
[self.navigationController pushViewController:someController animated:YES];
I have prepared an OpenGL-based view that performs an effect on some static te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What automatic code generation tools are available for Castle ActiveRecord classes? If I have an existing database, I want to be able to automatically code generate the corresponding Castle ActiveRecord C# classes based on the db schema. My primary intent is to avoid manually creating each class. What are my option... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Code Golf: Number to Words The code golf series seem to be fairly popular. I ran across some code that converts a number to its word representation. Some examples would be (powers of 2 for programming fun):
*
*2 -> Two
*1024 -> One Thousand Twenty Four
*1048576 -> One Million Forty Eight Thousand Five Hundred... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: What is the typical interrupt latency for WinCE 6.0 on an ARM target? What is a typical interrupt latency for WinCE 6.0 on an ARM target?
(Just looking for a ballpark value for performance estimation)
A: Depends on the processor speed. Single digit to low 10's of microseconds for the ISR in most cases. See this a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When overriding equals in Java, why does it not work to use a parameter other than Object? I ran into an interesting behavior recently. It seems that if I override .equals() to take a parameter other than Object, it doesn't get called. Can anyone explain to me why this is happening? It seems to violate my underst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: VDPROJ auto upgrading vs. uninstall/reinstall I've seen a confusing behavior regarding the MSI files generated by a VDPROJ file. If I build my MSI in Visual Studio and then right-click and pick "Install" from within Visual Studio, it will automagically uninstall any version that is already installed and then instal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the best way to display HTML in Flex? I have HTML that includes symbols such as the Trademark "TM" as superscript (™). In normal HTML, I would use "™" or ™ to display the Trademark TM. However, I can find no way to import HTML like this into Flex and have it displayed correctly. I am having simila... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to Open many NEW windows in Javascript? Wondering how to open many new windows with Javascript. I have found plenty of places on the internet that show you how to open a new browser window with Javascript, but I want to open a new UNIQUE window. For Example.
I have two links on a page. the user clicks on both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In C++ why is grouping not forced by the language on public, private and protected members of a class/struct? Is it only to allow logical grouping?
A: It gives you flexibility. For example, you might have a bunch of constructors, some public, some protected, some private - wouldn't you want them all grouped togethe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SELECT with ORs including table joins I've got a database with three tables: Books (with book details, PK is CopyID), Keywords (list of keywords, PK is ID) and KeywordsLink which is the many-many link table between Books and Keywords with the fields ID, BookID and KeywordID.
I'm trying to make an advanced search for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should you use a partial class across projects? I have a class library with all my database logic. My DAL/BLL.
I have a few web projects which will use the same database and classes, so I thought it was a good idea to abstract the data layer into its own project.
However, when it comes to adding functionality to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: How to write regex which returns only "I", followed by "J" or "V", and then between 1 and 3 numbers? Need to an expression that returns only things with an "I" followed by either a "J" or a "V" (No Quotes) and then a minimum of 1 number up to 3 numbers.
I J###
I V###
I J##
I V##
I J#
I v#
A: Depends on your f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to quote a string value explicitly (Python DB API/Psycopg2) For some reasons, I would like to do an explicit quoting of a string value (becoming a part of constructed SQL query) instead of waiting for implicit quotation performed by cursor.execute method on contents of its second parameter.
By "implicit quotatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Can Anyone Recommend an ASP.NET MVC Group Chat Control? I need to provide a window on an ASP.NET MVC web page where registered users of the site can group chat live.
Can anyone recommend a component or control that can provide real-time group chat that I can embed on an ASP.NET MVC page?
I am willing to use free or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I catch jQuery $.getJSON (or $.ajax with datatype set to 'jsonp') error when using JSONP? Is it possible to catch an error when using JSONP with jQuery? I've tried both the $.getJSON and $.ajax methods but neither will catch the 404 error I'm testing. Here is what I've tried (keep in mind that these all work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Learning PLC programming How do I learn PLC programming? Would it differ greatly for different brands of PLCs? Is ladder programming the same as PLC programming?
A: PLC programming should be viewed as implementation activity of PLC software engineering output, unless you are using PLC as purely part of alternative ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: ASP.NET WebForms + Postback then open popup I have a LinkButton that has to postback to perform some logic.
Once it is finished, instead of loading the page back up in the browser, I want to leave it alone and pop open a new window.
So far, the best idea I've had is to put the LinkButton in an UpdatePanel, and have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: LinqToSql .Contains and nvarchar vs varchar parameters -> index conversion plan I have a just one table mapped in a datacontext. Here's the property and attribute on the column of interest:
[Column(Storage="_CustomerNumber", DbType="VarChar(25)")]
public string CustomerNumber
{
This column is, in fact, a varchar(2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/309991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is a cfront tool available for the new C++? Is a cfront tool available for the new C++? For any other modern languages?
A: Comeau C/C++ is a C-generating C++ compiler, like cfront.
A: What do you mean by “cfront tool”? Cfront was the first C++ compiler. But since failure to add exception support, it has been disco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Events on ASP.NET UserControl raise every other click? Yes, there is a similar question here. However, that question doesn't seem to have code attached to it (though it might have at some point; I see answers alluding to code), and the accepted answer (and other advice) on it aren't getting me where I need to be.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: can you put SSL on a IP address or only on a web server's domain name? In a web application, if it doesn't have a domain name (like a web service for example), can you still add a SSL certificate to a IP address?
If yes, how?
A: This site offers certificates for IP addresses. You wouldn't be able to (properly) use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Are there specific "technical debts" that are not worth incurring? There are (at least) two ways that technical debts make their way into projects. The first is by conscious decision. Some problems just are not worth tackling up front, so they are consciously allowed to accumulate as technical debt. The second is by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the recommended/effective request payload for a REST PUT method? I see two types of examples in various places. One uses form fields like
curl -X PUT -d "phone=123.456.7890" "http://127.0.0.1/services/rest/user/123"
and the other uses an XML content like (some variation of) this
echo "<user><id>123</id><p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: NHibernate - Is there any good tools to assist you with the configuration file? Is there any GUI-based tools to assist you with writing and maintaining the configuration file? Any code tools to codegen the config file? What are the best ways to make this a little bit easier? Are most people just using Castle ActiveR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open a Specified File in Excel from a GUI - Borland C++ I am using Borland Builder C++ 2009. I want to add a button to a form that allows the user to open a file in Excel that I specify. I can't think of how to do this. I know how to link with other code and executables -- is there a Microsoft Excel executable that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Output single character in C When printing a single character in a C program, must I use "%1s" in the format string? Can I use something like "%c"?
A: yes, %c will print a single char:
printf("%c", 'h');
also, putchar/putc will work too. From "man putchar":
#include <stdio.h>
int fputc(int c, FILE *stream);
int p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Is tilde a legitimate character in an XML SOAP message? Is tilde a legitimate character in an XML SOAP message? I get a SAXParseException:Content not allowed in prolog. I included most of the SOAP message just in case I'm barking up the wrong tree.
POST /... HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I make hash key lookup case-insensitive? Evidently hash keys are compared in a case-sensitive manner.
$ perl -e '%hash = ( FOO => 1 ); printf "%s\n", ( exists $hash{foo} ) ? "Yes" : "No";'
No
$ perl -e '%hash = ( FOO => 1 ); printf "%s\n", ( exists $hash{FOO} ) ? "Yes" : "No";'
Yes
Is there a setting to ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: VS 2008 Issue ->>Unable to start program Ok I have a web application in 2005,. net 2.0 , I converted it to 2008 .net 3.5.
when i attempt to run it in VS 2008 either debug or release I get the above mentioned error:
Unable to start program
http:\localhost\MyWebApp
no other message just this. I can access my prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding License information to NSIS installer We distribute the software created by my group via Windows installers generated via NSIS. We generate our NSIS configuration files from a python script written by a developer who no longer works with us, so we currently do not have anyone on staff who knows how to write ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Amazon AWS to create an offline database Problem Statement:
I would like to create an offline database to lookup prices/info on the n most useful books to sell in the United States (where n is probably 3 million or so).
Question:
So, my question is (and I am open to other approaches here as well), I am trying... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF Web Service: Upload a file, Process that file, Download that processed file back I can handle the process that file part, but before I go crazy, has someone built a simple wcf service & client (running under windows services or IIS) that I can use to upload a file, and download that file back? with the fewest li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In Django, Problem with {{ block.super }}, How do I avoid duplicating a `block` in multiple template files? For 2 child template files inheriting a block, the {{ block.super }} does not resolve
Python 2.5.2, Django 1.0, Windows XP SP3
Sample skeleton code for files involved:
*
*base.html
*item_base.html
*show_i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to parse arrays of objects returned by DWR? DWR handles lists of primitives quite straight forward. I could not find whether array of objects returned by a DWR method call represent a JSON object. Any clues? Or do I have to return a JSON string representing the array of objects back to the browser?
A: This answ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make conversions from varchar to datetime deterministic? In the tradition of this question and in light of the documentation, how does one make this function deterministic:
ALTER FUNCTION [udf_DateTimeFromDataDtID]
(
@DATA_DT_ID int -- In form YYYYMMDD
)
RETURNS datetime
WITH SCHEMABINDING
AS
BEGIN
RE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How important is it to indicate if a class implements an interface in Perl? I've been discussing a code style issue with a friend. We have a series of packages that implement an interface by returning a specific type of value via a named subroutine. For example:
package Foo::Type::Bar;
sub generate_foo {
# about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I make GCC warn on passing too-wide types to functions? Following is some obviously-defective code for which I think the compiler should emit a diagnostic. But neither gcc nor g++ does, even with all the warnings options I could think of: -pedantic -Wall -Wextra
#include <stdio.h>
short f(short x)
{
return... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I change the case of a hash key? I am writing a script which is likely to be modified by users. Currently I am storing the configuration settings inside the script. It exists in the form of a hash-of-hashes.
I would like to guard against people accidentally using lowercase characters in the hash keys, becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: ignoring folders in mercurial Caveat:
I try all the posibilities listed here: How can I ignore everything under a folder in Mercurial.
None works as I hope.
I want to ignore every thing under the folder test. But not ignore srcProject\test\TestManager
I try
syntax: glob
test/**
And it ignores test and srcProject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Python - Setting / Getting Environment Variables and Addrs I need to set an environment variable in Python and find the address in memory where it is located. Since it's on Linux, I don't mind about using libraries that only work consistently on Linux (if that's the only way). How would you do this?
Edit: The scope ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I break the a BoundField's HeaderText In HTML in the td of a table you can break text by using <BR> between the words. This also works in the HeaderText of a TemplateItem but not the HeaderText of a BoundField. How do I break up the Header text of a BoundField.
A: Set HtmlEncode = false inside the BoundFiel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Post Build exited with code 1 I have a project with a post build event:
copy $(ProjectDir)DbVerse\Lunaverse.DbVerse.*.exe $(TargetDir)
It works fine every time on my machine. I have a new developer who always gets the "exited with code 1" error. I had her run the same command in a DOS prompt, and it worked fine.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: Passing Interface in a WCF Service? I'm experimenting with WCF Services, and have come across a problem with passing Interfaces.
This works:
[ServiceContract]
public interface IHomeService
{
[OperationContract]
string GetString();
}
but this doesn't:
[ServiceContract]
public interface IHomeService
{
[Op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Determine if current user is a domain or local user? Is there a way to determine (.NET preferably) if the current user is a domain user account or local user account?
Ahead of time - I don not know the domain name this is running on so I can't just look for DOMAIN\Username v COMPUTER\Username.
Part of the answer co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Errata in Extreme Programming Adventures in C#? I'm trying to work my way through Ron Jeffries's Extreme Programming Adventures in C#. I am stuck, however, in Chapter 3 because the code does not, and cannot, do what the author says it does.
Basically, the text says that I should be able to write some text in a word... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In C#, How can I serialize Queue<>? (.Net 2.0) At the XmlSerializer constructor line the below causes an InvalidOperationException which also complains about not having a default accesor implemented for the generic type.
Queue<MyData> myDataQueue = new Queue<MyData>();
// Populate the queue here
XmlSerializer myS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the widget name of the Kde bar used in program like Kate? (image inside) What is the object name of the Kde bar that provide buttons to hide/unhide widgets? I can't find on kde official API references. It's used in program like Kate, Kdevelop. Here the screenshot of the bar of Kate bottom:
http://emilio.plu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SOAP Webservice error - design practice I need to design a SOAP api (my first one!). What are the best practices regarding errors returned to the caller.
Assuming an api as follow
[WebMethod]
public List<someClass> GetList(String param1)
{
}
Should I
*
*Throw an exception. Let the SOAP infrastructure generate a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dropdownlist to Filter GridView I have tried different examples to filter a gridview by dropdownlist, but is it possible in a button on_click event? Do i create something like a SelectedItem on each dropdown and have them added to the button event? Sorry to be so vague....I would like to have the dropdowns with a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In sed or awk, how do I handle record separators which *may* span multiple lines? My log file is:
Wed Nov 12 blah blah blah blah cat1
Wed Nov 12 blah blah blah blah
Wed Nov 12 blah blah blah blah
Wed Nov 12 blah blah blah blah cat2
more blah blah
even more blah blah
Wed Nov 12 blah blah blah blah cat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.