text string | meta dict |
|---|---|
Q: Can I configure SMTP in IIS, so it relays to a remote SMTP server? I want to configure SMTP on my web server, so that any email sent through the SMTP server is relayed to a remote SMTP Server. The IIS SMTP server would have to use SMTP authentication, and use the host name, username and password (as if configuring a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it necessary to have a separate View for each controller action? Is there a mandatory relationship between a Controller Action and a View? I mean is it necessary to have a physical View (.aspx page) for each Action inside a Controller class?
A: There is no mandatory relationship between the Controller Action and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anyone got a copy of MSIINV.EXE? Does anyone have a copy of MSIINV.EXE (The MSI Inventory tool)? The site where it used to be available is down(http://www.huydao.net/). I'm trying to uninstall some components in order to force the Visual Studio Setup to reinstall them. I apologize as this is not strictly a programmi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: JAXB or StAX Message Limits I'm current developing a WebService in a Bea Websphere 6.1 environment with Axis 2 implementation, I'm trying to respect the current standards for Web Services (JAXB, JAXWS, StAX...).
How long can be an XML message on this platform?
I've searched around but I haven't found anything relat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a recursive query in MSSQL 2005? Let's say I have the following table:
CustomerID ParentID Name
========== ======== ====
1 null John
2 1 James
3 2 Jenna
4 3 Jennifer
5 3 Peter
6 5 Alice
7 5 St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Check/update a row of values based on a single column header I have database with many tables. In the first table, I have a field called status.
table 1
idno name status
111 hjghf yes
225 hjgjj no
345 hgj yes
Other tables could have same idno with different fields.
I want to check the status ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which is the best alternative for Java Serialization? I'm currently working on a project which needs to persist any kind of object (of which implementation we don't have any control) so these objects could be recovered afterwards.
We can't implement an ORM because we can't restrict the users of our library at devel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Convert html to pdf with linked documents inline I need to convert a bundle of static HTML documents into a single PDF file programmatically on the server side on a Java/J2EE platform using a batch process preferably. The pdf files would be distributed to site users for offline browsing of the web pages.
The major ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to compare Floats with delta? Is there in Ruby some functionality/syntax to compare two floats with delta? Something similar to assert_in_delta(expected_float, actual_float, delta) from test/unit but returning Boolean?
A: (expected_float - actual_float).abs <= delta
A: Depending on your application and what y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is it useful to test the return of "new" in C++? I usually never see test for new in C++ and I was wondering why.
Foo *f = new Foo;
// f is assumed as allocated, why usually, nobody test the return of new?
A: It all depends on your complier VC++ up to version 6 gives NULL if the new operator fails, on a non MFC app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Reordering a list of positional items I have a Request object which contains a list of Approvers. An approver has a name and an approval position.
*
*Mathew
*Mark
*Luke
*John
Ultimately, a request will move through this chain, starting at Mathew and ended at John.
I need to be able to re-order these allow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to embed Ruby in C++? What's the best way to embed Ruby as a scripting language in C++? Using ruby.h? SWIG? Something else? What I need is to expose some C++ objects to Ruby and have the Ruby interpreter evaluate scripts that access these objects. I don't care about extending Ruby or accessing it in C++.
I've fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Interesting Master's degree programs? I'm applying for a masters in fall of next year and was wondering if anyone had suggestions for interesting/challenging master's degrees in CS. I think that even though picking the right university is important, it is even more important to pick a master's degree where you'll fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: InternetExplorer automation object + PerformanceCounter = not working? I'm currently trying to build a simple component which should monitor, if the user opens a window with a specific URL (IE only).
So I wrote this component and everything works fine, so I integrated it with the application, where it was needed.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error message in AVR studio4 I have recently purchased an AVR USB programmer from robokits.co.in, was trying to program atmeg8 using AVR studio4 and I get the following when I click on the program options:
a problem occurred when executing the command. make sure u are using
the correct programming method. current... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Automatically remove Subversion unversioned files Does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build VMware.)
A: If you are on windows command line,
for /f "tokens=2*" %i in ('svn status ^| fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: How could I improve this C++ code I want your suggestion on the following pseudo-code. Please suggest how could I improve it, whether or not I could use some design patterns.
// i'm receiving a string containing : id operation arguments
data = read(socket);
tokens = tokenize(data," "); // tokenize the string ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Very odd bug when using a System.Timers.Timer For some odd reason the Elapsed event is firing twice, where it should definitely be firing once.
And immediately after, the timer ceases to work...
The code structure is somewhat like this:
A certain object is defined to fire a certain event when a value it contains, wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modelling an I-Section in a 3D Graphics Library I am using Direct3D to display a number of I-sections used in steel construction. There could be hundreds of instances of these I-sections all over my scene.
I could do this two ways:
Using method A, I have fewer surfaces. However, with backface culling turned on, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to Convert complex XML structures to DataSet with multiple tables What is the best way to convert an XML document to a .NET 2.0 DataSet. The XML document contains complex structures with parent-child relationships and should be transformed into multiple tables in the DataSet. The DataSet tables should also maint... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is LDAP used for? I know that LDAP is used to provide some information and to help facilitate authorization.
But what are the other usages of LDAP?
A: The main benefit of using LDAP is that information for an entire organization can be consolidated into a central repository. For example, rather than managing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "165"
} |
Q: What is the initial cost of setting up CruiseControl? What is the initial cost of setting up CruiseControl?
A: The key point here is not the time you have to invest in setting up CruiseControl. You can do this in an hour or so. The question is weather do you have a code repository (SVN, TFS) and a build script read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Activex from java application? Is it possible to easily embed ActiveX controls in Java application? Is it worth it. In my next project I should either use existing activex in Java app or have to reimplement everything from scratch, so I'm wondering what will be less hassle.
A: It really depends on how much you are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can I force subclasses to override a method without making it abstract? I have a class with some abstract methods, but I want to be able to edit a subclass of that class in the designer. However, the designer can't edit the subclass unless it can create an instance of the parent class. So my plan is to replace the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: PHP: Inserting the current timestamp into SQL Server 2005 How do I insert a current_timestamp into an SQL Server 2005 database datable with a timestamp column?
It should be simple but I cannot get it to work. Examples would be much appreciated.
A: if you can execute a query from PHP then it should just be a matter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do events work in Java Swing? How does the event creation and handling work in Java Swing?
A: Generally events are handled by registering a callback function with the class that would raise the event. When the event occurs, that class will call the callback function.
You will find a lot of examples from swing. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Standalone app: keep the database healthy/responsive over time I have a WinForms C# application using a MS SQL Server Express database. The application is deployed on the PCs of our customers and they don't have computer related knowledge.
The application updates the database regularly and I see a lot of fragmentat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Forms Modal Dialog that returns an Object rather than DialogResult I'm kinda stuck with this one so I hoped someone could help me.
I am doing a Winforms application and I need to show a Modal Dialog (form.ShowDialog) that returns a value (prompts the User some values and wraps them in a Object).
I just can'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best mock framework for VB.NET? What's the best mocking framework syntax-wise and capability-wise ?
My problem: Most mocking frameworks use lambda expressions now, which are really ugly to write in VB.NET, so is there any framework that has nice syntax without lambdas or has fluent syntax that doesn't ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I add a foreign key when creating a new table? I have these two CREATE TABLE statements:
CREATE TABLE GUEST (
id int(15) not null auto_increment PRIMARY KEY,
GuestName char(25) not null
);
CREATE TABLE PAYMENT (
id int(15) not null auto_increment
Foreign Key(id) references GUEST(id),
BillNr int(1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Can I compare two ms-access files? I want to compare two ms-access .mdb files to check that the data they contain is same in both.
How can I do this?
A: I've done this kind of thing in code many, many times, mostly in cases where a local MDB needed to have updates applied to it drawn from data entered on a website.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Performance in Subversion vs. SourceSafe We're a distributed team of 5 developers working on rather large integrations project. We currently use SourceSafe (yes I know it sucks but it has just worked until recently and we've used it forever). Our biggest problem has recently become performance. Checking in and out p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Approaches to creating the View for "Humble Dialogs" I have a bunch of questions to post regarding the issue of separating the view from logic when creating a GUI.
The following is a minimal example of what I would do for a simple dialog that has a label and a button using the "Humble Dialog" approach. Pressing the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Get current/active security zone of a .NET application? I have an application that behaves oddly, and just to verify, I'd like to see which security zone it is currently running under.
I've found the System.Security.SecurityZone enum, but can't seem to find anything that will return which of these I'm running under.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to register a .NET CCW with regasm from a Visual Studio 2008 Setup project I have a setup project for a .NET Service Application which uses a .NET component which exposes a COM interface (COM callable wrapper / CCW).
To get the component working on a target machine, it has to be registered with
regasm.exe /tlb ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: patterns for controllers in MVC application What are your favourite patterns for writing a controller?
A: This is rather a tough question as MVC is applied differently in different contexts. For example, for a desktop GUI, you might have listeners for event notifications of view changes but such behavior typically... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dynamic Compilation of ASP.NET Page? How can I achieve this? I am trying to load content from the database and fuse it together with the Content control. The progrm is some of the content has dynamic bits to it and thus would like it to be compiled on the fly. Has anyone done this sort of stuff before?
A: Not quite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting one XML document into another XML document I want to convert an XML document containing many elements within a node (around 150) into another XML document with a slightly different schema but mostly with the same element names. Now do I have to manually map each element/node between the 2 documents. For t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Recommend an automatic web application availiblity checker I am looking for a piece of software that I can schedule to check that our web apps are up and running. I've used HP open view years ago, but remember it being quite expensive, I'm looking for something open source or cheap.
So it would login in and do som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: monkey testing software for windows apps I would like to stress test a win32 application by sending a lot of random keystrokes to it, and I wonder if anyone could point me to some software I could use. Ideally, I should be able to specify which keystrokes can be sent, and control rate (random min/max).
A: Have a lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Drag & drop images from a HTA file From a HTML application (.hta file), you can drag any image and drop it into the desktop for example.
Does anybody know how to disable this capability?
I want the .hta files to have the same behavior as the .html files.
A: You can add an ondragstart="return false;" event handler t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: http/1.0 and deflate/gzip Is http/1.0 able to handle deflated and gzip content?
I've finished to implement deflate and gzip in my minimalist web server and I don't really know if browsers with http/1.0 are capable to handle deflate and gzip compressed content.
A: Well really it's down to the browser; not the protoc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.AJAX TabContainer/TabPanel Customisation Is it possible to set the position of the tabs to be at the bottom of the tabcontainer using the AjaxToolkit? You do have some control over the CSS but I'm not au-fait enough with CSS to see whether it's feasible?
Thanks
A: You can't with the off-the-shelf version of thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: truncate output in BASH How do I truncate output in BASH?
For example, if I "du file.name" how do I just get the numeric value and nothing more?
later addition:
all solutions work perfectly. I chose to accept the most enlightning "cut" answer because I prefer the simplest approach in bash files others are supposed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to output a String on multiple lines using Graphics My Program overrides public void paint(Graphics g, int x, int y); in order to draw some stings using g.drawString(someString, x+10, y+30);
Now someString can be quite long and thus, it may not fit on one line.
What is the best way to write the text on multiple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Subversion server on 64-bit Windows? I want to set up a Subversion server installation on Windows Server 2003 64-bit and I'm considering using VisualSVN Server. Does this work OK in a 64-bit environment? Are there any issues or gotchas I should be aware of before installing the software?
Many thanks!
A: Ive been us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Thread dump programmatically /JDI (Java Debugger Interface) I like to generate a thread dump programmatically. I've learned that there a basically two ways to do it:
*
*Use the "Java Virtual Machine Tool Interface" JVM-TI
*Use the higher abstracted "Java Debugger Interface" JDI
For the JVM-TI I was able to fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I return my records grouped by NULL and NOT NULL? I have a table that has a processed_timestamp column -- if a record has been processed then that field contains the datetime it was processed, otherwise it is null.
I want to write a query that returns two rows:
NULL xx -- count of records with null tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: Writing to multiple tables in PHP $sql = "INSERT INTO images (path, useremail, approved, flagged,caption,date) VALUES ('$target','$email',0,0, '$caption','$b')";
$sql1 = "INSERT INTO users (name, email, phone) VALUES ('$peoplename','$email','$phone')"
$conn->execute($sql, $sql1);
Above is the code Ι am using to try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Forcing application to throw specific exceptions We are replacing the exception handling system in our app in order to conform to Vista certification, but the problem is how to force certain exceptions to be thrown, so that we can check the response.
Unfortunately the whole app was written without taking into consid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When should I use primitives instead of wrapping objects? Actually here is a similar topic with little practical value.
As far as I understand, primitives perform better and should be used everywhere except for the cases where Object-related features (e.g. null check) are needed. Right?
A: yes, primitives are faste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Decode escaped Url without using HttpUtility.UrlDecode Is there any function that converts an escaped Url string to its unescaped form? System.Web.HttpUtility.UrlDecode() can do that job but I don't want to add a reference to System.Web.dll. Since my app is not a web application, I don't want to add a dependency for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Web Application Infrastructure I have custom coded several enterprise applications for mid to large organizations to use internally (some with a minimal external footprint). I now have plans for a web project that may (hopefully) see a large userbase with more daily traffic than my previous projects have ever attai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I stop a DataGridView from automatically selecting a row? I have a DataGridView control in a TabPage, and I listen for the SelectionChanged event. When the TabPage is selected, the DataGridView selects the first row and fires the SelectionChanged event. How can I stop it from automatically selecting a row?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access XML version of CruiseContol.NET Web Dashboard reports (over HTTP)? I need to determine state of last build (success/failure) and I do it like this:
report_url = 'http://.../ViewLatestBuildReport.aspx'
success_marker = '<td class="header-title" colspan="2">BUILD SUCCESSFUL</td>'
page = urllib.urlopen(re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: STL sorted set where the conditions of order may change I have a C++ STL set with a custom ordering defined.
The idea was that when items get added to the set, they're naturally ordered as I want them.
However, what I've just realised is that the ordering predicate can change as time goes by.
Presumably, the items i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Modeling a 1 to 1..n relationship in the database How would you model booked hotel room to guests relationship (in PostgreSQL, if it matters)? A room can have several guests, but at least one.
Sure, one can relate guests to bookings with a foreign key booking_id. But how do you enforce on the DBMS level that a room ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I Refresh Excel whilst Debugging If I am debugging (in this case a Visual Studio assembly called by Excel) and the code updates the Excel worksheet, how do I get Excel to redraw the current sheet / window whilst paused in the debugger?
A: If you are calling Excel cross-process (e.g. via Automation) then Exce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In terms of the ability to deploy, does any web programming language stand out or lag behind the others? In terms of the number of servers ready to receive an application written in the language, the number of people who can write code using the language, and so on?
A: Now don't laugh, but I'd say PHP/MySQL stands ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XSD change the available elements based on a previous Element Value Is there a way to change the available elements based on a previous element value?
I have some lookup 'Cause' codes but some of these only belong to certain 'Products'.
I therefore want to create each products lookup cause code enumeration and let t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Application crashing when talking to oracle unless executable path contains spaces We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and .NET application.
When it attempts to communicate with Oracle, it just dies. Vanishes. Goes to the big black void in the sky. No event log message, no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Notekeeping tool that doesn't lock you in We all know that having a good note taking tool is important as a developer.
However, OneNote and Evernote forces us to be locked in to a particular vendor.
Anyone know of good open-source tools, or even other method of taking notes w/o being "locked-in"?
EDIT: I should kick... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Access: How to execute a query and save its result in a report HI,
I am trying to write a query in vba and to save its result in a report.
I am a beginner. this is what i have tried
can somebody correct me
Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
Dim sql As String
Set cn = CurrentProject.Connectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can one type access a private setter of another type's property? All I need is a way to make a property of one class only 'settable' from one other class (a sort of manager class).
Is this even possible in c#?
My colleague 'reliably' informs me that I have a design flaw, but I feel I should at least ask the comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Overriding a method with Generic Parameters in Java? I have an abstract Class Monitor.java which is subclassed by a Class EmailMonitor.java.
The method:
public abstract List<? extends MonitorAccount> performMonitor(List<? extends MonitorAccount> accounts)
is defined in Monitor.java and must be overridden in EmailM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How do I specify a TCP transport is server mode (listening) or client mode in activemq? The example given for a spring injected endpoint is as follows:
<endpoint id="hl7listener" uri="mina:tcp://localhost:8888?sync=true&codec=hl7codec"/>
How do I setup a client mode endpoint such that is will connect to a speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sys.WebForms.PageRequestManagerServerErrorException 12031 I'm occasionaly getting the following popup from an AJAX.NET application
Sys.WebForms.PageRequestManagerServerErrorException: An Unknown error occurred while processing the request on the server. The status code returned from the server was: 12031
From the Mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What tools to use for developing flash/flex based touch screen user interface for embedded system We are looking at developing a device with a touch screen and an embedded PC like computer for the user interface.
What are the benefits and disadvantages of using flash/flex for this user interface development?
One of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get only the schema of the database into a dataset? How to load only the schema of the tables into a dataset.
A: SqlDataAdapter.FillSchema
A: Do a query that normaly would return your data and add a where clause so that no rows are returned.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/239675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Scenarios for Thread Ordering Service Reading up the new Vista/Win2008 features, I wonder what is the point of the Thread Ordering Service. In other words, in which scenario the "classic" scheduler's "fair to all" policy is not sufficient, and a definite order of threads is preferrable?
To clarify. What would be a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why do I get 3 values inserted into my C# combo box instead of just 1? When reading the registry for file names I get 3 entries loading into my combo box for every 1 registry entry. If I have 1 file listed in the registry I would see :
Combo box values:
c:\file1.txt
<-----Blank here
c:\file1.txt
I have found the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# - Placing a PDF inside another PDF I have multiple logos of various companies in various formats that needs to be added to other PDFs. The format of these logos is not specified at the moment but it could be locked down to only certain formats if it causes issues.
These other PDFs will be mostly posters and will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Easiest way to read a config file belonging to another application Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.
A: Here's MSDN on OpenExeConfiguration.
Edit: link to a how-t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Hardware recommendations/limits when using WPF? My company is just starting to look at using WPF for migrating all of our 10 year old business applications. These applications will most of the time be running on computers that have limited/old hardware. We are now a little worried that the hardware might be too limi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Source code of big/popular websites It's great to find all those little snippets of code on the Web for your current needs, but is there anything better than getting whole application source code at once and reading it like a book?
There's no better way to learn positive and negative aspects of various architecture... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: AST from C code I want to perform some transformations on C source code. I need a tool on linux that generates a complete AST from the source code so that I can apply my transformations on this AST and then convert it back to the C source code. I tried ELSA but it is not getting compiled. (I am using Ubuntu 8.4). Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Cannot set some HTTP headers when using System.Net.WebRequest When I try to add a HTTP header key/value pair on a WebRequest object, I get the following exception:
This header must be modified using the appropriate property
I've tried adding new values to the Headers collection by using the Add() method but I stil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "138"
} |
Q: Things possible in IntelliJ that aren't possible in Eclipse? I have heard from people who have switched either way and who swear by the one or the other.
Being a huge Eclipse fan but having not had the time to try out IntelliJ, I am interested in hearing from IntelliJ users who are "ex-Eclipsians" some specific thin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "365"
} |
Q: What is the best free plugin for Eclipse that allows for formatting/indenting/cleanup of JSP code? I know that IntelliJ has an option to select all the code in a JSP file, right click, and select "format". This nicely formats all HTML, CSS, scriptlets and JSTL tags in a JSP file.
Can Eclipse do this?
If not, what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: C++ Code Profiler Can anybody recommend a good code profiler for C++?
I came across Shiny - any good? http://sourceforge.net/projects/shinyprofiler/
A: Callgrind for Unix/Linux
DevPartner for Windows
A: Not C++ specific, but AMD's CodeAnalyst software is free and is feature-packed.
http://developer.amd.com/cpu/cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Looking for Attractive Forum to Add to My Application Looking for an attractive, highly customizable forum plugin to implement. Don't want to build one myself, but don't want to settle for usual crap. Something Ajax-y?
Was leaning towards Community Server but would love to see what others had to reccomend.
Thanks.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Menu item accel key works only after menu item has been shown I'm developing a SWT/JFace application using the libraries from Eclipse 3.4.1.
I encounter the following problem on Windows (Vista 32bit) and Ubuntu 8.10 32bit:
I create a menu bar in the createMenuManager method of the JFace ApplicationWindow. I add Menu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the correct way to check if a value is a date/number in Delphi What is the correct way to check if a value is a date/number in Delphi?
I know other languages have functions like isDate and isNaN, but what is the Delphi equivalent? at the minute I have this
function isNumeric(s1:string):boolean;
begin
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are the factors most important to developing a game? I would like to know this to understand why some games like Mario is still playing today and because no other. This is to implement in future game projects.
What are the factors most important to developing a game?
Gameplay or Graphics? Both?
EDIT:
It's Possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Baffled by an XPath issue on IE David Flanagan's excellent book on JavaScript has an example that shows how to perform XPath queries in IE. On page 518 of fifth edition, you can see the following code snippet taken from example 21-10:
// In IE, the context must be an Element not a document,
// so if the context is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ajax replace text with image I have put together the following mootools script
window.addEvent('domready', function() {
var shouts = "timed.php";
var log = $('log_res');
function updateData (url,target)
{
new Ajax(url,{
method: 'get',
update: $(target),
onComplete: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do I get web exception when creating an XPathDocument? Creating an XPathDocument with referenced DTD sometimes throws a web exception. Why?
A: You can write a custom XmlUrlResolver and then ignore the
remote DTD. Also, I believe you can set use XmlResolver = null on the XmlTextReader.
A: for those interested I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change a column's "Row Source" in Access table at run-time? I would like to change the "Row Source" values in an Access table through code.
This way I can filter what a user can choose in a column's combo box.
A: In line with Dave DuPlantis' answer, you may wish to read "The Evils of Lookup Fields in Tables"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically register HttpModules at runtime I'm writing an app where 3rd party vendors can write plugin DLLs and drop them into the web app's bin directory. I want the ability for these plugins to be able to register their own HttpModules if necessary.
Is there anyway that I can add or remove HttpModules from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: How to map multiple records using SqlMap in Ibatis I am just getting into ibatis with SqlMap for the first time and I have run into a problem. I have figured out how to insert, delete, update, and select single records. Now however I am trying to write a select statement that will bring back more than a single rec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does the computer science/software engineering field have a standardized citation format? Wikipedia provides a number of citations used in the sciences, however does one stand out in computer science and software engineering related documents? My initial guess is to the IEEE format, as they have a number of conferen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best way to apply a drop shadow? What is the best method for applying drop shadows? I'm working on a site right now where we have a good deal of them, however, I've been fighting to find the best method to do it. The site is pretty animation heavy so shadows need to work well with this.
I tried a jQuery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Image stretching and resizing I have a picture that I need to resize to a specific dimension and then move one of the corner to a place higher than before so the image is not rectangular anymore but some kind of polygon. Is there a library that could help me with this kind of image manipulation or does someone knows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET HttpApplication.EndRequest event not fired According this MSDN article HttpApplication.EndRequest can be used to close or dispose of resources. However this event is not fired/called in my application.
We are attaching the handler in Page_Load the following way:
HttpContext.Current.ApplicationInstance.EndReq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the best way for a process inside a VirtualPc to talk to a process on the host? I have Virtual PC 2007. I am writing a C# program that will run on the Host and Virtual. It needs to communicate both ways.
What is the best way to do this?
Can it be done in a way that does not require changing Virtual setting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you share configuration information or business rules between languages I'm looking for best practices for using the same data in different places without repeating yourself - this could include configuration or business rules.
Example 1. Data validation rules where you want to validate on the client using ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is a "Unit"? In the context of unit testing, what is a "unit"?
A: While the definition can vary, a "unit" is a stand-alone piece of code.
Usually, it's a single Class.
However, few classes exist in isolation. So, you often have to mock up the classes that collaborate with your class under test.
Therefore, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Best way to find all factors of a given number All numbers that divide evenly into x.
I put in 4 it returns: 4, 2, 1
edit: I know it sounds homeworky. I'm writing a little app to populate some product tables with semi random test data. Two of the properties are ItemMaximum and Item Multiplier. I need to make sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to enable buttons when scroll bar hits bottom with Win32? I'm writing a license agreement dialog box with Win32 and I'm stumped. As usual with these things I want the "accept/don't accept" buttons to become enabled when the slider of the scroll bar of the richedit control hits bottom, but I can't find a way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you configure VS2008 Code Analysis to use a British English Dictionary? VS2008 Code Analysis will flag a spelling mistake in an identifier using the IdentifiersShouldBeSpelledCorrectly warning type.
This process is using an American dictionary by default because words are being flagged that are correctly spelt u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |