text string | meta dict |
|---|---|
Q: How do I pass build number from Nant back to Cruise Control I have a Nant build script which CruiseControl uses to build a solution on-demand.
However, we only recently got CruiseControl so our official build number is different from what is listed in CruiseControl.
I know CruiseControl injects some properties into ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best modeling methodology for representing software system? What is the best modeling methodology for representing software system. I mean like UML and so on.
Is UML better or is there something better than that out there?
My need is to represent graphically my web application , which is a 3-tier archit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: have mysql select statement return fully qualified column names like table.field is there a way to have a mysql select statement return fully qualified column names like "table.field" without using AS for every single field?
like so:
SELECT *
FROM table1
LEFT JOIN table2 on table1.f_ID = table2.ID
and the res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are alternatives to Objective-C for Mac programming? I've become very comfortable in the world of pointer-free, garbage-collected programming languages. Now I have to write a small Mac component. I've been learning Objective-C, but as I confront the possibility of dangling pointers and the need to manage retain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Good place to start learning ASP.NET I have a two years of experience of programming in Visual C# and Visual C++. I would like to know some good online sources to start learning ASP.NET or anything else I should/need to learn before diving into ASP.NET. I found some online videos that are proving to be quite useful.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Execute a JavaScript function in a C# application Without using a WebBrowser control, how could I execute a JavaScript function, that is decoupled from any browser DOM dependencies, in a C# application? I am investigating implementing validation rules only once, for both server and client validation. See this ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Bidirectional 1 to 1 Dictionary in C# I am looking for a generic, bidirectional 1 to 1 Dictionary class in C# (2), ie. a BiDictionaryOneToOne<T, S> which is guaranteed to only contain one of each value and key (up to RefEquals anyway), and which can be searched using either key or value. Anyone know of one, or shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "106"
} |
Q: Case statement in SQL Rownumber() Order By clause not working on varchar and int values Why doesn't this work?
DECLARE @temp table
(ShipNo int,
Supplier varchar(10)
)
INSERT INTO @temp VALUES (1,'CFA')
INSERT INTO @temp VALUES (1, 'TFA')
INSERT INTO @temp VALUES (2, 'LRA')
INSERT INTO @temp VALUES (2, 'LRB')
INSER... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RegEx to return 'href' attribute of 'link' tags only? Im trying to craft a regex that only returns <link> tag hrefs
Why does this regex return all hrefs including <a hrefs?
(?<=<link\s+.*?)href\s*=\s*[\'\"][^\'\"]+
<link rel="stylesheet" rev="stylesheet" href="idlecore-tidied.css?T_2_5_0_228" media="screen">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#: Could anyone give me good example on how anchoring controls at runtime is done? C#: Could anyone give me good example on how anchoring controls at runtime is done?
A: textBox1.Multiline = true;
textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server service keeps stopping on local machine I have some update or something that tries to run every night, and ends up leaving the SQL Server service stopped. When the machine restarts, the service restarts properly. How do I go about diagnosing and fixing what is breaking my SQL Server service? I'm runnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add Ajax to my ASPnet page so that a dropdown change can immediately affect the backend db I have a couple of dropdown boxes on a normal ASP.Net page.
I would like the user to be able to change these and to have the page Pseudo-post back to the server and store these changes without the user having to hit a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encoding of the AuthzSVNAccessFile I have a repository containing paths with non-ASCII characters (latin1)
I am having problems with authorization file containing those paths.
Do you know which encoding should be the AuthzSVNAccessFile?
Thank you.
A: Looking through the subversion source it seems you should use ut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the differences / similarities between JBI and SCA Could point me to some good links, or share experiences of the differences / similarities between the JBI and SCA specifications?
Many thanks :-)
A: This article can provide the beginning of an answer (even though it does not detail the specifications)
OSO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPA - map entity to sql query? I'm writing a JPA connector to a legacy sistem. The problem is, DB design in the system is.. well.. horrible.
I need to implement an entity that maps to three tables. I can do it using named sql queries, but the probem is, I have to use this entity in a OneToMany relation (this entity ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using SMO to copy a database and data I am trying to make a copy of a database to a new database on the same server. The server is my local computer running SQL 2008 Express under Windows XP.
Doing this should be quite easy using the SMO.Transfer class and it almost works!
My code is as follows (somewhat simplified... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: PRINT statement in T-SQL Why does the PRINT statement in T-SQL seem to only sometimes work? What are the constraints on using it? It seems sometimes if a result set is generated, it becomes a null function, I assumed to prevent corrupting the resultset, but could it's output not go out in another result set, such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: Can I use Visual Studio Snippets to generate SQL code I want to use Visual Studio snippets to generate SQL code, for example we have standard naming conventions for foreign keys etc and it would be great if I could just expand a snippet in my SQL script file.
However as far as I can tell the only languages that are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Initializing field by default value is redundant Can I really and truly trust .NET to initialize fields (like ints, structs and the like)? And what if I still want to initialize those fields - what could be the repercussions?
A: The C# specification states on p.305 (17.4.4)
The initial value of a field, whether ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: ASP Tabpanel postback only on one tab I have a tabpanel with a calendar control on the 4th tab but when I select a date, the postback causes the tabpanel to return to the first tab instead of the 4th that it came from.
Is there a way to get it to return to the tab that the calendar control is on and not revert back ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change a text value tag to a cdata section I generate a XMLDocument based on a dataset by binding the dataset to the XMLDocument object and then display it to user in vb.net. I have a requirement in which certain tags to contain cdata sections rather than text value. After generating the XMLDocument how to ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net IFrame scroll bar push to top . . Heres a tricky one . .
I have a webpage (called PageA) that has a header and then simply includes an iframe. Lets call the page within the iframe PageB. PageB simply has a bunch of thumbnails but there are a lot so you have to scroll down on PageA to view them all.
When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net Validation I want to validate the value a user enters in a text box, so that it only enters float numbers. I'm not interested in range. How can I do this, considering also culture localization information (e.g. "." or "," as separators)?
A: My usual method is to use a RegexValidator with a validation expre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When - and why - should you store data in the Windows Registry? As a developer, tools that store configuration/options in the registry are the bane of my life. I can't easily track changes to those options, can't easily port them from machine to machine, and it all makes me really yearn for the good old days of .INI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: How can I reference ANT HOME from the libraries in the properties of a project when using eclipse? In our code base we have a dependency on the ant version used in eclipse.
In the the ant.jar has been set up as a library which the project uses
This is a pain when moving versions of eclipse as the Ant plugin folder n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I add attributes to a method at runtime? We're using Microsoft.Practices.CompositeUI.EventBroker to handle event subscription and publication in our application. The way that works is that you add an attribute to your event, specifying a topic name, like this:
[EventPublication("example", PublicationScope.Gl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Direct3D: Wireframe without Diagonals When using wireframe fill mode in Direct3D, all rectangular faces display a diagonal running across due to the face being split in to two triangles. How do I eliminate this line? I also want to remove hidden surfaces. Wireframe mode doesn't do this.
I need to display a Direct3D ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Group by alias (Oracle) How to 'group by' a query using an alias, for example:
select count(*), (select * from....) as alias_column
from table
group by alias_column
I get 'alias_column' : INVALID_IDENTIFIER error message. Why? How to group this query?
A: Nest the query with the alias column:
select count(*), ali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Using ScriptCombining through a ScriptManager on a Master Page ASP.NET 3.5 SP1 adds a great new ScriptCombining feature to the ScriptManager object as demonstrated on this video. However he only demonstrates how to use the feature with the ScriptManager on the same page. I'd like to use this feature on a site where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pretty printing of DateTime values in C# I'm hoping that someone has found a way of doing this already or that there is a library already in existence. It's one of those things that would be nice but is in no way necessary for the time being.
The functionality I'm looking for is something like datejs in reverse.
Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Automatic BizTalk Versioning in My Build Process In all of my other .net apps my build process (a mixture of nant and custom tasks) automatically updates the [AssemblyVersionAttribute] AssemblyInfo.cs with the current build number before the call to msbuild, stamping in the build number in the version number.
I'm no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Good tool to collect issues, improvements, ideas I need a tool for collecting feedback and new ideas inside our company regarding our internal IS product. The problem is the acceptance level for such a tool.
Most of our colleagues are not IT oriented, so a solution like BugZilla or Jira is way to complicated for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to open a new tab and change the current page <form id="frm_1" name="frm_1" target="_self" method="GET" action="local_page.php" >
</form>
<form id="tgt_1" name="tgt_1" target="_blank" method="POST" action="http://stackoverflow.com/" >
</form>
<a onclick="test(event, '1'); " href="#" >Click Here</a>
<script>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Changing frequency of ASP.NET cache item expiration? I noticed that the ASP.NET cache items are inspected (and possibly removed) every 20 seconds (and oddly enough each time at HH:MM:00, HH:MM:20 and HH:MM:40). I spent about 15 minutes looking how to change this parameter without any success. I also tried to set the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: H1 in article page - site title or article title? Within an article-oriented page (such as a blog post), the <h1> element (level 1 heading) is commonly used to markup either:
*
*the blog title (i.e. the often-large site title at the top of the page, not to the <title> element), or
*the article title
What is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: URL redirects; for general purpose use, which is better: server-side or client-side? Take a very simple case as an example, say I have this URL:
http://www.example.com/65167.html
and I wish to serve that content under:
http://www.example.com/about
UPDATE: Note that the 'bad' URL is the canonical one (it's produced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Calling a control's Validate() method using Reflection I'm currently in the process of writing a wizard and want to make each page validate before moving onto the next page.
I want to prevent the user from progressing by calling the Validate() method on every child control on the page and and stopping navigation if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: InstallShield2009 Unicode Support Our installation program is written using InstallShield2009, and as part of certification requirements we have to support Unicode throughout.
The application itself is .NET, so supports Unicode natively, however on testing our installation with a Chinese character set we can see pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery document.createElement equivalent? I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on.
var d = document;
var odv = d.createElement("div");
odv.style.display = "none";
this.OuterDiv = odv;
var t = d.createElement("table");
t.cellSpacing = 0;
t.className = "text";
odv.appen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1345"
} |
Q: How do I theme Form API buttons in Drupal? The default output from Drupal's Form API is:
<input id="edit-submit" class="form-submit" type="submit" value="Save" name="op"/>
How do I theme that so I get:
<button id="edit-submit" class="form-submit" type="submit">
<span>Save</span>
</button>
I need the inner span-t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where do you draw the line between design and architecture? The Agile architecture question makes me wonder this.
Does it depends of what is being build ? Do applications (I mean single
computing program here) have an architecture ?
UPDATE: to try to clarify the question, I'll give my opinion on the questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Drawing icons instead of bitmaps in a MFC CMenu? I can use an bitmap in a menu
CMenu men;
CBitmap b;
b.LoadBitmap(IDB_0);
men.AppendMenu( MF_ENABLED,1,&b);
I can draw an icon into a DC
CImageList IL;
IL.Create(70, 14, ILC_COLOR16 | ILC_MASK, 1, 0);
IL.Add(AfxGetApp()->LoadIcon(IDI_0));
IL.Draw ( pDC, 0, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to debug a disappearing app On a Windows 2003 server I have a pure .NET 3.5 C# app (no unmanaged code). It connects to various other remote systems via sockets and acts like a data hub. It runs for 10-15 hours fine with no problem but from time to time it just disappears. If I watch the app using task manager th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting array subsets efficiently Is there an efficient way to take a subset of a C# array and pass it to another peice of code (without modifying the original array)? I use CUDA.net which has a function which copies an array to the GPU. I would like to e.g. pass the function a 10th of the array and thus copy each 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Blank page in IE6 A site I am working on that is built using PHP is sometimes showing a completely blank page.
There are no error messages on the client or on the server.
The same page may display sometimes but not others.
All pages are working fine in IE7, Firefox 3, Safari and Opera.
All pages are XHTML with this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programmatically start UserControlTestContainer.exe I implemented a C# user control and succesfully tested it with the UserControlTestContainer.exe by manually interacting with it. Now I would like to programmatically, instead of manually, feed data into the control, through my unit tests and then automatically disp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it OK to return a KeyValuePair from a .NET function? I was just working on a function that I needed to return two values, one being a column name and one being the value of that column for that current row. I am returning KeyValuePair(of String,Object). I was wondering if this is a good idea or does it make it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are there any standards to follow in determining where to place menu items? In developing Windows forms based application, are there any standards that should be followed when designing your form's main menu system?
Most windows applications with menu systems will have your standard File | Edit | View | Tools | He... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get shortcuts to work with multiple TActionMainMenuBar objects in a single form? I have an application with a main form. In this form I have placed three TActionMainMenuBars, because the application essentially runs in three different modes.
The menu bars are all constructed from actions stored(proxied) in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I create a ZIP file of my Cruise Control builds? I use CruiseControl.NET to automatically build my .NET 3.5 web applications, which works a treat. However, is there any way to automatically create a ZIP file of these builds, and put the ZIP's into a separate directory?
I have seen this is possible using NAnt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Exception vs Validation I've just come across a property setter that catches exceptions (all Exceptions; I know that's bad, but it's not relevant here), and only logs them. First of all, I think it should through them again as well; why wait for a crash and a log study when you can know something is wrong right awa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Good ruby gem sources? What good ruby gem sources would you recommend, besides http://gems.rubyforge.org/ and http://gems.github.com/? It seems that RubyForge is missing most of the gems I look for these days...
A: Basically I agree that even if you are hosting projects on github or elsewhere all stable releases sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Unit SysUtils was compiled with a different version of SysConst.SMonitorLockException when trying to compile project in Delphi 2009 I'm trying to compile a project and I'm getting this error.
The error occurs in a RemObjects source file, but I think it doesn't have anything to do with RemObjects.
Anyway this error i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hooking sycalls from userspace on Linux Is there any way to catch all syscalls on Linux? The only solution I know of is using LD_PRELOAD à la fakeroot, but that only works for dynamically linked applications. Furthermore, this approach requires enumerating all syscalls which is something I'd like to avoid.
A: I thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I use identical names for fields and constructor parameters?
class C {
T a;
public:
C(T a): a(a) {;}
};
Is it legal?
A: if the formal parameter and the member is named same then beware of using this pointer inside constructor to use the member variable
class C {
T a;
public:
C(T a): a(a) {
this->a.sor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Call a specific button onClick event when the enter key is pressed C# I'm trying to get a specific asp:button onclick event to fire when I press the enter key in a specific asp:textbox control.
The other factor to be taken into account is that the button is within a asp:Login control template.
I've no idea how to do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Custom error page configured in IIS for code 400 (bad request) is ignored For my website I configured some custom error pages.
If I generate a 404, the redirect works fine.
When hitting a 400, the "bad request" text shows up instead of the configured URl.
As a test I copied the URL from 404 to 400. No change.
Then I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I get latest clearcase label programmatically from C#? I am trying to put version information to my C# GUI framework retrieved from the latest ClearCase label. This was originally done from Visual Soursafe as below.
vssDB = new VSSDatabaseClass();
vssDB.Open( databaseName, "vssadmin", "vssadmin" );
VSSItem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JCanvas3D vs Canvas3D Can anyone please tell me the issues that we face when using JCanvas3D instead of Canvas3D?
How to achieve transparency using JCanvas3D?
Regards,
hariprasad
A: The only reference to JCanvas3D I can find right now is in a com.sun.j3d.exp.swing package. The API for that package actually has an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set the width of the exponent field for an ostream? This code:
#include <iostream>
int main( int, char **argv )
{
std::cout << 1.23e45 << std::endl;
}
prints
1.23e+045
when compiled with MS Visual Studio 2003, and
1.23e+45
on my Linux machine.
How can I specify the width of the exponent field (and why ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Javascript library for building desktop-like web application: ExtJS, jQuery, YahooUI, Mocha, SproutCore, Cappuccino, others? I am evaluating several Javascript UI toolkits for building web applications that have a desktop-like feel, mainly because of dialogs and window management.
I looked at several options - here ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Where does DLLImport look for unmanaged DLLs? A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime look to resolve that DLL dependency? Would I have to dump the DLL and all of its dependencies in the bin folder?
A: I think it is working like LoadLibrary.
Maybe Windows path search... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to stop BaseHTTPServer.serve_forever() in a BaseHTTPRequestHandler subclass? I am running my HTTPServer in a separate thread (using the threading module which has no way to stop threads...) and want to stop serving requests when the main thread also shuts down.
The Python documentation states that BaseHTTPServer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How do I sort arrays using vbscript? I'm scanning through a file looking for lines that match a certain regex pattern, and then I want to print out the lines that match but in alphabetical order. I'm sure this is trivial but vbscript isn't my background
my array is defined as
Dim lines(10000)
if that makes any diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Session management using Hibernate in a Swing application How do you do your Hibernate session management in a Java Desktop Swing application? Do you use a single session? Multiple sessions?
Here are a few references on the subject:
*
*http://www.hibernate.org/333.html
*http://blog.schauderhaft.de/2008/09/28/hib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: floating point rounding detection I'm using java and referring to the "double" datatype.
To keep it short, I'm reading some values from standard input that I read in my code as doubles (I would much rather use something like BigInteger but right now it's not possible).
I expect to get double values from the user but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing parent properties/methods in Actionscript 3.0 I'm trying to control the main timeline of my flash application from a MovieClip that is a child of the main stage. Apparently, in ActionScript 2, you could do that using _root, but using root (since _root no longer exists) now gives an error:
root.play();
"10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Will a NTP client work against a SNTP server? SNTP is a simplification of the full NTP specification.
I'd like to use a full NTP client against the internal SNTP server incorporated in Windows XP. Will that work or is a full NTP server required for the NTP client to work?
A: I've found the answer in the SNTP RFC 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to convert IList or IEnumerable to Array I have a HQL query that can generate either an IList of results, or an IEnumerable of results.
However, I want it to return an array of the Entity that I'm selecting, what would be the best way of accomplishing that? I can either enumerate through it and build the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Is there a no-duplicate List implementation out there? I know about SortedSet, but in my case I need something that implements List, and not Set. So is there an implementation out there, in the API or elsewhere?
It shouldn't be hard to implement myself, but I figured why not ask people here first?
A: Why not encaps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: How do I synchronize the SelectedItem of a ListBox? I have this ListBox which is bound to an ObservableCollection. Each object in the list implements an interface called ISelectable
public interface ISelectable : INotifyPropertyChanged
{
event EventHandler IsSelected;
bool Selected { get; set; }
string ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I monitor the thread count of a process on linux? I would like to monitor the number of threads used by a specific process on Linux.
Is there an easy way to get this information without impacting the performance of the process?
A: $ ps H p pid-id
H - Lists all the individual threads in a process
or
$cat /pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "191"
} |
Q: What is the best low-tech protocol to simulate drawing names out of a hat and ensure secrecy? Each year at Thanksgiving, my family has drawn names out of a hat to determine who they'll be a "Secret Santa" for the Christmas gift exchange. It's important to our family culture that no one else in the family knows who e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Inheritance and interfaces This is somewhat of a follow-up question to this question.
Suppose I have an inheritance tree as follows:
Car -> Ford -> Mustang -> MustangGT
Is there a benefit to defining interfaces for each of these classes? Example:
ICar -> IFord -> IMustang -> IMustangGT
I can see that maybe other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you remove the "box head" in a Facebook application? I'm currently developing a Facebook application which will eventually end up on a Facebook Page. The problem is that I don't know how to remove the box header (handle?) with the application name and the close-button.
I've seen other applications on Pages be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check whether the Question and Password in ASP.NET Membership is correct or not without using Password I am having an ASP.net Membership I need to verify the User Question and Answer.
I dont need to use Password Because its Hashed we cannot validate it
MembershipUser msUser = Membership.GetUser("Rasel");
than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: git-svn: what's the equivalent to `svn switch --relocate`? An svn repository I'm mirroring through git-svn has changed URL.
In vanilla svn you'd just do svn switch --relocate old_url_base new_url_base.
How can I do this using git-svn?
Simply changing the svn url in the config file fails.
A: This handles my situati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Swing: Canvas overlaps menu I have a JFrame with a menu bar and a canvas covering all the remaining surface. When I click on the menu bar, the menu opens behind the Canvas and I can't see it. Has anyone experienced this? Other than resizing the Canvas (which I am reluctant to do) is there any solution?
Thanks,
Vlad
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Easy way to add a context action to Eclipse I'm trying to add a very simple action to the context menu of Eclipse: clicking with right button over a folder object, this action should call an external tool (configured in the "External Tools") using the path of the folder as the only parameter.
I've found a tutorial o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I optimize this phone-regex? Ok, so I have this regex:
( |^|>)(((((((\+|00)(31|32)( )?(\(0\))?)|0)([0-9]{2})(-)?( )?)?)([0-9]{7}))|((((((\+|00)(31|32)( )?(\(0\))?)|0)([0-9]{3})(-)?( )?)?)([0-9]{6}))|((((((\+|00)(31|32)( )?(\(0\))?)|0)([0-9]{1})(-)?( )?)?)([0-9]{8})))( |$|<)
It formats Dutch and Belgian phone nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Run-Time Check Failure #2 - Stack around the variable 'x' was corrupted I receive this Run-Time Check Failure upon the return in the following code. I believe similar code is running fine elsewhere in the program. Any ideas?
String GetVariableName(CString symbol, CString filepath)
{
char acLine[512];
char ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the MSIL to call a base class's event handler? I have a class called EventConsumer which defines an event EventConsumed and a method OnEventConsumed as follows:
public event EventHandler EventConsumed;
public virtual void OnEventConsumed(object sender, EventArgs e)
{
if (EventConsumed != null)
Ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I implement the WS addressing using WCF? How do I implement the WS addressing using WCF?
A: WCF automatically inserts appropriate WS-Addressing headers into messages created with the wsHttpBinding, and probably with some other bindings too.
Did you mean that you want to exert some control over those headers?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Foreign key referencing composite table I've got a table structure I'm not really certain of how to create the best way.
Basically I have two tables, tblSystemItems and tblClientItems. I have a third table that has a column that references an 'Item'. The problem is, this column needs to reference either a system ite... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot turn off persistent tracking cookies in CFMX 8 CFMX 8 Enterprise
I have turned on the "Use J2EE session variables" setting under Memory Variables because security requirements state that persistent cookies cannot be used.
I understood that turning this setting on will tell CF to only create and use a "JSESSIO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Share variable across site ASP.NET I have a class isSearching with a single boolean property in a 'functions' file in my webapp. On my search page, I have a variable oSearchHandler declared as a Public Shared variable. How can I access the contents of oSearchHandler on other pages in my webapp?
Code with Session..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Control key plus mouse wheel What's the better way to handle the ctrl + mouse wheel in C#?
I've figured out how to handle the MouseWheel event but how to know that the ctrl key is being pressed too?
A: Use the static property like:
System.Windows.Forms.Control.ModifierKeys
| {
"language": "en",
"url": "https://stackoverflow.com/questions/268796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to calculate the correct height for an auto-expanding textbox in Silverlight? In my Silverlight app I want a multi-line text box to expand every time the user hits Enter.
The difficult part is how to calculate the correct height based on the number of text lines.
I have tried the following but the textbox become... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I determine what AD security groups the current user is in from within an SSRS report? I have a need to determine what security group(s) a user is a member of from within a SQL Server Reporting Services report. Access to the report will be driven by membership to one of two groups: 'report_name_summary' and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Uninitialized variables and members in Java Consider this:
public class TestClass {
private String a;
private String b;
public TestClass()
{
a = "initialized";
}
public void doSomething()
{
String c;
a.notify(); // This is fine
b.notify(); // This is fine - but wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Code separation in AJAX applications What are some strategies to achieve code separation in AJAX applications?
I am building a PHP application that I would like to have a nice AJAX front end on. I have long since learned to use some kind of templating in my PHP code to make sure I maintain good separation between m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Accessing a ColdFusion datasource from Java code I have a servlet that I would like to run within ColdFusion MX 7. I would like to make use of an existing ColdFusion DSN as a javax.sql.DataSource, if possible.
I thought something like
coldfusion.server.ServiceFactory.getDataSourceService().getDatasource(dsname);
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using strings with "general purpose" XML in WS - good or bad? We're working now on the design of a new API for our product, which will be exposed via web services. We have a dispute whether we should use strict parameters with well defined types (my opinion) or strings that will contain XML in whatever structure nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hibernate Transaction Manager Issue I am new to Hibernate and attempting to run a java/spring example that retrieves data from a table in MS SqlServer. Everytime I try to run the program, the data source loads ok. But when spring tries to load the session facotry it gets the following error:
Exception in thread "ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why do we need new keywords for Covariance and Contravariance in C#? Can someone explain why there is the need to add an out or in parameter to indicate that a generic type is Co or Contra variant in C# 4.0?
I've been trying to understand why this is important and why the compiler can't just figure it out..
Thanks,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is it possible to write Quake's fast InvSqrt() function in C#? This is just to satisfy my own curiosity.
Is there an implementation of this:
float InvSqrt (float x)
{
float xhalf = 0.5f*x;
int i = *(int*)&x;
i = 0x5f3759df - (i>>1);
x = *(float*)&i;
x = x*(1.5f - xhalf*x*x);
return x;
}
in C#? If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Strange url on localhost when debugging web app in C#.Net2 http://localhost/XYZ/Client/(S(enlodz55ov4ncafza0gpp045))/Info/Rates.aspx
Does anyway know what /(S(enlodz55ov4ncafza0gpp045))/ means?
Any help appreciated.
A: It's the session identifier if you're using cookieless session state.
See this MSDN article: http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Character sets If I need a varchar(30) field, for example, that needs to contain several different foreign character sets, is there one particular language type that I can use in MySQL? For example, I have a field contains names in Chinese, Russian, English, Spanish and Portuguese, and possibly more in the fu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I dump an entire assembly to source files using reflector? Is there a way to dump an entire assemblies source to files using reflector?
A: I have had great luck with the FileDisassembler plug-in.
A: Yes, right click on the assembly and choose Export...
| {
"language": "en",
"url": "https://stackoverflow.com/questions/268858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What do you do if the file in TFS is locked by someone else? Someone left the organisation but before leaving, he locked all the files for an unknown reason.
How do you unlock them all so that the other developers can work?
A: This was the only way I resolved this, which involved deleting the user's workspace.
If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/268865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |