text stringlengths 8 267k | meta dict |
|---|---|
Q: Design Pattern for implementing plugins in your application? What is the standard way for allowing and implementing a plugin system for your application?
In my last application I made a simple interface for all plugins that they must implement. I then load all assemblies in the apps directory and toss out any that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I get the list of open file handles by process in C#? How do I get the list of open file handles by process id in C#?
I'm interested in digging down and getting the file names as well.
Looking for the programmatic equivalent of what process explorer does.
Most likely this will require interop.
Considering... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Creating an instance from a class name I'm trying to create an instance of a class at run time. The classes I'm trying to create all inherit from a base class, ConfigMgrObj, and are named ConfigMgr_xxxxxx e.g. ConfigMgr_Collection. They all take a special object that I'm calling oController and a string as arguments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Skipping the 'CompressResources' build step for Xcode iPhone apps Is it possible to set an iPhone Xcode project to skip the 'CompressResources' build step?
Specifically, I want to skip the stage where it runs pngcrush on all of my .png files, many of which don't survive the experience in a form which my app can read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the most efficient way to get the first item from an associative array in JavaScript? I need to get just the first item (actually, just the first key) off a rather large associative array in JavaScript. Here's how I'm doing it currently (using jQuery):
getKey = function (data) {
var firstKey;
$.each(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: For what type of project is Entity Framework currently suited? I was listening to a podcast recently that was discussing at length the short comings of Entity Framework (EF).
But, their opinions may need to be taken with a grain of salt (by me), as from what I could gather:
*
*These were folks that were ORM exper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to run an outside executable after a solution is built in Visual Studio 2008? I'm not talking about a post build event for a project. Rather, I want to run an executable automatically after the entire solution is built. Is there a way to do a post build event for the solution?
A: not directly.
you ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to implement a single instance Java application? Sometime I see many application such as msn, windows media player etc that are single instance applications (when user executes while application is running a new application instance will not created).
In C#, I use Mutex class for this but I don't know how to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: Interview Questions on Socket Programming and Multi-Threading Please anybody can tell me the questions, that can be asked in an interview for below topics
*
*Socket Programming
*Multi-Threading
An advance thanks goes to everybody who provide their time
A: A couple of example questions:
*
*Asynchronous I/O,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Process and Thread What is the data that Process and Thread will not share ?
An advance thanks goes to everybody who provide their time
A: Separate processes do not share any data with each other.
Threads can share any heap-allocated or static data if they are running within the same process.
A: It depends on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's a good C memory allocator for embedded systems? I have an single threaded, embedded application that allocates and deallocates lots and lots of small blocks (32-64b). The perfect scenario for a cache based allocator. And although I could TRY to write one it'll likely be a waste of time, and not as well tested... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Identity and primary key c# + sql server: I have to import a few tables from Access into sql server. The new sql server tables are already defined and created. The Access tables have primary key - foreign key relationships that have to be maintained. I would like to have the new sql tables use identity values for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to find out the installed version of the iPhone SDK? What is the easiest way of finding out what version of the iPhone SDK is installed on my OS X?
When you log into the Apple's iPhone Developer Center, you can see the build number of the current available version of the SDK, but you have to reme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use a function-based index on a column that contains NULLs in Oracle 10+? Lets just say you have a table in Oracle:
CREATE TABLE person (
id NUMBER PRIMARY KEY,
given_names VARCHAR2(50),
surname VARCHAR2(50)
);
with these function-based indices:
CREATE INDEX idx_person_upper_given_names ON person (UPPE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you store themes in the database? I know how to load themes dynamically when they are stored locally. Is it possible to store theses themes in the database yet still apply them programmatically as described in referenced MSDN article?
Also - If you do store them in the filesystem, is it possible to change the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The encoding 'UTF-8' is not supported by the Java runtime Whenever I start our Apache Felix (OSGi) based application under SUN Java ( build 1.6.0_10-rc2-b32 and other 1.6.x builds) I see the following message output on the console (usually under Ubuntu 8.4):
Warning: The encoding 'UTF-8' is not supported by the Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Sun Java System Portal Server How can we make a web-src for Access Manager customizations and a par-src for portal server customizations?Are there concrete steps to do this?
Thanks & Regards,
Vivek
A: This seems to be described in the sun docs here or sun docs
| {
"language": "en",
"url": "https://stackoverflow.com/questions/177244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asp.Net MVC: Is there support for controller level filter attributes? I have a filter attribute that I'd like to be applied to every action on my controller. Is there a built in mechanism to support this? Right now, I'm manually adding the filter to each action, but that's error prone and tedious. If there isn't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I identify an Axapta class Name from the class ID? Please can someone help me make sense of the Batch madness?
I'm trying to debug an Axapta 3.0 implementation that has about 50 Batch Jobs. Most of the batched classes do not implement the description() method, so when you look at the Batch List form (Basic>>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why are Array.Sort() and Array.IndexOf() methods static? Always was interested why are Array.Sort() and Array.IndexOf() methods made static and similar ArrayList.Sort() and ArrayList.IndexOf() are designed as member methods. Thank you for any ideas.
A: In my view Array class is basically a class representation of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Any viewstate implementation for JSP-Servlet app? Do you know any implementation / technique which would provide similar behavior as Viewstate provides in ASP.NET. (Serializing the data into hidden field within the HTML form).
I am using only JSP, Servlet, and Spring MVC.
A: I think the Stripes framework provides t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Roulette Selection in Genetic Algorithms Can anyone provide some pseudo code for a roulette selection function? How would I implement this:
I don't really understand how to read this math notation. I never took any probability or statistics.
A: Here is some code in C :
// Find the sum of fitnesses. The function fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: grid controls for ASP.NET MVC? If you are using ASP.NET MVC how are you doing grid display?
Rolled your own?
Got a library from somewhere?
These are some of the known grid display solutions I have found for ASP.NET MVC
*
*ASP.NET MVC Flexgrid - Has nice column layout method
*Code based ASP.NET MVC GridView - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "279"
} |
Q: load XML file to QTP May I request you to help me in clarifying a query..
I am getting an error message "80004005- file could not be opened"
The scenario is I am trying to load an XML file created using VB script at run time. ie the creation of the XML and loading it in to QTP are handled in the same script one afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a list of all child nodes in a TreeView in .NET I have a TreeView control in my WinForms .NET application that has multiple levels of childnodes that have childnodes with more childnodes, with no defined depth. When a user selects any parent node (not necessarily at the root level), how can I get a list o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: SQL Absolute value across columns I have a table that looks something like this:
word big expensive smart fast
dog 9 -10 -20 4
professor 2 4 40 -7
ferrari 7 50 0 48
alaska 10 0 1 0
gnat -3 0 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Alert boxes in Python? Is it possible to produce an alert similar to JavaScript's alert("message") in python, with an application running as a daemon.
This will be run in Windows, Most likely XP but 2000 and Vista are also very real possibilities.
Update:
This is intended to run in the background and alert the user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to read the last row with SQL Server What is the most efficient way to read the last row with SQL Server?
The table is indexed on a unique key -- the "bottom" key values represent the last row.
A: I think below query will work for SQL Server with maximum performance without any sortable column
SELECT * FROM tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "105"
} |
Q: What are some of the major shifts in thinking required to become a good Rich Internet Application (RIA) developer? I've been experimenting with Adobe Flex recently. Being a long-time server-side web app developer, I'm faced with difficulties that I last experienced when I dabbled in Java Swing development a long tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to show SQL server 2000 server roles through an SQL query what sql query will i need to show the activated server roles in a specific user?
A: EXEC sp_helpuser 'username' should do.
A: THIS SHOULD DO IT:
select 'ServerRole' = spv.name, 'MemberName' = lgn.name, 'MemberSID' = lgn.sid
from master.dbo.spt_values s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What do you do about references when unloading a project in Visual Studio? When you unload a project in Visual Studio, any referencing projects get warning triangles on their reference to the unloaded project. I've written myself a macro to do clever stuff (detect add/remove of project and transform any references f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Map-Navigation Project, How is road data generally stored/represented? Navigation systems like the Garmin and TomTom have always fascinated me. I've wanted to implement small map/navigation applications to try out various pathing algorithms and expand on my knowledge of them.
This is a two part question:
1.) How is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: .NET - Find all references of property assignment I am using VB.NET. In Visual Studio, if I right-click a property name and click "Find All References", it searches for all instances of the property being used.
However, a property is always used either for assignment (Set method) or retrieval (Get method). Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Size of varchar columns In sql server does it make a difference if I define a varchar column to be of length 32 or 128?
A: There should be no noticeable difference as the backend will only store the amount of data you insert into that column. It's not padded out to the full size of the field like it is with a char ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Hash of a string to be of specific length Is there a way to generate a hash of a string so that the hash itself would be of specific length? I've got a function that generates 41-byte hashes (SHA-1), but I need it to be 33-bytes max (because of certain hardware limitations). If I truncate the 41-byte hash to 33, I'd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I sort a generic list? I have a generic list...
public List<ApprovalEventDto> ApprovalEvents
The ApprovalEventDto has
public class ApprovalEventDto
{
public string Event { get; set; }
public DateTime EventDate { get; set; }
}
How do I sort the list by the event date?
A: using System.Linq;
void L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C++ library for rotating a point over a given axis? Does anyone know of a graphing library for simple transformation of a point from one coordinate system to another coordinate system which is rotated by a angle and some point transformation and just for 2d?
And any graphing tool for plotting and verifying the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing socket connection in Python This question will expand on: Best way to open a socket in Python
When opening a socket how can I test to see if it has been established, and that it did not timeout, or generally fail.
Edit:
I tried this:
try:
s.connect((address, '80'))
except:
alert('failed' + address, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: What is the correct way to initialize a very large struct? In our code we used to have something like this:
*(controller->bigstruct) = ( struct bigstruct ){ 0 };
This used to work great, and then we upgraded versions of GCC and suddenly started seeing stack overflows. Looking at the assembly, the old GCC code (2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Why recordsets initially were forward only I have seen recent updates in term of record sets being updated so that we can scroll back and forth through the data it points to.
Why they were initially designed for a forward only traversal. Is there any impact using the new version?
A: "new version" is about 5 years o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get my WAN IP address How can i go about programaticaly getting the IP address of my network as seen from the Internet? Its obviously a property that my router has access to when it connects to the ISP. Is there any way to get this info from a router using a standard protocol. My only other option is to either find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: NHibernate mapping to another object NOT on the ID Ok, NHibernate question here. I have two objects that I would like to map to each other. I have the "Vendor" and the "Township" ... now the two should be linked by zip code, NOT ID. I have done this many times btw objects using id's but never something like this.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does 'const static' mean in C and C++? const static int foo = 42;
I saw this in some code here on StackOverflow and I couldn't figure out what it does. Then I saw some confused answers on other forums. My best guess is that it's used in C to hide the constant foo from other modules. Is this correct? If so, why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "146"
} |
Q: Remove manifest permissions in Vista I have been developing a C# windows form application in XP. It all works just fine. But in Vista it was not able to write the log or scoreboard file to the hard drive. I found out that I needed a manifest file to allow the popup to ask it to be run as admin.
This all worked we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Physical path of usercontrol (asp.net) I have a problem regarding getting the path of a user control. The scenario is as follows:
In a aspx i have multiple user controls. In one of those user conrtols i need to loop through the other user controls and get the physical path of them. Is there any easy way to do this?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Design pattern for converting one type of tree structure to another? I have a sort of tree structure that represent a hierarchy of layers in a map, divided by types of layers and categories. Each node can be a different class for different types of layers (but all nodes implement a common interface).
I need to conve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to apply the MVC pattern to GUI development I am primary a web developer but I do have a very good understanding of C++ and C#. However, recently I have writing a GUI application and I have started to get lost in how to handle the relationship between my controller and view logic. In PHP it was very easy - and I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Qt and no moc_*.cpp file I'm developing a simple Qt 4 app and making my own dialog. I subclassed QDialog, inserted the Q_OBJECT macro in the class declaration block, and... I get
[Linker error] undefined reference to `vtable for MyDialog' and there is no
moc_MyDialog.cpp generated by the moc compiler.
I am usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Embeddable distributed version control system in Java? Is there a distributed version control system (like git or Mercurial) that can be used as an embedded library in Java applications (to implement versioned and synchronizable storage for application data), ideally written in pure Java and under a permissive licen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Which is the best RCP platform I am building a desktop application. Our analysis says it would be better built with a RCP. Should I use the eclipse or netbeans platform to build my application . Some of the factors to consider are
*
*Performance
*Look and Feel
*Popularity among target users (developers/testers)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Prevent site data from being crawled and ripped I'm looking into building a content site with possibly thousands of different entries, accessible by index and by search.
What are the measures I can take to prevent malicious crawlers from ripping off all the data from my site? I'm less worried about SEO, although I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: GridViewColumn content and VerticalAlignment i want to display some information in a listview using the GridView.
i have several GridViewColumns and everything works fine.
However, want the GridViewColumns content to have a VerticalAlignment (Top in this case)
but the gridvewcolumn intself doesnt offer a VerticalCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Keeping filters in Django Admin What I would like to achive is:
*
*I go to admin site, apply some filters to the list of objects
*I click and object edit, edit, edit, hit 'Save'
*Site takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied.
Is there an ea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Refer to a Javascript File in Jquery I have a simple HTML. I am using the JQuery for AJAX purpose. Now, I want to put my javascript function in a separate javascript file. What is the syntax for this? For example, currently my script section in the HTML is something like this:
<script>
<script type="text/javascript... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why do I see a double variable initialized to some value like 21.4 as 21.399999618530273? double r = 11.631;
double theta = 21.4;
In the debugger, these are shown as 11.631000000000000 and 21.399999618530273.
How can I avoid this?
A: This is partly platform-specific - and we don't know what platform you're using.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: RMI or Web Services sample application Does anyone know of a sample distributed application (.NET or J2EE) using RMI or Web Services?
A: As often, Sun has an excellent tutorial on RMI:
http://java.sun.com/docs/books/tutorial/rmi/index.html
A: A RMI example: link
A Web Service example: link
Hope it helps
A: Here'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Good XMPP Java Libraries for server side? I was hoping to implement a simple XMPP server in Java.
What I need is a library which can parse and understand xmpp requests from a client. I have looked at Smack (mentioned below) and JSO. Smack appears to be client only so while it might help parsing packets it doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How to determine optimal thread stack size? Actually, two sizes: initially committed and total reserved.
Do you use static or dynamic analysis? Which tools? Which techniques?
A: One technique is to paint your stack in main or the threads main with a known value and then on cleanup do a sweep from the stack limit un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Server 2005 - Rowsize effect on query performance? Im trying to squeeze some extra performance from searching through a table with many rows.
My current reasoning is that if I can throw away some of the seldom used member from the searched table thereby reducing rowsize the amount of pagesplits and hence IO shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the alternatives to using Expand in a LINQ to ADO.net Data Service Query? I am wondering if there are any alternatives to using the Expand key word when performing an LINQ to ADO.net Data Services query. The expand method does get me the data I am interested in, but it requires me to know all of the sub-ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Where should I begin with HDLs? I am a self-taught embedded developer. I mostly use AVRs programmed in C and ASM, but I have dabbled with other systems. I am looking to move onto more complex devices like CPLDs and FPGAs, but I have no idea where to start. So my one and a half questions are:
*
*Do you prefer VHDL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: A way to prevent a mobile browser from downloading and displaying images Is there a simple way to prevent browser from downloading and displaying images, best would be via some magic style tag or javasctipe.
The thing is, I'd like to tweak the company's website a bit to be more usable via mobile devices. The company... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any chances to imitate times() Ruby method in C#? Every time I need to do something N times inside an algorithm using C# I write this code
for (int i = 0; i < N; i++)
{
...
}
Studying Ruby I have learned about method times() which can be used with the same semantics like this
N.times do
...
end
Code fragme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How do I estimate SQL Server index sizes While estimating straight row and table sizes are fairly simple math, we find it challenging to guess just how much space each index will occupy (for a given table size). What areas can we learn to calculate a better estimate and growth rate for indexes?
A: An index leaf has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you uninstall Visual Studio 2008 SP1 w/ .Net 3.5 SP1? What's the best way to uninstall SP1 and return to plain .Net 3.5 with Visual Studio 2008? It broke a few of my programs :(
A: It should be visible in Add/Remove programs if you check the "Show updates" box.
This link lists the series of updates that ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Algorithm to get a Regex Something like this is on my mind: I put one or a few strings in, and the algorithm shows me a matching regex.
Is there an "easy" way to do this, or does something like this already exist?
Edit 1: Yes, I'm trying to find a way to generate regex.
Edit 2: Regulazy is not what I am looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting rid of the evil delay caused by ShellExecute This is something that's been bothering me a while and there just has to be a solution to this. Every time I call ShellExecute to open an external file (be it a document, executable or a URL) this causes a very long lockup in my program before ShellExecute spawns ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SecurityException thrown when app starts from remote folder I have an app written in C# that lies on a network share. When I run it from a local drive, everything works fine. When I start it from the remote share, calls like
try
{
System.Reflection.Assembly.GetExecutingAssembly();
System.IO.Directory.GetCurr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does Eclipse code completion not work on some projects? I have Eclipse 3.3.2 with PDT doing PHP development.
All projects that I create, even SVN projects have code completion.
Now I just opened another SVN project and it has no code completion or PHP templates (CTRL-space does nothing in that project).
However,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How does one configure synergy to use multiple X11 screens (:0, :1, ...)? Configuring synergy for multiple computers, each with a single screen, is fairly easy. But it is not so obvious how to configure multiple X11 screens. For example, sys1, a minimac is on the right. sys1 is the server and has a single monitor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Running an exe from windows service that interacts the the user's desktop I've created a windows service in C# and Windows Server 2003. I would like my service to be able to run an exe file that is Windows forms application. When I start the service - it runs the other application but I cannot see it. When I open Ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should web applications use explicit SQL transactions? Consider a regular web application doing mostly form-based CRUD operations over SQL database. Should there be explicit transaction management in such web application? Or should it simply use autocommit mode? And if doing transactions, is "transaction per request... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Cross platform build environment As good developers we keep our code as standard compliant as possible to help in porting between platforms. But what tools are available that help us build the code in a uniform way across multiple platforms.
*nix family has make but Windows needs nmake.
I have read about SCons but n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Ruby networking problem on windows I am running windows XP with ruby 1.8.6 patchlevel 111. I am using HTTP to connect to a remote server and it has been running fine. All of a sudden it started to through the exception listed below (I did not change any code since the last time I ran it successfully). Does anybody... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to automate the creation of a inno setup package with ant? I am creating an Eclipse RCP application.
I am following Joel's advice in the following article "Daily Builds are your friend":
http://www.joelonsoftware.com/articles/fog0000000023.html
So, I've written a nice build script that creates an Ecli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ActiveRecord Association caching Date value in conditions clause My Account model has the following two associations:
has_many :expenses,
:order => 'expenses.dated_on DESC',
:dependent => :destroy
has_many :recent_expenses,
:class_name => 'Expense',
:conditions => "expe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Domain Specific Languages (DSL) and Domain Driven Design (DDD) What is the differences and similarities between Domain Specific Languages (DSL) and Domain Driven Design (DDD)?
A: Domain-Driven Design emphasizes the role of the problem domain as you create the fundamental vocabulary, concepts, and object model for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What are the code convention for parameters/return values (collections) I had a little discussion with a friend about the usage of collections in return/input values of a method. He told me that we have to use
- the most derived type for return values.
- the least derived type for input parameters.
So, it means that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Lock / Prevent edit of source files on Linux using C++ How can I programmatically lock/unlock, or otherwise prevent/enable editing, a source file on Linux using C++.
I want to be able to lock source file so that if I open it in an editor it will not allow me to save back to the same source file.
I am thinking of may... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Swapping the hand holding the mouse : do you have a better idea? Spending thousand of hours in front of my computer, ergonomics became quickly a main issue.
For the monitor or the keyboard, technical solutions exist. But for the mouse, I never get used to the trackball and putting a little pillow under my wrist made... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Html.TextBox conditional attribute with ASP.NET MVC Preview 5 I have a strongly-typed MVC View Control which is responsible for the UI where users can create and edit Client items. I'd like them to be able to define the ClientId on creation, but not edit, and this to be reflected in the UI.
To this end, I have the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Could you recommend an unstructured data indexing software? I am collecting logs from several custom made applications. Each application has it's own log format. What I'm looking for is a central tool which would allow me to search through all of my logs. This means the tool would have to be able to define a differe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using .NET's UserControl as an embedded control via COM I'm porting an existing .NET 3.5 application into a plug-in for Eclipse.
I want to have my custom UserControl, written in C#, embedded within Eclipse; I've exported it successfully as a COM Control, and it works well in Eclipse Europa.
In Ganymede, it seems the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert a number to a bytearray in bit endian order I am trying to uncompress some data created in VB6 using the zlib API.
I have read this is possible with the qUncompress function:
http://doc.trolltech.com/4.4/qbytearray.html#qUncompress
I have read the data in from QDataStream via readRawBytes into a char
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL server 2005 Connection Error: Cannot generate SSPI context Provide Used: Microsoft OLE DB Provider for SQL Server. Can anyone help me with this..
I was trying to connect with LLBLgen
A: This MSDN blog page has some useful on this...
http://blogs.msdn.com/sql_protocols/archive/2006/12/02/understanding-kerberos-a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cookie getMaxAge I can't retrieve cookie maxage it always returns -1
Creating cookie:
Cookie securityCookie = new Cookie("sec", "somevalue");
securityCookie.setMaxAge(EXPIRATION_TIME);
Retrieve cookie:
Cookie[] cookies = request.getCookies();
if (cookies != null) {
for(int i=0; i<cookies.length; i++) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you implement Localization in Windows Presentation Foundation (WPF)? Please share you experiences regarding how you localized your WPF applications to support multiple languages and any resources that helped you in it?
Thanks for your feedbacks.
A: For our WPF application, all of our strings are localized as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Case-insensitive search I'm trying to get a case-insensitive search with two strings in JavaScript working.
Normally it would be like this:
var string="Stackoverflow is the BEST";
var result= string.search(/best/i);
alert(result);
The /i flag would be for case-insensitive.
But I need to search for a second string; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "291"
} |
Q: How do I get user and group information in Perl on Windows? Perl has several built-in functions for accessing /etc/passwd on Unix systems (and elsewhere when supported) for user and group information. For instance,
my $name = getpwuid($uid);
will return the user name given the user ID, or undef if there is no such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: bad_alloc error when using std::string I'm currently working on a project that depends on me providing a path to a file (eg. C:\Path.pth). Now, I had everything working yesterday by calling my std::string with:
std::string path(`"C:\\Path.pth`");
But now it doesn't work. It throws a bad_alloc. Seems like the '\' ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reading the dynamically changed value of an HtmlInputHidden in ASP.NET I got a simple page with a HtmlInputHidden field. I use a javascript to update that value and when posting back the page i want to read the value of that HtmlInputHidden field.
The Value property of that HtmlInputHidden field is on postback the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Don't display HTML code and entities in dropdownlists When I add or é to a text value of a listitem, it display the code of the HTML entity instead of the result (a space or é).
I can add "physical" non-breaking spaces or special chars, but I would like to avoid that if possible. Sometimes the data sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating client SQL Server database structure from text file We have a "master database structure", and need a routine to keep the database structure on client sites up-to-date.
A number of suggestions have been given to a related question, but I am looking for a more specific solution, along these lines:
*
*I wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ to XML gets no data with schema set I am trying to get some XML data with LINQ, but running into a problem.
I am using a schema, which is set in the attribute xmlns ...
<CarsForSale xmlns="http://schemas.sharplogic.net/CarSales.xsd">
<CarForSale>
There are many CarForSale elements.
When the schema is set and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: 'CONTINUE' keyword in Oracle 10g PL/SQL I'm migrating a TSQL stored procedure to PL/SQL and have encountered a problem - the lack of a CONTINUE keyword in Oracle 10g.
I've read that Oracle 11g has this as a new feature, but upgrading is not an option unfortunately.
Is there any alternative to CONTINUE in 10g? I don'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Search ranking/relevance algorithms When developing a database of articles in a Knowledge Base (for example) - what are the best ways to sort and display the most relevant answers to a users' question?
Would you use additional data such as keyword weighting based on whether previous users found the article of help, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: A guide to moving from Visual Studio to Eclipse Is there guide out there that will help me, A .Net developer whose been using Visual studio for some time, get to grips with Eclipse?
Even just a quick guide to eclipse.
Has anyone else made the transition, and if so how did you cope. Any Tips?
A: Not sure if it will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Boolean 'NOT' in T-SQL not working on 'bit' datatype? Trying to perform a single boolean NOT operation, it appears that under MS SQL Server 2005, the following block does not work
DECLARE @MyBoolean bit;
SET @MyBoolean = 0;
SET @MyBoolean = NOT @MyBoolean;
SELECT @MyBoolean;
Instead, I am getting more successful wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Does a software architect have a role in agile, esp. Scrum? I'm reading the book "The Software Architect's Profession" by Marc and Laura Sewell (Amazon link) and it got me wondering whether a software architect is a part of the old non-agile BDUF approach.
Is there a place for software architects in an agile approac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How do I set the background color of a widget like combobox or double spin box? I am trying to set the background color for a double spin box, and I am not sure what function I should use.
I saw some function called SetBackgroundRole which accepts a Qt::ColorRole, but I am not sure how to use this one as well.
Kindl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/177778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.