text string | meta dict |
|---|---|
Q: capturing global keypresses in Java So I want to trigger an event (pausing/unpausing some media) whenever the user presses spacebar anywhere in the my Swing app.
Since there are so many controls and panels that could have focus, its not really possible to add keyevents to them all(not to mention gross).
So I found ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Microsoft XML Parser 3.0 There is an application where I work that uses the Microsoft XML parser 3.0. I couldn't find any documentation about it and that's becoming a problem, because we cannot use this web application with Firefox, Safari and etc. Am I wrong?
Can we install the XML parser 3.0 in different browsers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: SQL Express 2005, Secure Database File I have built an application that uses SQL Express 2005 and I want to deploy it, but the problem is that anyone who has SQL Management Studio(or something like that) installed on his computer, can connect to my database and change it.
Is there anyway to prevent end-users from s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WS Addressing What is WS Adressing?
Thanks
Sekar
A: WS-Addressing or Web Services Addressing is a specification of transport-neutral mechanisms that allow web services to communicate addressing information.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/264705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: converting character encoding using a posix c function Is there a standard posix C function to convert encodings, say from windows-1251 to utf-8 and back?
A: Yes, it's iconv().
References:
*
*http://www.opengroup.org/onlinepubs/009695399/functions/iconv.html
*http://www.opengroup.org/onlinepubs/009695399/functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multiple control buttons for a maximised MDI child in .NET WinForms MDI Bug http://www.dicu.com/pics/bug_mdi.jpg
That's what I get when I try to automatically maximize MDI children.
The code is something like this:
this.IsMdiContainer = true;
child = new Form();
child.MdiParent = this;
child.WindowState = FormWindow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a convenient way to do analytics of a servlet? Traditional logfile analytics tools (awstats, statcounter) or general web analytics (google analytics, yahoo web analytics) are not suitable for analyzing traffic on servlets. Is there a good alternative to log messages using a logging framework (log4j for exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Properties embedded within another object I am trying to use a business object that I am passing to the report.rdlc. The properties in my object are not directly exposed. The properties I require are embedded within another object inside the top level object. As this is a WCF project I can't control what goes on at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why the 'it' in Entity Framework and EntityDataSource examples? Dumb question I'm sure, but why does Entity Framework EntityDataSource object require the where clause to contain 'it' as the first part of the object selector?
The documentation for the where clause (http://msdn.microsoft.com/en-us/library/cc488531.asp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: gdi+ Graphics::DrawImage really slow~~ I am using a GDI+ Graphic to draw a 4000*3000 image to screen, but it is really slow. It takes about 300ms. I wish it just occupy less than 10ms.
Bitmap *bitmap = Bitmap::FromFile("XXXX",...);
//--------------------------------------------
// this part takes about 300ms, terri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Making my ASP.NET website compatible with Firefox? I have an ASP.net website ( http://www.erate.co.za ) version 2.0.
When someone opens my website in Firefox everything looks different.
Why is that and how can I make it compatible?
Please help!
Etienne
A: The problems don't have anything to do with ASP.NET / C# Spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to manage application resources? We are developing a web application which is available in 3 languages.
There are these key-value pairs to translate everything. At this moment we use Excel (key, german, french, english) for this. But this does not work well ... if there is more than 1 person editing this file, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Resharper region options on Alt+Insert How can I set Resharper to wrap, say, the generated equality members with regions when selected from the Alt+Insert menu?
Thanks
A: there is usually a "wrap in regions" option towards the bottom of the dialog box, but not for this one. I would submit that to JetBrains as a re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to structure VB.NET Windows Forms applications What is the best way to structure a VB.NET Windows Forms application so that code can be reused and the application can be extended easily?
I used to create lots of new forms. This lead to lots of repeated code and forms which did similar things.
Now, for forms whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: BindingFlags.IgnoreCase not working for Type.GetProperty()? Imagine the following
A type T has a field Company.
When executing the following method it works perfectly:
Type t = typeof(T);
t.GetProperty("Company")
Whith the following call I get null though
Type t = typeof(T);
t.GetProperty("company", BindingFlags.Ig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "247"
} |
Q: Finding out what exceptions a method might throw in C# Is there any way to find out what exceptions might be thrown by any method in .NET code? Ideally I want to see what might be thrown and choose which ones I want to handle. I guess I want the information you'd get from the throws clause in java.
The situation is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Why are Maps returned by a JAX-WS call always empty? My web service method returns a Page object which includes the following methods:
public Map<String,String[]> getParameters() { ... }
public setParameters(Map<String,String[]> parameters) { ... }
On the client side, the JAX-WS generated getParameters() method ret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Suppressing C++ 'Post-Build Event' when using msbuild I am using msbuild to build a C++ project and I want to suppress the 'Post-Build Event'. I have tried the following properties with no success:
/property:PostBuildEvent=
/property:VCPostBuildEventTool=
Neither will make any difference and the post build events ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get Websphere 6.1 port number I'm currently working on a WebSphere 6.1 Web Project.
In my java code, how can i get the current running application port?
A: The servlet API gives you the local port in HttpServletRequest.
protected void doGet(HttpServletRequest request,
HttpServletResponse response) th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hiding DIV does not work properly in Opera My code works great in IE8, Firefox and Safari. But it doesn't work properly in Opera.
What happens is that the DIV is hidden but the space occupied by the DIV remains to appear in my web-page.
<div style=" z-index:-1;height :380; width:760; position:relative; text-align:c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: File Path Control How to put a File path control in VBA front panel? I want the user to be able to select the browse button and select the file path rather than putting up dialog boxes all over the place. I need the user to select three or more file paths.
A: After re-re-reading your Q, it seams you want to steer a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Counting the number of unique image occurences in a DataGridViewImageColumn In a DataGridView bound to a DataView, where cells in a column will contain one of two images from an ImageList (e.g. a green 'online' image or a red 'offline' image), how can you sum the number of occurences of each image when iterating thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql insert race condition How do you stop race conditions in MySQL? the problem at hand is caused by a simple algorithm:
*
*select a row from table
*if it doesn't exist, insert it
and then either you get a duplicate row, or if you prevent it via unique/primary keys, an error.
Now normally I'd think transacti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to change FormsCookieName at runtime in ASP.NET We would like to have the FormsCookieName of FormsCookiePath change per instance of our application. We have an application which has multiple instances on 1 server/domainname. Because of this we can only work in 1 application at the same time, since the cookies wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Logging for JBoss 3.2.5 Java EE Client I am trying to find out why a Java EE client (stand alone Java program that uses jbossall-client.jar) is failing to connect to a Java EE Server so it would be good to enable logging that occurs from within JBoss AS classes such as org.jnp.interfaces.NamingContext - presume ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Variable number of results from a function I have code similar to the following in many places:
var dbParams = db.ReadParams(memberID, product, GetSubscriptionFields());
Debug.Assert(dbParams.Count == 4);
_memberCode = dbParams[0];
_password = dbParams[1];
_userName = dbParams[2];
_reasonCode = dbParams[3];
ReadPa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Table header background image tiling vertically I have a gradient image as a background for a table header(9x18pix). This image is called through a selector class. When the header content grows to 2 lines(vertical height increases), the bg image is tiling vertically and looks ugly. How can I stretch the bg image ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the proper naming convention for a property 'ID' : ID or Id? Pretty simple question: When i have a persistable object, it usually has a property called ID (for abstract classes).
So .. is the naming convention ID or Id?
eg.
public int ID { get; set; }
or
public int Id { get; set; }
cheers :)
PS. This is for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Get notification on a Java process termination There is a console Java application which is supposed to run until it is stopped by Ctrl+C or closing the console window. How that application can be programmed to execute a clean up code before exit?
A: A Shutdown hook is the way to go, but be aware that there is no g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Rename Virtual Directory in IIS using VBScript? How can I rename a Virtual Directory (or Web Application) in IIS 6.0/7.0 using VBScript?
A: If you just want to change the site name in IIS 7. Edit the applicationHost.config file.
This file can be found in c:\Windows\System32\inetsrv\config\
Find and replace the name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Controlling the classpath in a servlet My servlet application includes a number of library .jars, some of which contain embedded log4j.xml or log4j.properties files. I'd like to ensure that log4j finds my log4j.xml first! I've tried searching for some specification of the priorities of the various classpath elements... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to keep track of information over several calls to render :partial I am using attribute_fu to render a nice block of rows for a particular table.
<%= f.render_associated_form(@foo.bars, :new => 5) %>
I would like to have the bar partial have some notion of a bit of state. (Because the notion is specific to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you use the DataContractSerializer outside of WCF? From the reading I've done I'm under the impression the DataContractSerializer handles versionong issues by, if members in the request are not there it will set the default value, and if addional members are in the request but not in the definition the serialize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Define the content-type of an element together with an enumerable attribute I am having trouble defining the content-type of an element ("phonenumber") whilst at the same time defining a property ("location") with enumeration restrictions.
Here's where I'm stuck:
<xs:element name="phonenumbers">
<xs:complexType>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deleting records in LINQ with foreign keys - invalid cast exception I have a simple database:
ARTICLE
----------
ArticleId (PK),
ArticleTitle
..other stuff...
USER-ARTICLE
------------
ArchiveId (PK),
UserId,
ArticleId
..other stuff...
The articleId's are foreign keys.
I want to be able to delete a user article r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best mechanism for storing authentication settings in a WinForms app I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my question is how should I store the password that is needed to create a NetworkCrednetial object?
The application doesn't have a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Retrieving specific fields in a Solr query? I am running a Solr instance on Jetty and when I search using the Solr admin panel, it returns the entire document. What should I do to get only specified fields from each Solr document returned by the search?
A: From the Solr Admin home page, click on "Full Interface". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: JMS queue logging/browsing for all messages (invisible consumer for queue) (OpenJMS) do you have idea, if there would be some nice way to browse/log JMS queues? (I'm using OpenJMS)
For topics I can just add one consumer more and that's about it but with queues I haven't finished with a solution yet. I would like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I calculate tables size in Oracle Being used to (and potentially spoiled by) MSSQL, I'm wondering how I can get at tables size in Oracle 10g.
I have googled it so I'm now aware that I may not have as easy an option as sp_spaceused. Still the potential answers I got are most of the time outdated or don't work.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: How to create own header.jsp in JBoss Portal with language support? I want to create own header.jsp file instead of the one included in the JBoss Portal 2.6 but have to support the locale set by the user.
The original header.jsp does not contain any i18n and I don't know how to do it, especially how to get the actua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it worth switching from Visual Studio 2005 to Visual Studio 2008? As a team we are using Visual Studio 2005 with framework 3.0. I am thinking if it will be nice for us to switch to Visual Studio 2008 with framework 3.5 ? Is it worth it ?
Thanks.
A: 100% worth it, agreed.
Also switching to 3.5 with new projects (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Make an element centred when it is alone, but aligned to the right when with another element We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a few angles for this, we can't seem to make it work. We're not averse to using JavaScript, it just feels that a CSS based solution oug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Assembly not referenced error in Windows Service I am designing a windows service and now deploying it.
I have the code:
ServiceInstaller serviceInstaller1 = new ServiceInstaller();
This instantiates the object (obviously, but throws the following compile-time error:
Error 1 The type 'System.Configuration.Instal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Count Duplicate URLs, fastest method possible I'm still working with this huge list of URLs, all the help I have received has been great.
At the moment I have the list looking like this (17000 URLs though):
*
*http://www.example.com/page?CONTENT_ITEM_ID=1
*http://www.example.com/page?CONTENT_ITEM_ID=3
*http://ww... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create firefox3 sidebar? Hi I want to create sidebar in Firefox 3 but have no clue how to do this.
I find tutorial on MDC (https://developer.mozilla.org/en/Creating_a_Firefox_sidebar) but after installation extension do not work with "not compatible with Firefox 3.0.3" error.
Does anybody have any tip or lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check if a double has at most n decimal places? Currently i have this method:
static boolean checkDecimalPlaces(double d, int decimalPlaces){
if (d==0) return true;
double multiplier = Math.pow(10, decimalPlaces);
double check = d * multiplier;
check = Math.round(check);
check = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I export a CSV from Access? I am trying to import an access database to mysql. I have created a mysql database, but do not want to use all of the colums in the access database. Is there a way to export only certain colums from the access database to csv?
A: 1) Make a query on the table with only the columns ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Samba for random access without mounting the file system? I am using a machine on which I do not have root access and would like to access files on a Samba server in random access mode. I know I can transfer the files in their entirety using smbclient but the files are very large (>1GB) and I would rather just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Creating documentation with maven I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the new repositories. However, I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to check if cookies are blocked using JavaScript How can I check if cookies are being blocked using JavaScript?
A: Write a cookie and then read it...
for example:
function readCookie(cname) {
a = trim(document.cookie);
res = '';
while(a != '') {
cookiename = a.substring(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to search a string in String array I need to search a string in the string array. I dont want to use any for looping in it
string [] arr = {"One","Two","Three"};
string theString = "One"
I need to check whether theString variable is present in arr.
A: Every method, mentioned earlier does looping either intern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Fastest way of finding object in collection with coordinates near point I have collection of objects. Each object represents a coordinate range (ie, a block). What I want is to find the object near another coordinate in a given direction.
Is there a way to do this without traversing the whole collection all the time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Effects on csproj file when upgrading to VS2008 SP1 We are in the process of upgrading our VS2008 to the new SP1, but noticed a change in the csproj files for something that we can't find information on. Seems that the ProductVersion in the csproj file is changed from:
<ProductVersion>9.0.21022</ProductVersion>
to
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/264984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you manage huge and barely maintainable XAML files? I'm having real difficulties with XAML files in Silverlight since they get very big very fast when using Blend. It just becomes a wall of text after only a handful of controls are added and animated.
I'm hoping a better vesion of Blend will come out soon, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Unicode Console Application in Delphi 2009 How can I create unicode console application with Delphi 2009?
If I do like this:
{$APPTYPE CONSOLE}
uses
SysUtils;
begin
writeln('öüğşç سيمانتت');
end.
I get the following:
ougsc ???????
A: I'm not sure that is what you're after, but you can create Unicode console a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is SetEvent atomic? Is it safe to have 2 or more threads call the Win32 API's SetEvent on the same event handler not being protected by a critical section?
A: It's safe, but remember that if one thread Sets it, and another thread Sets it at the same time, you're not going to get two notifications, just one; since t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best GUI framework for Java I want to start a new project with Java;
In the past I used to start with Struts + Tiles; but tiles was very complicated; I don't know the latest version of Tiles;
I need your recommendations in details for a good GUI framework;
Thanks.
Duplicate of this question.
A: There is no "best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Temporary backup / restore of data while testing I need to backup the original data from a table so I can fill it with test data, then restore it again after deving / testing etc.. Anyone know any quick ways to achieve this? I'm on SQL Server 2005.
Thanks.
A: You could use SSIS to backup the table to a table with a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why would LIKE be faster than =? A co-worker recently ran into a situation where a query to look up security permissions was taking ~15 seconds to run using an = comparison on UserID (which is a UNIQUEIDENTIFIER). Needless to say, the users were less than impressed.
Out of frustration, my co-worker changed the = com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Load image from file and print it using WPF... how? I'm looking for an example of how to load an image from file and print it on a page using WPF. I'm having a hard time finding good information about WPF printing.
A: var bi = new BitmapImage();
bi.BeginInit();
bi.CacheOption = BitmapCacheOption.OnLoad;
bi.UriSour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: PHP Background Processes I'm trying to make a PHP script, I have the script finished but it takes like 10 minutes to finish the process it is designed to do. This is not a problem, however I presume I have to keep the page loaded all this time which is annoying. Can I have it so that I start the process and then com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Does the onchange event propagate? I'm using event delegation to listen for events lower in the DOM, but it's not working for an onchange event on a select box. Does the onchange event propagate or bubble up the DOM?
Googling has failed in finding a conclusive answer.
A: According to specification, change, submit,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: How to create default instance after creating a named instance? when installing SQLServer2005 developer edition (not express) I created a named instance:
MYSERVERNAME/MYINSTANCENAME
Is it possible to
1) change the name of my named instance to default:
MYSERVERNAME
OR
2) create a new default instance (MYSERVERNAME... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to get the up time of the machine? I would like to display the up time of the machine my code is running, how can I do that?
A: using System.Management;
using System.Linq;
TimeSpan GetUptime()
{ var query = new SelectQuery("SELECT LastBootUpTime
FROM Win32_OperatingSystem
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: System.DirectoryServices is not recognised in the namespace 'System' I'm trying to use System.DirectoryServices in a web site project and I'm getting this error:
The type or namespace name 'DirectoryServices' does not exist in the namespace 'System' (are you missing an assembly reference?)
My project has a referen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Is there a VB.NET function to format a number as an Ordinal Is there a built in VB.NET function to format a number as an Ordinal or do I have to write my own?
There isn't in C# so I'm thinking there isn't :(
A: If an implementation were available for VB.NET, it would be available for C# as well - you can call into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: The best way to read large files in PHP? I have to read CSV files line by line which can be 10 to 20 Meg. file() is useless and I have to find the quickest way.
I have tried with fgets(), which runs fine, but I don't know if it reads a small block each time I call it, or if it caches a bigger one and optimize file I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Would an automatic MSIL to JavaScript conversion be useful? I've been working on a project called Axial that converts MSIL (compiled C# or VB.NET) to JavaScript. There are a few samples of working code, but some common situations don't work properly. (The current release doesn't work in production mode and the SVN c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to import CSV in mysql? OK, I have just been reading and trying for the last hour to import a CSV file from access into MySQL, but I can not get it to do it correctly, no matter what I try.
My table is like so:
+-----------------+-------------
| Field | Type
+-----------------+-------------
| ARTICLE_N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to find out when an Oracle table was updated the last time Can I find out when the last INSERT, UPDATE or DELETE statement was performed on a table in an Oracle database and if so, how?
A little background: The Oracle version is 10g. I have a batch application that runs regularly, reads data from a single Oracle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Connection pooling in hsqldb What is the best way to implement connection pooling in hsqldb, without compromising on the speed?
A: Hibernate gets connections from a DataSource, uses them and closes them. You need a connection pool or it will be very inefficient, consuming a lot of resources both on your app and on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Excel currency format with Apache POI I use Apache POI to write excel sheets. I'm very happy with it, but I have the following problem: my program is multi-currency and internationalized. In the excel sheet I write, I want my currency cells to be properly formatted. For that,
I need a routine that would build the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Eclipse Europa search references feature stopped working I'm working with Eclipse Version 3.2.1 Build M20060921-0945 on a MS-Windows 2000 SP4 using a JDK 1.5.0-12.
I takes my locale that is es-AR and sets all menu and context in Spanish which I don't like. So I had included in eclipse.ini file one parameter "-nl en"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Have you tried Spring Workflow already? Spring Workflow has now been published.
*
*Have you tried it yet? For what kind of scenario?
*What is your impression? How do you find it stacks up against other workflow libs?
*Found any good docs or tutorials?
A: OK, ignoring my beliefs shown in my previous post I did... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Compile 32 bit VS 2003 project to 64 bit I currently have a 32 bit dll that was created with Visual Studio 2003 in C++ using Managed Extensions. I'm now trying to compile a 64 bit version without having to upgrade to C++/CLI. I've been following the tutorial at this location. I'm getting the following error:
fatal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you help me gather a Java Best Practices online material collection? I work on a medium sized development team that maintains a 8+ years old web application written in Java 1.4.
For new development I always try to convince people to adhere to newer standards and best practices, That goes from simple things like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I add session management to a simple Perl CGI web page? I have a simple web page that till now didn't need any login. It is programed with Perl CGIs.
I would like to know the steps to add session support in order to have the login information available.
I don't want very complicated methods, because the web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java Video Player I need a java api, that cannot use JMF, to play video interpreted by the SO codecs but i want to retrieve the each frames in java code. Somebody know some?
A: Have a look at FMJ. It does not require the Java Media Framework (JMF).
They have an example at the bottom of the page that writes out the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery pause before form submit I need to pause for maybe 500 miliseconds before I submit a form. Here is what I have so far:
$(".rowqty input").bind("keyup", function() { $("#ViewCartPage form").animate({ opacity: 1.0 }, 3000).submit() });
so when someone changes the quantity of the input field it submits the fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate dump with unmanaged code crash? Is there a way that I can get a full crash dump when my application crashes suddenly?
The problem is that I suspect that it's due to unmanaged code that kills the .net framework itself, and because of that, unless there's a debugger attached to the application at the moment ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How does JSF generate the name of the form input field? Any idea anyone? Is it possible that we specify the name of the form input field?
How to go about doing that?
A: More generally, all JSF components have an ID.
If you don't provide one, JSF will create an automatic ID, using the format j_idXXX (XXX is a increm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Remote posting from one application to another application. Security issue? Is there any security issue if let say in one application we do a hidden post to another application to make use of that application functionality?
A: Depends. Are you using some sort of authentication and encryption?
There are ways this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Randomizing RegEx In PHP Basically I want to use RegEx to grab stuff in between paragraphs in a document. I think the expression would be:
<p>.+?</p>
Say it grabs 10 items using this RegEx, I then want PHP to randomly choose one of those and then save it to a variable. Any ideas?
A: // Test data
$str = '<p>a1</p><... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get the generated SQL statement from a SqlCommand object? I have the following code:
Using cmd As SqlCommand = Connection.CreateCommand
cmd.CommandText = "UPDATE someTable SET Value = @Value"
cmd.CommandText &= " WHERE Id = @Id"
cmd.Parameters.AddWithValue("@Id", 1234)
cmd.Parameters.AddWithValue("@V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "217"
} |
Q: Windows Workflow and compact framework Can you use Windows Workflow and Compact Framework 3.5?
I've just got an evaluation version of Visual Studio 2008 and I've had a look around but can't work out quickly if there is a way of doing this.
I just don't want to waste anymore time looking around if there is no way of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# equivalent of std::sort and std::unique I have a list of integers in C#. I wish to remove duplicates.
In C++ I would run it through the std::sort and then std::unique algorithms for a very efficient way of obtaining the unique list.
What's the best way to do the same thing in C#? In other words, I'm looking for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to register COM libraries at runtime? Let's say I'm developing an application that installs COM component and installer registers them. This works great.
Now the software is required to run from a memory stick. How can I register my libraries runtime and make sure, that the registry is cleaned up after running t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Issues with Image loading in J2ME applications on Motorola phones The standard way to load an image in a J2ME application is using the Image.createImage method and the recommended image format is PNG.
Now, the J2ME specs dont lay down any restrictions on the implementation of this method or the in memory representat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google friendly affiliate code I'm looking for a way to implement a referral system for my web site.
Initially I went with http://mysite.com/?affid=0001 and used the affid in the query string affid value to record referrals. The problem with this is that from some common Google search phrases the link with the affid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I negate a functor in C++ (STL)? I have some function to find a value:
struct FindPredicate
{
FindPredicate(const SomeType& t) : _t(t) {
}
bool operator()(SomeType& t) {
return t == _t;
}
private:
const SomeType& _t;
};
bool ContainsValue(std::vector<SomeType>& v, SomeType& value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Best practices for making an application customizable? I'm interested in reading about the various ways other developers and architects deal with the customization of certain areas of their applications for certain sites. Call outs to customer implemented pre and post processing, events doing the same, allowing bus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET url MAX_PATH limit I've found an issue with ASP.NET that I know at least has stumped one other person out there. We were trying to use an HttpModule to handle wildcard
requests to a web application. The generated url is dynamic and could
potentially be several hundred characters long. Unfortunately ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: DataColumns and Captions I'm trying to set up user-friendly captions in a DataSet which will be detected by an Infragistics grid during the binding process. I seem to recall that it was possible to do this in the underlying XSD of the typed dataset but any relevant links to this seem to have fallen off Google's rele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I avoid scientific notation for large numbers? I am doing 2^1000 and I am getting this:
1.07151e+301
Is there any way to actually turn this into a proper number without the e+301, or at least can anyone show me where I can see how to turn this in to a real number, by some way working with the e+301 part?
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Can I use a VB variable inside of an Embedded Javascript section? Is it possible to do something like this:
<% Dim foo as string = "bar" %>
<script type="text/javascript">
var baz = <%=foo %>
</script>
Where the <script> tag is embedded on my index page?
A: Yes, but make sure you put quotes around it and a se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can Adobe AIR applications execute processes on the local client machine? I want to be able to launch a third party process from within an Adobe AIR application (actually a command line process). Is there a security context that AIR apps run in that prevents this?
A: Two of the most requested features for Adobe AIR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sql Clr User Defined Type parsing a float and losing precision I've got a Clr user defined type that takes a string of values sepertated by a comma.
I'm losing a little bit of precision when converting to this type, I've narrowed it down to this line of code:
cast(cast(nlinkjt as nvarchar(100)) + ',' +cast(avglrwf a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I download a ascmd.exe? I need to execute MDX query from command line (MS AS 2005). I have heard, that there is a program named ascmd, which can do this. Unfortunately, when I went to codeplex page I found that page supposed to deliver an ascmd doesn't work. Please help if you know any other page, where I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to do substitutions using sed for windows (from cygwin) for utf16 files I am using sed from cygwin on Windows to do some substitutions in text files. Everything works fine for normal (ANSI) files, but it doesn't do anything for utf-16 files (no substitutions are made). Do you know how I can make it work for both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Additional jQuery events submitting my Ajax.BeginForm I have an ASP.Net MVC Ajax.BeginForm that submits and updates my page properly when I click the submit button.
The problem is I need additional events to do the same thing, like when they change the text of an input. The additonal events do properly submit the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/265293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |