text stringlengths 8 267k | meta dict |
|---|---|
Q: How to open a WPF Popup when another control is clicked, using XAML markup only? I've got two controls, a TextBlock and a PopUp. When the user clicks (MouseDown) on the textblock, I want to display the popup. I would think that I could do this with an EventTrigger on the Popup, but I can't use setters in an EventTri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: MORPG Server not catching disconnection Ok, simple problem hopefully.
I have started to make a simple server for a simple MORPG game im making, the client connected, and then disconnects, simple, the server catches the new client, but doesn't catch when it disconnects, whats wrong?
Im hoping its something stupidly o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: HowTo Multicast a Stream Captured with DirectShow? I have a requirement to build a very simple streaming server. It needs to be able to capture video from a device and then stream that video via multicast to several clients on a LAN.
The capture part of this is pretty easy (in C#) thanks to a library someone wrote ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to create a custom loading screen in JavaFX? I'd like to create a custom loading screen for a JavaFX application. Don't want the user to see the Java coffee cup icon, I want to put my own graphic there!
I've found out how to provide a static image, or even an animated GIF, but I'm more interested in a Flash-lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Persistent cookies from a servlet in IE I have a cookie which is generated from a servlet and that I would like to be persistent - that is, set the cookie, close down IE, start it back up, and still be able to read the cookie. The code that I'm using is the following:
HttpServletResponse response =
(HttpServl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Caching variables in the $_SESSION variable? I'm making a php web application which stores user specific information that is not shared with other users.
Would it be a good idea to store some of this information in the $_SESSION variable for caching? For example: cache a list of categories the user has created for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: constant values in Rails I have some data that I want to store somewhere in my Rails app because I use it for generating form fields, checking a submitted form to ensure its values are valid, etc. Basically, I want the data in one location because I make use of it in several places.
Previously, I was defining an in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Regular Expressions in VbScript? Does VbScript have a native implementation for Regex? I need to validate e-mail addresses on an old ASP application.
Any pointers would be great.
A: This example is by AlexCuse from LessThanDot
Function ValidEmail(ByVal emailAddress)
'this function will use regular expressions to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why does casting a null to a primitive(ie: int) in .net 2.0 throw a null ref exception and not a invalid cast exception? I was going through some code and came across a scenario where my combobox has not been initialized yet. This is in .NET 2.0 and in the following code, this.cbRegion.SelectedValue is null.
int id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to write a method that returns a class object of T? If I have a base class such that
public abstract class XMLSubscription <T extends XMLMessage>
Is it possible to write a method in XMLSubscription that returns a class object of T?
The only possible solution that I came up with is to have each descen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Web crawler links/page logic in PHP I'm writing a basic crawler that simply caches pages with PHP.
All it does is use get_file_contents to get contents of a webpage and regex to get all the links out <a href="URL">DESCRIPTION</a> - at the moment it returns:
Array {
[url] => URL
[desc] => DESCRIPTION
}
The problem I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Good database client (MS SQL Server) with auto-complete, small memory foot-print and free? Any sugestions?
Currently I'm using Squirell but it consumes quiet a bit of memory... I just use the sql client to run some queries and get the result but i absolutely need auto-complete of tables, columns, etc
A: SQL Server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC Caching vary by controller action parameter Is there any way I can vary caching by a controller action parameter using the outputcache attribute? We have varybyparam which will not work if my parameters are embedded within the URL in a REST manner.
A: Caching works this way by default. Different URLs g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle: How do I get the sequence number of the row just inserted? How do I get the sequence number of the row just inserted?
A: Edit: as Mark Harrison pointed out, this assumes that you have control over how the id of your inserted record is created. If you have full control and responsibility for it, this should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Can I use LAMP+AJAX for a (almost) Real Time System? I have a current system which is build as a Windows Application, and does certain tasks in very close to real time. There are nodes in a network that communicate with our custom server, communicating status, and sending and receiving commands.
We are looking to m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Casting Performance Implications When using the 'as' keyword in C# to make a cast which fails, null gets returned. What's going on in the background? Is it simply suppressing an exception so I don't have to write handling code for a failure?
I'm interested in the performance characteristics of it compared to a ty... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: C++ developing a GUI - classes? I do have to say I'm fairly inexperienced when it comes to C++, don't be too harsh on me.
Recently stumbled unto the wonders of the win32 API and have chosen to practice using it (I'd rather not use MFC/wxWidgets/etc at this point, just for educational purposes).
Well, my real questio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add a name.value to the header when generating a soap message from ruby with soap4r I've created a driver from wsdl
When I invoke my request, I would like the header to contain an element, i.e, I want to see something like the following:
REPLACE_WITH_ACTUAL
blah blah blah
However, lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PieChart label with a single slice I'm working with the PieChart and PieSeries components in Flex, and have ran into an issue. When the labelPosition property of a PieSeries is set to 'inside' and there is only one slice in the pie, the label doesn't get displayed.
Looking at the docs, I'm guessing its some quirk re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Pasting an image from clipboard to a website I need to come up with a solution for users to be able to paste an image on to a website, then upload that image on to the web server. I'm not sure what the right solution for this - I am pretty sure javascript is out of the question because I don't think it can handle bi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Persistent HTTP GET variables in PHP Let's say I have some code like this
if(isset($_GET['foo']))
//do something
if(isset($_GET['bar']))
//do something else
If a user is at example.com/?foo=abc and clicks on a link to set bar=xyz, I want to easily take them to example.com/?foo=abc&bar=xyz, rather than example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SSE4 instructions in VS2005? I need to use the popcnt instruction in a project that is compiled using Visual Stdio 2005
The intrinsic __popcnt() only works with VS2008 and the compiler doesn't seem to recognize the instruction even when I write in a __asm {} block.
Is there any way to do this?
A: Okay, this is a wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET VS2008 Ajax Problem I am using VS2008 Pro and the problem is the following.
I need to add eg.
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<ajaxToolkit:FilteredTextBoxExtender ID="Filter1" runat="server" ValidChars="AEIOU" TargetControlID="TextBox1"></ajaxToolkit:FilteredTextBoxExtender>
This pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are Generic Collections in C#? I'm trying to build my first generic list and have run into some problems. I understand the declaration looks like " List<T> ", and I have using System.Collections.Generic; at the top of my page. However, Visual Studio doesn't recognize the T variable.
What am I missing?
A: For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Increase number of characters in filename field of GetOpenFileName file selection dialog Our app allows multiple files to be selected in a file selection dialog which is shown via the GetOpenFileName function (this question also applies to folks using CFileDialog, etc...)
There appears to be a limit to the number of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I get desired z-index behavior from IE when using nested DIVs? I have three DIVs, something like this:
<div id="header">
...
</div>
<div id="content">
<div id="popup">
...
</div>
</div>
DIV#header is "position: fixed" and used as a non-scrolling header at the top of the screen. DIV#cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to measure time in milliseconds using ANSI C? Using only ANSI C, is there any way to measure time with milliseconds precision or more? I was browsing time.h but I only found second precision functions.
A: #include <time.h>
clock_t uptime = clock() / (CLOCKS_PER_SEC / 1000);
A: The best precision you can possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: Should inheritance (of non-interface types) be removed from programming languages? This is quite a controversial topic, and before you say "no", is it really, really needed?
I have been programming for about 10 years, and I can't honestly say that I can recall a time where inheritance solved a problem that could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Unit testing Event Handlers in SharePoint? Is it even possible?
So far, I found that we can buy TypeMock to mock the SharePoint objects and then use any free Mocking framework (Moq?) to do the rest of the job.
What do you think?
It seams that without TypeMock, it's impossible to do unit test within SharePoint.
To pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to know in Ruby if a file is completely downloaded Our issue is that our project has files being downloaded using wget to the file system. We are using ruby to read the downloaded files for data.
How is it possible to tell if the file is completely downloaded so we don't read a half complete file?
A: I asked ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "Thorough", tutorial on setting up Jetbrain's TeamCity CI server Does anyone know where I can find a good tutorial to walk me through how to setup TeamCity CI server? I am new to unit testing and the agile philosophy of development so I could use some help getting my feet wet. I'm working with Asp.NET code using NUn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Server asking the Client for information? In a client-server system, is it considered good architecture for a server method to "ask the client" for more information? If so, what's the best way to design such a scenario? Is there a "pattern" for this?
For example, suppose the end user selects a set of records they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript: addContent - How to package While making use of a sample for addContent (located at randomsnippets.com), I stumbled into a problem that I hope someone can help on. This may not be the best/only way to skin this cat, but we have a PHP/MySQL page that has to be modified to ADD rows for data entry when nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to handle file uploads through HTTP File uploads through web pages using the standard HTML input always seems clunky to me. If the user tries to upload a large file, it can go on forever and they get no queue that the file is actually being uploaded.
I have tried to do things like provide a gif graphic th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I hide a directory/path from Launch Services? I would like to be able to build test applications (e.g. the nightly Minefield/Firefox) without Launch Services deciding that they're the best way to open their assigned file types.
Is there a way to hide my ~/src directory from Launch Services, so that Finder won't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need Help Understanding how to use less complex regex in Python I am trying to learn more about regular expressions I have one below that I believe finds cases where there is a missing close paren on a number up to 999 billion. The one below it I thought should do the same but I do not get similar results
missing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to balance zone time against open and active communication within a development team? How to balance "zone" time against open and active communication within a development team?
A: Read "Peopleware"
Offices with doors.
phones you can turn off.
emails
Usable common areas with whiteboards.
There are some phases o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Subtraction of MySQL times inconsistent on different machines I have a MySQL query structured as follows:
SELECT time(c.start_time),
time(c.end_time),
time(c.end_time) - time(c.start_time) as 'opening_hours'
FROM my_shop c;
The data in start and end time is 1970-01-01 07:00:00 and 1970-01-01 19:00:00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Accessing Different url on different Machines for Watin Test Is there a common way to access the local machines csproj.user file to get the web site url for watin tests so that The tests can run on each developers local server as well as on IIS on the build server? I guess you could parse the xml file yourself, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# - cannot set form.height I've got this code in a pair of button click event handlers on a C# form:
class frmLogin
{
private const int SHORT_HEIGHT = 120;
private const int LONG_HEIGHT = 220;
private EventHandler ExpandHandler;
private EventHandler ShrinkHandler;
public frmLogin()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there ANY way to suppress the browser's login prompt on 401 response when using XmlHttpRequest I am using jQuert .ajax function to call a page method. The site is using FormsAuthentication. So when an authentication ticket expires a call to the page method will obviously cause a redirect to the login page.
Now, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can .NET source code hard-code a debugging breakpoint? I'm looking for a way in .NET (2.0, C# in particular) for source code to trigger a debugging break as if a breakpoint was set at that point, without having to remember to set a specific breakpoint there in the debugger, and without interfering with production ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Using separate log4net per Web Service / Page I have a web application with multiple web services. This web application has business and persistency layer. Is it possible to use separate log appender (log file) per web service?
This applies to web pages too. Essentially I want to separate my logs NOT based on the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: mysql: joining tables + finding records with an AND style query, rather than OR Note: Using MySQL 4.0, which means no subqueries (at present).
I have 2 tables:
*
*A "user_details" table
*A "skills" table, which has the user_id and a "skill_id", which maps to a predefined set of skills defined elsewhere.
The cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When are modal dialogs truly necessary? Modal dialogs are evil, but I keep reading "You should remove modal dialogs when possible"
When isn't it possible to remove modal dialogs? I mean, what are some truly modal tasks that force us to use evil modal dialogs?
The most common given example is the "Do you want to Sav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Actual pixel size of columns attribute for asp.net textbox What is the exact pixel size of one column when I used the columns attribute to determine a width of an ASP.NET textbox control?
<asp:TextBox id="MyTextBox" runat="server" columns="10" />
A: The Columns property is mapped to the size-attribute on the rend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Silverlight 2 ArgumentException I have a silverlight 2 app that has an ObservableCollection of a class from a separate assem/lib. When I set my ListBox.ItemsSource on that collection, and run it, I get the error code:
4004 "System.ArgumentException: Value does not fall within the expected range."
Here is part of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Silverlight enabled WCF Service vs Web Service vs ADO.NET Data Service Ok, all these methods of getting data in a Silverlight control are confusing me.
I've looked at ADO.Net Data Services, Web Service and Silverlight-enabled WCF services.
I'm just not sure when one is appropriate to use over another. What pros/con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Why are modal dialog boxes evil? Re the recent question at when are modal dialogs truly necessary?. WHY are modal dialog boxes evil? Is it because people don't read them anyway? Because they are often implemented so poorly? Something else?
A: In a consumer style application, they are more or less useless; users... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Current 'Users Online' Script What is the best script to use for showing the current visitors or guests Online?
Thanks!
A: As @Ryan Smith suggested, this greatly depends on the implementation details of the website. I'm sure that there is a off-the-shelf framework offering a storefront application with all the bell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Which framework do you use for building your applications? There are a number of framework out there that provide the skeleton for building applications such as CSLA, XAF, SCSF, ...
Do you use one yourself or do you build from scratch?
A: .NET is my favorite framework.
The applications I work on are usually too com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: initializing std::string from char* without copy I have a situation where I need to process large (many GB's) amounts of data as such:
*
*build a large string by appending many smaller (C char*) strings
*trim the string
*convert the string into a C++ const std::string for processing (read only)
*repeat
The d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: FCK Editor Alternatives I've been using the FCK Editor for several of my client sites in the past. Recently due to some new browser security updates(I'm assuming) some of the functionality is now breaking.
I was planning on updating those sites to the most recent version, but sometimes I think the FCK is overly com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: App Servers or Web Server for Spring Framework first of all: that might be a newbie question. However after few searches I cannot find anything that would bring me further.
Basically what would be the reasons to choose an app server over a Spring framework to develop a medium complex web application? I am fairly new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: T-SQL Background Processing I'm having the trouble finding the wording, but is it possible to provide a SQL query to a MS SQL server and retrieve the results asynchronously?
I'd like to submit the query from a web request, but I'd like the web process to terminate while the SQL server continues processing the query ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Entrek CodeSnitch with Windows Mobile 5/6 I have emailed Entrek and they seem to be asleep.
Does anyone else here use Entrek CodeSnitch? If so, have you found a way to use it with Windows Mobile 5, 6, or 6.1 ?
I really need to verify my application doesn't have any memory leaks, etc. And CodeSnitch does a great jo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Spring/JSP, where should formatting be performed? I'm using Spring, but this question applies to all JSP-controller type designs.
The JSP page references data (using tags) which is populated by the corresponding controller. My question is, where is the appropriate place to perform formatting, in JSP or the contro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Linq to SQL File Size What I want to learn is if we put every table into one LinqToSQL file, do we lose performance? Is it better to put each table in different LinqToSQL Files or it's the same thing with putting in single one.
I hope I have explained my question.
A: There won't be a run-time penalty, but it may sl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does a PHP Generator Framework or reference exist? Back in the scripted ASP and ColdFusion days, I used to work on projects that would build code generators for ASP or Coldfusion, typically in C++, in order to be more object oriented in application design and not have developers writing scripted code, which often wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Applying one or more field level filtering on search results How do I apply one or more field level filters on existing search results returned by lucene?
Thanks!
Ed
A: Bluntly, looking at your posting record, you seem to be re-asking the same or very similar question repeatedly.
For general help in the area of Luc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading an XML File using FileInputStream (for Java)? For my project I have to serialize and deserialize a random tree using Java and XStream. My teacher made the Tree/RandomTree algorithms, so I don't have to worry about that. What I don't know how to do is this: I am using FileInputStream to read/write the xml ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET Combo Box value seems to change when I disable it in Javascript I have a form in which the user can choose a component type from a combo box, and depending on that component they may or may not be able to choose a data type from another combo box.
When the user selects a component type, client-side javascrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why use the Visitor Pattern? Duplicate of: When Should I Use The Visitor Design Pattern
Why would someone want to use the visitor pattern? I've read a couple of articles, but I'm not getting something.
If I need a function to bill a custom, I could use
Custom.Accept(BillVisitor)
or something like
Bill(Customer)
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How to assign a click event handler to part of a drawn rectangle? Imagine I use the .NET graphic classes to draw a rectangle.
How could I then assign an event so that if the user clicks a certain point, or a certain point range, something happens (a click event handler)?
I was reading CLR via C# and the event sectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Will web applications replace desktop applications? Will everything go to the cloud? If so, in which direction? Google-Gears? Flash,AIR,JavaFX?
See also: Does desktop development matter?
A: Personally my dream for this is that you will just carry around a USB stick that contains an OS and all the applications you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do you read an archived eventlog file? Are there any libraries or resources available for parsing/reading an archived eventlogs?
A: There is this article Parsing event log(*.evt) file.
Then there is the Microsoft Event Log file format documentation (evt used on xp win 2003). So far the only information I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: VS2008, IIS7 web project, non-admin. When? What needs to happen before we can open Web Application Projects hosted in IIS7 with Visual Studio 2008 without running as Administrator? Are we talking about waiting for the next version of Visual Studio? Are there any existing workarounds?
I think it's implied by the ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java IOException only when running new Java 1.6 - someone please After an upgrade to XP and Java 1.6 one of our intranet apps is experiencing a problem when running a java applet in the browser. The java applet is a document editor and accepts a parameter to where the document is located. I assume it copies this fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get Time Lapse View in P4Win? In the past, on Windows XP machines, I was able to install P4V (the stupid platform-independent Perforce visual client that Perforce tries to shove down your throats), then after that, install P4Win (the wonderful clean robust mature visual client that Perforce is stupidly tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET MVC vs WebForms for First Page Load Speed for Big Projects We have a pretty big ASP.NET WebForm (web application) project with a lot of references to other libraries, other projects etc and most of the time after a compilation, the first time we load a page it takes a LONG time before rendering anything... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP, MySQL on IIS - MySQL not being loaded when serving pages I have, as best as I can manage, set up IIS (6.0), PHP (5.2.8) and MySQL (5.1.30) on Windows Server 2003, with all the involved mucking about (I think) in IIS and PHP to get things talking to each other.
PHP does work - however, I cannot use the mysql or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to dodge exceptions and when to handle them What guidlines do you use when deciding whether to let a method dodge an exception (ie: let the exception propogate up) or handle it once the exception is recieved?
Here is an example of what I am trying to ask
If I have three methods method1,2,3 and 3. Method1 calls ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML attribute bgcolor is deprecated: What To Use Instead? VStudio ASP.NET gives the following message:
Attribute 'bgcolor' is considered outdated. A newer construct is recommended.
What is the recommended construct?
bgcolor is within a <td> element.
Another related message is :
Attribute 'bordercolor' is not a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Debugging JavaScript in IE7 I need to debug JavaScript in Internet Explorer 7.
Unfortunately, its default debugger doesn't provide me with much information. It tells me the page that the error showed up on (not the specific script) and gives me a line number. I don't know if that is related to my problem.
It'd be n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "160"
} |
Q: How do you make linux GUI's? My main experience is with C && C++, so I'd prefer to remain with them. I don't want to use anything like QT, GTK, or wxWidgets or any tool kits. I'd like to learn native programming and this sort of defeats the purpose. With that in mind I'd also like to avoid Java.
I understand gnome a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What is the best Delphi n-tier low bandwidth technology? I need to deploy a Delphi app in an environment that needs centralized data and file storage system (for document imaging) but has multiple branch offices with relatively poor inter connectivity. I believe a 3 tier database application is the best way to go s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Populate TreeView from DataBase I have a database table (named Topics) which includes these fields :
*
*topicId
*name
*parentId
and by using them I wanna populate a TreeView in c#. How can I do that ?
Thanks in advance...
A: Not quite.
Trees are usually handled best by not loading everything you can at once... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Python - doctest vs. unittest I'm trying to get started with unit testing in Python and I was wondering if someone could explain the advantages and disadvantages of doctest and unittest.
What conditions would you use each for?
A: I don't use doctest as a replacement for unittest. Although they overlap a bit, the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "170"
} |
Q: Algorithm for "nice" grid line intervals on a graph I need a reasonably smart algorithm to come up with "nice" grid lines for a graph (chart).
For example, assume a bar chart with values of 10, 30, 72 and 60. You know:
Min value: 10
Max value: 72
Range: 62
The first question is: what do you start from? In this cas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: How do you track hosting / domain / SSL certificate expiry dates for customers? Not a programming question per se, but interesting for people who do commercial web development.
How do you track all of your clients' hosting, domain registration, and SSL certificate expiry dates?
Do you just keep a spreadsheet or is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I serve an image from the cgi directory under Tomcat? I have configured Tomcat 6 to serve Perl CGI scripts. That part is well documented and works ok for me.
But, when a browser requests an image from this CGI dir, Tomcat's CGI servlet refuses to serve the image, displaying instead merely the url of the imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: StackOverflowException serializing a .netTiers entity I have a simple WCF service:
public Order[] GetOrdersByStatus(int statusid)
{
OrderService os = new OrderService();
TList<Order> orders = os.GetByOrderStateID(statusid);
return orders.ToArray();
}
when this returns it throws a StackOverflowException... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET, Ninject and MVC: Performance Load problems problem description: This model works fine with one user at a time. As soon as I get multiple users at once, I get a serious of errors relating to not closing my SqlDataReader. When i turn off lazy loading like this:
persistenceModel.Conventions.OneToManyConvent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spam filter for ASP.NET? I'm looking for a spam filter that I can integrate into my ASP.NET application. I don't want any delegate services (e.g. Akismet) as I'm doing this for a high traffic website, any suggestions?
Edit:
I mean a post spam filter, it's a forum based website.
Edit:
Thanks for your answer but I'm n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Select current element in jQuery I have HTML code like this :
<div>
<a>Link A1</a>
<a>Link A2</a>
<a>Link A3</a>
</div>
<div>
<a>Link B1</a>
<a>Link B2</a>
<a>Link B3</a>
</div>
When user clicks a link from above HTML, I want to get the jQuery object of the corresponding <... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Problem with ArrayLists and reading a file I am having difficulty with the following method. I can't figure out if my problem is, but I have narrowed it down to not populating the array list from the file. Any help is greatly appreciated.
private void searchButtonActionPerformed(java.awt.event.ActionEvent evt) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS2008 binary 3x times slower than VS2005? I've just upgraded a native C++ project from VS2005-SP1 to VS2008-SP1
The first thing I tested was a very basic functionality test of the application and the first thing I noticed is that the main number-crunching algorithm performs three times slower in the VS2008 binary.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Magic with URL in asp.net - 3.5 This is my dilema:
My web site done in asp.net 3.5. I have buttons which if the user clicks should show images. The images are located at a third party and accessible via web url. So my app has to login to this third party app and they will return a url to me which i should then do a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternative to DLL's as objects (dynamically replaceable objects) I have an application that uses many different .NET managed DLL's as objects (each DLL implements a common interface). Each DLL also has a version number in the file name.
Suppose I create the object "Shape~01.dll." The application will use that DLL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get last MySQL binary log entry I'm using MySQL replication, and I'd like a status script running on the slave to report the last statement that was replicated over to the slave.
I can use "SHOW SLAVE STATUS" to get the current read and execute positions. But how do I use that information with mysqlbinlog to read t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Would this be a good case for polymorphism Sorry if this is a really basic question but I struggling with how I should attack this. I am trying to wrap up some commands for a OLE object, the basic spec looks like this:
Set Window window_id
//Units is part of the position setter.
[ Position ( x, y ) [ Units ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does the "@" symbol do in SQL? I was browsing through the questions and noticed this:
SELECT prodid, issue
FROM Sales
WHERE custid = @custid
AND datesold = SELECT MAX(datesold)
FROM Sales s
WHERE s.prodid = Sales.prodid
AND s.issue = Sales.issue
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Drupal 6 : CCK : Views2 : What ways would you substitute an image for a view-field Background: Customer X has a CCK-based Content Type (vendorxxentry) and is using Views2 to generate a listing of all the vendorxxentry nodes in a simple table.
One of the fields in vendorxxentry is called "vendorxxattitude", which ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I pass command-line arguments to a Perl program? I'm working on a Perl script. How can I pass command line parameters to it?
Example:
script.pl "string1" "string2"
A: If the arguments are filenames to be read from, use the diamond (<>) operator to get at their contents:
while (my $line = <>) {
process_li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: Is tight looping bad? Is tight looping in a program bad?
I have an application that has two threads for a game-physics simulator. An updateGame thread and a render thread. The render thread is throttled by causing the thread to sleep for some milliseconds (to achieve the frame-rate I want) and the updateGame thread... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: IE6 extra padding on bottom I have a div tag styled through CSS. I set the padding to 10px (padding:10px), it works just as I wanted in Firefox and IE7, but in IE6 it adds additional padding at the bottom (about 2-3px I think). Anyone has idea about what's happening here?
[update]
I just noticed this, the div tag I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Name that JQuery: do you know the exact specific jquery plugin(s) used to create this widget? If you look at the following link: What's new at New Hope
Look at the widget on the page entitled "What's new at New Hope" which contains the Web2.0 equivalent of a MARQUEE (I guess that's what you'd call it) complete with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: .NET Event when laptop is going into suspend mode? Is there anyway to get a handle to when a laptop is going into suspend mode and do something before it actually goes into suspend mode?
I assume this is not easy/possible because it would be ill-advised for the power management to honor any such software that was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to open project... cannot be opened because the project file cannot be parsed I have been working for a while to create an iPhone app. Today when my battery was low, I was working and constantly saving my source files then the power went out...
Now when I plugged my computer back in and it is getting good po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "105"
} |
Q: How to change structure of subversion repository? I'm a newbie with Subversion, so I don't now if this is a dumb question:
I've inherited a subversion repository with a flat structure with no /trunk /tags /branches top level).
I'd like re-structure it so that it follows the
/trunk
/tags
/branches
layout.
Is this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/361801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.