text string | meta dict |
|---|---|
Q: Recovering from exceptions using CPPUnit I have been using CPPUnit as a unit testing framework and am now trying to use it in an automated build and package system. However a problem holding me back is that if a crash occurs during the running of the unit tests, e.g. a null pointer dereferencing, it halts the remai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best datatype to use for storing moderate amounts of text in SQL Server (2005)? What is the best datatype to use for storing moderate amounts of text in SQL Server (2005)?
For example, imagine a table, storing information on downloads available on a website.
I want a title for the download which is brief... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Wireframing Overplanning? 37 Signal's Getting Real convinced me that wireframing and writing functional specification documents are middleman steps unnecessary for building web applications and dynamic websites.
Is the overhead for these steps worth its weight? Is prototyping in HTML/CSS or even PhotoShop docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I check if one game object can see another? I have an object, that is facing a particular direction with (for instance) a 45 degree field of view, and a limit view range. I have done all the initial checks (Quadtree node, and distance), but now I need to check if a particular object is within that view cone,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Are there limitations on the amount of memory that Flash player can use? Are there any limitations on the amount of memory that the Flash player can use? If you have a SWF that over time gets a lot of data from the server, then more and more data will be kept in memory. Is there a limitation on this?
A: Not in any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: CSV date format I have a VB application which extracts data and creates 3 CSV files (a.csv, b.csv, c.csv). Then I use another Excel spreadsheet (import.xls) to import all the data from the above CSV files into this sheet.
import.xls file has a macro which opens the CSV files one by one and copies the data. The probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would I write this 3 level deep mysql query? This might be a little hard to explain, but I will try.
I want to display a list of categories (stored in 1 table), and number of domains associated with each category (stored in another table).
The monkey wrench in this case is that each domain has a set of records ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ headers - separation between interface and implementation details One of classes in my program uses some third-party library. Library object is a private member of my class:
// My.h
#include <3pheader.h>
class My
{
...
private:
3pObject m_object;
}
The problem with this - any ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I simply 'read' a file that is in use? I am trying to use a StreamReader to read a file, but it is always in use by another process so I get this error:
The process cannot access the file
'\arfjwknasgmed17\C$\FLAG
CONDITION\CP-ARFJN-FLAG.XLS' because
it is being used by another process.
Is there a way I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: jQuery Validation plugin: disable validation for specified submit buttons I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "172"
} |
Q: Fast library to replace CDC vector graphics I have a mature MFC C++ application that displays on screen and prints using CDC wrappings on the Win32 GDI. While it has been optimized over the years, I would like to replace it with something a bit faster. The graphics included rendered triangular surface models, comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the Nth digit of an integer with bit-wise operations? Example. 123456, and we want the third from the right ('4') out.
The idea in practise is to access each digit seperately (ie. 6 5 4 3 2 1).
C/C++/C# preferred.
A: Just spent time writing this based on answers here, so thought I would share.
This is ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How do I get python-markdown to additionally "urlify" links when formatting plain text? Markdown is a great tool for formatting plain text into pretty html, but it doesn't turn plain-text links into URLs automatically. Like this one:
http://www.google.com/
How do I get markdown to add tags to URLs when I format a b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Missing XML comment for publicly visible type or member I am getting this warning: "Missing XML comment for publicly visible type or member".
How to solve this?
A: I wanted to add something to the answers listed here:
As Isak pointed out, the XML documentation is useful for Class Libraries, as it provides intellise... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "440"
} |
Q: Internationalisation in Visual Studio I'm fairly new to Visual Studio and am wondering how best to plan for translation in a new project I'm starting. I need to provide English, German and French.
I have used Eclipse a lot in the past and there I just developed a new app and when it was complete I could just start a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Creating sine or square wave in C# How do I generate an audio sine or square wave of a given frequency?
I am hoping to do this to calibrate equipment, so how precise would these waves be?
A: Try from Creating sine and save to wave file in C#
private void TestSine()
{
IntPtr format;
byte[] data;
GetSine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Use Compiler/Linker for C++ Code Clean-up I'm using VS2008 for a C++ project. The code is quite old and has passed through many hands. There are several classes hierarchies, functions, enums and so on which are no longer being used.
Is there a way to get the compiler/linker to list out identifiers which have been de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: XPath condition for printing xml block I am using Java API and XPath to parse my XML. I have XML like this:
<animals>
<dog>
<looks>dangerous </looks>
<bites> hard </bites>
<growls> yes </growls>
</dog>
<cat>nothing special</cat>
</animals>
I would like an XPath condition to print
<dog>
<look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does python support multiprocessor/multicore programming? What is the difference between multiprocessor programming and multicore programming?
Preferably show examples in python how to write a small program for multiprocessor programming & multicore programming
A: There is no such thing as "multiprocessor" or "mult... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Macron in VBA editor Been creating a simple program using VBA that I can use to review vocabulary in Chinese.
I've gotten a fair bit working so far, but have run into a huge problem with inputting a macron-character such as "ā" (unicode 257). The specific application I am working on right now involves changing the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debug .NET Setup Project How can I debug a .NET setup project?
A: Try using
Debugger.Break()
| {
"language": "en",
"url": "https://stackoverflow.com/questions/203927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# streaming sockets, how to separate messages? Kinda long title, but anyways...
I've been looking at these examples, specifically on the parts on writing and reading the size of the message to the byte streams
http://doc.trolltech.com/4.4/network-fortuneclient-client-cpp.html
http://doc.trolltech.com/4.4/network-fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Safely kill a process from .bat file I have a VB6 application that needs to update it's self. For this purpose, the PM has recommended using a batch file that is to be launched from the application. The batch file should kill the process, download the new version from a local server, overwrite the old files and laun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the maximum length of a textbox in SSRS I need to know the maximum length of a textbox in ssrs. How much data can it accomodate?
A: The max length is 32k.
A: The Maximum Length of the textbox in SSRS 2012 is 4680 Characters.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/203949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Databinding work with Structured Software I've been doing some Web-Projects lately that rely on heavy Data-Binding and have been quite happy with the results. Databinding Webforms works mostly the way I need it and I spared myself tons of code.
One thing that still feels weird is that I have application log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I hide extra component span tags in Tapestry? If I use a span tag to render a component like <span jwcid="@If" .../>, my HTML ends up with a bunch of useless span tags. Most of the time, that's ok, but in some cases, it's interfering with my CSS or making the page invalid. Is there a way to tell Tapestry to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I get from an instance of a class to a Class object in ActionScript 3? How do you get an instance of the actionscript class Class from an instance of that class?
In Python, this would be x.__class__; in Java, x.getClass();.
I'm aware that certain terrible hacks exist to do this, but I'm looking for a built-in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Opinions wanted: is it better to connect, or disconnect, the entities in the domain model? I'm starting a new project; I wish to follow a DDD approach. We have talked to the business and achieved some insight into the domain in some detail (internet TV).
The team is five strong and distributed. We have adopted the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I remove repeated elements from ArrayList? I have an ArrayList<String>, and I want to remove repeated strings from it. How can I do this?
A: Suppose we have a list of String like:
List<String> strList = new ArrayList<>(5);
// insert up to five items to list.
Then we can remove duplicate elements in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "565"
} |
Q: How to manage a simple PHP session using C++ cURL (libcurl) I'm writing a C++ client which is using libcurl for communicating with a PHP script.
The communication should be session based, and thus the first task is to login and make the PHP script set up a session.
I'm not used to working with sessions either from C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/203990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strange MySQL syntax error I get this error:-
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1
whenever I tried something like this:-
mysql> source /home/user1/sql/ddl.sql
mysql> source /home/user1/sql/insert.sql
mysq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: barcode image to Code39 conversion in C#? I have barcode images in jpg format and want to extract barcode # from those. Please help!
A: we've developed a c# component that reads values from barcodes of all dimension, rotation, quality etc. it's not yet release but we will release detailed information about it at ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: getting the last modified date of a html file how can i figure out the last modified date of a html file im importing into my web app?
The html file is on another server and different users can make updates, when i retrieve the page i want to be able see when it was last updated so i can label the updated date on my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I execute a program from Python? os.system fails due to spaces in path I have a Python script that needs to execute an external program, but for some reason fails.
If I have the following script:
import os;
os.system("C:\\Temp\\a b c\\Notepad.exe");
raw_input();
Then it fails with the following error:
'C:\T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "302"
} |
Q: Database design for database-agnostic applications What do I have to consider in database design for a new application which should be able to support the most common relational database systems (SQL Server, MySQL, Oracle, PostgreSQL ...)?
Is it even worth the effort? What are the pitfalls?
A: If I were you, I'd th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Complex data types in WCF? I've run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, 'connection forcibly closed by host'.
Is there any way to make this work? I currently have a structure resembling this:
pseudo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: TcpClient field of abstract base class constantly being disposed I have an abstract base class with a TcpClient field:
public abstract class ControllerBase
{
internal protected TcpClient tcpClient;
It has a method to setup a connection:
private void setupConnection(IPAddress EthernetAddress, ushort TcpPort)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What should I call a REBOL function that does list comprehensions? REBOL has no built-in way to perform list comprehensions. However, REBOL has a powerful facility (known as parse) that can be used to create domain-specific languages (DSLs). I've used parse to create such a mini-DSL for list comprehensions. In order... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Url as parameter gets intercepted In my asp.net mvc app I want to check if a certain url returns a valid response.
Therefor I send the url to a method that tests the HttpWebRequest.GetResponse()
On my dev server (vs2008) it works just fine.
When deployed on production server however, it returns a Bad Request.
The me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my debugger so slow? Since some time, my Delphi debugger became much slower than I was used to before.
I noticed this in both Delphi 2007 and 2009, so it seems it's something outside of Delphi itself...
What causes this behaviour, and how can I prevent this?
A: For non-dutch speakers
http://support.microsoft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: MSSQL2000: get list of role members I know a role name and want to find all users in this role.
How do I acheive this in SQL Server 2000 (in the SQL script, not in Management Studio or other tool)?
A: You can use the following stored procedures:
For fixed server roles, the stored procedure is sp_helpsrvrolemember:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Alert Popups from service in Python I have been using win32api.MessageBox to do alerts, and this works for apps running from the interactive prompt and normally executed code, however when I built a Python service when a MessageBox is triggered I can hear the 'beep' but the box does not display. Is it possible to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Someone can look at the syntax of my rakefile? I'm trying to write an import rakefile for Redmine. It uses ruby on rails. I'm not a rails developer but we do like using redmine for project and issues management.
require 'rubygmes'
require 'fastercsv'
# csv issues import for redmine
# Will convert a csv into a issue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Many people don't know how to multi-select items in a HTML control, so...? I know many people who use computers every day, who do not know how to select multiple items in a HTML select box/list. I don't want to use this control in my pages any more:
Please pick 3 options:
<select name="categories" size="10" multipl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Application Architecture - How would you design this process I have an application that is made up of the following:
A central database containing 100k+ records
A number of "client" databases each containing around 10-20k records
The client databases contain details of contacts that each have a unique ID (contactID)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When loading a page containing flash or javascript, I get a security error message
"To help protect your security,
Explorer has restricted this webpage
from running scripts or ActiveX
controls that could access your
computer"
Whenever I add Flash movies or javascript code this message will show. It also sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Table with several TBODY tags in ASP.NET I would like to create (in code) tree of controls that would render as a table with several TBODY tags, i.e.:
<TBODY>
<TR>
<TD></TD>
</TR>
<TR>
<TD></TD>
</TR>
</TBODY>
I tried both Table and HtmlTable controls but had no success. Any clues... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 64-bit JVM on Server, 32-bit JVM on Client, combination possible? I'm having a JBoss EJB3 Application and a Swing client, running in 32-bit Java 6 VM's. We now have to change the Server JVM to 64 bit. May this combination of JVM's cause any trouble (do I need to use 64-bit JVM on the client, too)?
Greetings,
buzzte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Make: $(wildcard) holding a directory open So there seems to be this problem with GNU Make's $(wildcard) function keeping a directory open on Windows. See (unasnwered) post "make is holding a directory open". Google does not provide much information on the topic.
In short: the Makefile uses the $(wildcard) function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Showing newly added table row using .show("slow") I am cloning a hidden table row then populating it and after validation I want to show the row using a jquery effect ... say .show("slow")
var baseRow = $("#tasks tr#baseTaskLine");
var newRow = baseRow.clone();
var lastRow = $("#tasks tr[id^='TaskLine_']" + dayClass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Implementing a KVO/Bindings-Compliant Bridge-Pattern in Cocoa I'm trying to implement a simple object bridge in cocoa where the bridge object acts as a kvo/bindings-compliant drop in for some arbitrary other NSObject instance.
Here is my problem (more details in the code below):
A bridge object acts as a drop in for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Problem checking out (from VSS) and building maven project in Hudson I am new to Hudson, perhaps someone knows the solution:
I am trying to checkout the parent pom from the VSS in Hudson (vss plugin installed) and now I get class cast exception:
FATAL: hudson.maven.MavenModuleSetBuild cannot be cast to hudson.model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is Spring.Net making my life easier? "Spring.NET is an open source application framework that makes building enterprise .NET applications easier."
Springframework
They say that Spring makes .Net development easier. Then I see the manual which is long as anything.
Chapter 5. The IoC container
And then I see some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Moving items in Dual Listboxes How can I move items from one list box control to another listbox control using JavaScript in ASP.NET?
A: This code assumes that you have an anchor or that will trigger to movement when it is clicked:
document.getElementById('moveTrigger').onclick = function() {
var listTwo = doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Accessing a remote file with a SharePoint Web Part I recently built a program that parses a remote file from \some_server\c$\directory\file.xls and it works fine on my local machine as just a normal aspx page.
Then I put the program into web part
form on my VM SharePoint server and I
get this error: Access to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get the C# Query component to recognise columns returned data from a temporary table in a sql stored procedure I've created a stored procedure similar to the one below (I'm using this cut down version to try and figure our the problem).
CREATE PROCEDURE bsp_testStoredProc
AS
BEGIN
CREATE TABLE #tmpFiles ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why can't Indy 10 initialize? I have a problem with a Delphi 2009 project : It can't initialize Indy 10 !
This code worked fine before in Delphi 2007 (although we might have been using an older revision of Indy, but I suspect that has not much to do with it);
The initial call to IdWinsock2.InitializeWinSock(), raise... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get folder sharing on Windows Mobile emulator to work I am developing an application using Windows Mobile 5.0, under embedded VC++ 4.0, and using the emulator for debugging. I need to copy some files onto the emulator and planned on using the option to map a directory to the emulator storage card. Problem i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Create a TCP socket connect using C to a predefined port I have a very simple question. I want to test whether a particular port is currently under use or not. For this, I want to bind a TCP socket to the port, if the connection is refused means the port is in use and if not that mean the port is free.
Can so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to update a text or ntext field in SQL Server 2000 So I need to update a text field. Neither the UPDATE statement or the WRITETEXT statement work when used below
CREATE TABLE MyTable (IDField int, MyField text)
INSERT INTO MyTable (IDField) SELECT 1
DECLARE @Data1 varchar(8000), @Data2 varchar(8000), @ptrval b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to turn off certificate revocation for a WCF service's client? How can I turn off certificate revocation for a WCF service's client?
The client proxy was generated by wsdl.exe and inherits SoapHttpClientProtocol.
A: I think you're looking for ServicePointManager.ServerCertificateValidationCallback:
http://msdn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Don't understand how Axis works if I haven't installed it? Forgive my ignorance - still learning here.
I am using Eclipse Ganymede (Java 1.5) and have been experimenting with web services - I have mangaged to get a simple web service up and running and the nice wizard you get in Eclipse generates all the necessary b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: First-chance exception at in : 0x000006BA: The RPC server is unavailable What does it mean:
"First-chance exception at in : 0x000006BA: The RPC server is unavailable"
?
this debug message appears in Debug output of visual studio debugger when I using socket connection, but I don't know what operation initiates thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need to bring application to foreground on Windows I've got two applications I'm developing using Qt on windows. I want the user to be able to press a button in one application which makes the other application come to the foreground. (The programs communicate using QLocalSocket and named pipes.)
Currently I'm using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to 'smooth' data and calculate line gradient? I'm reading data from a device which measures distance. My sample rate is high so that I can measure large changes in distance (i.e. velocity) but this means that, when the velocity is low, the device delivers a number of measurements which are identical (due to the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Java NIO select() returns without selected keys - why? In writing some test code I have found that Selector.select() can return without Selector.selectedKeys() containing any keys to process. This is happening in a tight loop when I register an accept()ed channel with
SelectionKey.OP_READ | SelectionKey.OP_CONNECT
a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Large JSP response is truncated :( I have a JSP accessed through JBoss. It renders a list (a search result).
If the response gets big, approximately larger than 200k the response is truncated. I can see how the page just ends in the middle of a tag in Firefox. IE totally freaks out an so does Fiddler.
Responses smal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How does the 'ls' command work in Linux/Unix? I would like to know exactly how the "Is" command works in Linux and Unix.
As far as I know, ls forks & exec to the Linux/Unix shell and then gets the output (of the current file tree. eg./home/ankit/). I need a more detailed explanation, as I am not sure about what hap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Automatically delete the parent object row when all the children are gone In PostgreSQL 8.3 database I have "bookings" table referencing "booking_transactions" table by ID. So that each booking belongs to a single transaction. It's possible to delete bookings from the database.
How can I make sure that a "booking_tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect malformed UTF characters I want to detect and replace malformed UTF-8 characters with blank space using a Perl script while loading the data using SQL*Loader. How can I do this?
A: Consider Python. It allows to extend codecs with user-defined error handlers, so you can replace undecodable bytes with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Can an MS SQL 2005 backup be restored onto an instance of MS SQL 2008? Is it possible to restore a backup of a SQL Server 2005 database onto an instance of SQL Server 2008?
I need to rebuild a server as it's getting rather crufty, so I plan to take this opportunity to upgrade to SQL 2008 and wondered if I'll be able... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Why do I get 401 errors connecting to the Dynamics CRM Metadata service? I am connecting to CRM with the intention of retrieving a list of picklist values. On my development machine I am working under my own login name and all works fine. On the test server, the code executes under the NETWORK SERVICE account. When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to read/write Chinese/Japanese characters from/to INI files? Using WritePrivateProfileString and GetPrivateProfileString results in ??? instead of the real characters.
A: GetPrivateProfileString() and WritePrivateProfileString() will work with Unicode, sort of.
If the ini file is UTF-16LE encoded, i.e. it has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does boolean consume more memory than char? Why does a Boolean consume 4 bytes and a char 2 bytes in the .NET framework? A Boolean should take up 1bit or at least be smaller than a char.
A: That's because in a 32-bit environment, the CPU can handle 32-bit values quicker than 8-bit or 16-bit values, so this is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: From classic ASP to .net c# or vb? I'm a hobbyist programmer with couple of database driven mobile web sites and I finally have decided to switch from classic asp to .net. But after couple of days reading I couldn’t decide which way I should go. Shall I learn c# or continue to vb in .net?
A: C# because if you know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why does Eclipse CDT ignore breakpoints? My problem is that I set some breakpoints in my code and some of them aren't working. In some places it complains about "Unresolved Breakpoint".
Does anyone have any clue why this is happening? I am using gdb, by the way.
EDIT: Yes, of course is compiled with debug informati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: A working Drag&Drop enabled ListView implementation for WPF? Been trying to find a working implementation of a WPF listview (or listbox) where
you can order items by dragging them up or down.
I have found a few, but none really works,
for example this one
http://www.codeproject.com/KB/WPF/ListViewDragDropManager.asp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does anyone know where I can find a memory editing user control for .net? I am developing a small application which lists the contents from files of a given format. The file format acts as a template for describing binary data (think binary xml). This allows the clients that produces these files to store data in any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use templates inside a T4 ClassBlock method? I'm starting to investigate T4 for Code Generation.
I get that you have a basic template in which you can embed little chunks of c#/vb which can perform clever stuff...
<#@ template language="VB" debug="True" hostspecific="True" #>
<#@ output extension=".vb" debu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.net server control same event handling order on server-side/client-side I have an asp.net server control (with the asp: in its definition). The button has been set to do post back.
On the server side, I have the on click event handler
e.g btnSave_click()
On the client side, I have a javascript function to be inv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checking for member existence in Python I regularly want to check if an object has a member or not. An example is the creation of a singleton in a function. For that purpose, you can use hasattr like this:
class Foo(object):
@classmethod
def singleton(self):
if not hasattr(self, 'instance'):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Spreadsheet-like control for a web application? A client of mine is looking to convert a critical 'application' based on multiple (very complex) spreadsheets into a web app. As part of this they'd like some of the web pages they use to enter/model data to resemble a spreadsheet as much as possible.
I'd be intereste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why shouldn't I use UNIVERSAL::isa? According to this
http://perldoc.perl.org/UNIVERSAL.html
I shouldn't use UNIVERSAL::isa() and should instead use $obj->isa() or CLASS->isa().
This means that to find out if something is a reference in the first place and then is reference to this class I have to do
eval { $poss->i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Initialising a struct variable to Nullable Is there a way to declare a variable as Nullable in c#?
struct MyStruct {
int _yer, _ner;
public MyStruct() {
_yer = Nullable<int>; //This does not work.
_ner = 0;
}
}
A: _yer must be declare as int? or Nullable<int>.
int? _yer;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to manipulate DLGTEMPLATE programmatically? What?
I have a DLGTEMPLATE loaded from a resource DLL, how can I change the strings assigned to the controls at runtime programmatically?
I want to be able to do this before the dialog is created, such that I can tell that the strings on display came from the resource ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does running a script from SQLPlus not require a password? I noticed its possible to run SQL scripts with Oracle's SQLPlus by providing only a username and no password. Isn't this like a horrible breach of any form of security for Oracle?
Or am I missing something?
A: Most likely, your oracle server has OS Auth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .net reflection and the "params" keyword In .net, is there a way using reflection to determine if a parameter on a method is marked with the "params" keyword?
A: Check to see if ParamArrayAttribute has been applied to the ParameterInfo object:
//use string.Format(str, args) as a test
var method = typeof(string).Get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the best open source SNMP monitoring tool? I am currently working on software that must emit SNMP traps for SNMP versions 1 & 2 and possibly v3 in the future. I have downloaded several and found them to be either too complex or too simplistic. All I want is to view traps and analyze the data structures withi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to setup a linux C++ project in Eclipse? I have an existing C++ project on a linux environment, and would like to import it into the Eclipse IDE.
Not sure if I should start a new Eclipse C++ project, or if there was some way to import the source files?
A: You can create a new Eclipse C++ project "in-place", i.e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best practice to realize a long-term history-mode for a O/RM system(Hibernate)? I have mapped several java classes like Customer, Assessment, Rating, ... to a database with Hibernate.
Now i am thinking about a history-mode for all changes to the persistent data. The application is a web application. In case of dele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the term for design ala "object.method1().method2().method3()"? What's the term for this design?
object.method1().method2().method3()
..when all methods return *this?
I found the term for this a while ago, but lost it meanwhile.
I have no clue how to search for this on google :)
Also if anyone can think of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to import a 3D model into Android? Is it possible to create a simple 3D model (for example in 3DS MAX) and then import it to Android?
A: It should be possible. You can have the file as a data file with your program (and as such it will be pushed onto the emulator and packaged for installation onto an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: Seeking clarifications about structuring code to reduce cyclomatic complexity Recently our company has started measuring the cyclomatic complexity (CC) of the functions in our code on a weekly basis, and reporting which functions have improved or worsened. So we have started paying a lot more attention to the CC of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: InstallShield: Darwin descriptors My InstallShield installer doesn't appear to register several of its COM DLLs correctly, even though I have refreshed the COM information for them in the installer. If I manually run regsvr32 after installation, everything is fine.
I notice that after installation, I have InprocSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The best way of storing an image/sound inside a class? I'm developing a kind of an exchange format between instances of an application so that user could save information to file and restore it later. The whole 'exchange format' is a single class that gets serialized and written to disk.
How would you suggest to sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Returning Objects in C++ When returning objects from a class, when is the right time to release the memory?
Example,
class AnimalLister
{
public:
Animal* getNewAnimal()
{
Animal* animal1 = new Animal();
return animal1;
}
}
If i create an instance of Animal Lister and get Animal reference from it, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Is it possible to unimplement an interface in derived class in Java? Let's have the following class hierarchy:
public class ParentClass implements SomeInterface {
}
public class ChildClass extends ParentClass {
}
Then let's have these two instances:
ParentClass parent;
ChildClass child;
Then we have the following... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I delete messages from MSMQ using the Computer Management tools in Windows XP Computer Management -> Services and Applications -> Message Queues
How to delete a message from a specific queue?
It seems to me there was some way but I cannot find it right now.
A: In Windows 10 you can empty a queue in Computer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Exception when starting EPiServer website We're developing an EPiServer-based website and trying to deploy our latest build onto a WinXP IIS6 box.
When browsing to site, we're getting the following stack trace
[ClassFactoryException: ClassFactory not initialized]
EPiServer.BaseLibrary.ClassFactory.get_Instance() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting value of an item in a DataRow does not work I am trying to convert all DateTime values in a DataTable to strings. Here is the method I use:
private static void ConvertDateTimesToStrings(DataTable dataTable)
{
if (dataTable == null)
{
return;
}
for (int rowIndex = 0; rowIndex < dataTa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/204406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |