text stringlengths 8 267k | meta dict |
|---|---|
Q: Purpose of: #define, #include, #undef What would the purpose of this construct in a c file be?:
#define _TIMERC
#include "timer.h"
#undef _TIMERC
I am aware of the guard for preventing multiple inclusion of a header file. This doesn't appear to be whats happening though.
thanks!
A: Here's a scenario to illu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to start an external program from the target directory when debugging? When debugging I need to start an external program from the target directory of a build and am wondering if it can be accomplished using relative paths.
As a post-build event I have the following:
IF NOT "$(ConfigurationName)"=="D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: UserControl's RenderControl is asking for a form tag in (C# .NET) I asked how to render a UserControl's HTML and got the code working for a dynamically generated UserControl.
Now I'm trying to use LoadControl to load a previously generated Control and spit out its HTML, but it's giving me this:
Control of type 'Text... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Best feature(s) in Visual Studio 2008 (and VSTS)? Visual Studio has certainly gone from strength to strength since humble Visual Studio 6 (and previous renditions). There seems to be a lot more coming in Visual Studio 2010 (based on blogs, the PDC and the more recent CTP virtual machines).
The recent Service Pack 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it better for faster access to split tables and JOIN in a SQL database or leave a few monolithic tables? I know it's probably not the right way to structure a database but does the database perform faster if the data is put in one huge table instead of breaking it up logically in other tables?
I want to design an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Design Pattern: Parsing similar, but differing schemas in text files thanks in advance for your help. I am wondering if there is a (design) pattern that can be applied to this problem.
I am looking to parse, process, and extract out values from text files with similar, but differing formats.
More specifically, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Detect whether FocusEvent of component is lost or gained I implementing a EventQueue and get notified when AWTEvents are send.
I wait till instances of FocusEvent are send to the dispatchEvent methode.
The FocusEvent by itself does not have a methode to ask if the focus of the component is gained or lost.
The method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: exchange powershell : get-user has no Description property? When I run get-user|get-member in powershell with the exchange add-in I noticed there is no description property.
Does anyone know if it has been renamed to something else or another way of accessing it?
A: If you aren't looking to change the description ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where to get Microsoft.Web.Mvc.dll Where do you get Microsoft.Web.Mvc.dll? I see it included in a lot of ASP.NET MVC open-source projects but it's not on my system after having installed ASP.NET MVC Beta and .NET 3.5 SP1.
In the ASP.NET MVC Beta source code from codeplex.com the Microsoft.Web.Mvc.dll is produced by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: C# decimal.compare vs. > or < What would be the benefit of using decimal.compare vs. just using a > or < to compare to variables?
A: For one thing it makes it really easier to build a Comparison<decimal> delegate instance:
Comparison<decimal> foo = decimal.Compare;
This is handy to pass into things which take arb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Common code used by multiple ASP.Net Applications Scenario:
Let's say I have four very similar applications (i.e. most of the functionality is the same, but they are different enough to justify each being seperate applications).
What is the best way to re-use the common functionality code between them? COM+? Web s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: different WAR files, shared resources Suppose you have several applications which share the same code and most of the other resources, but have a somewhat different look and feel, some labels change, etc. (think branding). If each web app is to go in its own WAR file, where do you put the shared resources?
I alread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Automatic spell checking of words in a text [EDIT]In Short: How would you write an automatic spell checker? The idea is that the checker builds a list of words from a known good source (a dictionary) and automatically adds new words when they are used often enough. Words which haven't been used a while should be pha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I programmatically determine the creator of a Domino database? I'm using the built-in Domain Catalog database to list all the databases on a particular Domino server. I'm creating a custom view to show certain information about each database. What I'd like to have is a column that displays the creator of eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Integrating Spring Webflow 2 and Apache Tiles I've recently started upgrading some applications to use Spring Webflow 2, and I want to make use of the new Ajax functionality that comes with Webflow 2. Can somebody please direct me to a tutorial for integrating Tiles 2 with Spring Webflow (since that's apparently wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Exception elimination in C++ constructors We have recently been faced with the problem of porting our C++ framework to an ARM platform running uClinux where the only vendor supported compiler is GCC 2.95.3. The problem we have run into is that exceptions are extremely unreliable causing everything from not being cau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Sourcesafe get by label from Visual Studio I have a Visual Source Safe repository, and some (not all, alas!) of my releases are identified by label. I know how to get by label from the command line, but:
Can I get by label from within Visual Studio?
I'm using Visual Studio 2003 (would the answer be different in o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Need a way to check status of Windows service programmatically Here is the situation:
I have been called upon to work with InstallAnywhere 8, a Java-based installer IDE, of sorts, that allows starting and stopping of windows services, but has no built-in method to query their states. Fortunately, it allows you to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Run WCF ServiceHost with multiple contracts Running a ServiceHost with a single contract is working fine like this:
servicehost = new ServiceHost(typeof(MyService1));
servicehost.AddServiceEndpoint(typeof(IMyService1), new NetTcpBinding(), "net.tcp://127.0.0.1:800/MyApp/MyService1");
servicehost.Open();
Now I'd lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Providing intellisense/xsd validation to configsections in a small c# project, I'm trying to create a simple custom configsection.
I followed the instructions in CodeProject: Unraveling the Mysteries of .NET 2.0 Configuration and everything work nicely... apart from the fact that I don't get xsd validation and intel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Repository of BNF Grammars? Is there a place I can find Backus–Naur Form or BNF grammars for popular languages? Whenever I do a search I don't turn up much, but I figure they must be published somewhere. I'm most interested in seeing one for Objective-C and maybe MySQL.
A: There are some links from w:BNF#Language... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: SharePoint (MOSS 2007) successful forms authentication redirects to machine name I have a SharePoint site extended for forms authentication. The Active Directory site is example.com and the forms authentication site is forms.example.com. When I type my (forms) username/password I get redirected (302) to the machin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Converting COM object returned by IHTMLDocument2.Script.InvokeMember() to something useful I'm working with some code in C#.NET for an Internet Explorer extension that calls Javascript in the browser and gets the return value from the Javascript call. When the Javascript returns a primitive type or an array of prim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery .focus doesn’t actually focus a newly created element Let’s say I have this markup:
<div id="content">
<div id="firstP"><p>First paragraph</p></div>
<div id="secondP"><p>Second paragraph</p></div>
<div id="thirdP"><p>Third paragraph</p></div>
<div id="fourthP"><p>Fourth paragraph</p></div>
</div>
I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Uninstall without an MSI file I often get a problem with Windows Installer trying to uninstall a package, but it complains that:
The feature you are trying to use is on a network resource that is unavailable.
Is there a known means of uninstalling such packages when the original MSI is simply not available?
A: FY... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: What are the consequences of NON-CLS Compliant code in .NET? I have a couple of nagging compiler warnings for an app that I ported from VB6 a while back regarding CLS-Compliance including:
Name '_AnIdentifier' is not CLS-Compliant.
Type of parameter 'myType' is not CLS-Compliant.
Despite this, my app seems to perfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Do you use TestInitialize or the test class constructor to prepare each test? and why? This question regards unit testing in Visual Studio using MSTest (this is important, because of MSTest's execution order). Both the method marked [TestInitialize] and the test class constructor will run before each test method.
So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Java Strings: "String s = new String("silly");" I'm a C++ guy learning Java. I'm reading Effective Java and something confused me. It says never to write code like this:
String s = new String("silly");
Because it creates unnecessary String objects. But instead it should be written like this:
String s = "No longer s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: LDAP through Ruby or Rails I've been attempting to hook a Rails application up to ActiveDirectory. I'll be synchronizing data about users between AD and a database, currently MySQL (but may turn into SQL Server or PostgreSQL).
I've checked out activedirectory-ruby, and it looks really buggy (for a 1.0 release!?). It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Which JavaScript library you recommend to use with Java EE + Struts + iBatis? Which JavaScript library you recommend to use with Java EE + Struts + iBatis ?
Something like Ext JS, Dojo, frameworks that can be easily integrated with Struts.
A: There exists a framework that is supposed to tie in nicely with Java Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to print a stack trace to screen in Java ME? I have code that looks like the following, which works fine for displaying the message, but can't figure out any way to get a hold of the stack trace.
try {
throw new RuntimeException("This is bad stuff!");
} catch (Exception e ) {
mainForm.append... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Render HTML as an Image I'm generating a coupon based on dynamic input and a cropped image, and I'm displaying the coupon using ntml and css right now, the problem is, printing this has become an issue because of how backgrounds disappear when printing and other problems, so I think the best solution would be to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Debug .asp pages with visual studio 2005 I'm migrating a website made in classic asp to asp.net, but the asp.net dev server doesn't handle .asp pages.
Is it possible to make it run .asp pages? Maybe a custom httphandler for .asp?
thanks!
A: Are you running Winxp with IIS installed? If so, here's what I do: hit the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing Java annotations from a Taglet I'm working on a project where we have some custom Taglet classes that are used to modify the Javadocs (such as linking to source code in SVN, adding citations) and so on.One of the things we'd like to do is to be able to get the annotations that are used in the source and ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to convert fields into rows through SQL in MS Access 2007 or MS SQL Server 2005 I have a legacy MS Access 2007 table that contains 52 fields (1 field for each week of the year) representing historical sales data (plus one field for the year actually). I would like to convert this database into a more conventiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do you ToList()? Do you have a default type that you prefer to use in your dealings with the results of LINQ queries?
By default LINQ will return an IEnumerable<> or maybe an IOrderedEnumerable<>. We have found that a List<> is generally more useful to us, so have adopted a habit of ToList()ing our queries most of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Is there an HKEY_Current_User equivalent of HKey_Classes_Root\Record? For HKey_Class_Root\CLSID I found the equivalent to be HKey_Current_User\Software\Classes\CLSID but looking in the registry I didn't see "Record" in the same location.
A: how about
HKEY_CURRENT_USER\Software\Classes?
and
HKEY_LOCAL_MACHINE\SO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Javascript URL replacement on google sponsored links How does URL replacement on the google SERPs "sponsored links" work?
Some of the results have a function rwt attached to the onmousedown event, but the sponsored links don't have any event handlers as far as I can make out.
How does it achieve the behaviour of rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Session closed" error when trying to get a blob from DB using getBinaryStream() I'm using Hibernate 3.1 and Oracle 10 DB. The blob is defined as @Lob @Basic @Column in the Hibernate entity which corresponds to the relevant DB table.
The error -java.sql.SQLException: Closed Connection- seem to appear once in while,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get rid of checkedlistbox selection highlighting effect? When an item is clicked in the checkedlistbox, it gets highlighted. How can I prevent this highlighting effect?
I can hook into the SelectedIndexChanged event and clear the selection, but the highlighting still happens and you see a blip. In fact, if y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Using the jQuery validatation plugin to send multiple values to an ASP.NET MVC controller action? Using the jQuery Validation plugin and AJAX, how can I validate the contents of say an input (textbox) but pass more than one parameter to a controller action?
A brilliant example of passing a single value via AJAX usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Opening a folder in explorer and selecting a file I'm trying to open a folder in explorer with a file selected.
The following code produces a file not found exception:
System.Diagnostics.Process.Start(
"explorer.exe /select,"
+ listView1.SelectedItems[0].SubItems[1].Text + "\\"
+ listView1.SelectedIte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "175"
} |
Q: SEHException from applications on a mapped share Background
We run all our windows forms applications from a windows share (UNC) mapped locally to user's W drive. We've had connection issues the past few days and are receiving System.Runtime.InteropServices.SEHException's from somewhat random places in our programs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Clearing \listlevel status in RTF I am outputting RTF from a word processor component. This is working well, but there is a specific situation that is failing in that it causes Word 2000 to corrupt the document. Word 2007 is fine with the RTF though, which implies they fixed something. However, I need to be able to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF REST vs. ADO.NET Data Services Could someone compare and contrast on WCF Rest services vs. ADO.NET Data Services? What is the difference and when to use which?
Thanks,
Ray.
Edit: thanks for the first answer, just to give a bit of background on what I'm looking to do: I have a web app I plan to put in the cloud (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: NHibernate Not Exposing Columns in Set CollectionMappings We are in the process of writing code to generate check constraints with all valid values from our enumeration mappings. Some of our enumerations are inside composite-elements through mapped set collections (see below):
<set name="Addresses" table="[Addresses... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server Alerts - Best Practices What SQL Server Alerts do you always setup for every database? What do you always monitor regardless of the database?
A: You should monitor and be alerted for severity levels 17 to 25.
Severity levels from 17 through 19 will require intervention from a DBA, they're not as serious... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: new dynamic tools analysis for C-code Could somebody tell me wich new dynamic tools analysis for C-code are there like valdgrind?
A: Have a peek at Fenris. Maybe not a valgrind replacement, but still very cool :) In fact, nearly all the tools Michal Zalewski creates are really....creative (sorry).
A: Here are two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Testing linear class relationship I'm calling this linear class relationship, but correct me if I'm wrong. I'm looking to test whether or not the class of object A is an ancestor or descendant of object B's class.
For example, AbstractCollection is linearly related to both Object and ArrayList. However, ArrayList is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing a dictionary to a function as keyword parameters I'd like to call a function in python using a dictionary with matching key-value pairs for the parameters.
Here is some code:
d = dict(param='test')
def f(param):
print(param)
f(d)
This prints {'param': 'test'} but I'd like it to just print test.
I'd li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "457"
} |
Q: Is datareader quicker than dataset when populating a datatable? Which would be quicker.
1) Looping a datareader and creating a custom rows and columns based populated datatable
2) Or creating a dataAdapter object and just (.Fill)ing a datatable.
Does the performance of a datareader still hold true upon dynamic creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a way to look at what the windows command prompt just closed? When the command prompt opens and then just closes really fast (because there isn't a pause line) is there a way to see what it just showed you?
A: You can pipe the output to a file.
something.exe > c:\temp\output.txt
This works on the prompt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create a DDL trigger in every database on a 2005 instance I need to create a trigger in every database on my sql 2005 instance. I'm setting up some auditing ddl triggers.
I create a cursor with all database names and try to execute a USE statement. This doesn't seem to change the database - the CREATE TRIGGER stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling NT function on pre-NT system So I don't do a lot of Win32 calls, but recently I have had to use the GetFileTime() and SetFileTime() functions. Now although Win98 and below are not officially supported in my program people do use it there anyway, and I try to keep it as usable as possible. I was just wonderin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I detect the operating system in Perl? I have Perl on Mac, Windows and Ubuntu. How can I tell from within the script which one is which?
Edit: I was asked what I am doing. It is a script, part of our cross-platform build system. The script recurses directories and figures out what files to build. Some files ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: The tool for visual programming I need the tool for graphical representing of work flow in a program (like electronic circuits are described with graphical representation). The representation has to be like the following: functions are boxes and arrows between boxes are "messages". Like this:
alt text http://img372.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Compare result of 'as' expression in 'where' statement Is it possible to create a MySQL select statement that uses an expression as x then checks if the value for x is under a certain amount?
SELECT (mytable.field1 + 10) AS x FROM `mytable` WHERE x < 50;
A: no you have to actually do this
SELECT (mytable.field1 + ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IE6 can't find Object element with getElementById()? I'm trying to get an object element from my webpage using getElementById (ultimately so I can replace it with a dynamically created object element) but it is returning null in IE6.
In the following code, the byId() function returns null in IE but an [object HTMLOb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to create a style reset for only a portion of the DOM? I'm trying to create a css reset that targets only my control. So the HTML will look something like this:
<body>
<img class="outterImg" src="sadkitty.gif" />
<div id="container" class="container">
<img class="innerImg" src="sadkitty.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Fatal Execution Engine Error (79FFEE24) (80131506) I'm encountering problems with my .NET Framework 3.0 SP1 application. It is a C# winforms application communicating with a COM exe. Randomly either the winforms app or the COM exe crashes without any error message and the event log contains this entry:
[1958] .NET R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: GET parameters in the URL with CodeIgniter I know that codeIgniter turns off GET parameters by default.
But by having everything done in POST, don't you get annoyed by the re-send data requests if ever you press back after a form submission?
It annoys me, but I'm not sure if I want to allow GET purely for this rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Creating a Rich Repeater, DataBind wiping out custom added controls So...I had this clever idea that I'd create my own Repeater control that implements paging and sorting by inheriting from Repeater and extending it's capabilities. I found some information and bits and pieces on how to go about this and everything ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a new List When creating a new list do you specify an initial size or leave it blank? I know by specifying an initial size you avoid having the list reallocate the underlying array every-time you add x number of items but you also add verbosity to your code. Is the minimal performance gain worth adding verb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET/ADO.NET: Handling many database connections inside a .NET Object? We have a .NET object that does a lot of reading/writing with the database. Throughout the life cycle of this object (or the asp page that uses it), it may hit the database with a query/update anywhere from 1 to 10 times.
Instead of opening a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Modify/Replace Exe On the Fly Whenever I download an update to firefox and apply it Kaspersky Antivirus alerts me that the file FIREFOX.EXE has been modified. I want to know how do they do it. Is it possible to do a simple program to demonstrate this trick. Like the executable would initially display "Hello, World!"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Zend Lucene to search PDF files Is there a way to use Zend_Search_Lucene to search/index PDF documents?
A: http://www.kapustabrothers.com/2008/01/20/indexing-pdf-documents-with-zend_search_lucene/
| {
"language": "en",
"url": "https://stackoverflow.com/questions/334745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Implementing event conditions in a C++ state machine I'm using an hierarchical FSM for an embedded C++ application interface. I'd like to use small functions to determine whether certain inter-state events can be triggered, as well as use them to effect changes in the database: however, making a new class with diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Display unique characters only in a textbox If I give the input from Text Box like
AaBbcdCDEb
the output should be
ABCDE or abcde
only unique characters should be there, no repeated characters.
How do I do this?
A: Use the Distinct extention method on the array of characters then recombine them into a string.
n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: darcs amend-record workflow It's not uncommon for me to record a patch, pull it into my staging branch and then realize I've done something small and silly like a typo in a logging message, or something similarly trivial which doesn't require (to my mind) a whole new patch.
In these instances, I've been using:
darcs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does PyS60 produce sis files that are native? I am currently looking at developing a mobile apps for the S60 platform and is specifically looking at PyS60. It seems to suggest that the it can be compiled into native .sis files without the need for an embedded python interpreter. Reading through the documentations I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Problem setting Label text on another Form I am trying to make a Kiosk application more accessible by increasing the size of fonts.
No problem on the main Form.
I'm having a problem replacing MessageBoxes (for which I believe there is no way to increase the font size) with small forms with the same message.
This is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does the Microsoft Visual C++ Express compiler compile C code? I'm not sure, will the visual c ++ compiler express edition work for compiling c and if not can someone link me to an easy c compiler to use. Thanks in advance.
A: To add to Bill The Lizard's answer - any C++ compiler will compile a file using C languag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's best way to secure a database connection string? I am writing a set of database-driven applications in PHP. These applications will run on a Linux server as its own user. Other users will likely be on the system at times, but have very controlled access. Other servers they will not have access to at all. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is there a difference between TDD and Test First Development (or Test First Programming)? Both ideas sound very similar to me, but there might be subtle differences or the exact same thing, explained in different ways. What is the relationship between TDD and Test First Development/Programming?
A: Historically Corr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Are goto and destructors compatible? This code leads to undefined behavior:
void some_func() {
goto undefined;
{
T x = T();
undefined:
}
}
The constructor is not called.
But what about this code? Will the destructor of x be called? I think it will be, but I want to be sure. :)
void some_func() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Esper versus Coral8 . . .Event stream processing has anyone done any analysis comparing coral8 versus esper for event stream processing?
A: I guess you'll need to compare "Esper Enterprise Edition + EsperHA" to Coral8 so as to account for GUI + high availbility options. The core of EsperTech products is open source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Velocity: $display.list() and a collection of objects Velocity DisplayTool has a useful method:
$display.list($list)
That will format a collection or array into the form "A, B and C".
The problem is lets say I have an ArrayList of objects, how do I output a specific object field instead of the whole object?
For ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SharePoint Web Parts I'd like to create a Web Part with security-trimmed links for a MOSS Publishing Intranet Portal. The idea is that their logged-in user name is checked against a custom provider to determine their permissions for a particular link and the hyperlinks would be rendered based on this.
What would be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to stop ASP.Net website throwing HttpUnhandledException exception while browsing forward/back through paged listing of items? I have an ASP.Net hosted website which displays a list of results as a DataGrid or ASP.Net Repeater with paging of results.
If one scrolls quickly through the pages by pressing the Previo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Implementing Rails' layout functionality with Apache Tiles Has anybody tried duplicating Ruby on Rails' layout functionality with Apache Tiles 2 ? I'm trying to integrate Tiles 2 with Spring. I have a previously written custom view resolver for the Spring framework that does this quite nicely, but I'm upgrading to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do parameter or return type implicit conversions take priority in C++? If I have the code:
int f(int a) { return a; }
double f(double g) { return g; }
int main()
{
int which = f(1.0f);
}
Which overload of f is called, and why?
A: The return type is not considered for overload purposes at all, thus you'll get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I set up an LDAP connection pool in a Java EE Container? I need to put an LDAP contextSource into my Java EE container's JNDI tree so it can be used by applications inside the container.
I'm using Spring-LDAP to perform queries against ORACLE OVD. For development, I simply set up the contextSource in the Spr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to generate a filmstrip image in python from a folder of images? I would like to do the equivalent off this (ruby code) in python for a Django project I am working on. I want to make a filmstrip image of X number of images in a folder.
A: Do you mnean something like this? Use PIL to make a "contact sheet" of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MySQL Composite PK with Nullable FKs First off, let me preface this question by stating that I'm really a pretty terrible data modeler. I know only enough to be dangerous.
The table I'm building has four foreign keys, two of which reference the same table. Here's the create statement for that table.
CREATE TABLE ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Testing for an empty array object in JSON with jQuery I have a request that returns a JSON object with a single property which is an array. How can I test if the array is empty?
With jQuery code like:
$.getJSON(
jsonUrl,
function(data) {
if (data.RoleOwners == [ ]) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Masking the navigation sounds in IE using AutoIT? I wrote a program using AutoIT to fetch information from a number of websites using Internet Explorer. AutoIT is capable of hiding the window so that it is not visible, however when I navigate to a new website on that hidden window I still get the IE navigation sound... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Adding Role to User Created in Web.config I have a few users setup in the web.config of an asp.net site to handle authentication. Without getting into details I'm not using the full membership/role provider and would rather not have to implement it at the moment do to time constraints. However I do need the ability ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Any good Java Swing Timeline Widget? Is anybody aware of a good Java Swing Timeline Widget with features comparable to the Janus Winforms timeline component?
A: Finally I found a Java timeline widget which fulfills my requirements:
Jaret timebars component
A: A pretty good component which comes close is the Flex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Connecting lines (while dragging) in Flex/Actionscript I have a mx:Canvas element that contains several mx:Panel elements. I want to be able to draw a line connecting two such mx:Panel's in such a way that the line continues to connect the two mx:Panels when one or both get dragged around. It seems like something th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# How to replace Microsoft's Smart Quotes with straight quotation marks? My post below asked what the curly quotation marks were and why my app wouldn't work with them, my question now is how can I replace them when my program comes across them, how can I do this in C#? Are they special characters?
curly-quotation-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: print the code which defined a lambda function I'd like to be able to print the definition code of a lambda function.
Example if I define this function through the lambda syntax:
>>>myfunction = lambda x: x==2
>>>print_code(myfunction)
I'd like to get this output:
x==2
A: As long as you save your code to a source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: SQL JOIN query writing I'm trying to write a simple query involving two tables. The "person" table has a unique person_id and a name, and the "friends" table has a person_id and a friend_id which is a FK to a person_id in the person table.
person:
<PK> int person_id
varchar[45] name
friends:
<PK> int person_id
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IoC & Interfaces Best Practices I'm experimenting with IoC on my way to TDD by fiddling with an existing project. In a nutshell, my question is this: what are the best practices around IoC when public and non-public methods are of interest?
There are two classes:
public abstract class ThisThingBase
{
public virt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there benefits of passing by pointer over passing by reference in C++? What are the benefits of passing by pointer over passing by reference in C++?
Lately, I have seen a number of examples that chose passing function arguments by pointers instead of passing by reference. Are there benefits to doing this?
Examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "276"
} |
Q: In C# what is the recommended way of passing data between 2 threads? I have my main GUI thread, and a second thread running inside it's own ApplicationContext (to keep it alive, even when there is no work to be done). I want to call a method on my 2nd thread from my GUI thread, but if I just call thread.Method(); it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I get the application exit code from a Windows command line? I am running a program and want to see what its return code is (since it returns different codes based on different errors).
I know in Bash I can do this by running
echo $?
What do I do when using cmd.exe on Windows?
A: If you want to match the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "950"
} |
Q: Must default function parameters be constant in C++? void some_func(int param = get_default_param_value());
A: Default parameter can be a subset of the full set of expressions. It must be bound at compile time and at the place of declaration of the default parameter. This means that it can be a function call or a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Clrdump (C++) error LNK2019: unresolved external symbol __imp__RegisterFilter@8 referenced in function _main I am using a makefile system with the pvcs compiler (using Microsoft Visual C++, 2008 compiler) and I am getting several link errors of the form:
error LNK2019: unresolved external symbol __imp__RegisterFilt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How fast is AppDomain creation? I have just discovered that if generating assemblies via Reflection.Emit, the .NET framework keeps references in a static member that prevents Reflection.Emit classes not to be GC'ed.
I cannot use DynamicMethod due to limitations. I also generate a lot of assemblies (incremental com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Negating specific line end sequences in rlike regex I want to match any line that does not end with 'CA' or 'CA[any number]'. How can I do that using rlike in MySQL? (Note it doesn't support ?! etc).
Here's the regex for a positive match, I just need a way to negate it: '^.*[C][A][0-9]?$'
(Due to an embarrassing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/334907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.