text stringlengths 8 267k | meta dict |
|---|---|
Q: Offline HTML templating processor for Windows I am teaching my friend how to make websites. I would like to keep the websites static, so that he does not [yet] have to learn PHP, worry about testing on his Windows machine, worry about the server configuration, security etc. The bad thing is that without some tool su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what user account does my IIS hosted wcf service run under? What user account does my .Net WCF service run under when I am hosting it in IIS 7?
Is it the IUSR_machine account?
What is the easiest way for me to run under a different account? (Just for this service, I don't want other things hosted in my IIS to be aff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Efficient way to handle COM related errors (C++) Efficient way to handle COM related errors in C++.
For instance:
switch (HRESULT_CODE(hresult)) {
case NOERROR:
cout << "Object instantiated and "
"pointer to interface IS8Simulation "
"obtained" << endl;
b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Loop through all elements in a ListView in virtual mode I have a reporting module which creates PDF reports from ListViews.
Now, I have a ListView in Virtual mode and therefore I cannot loop over the Items collection.
How do I loop over all elements in the list view from the reporting module?
I can get the VirtualLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript: Lazy Load Images In Horizontal Div? I have a div that has a bunch of thumbnails showing horizontally (with a horizontal scrollbar). Is there a way to lazy load these thumbnails and only show them once the user horizontally scrolls to their position? All the examples I've seen check the browser window, no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Install of Tomcat 5.5 on Ubuntu (using apt) leaves CATALINA_HOME unset I'm setting up my development environment for writing web applications using Java, and I'm in need of some help.
What I have done:
Installation of Java SE 6 from Sun
I installed (sudo apt-get install …) the following packages (one at a time as so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multithreading and concurency with C# In a Windows Form window, multiple events can trigger an asynchronous method. This method downloads a file and caches it. My problem is that I want that method to be executed once. In other words, I want to prevent the file to be downloaded multiple times.
If the method downloa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unreliable Oracle connection (intermittent error "Connect failed because target host or object does not exist") We recently changed physical DB's, new servers, new locations, same database schema and data and since the change over, whenever we try to connect directly to the DB in our own desktop type applications ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing an array as a function parameter in C++ In C++, arrays cannot be passed simply as parameters. Meaning if I create a function like so:
void doSomething(char charArray[])
{
// if I want the array size
int size = sizeof(charArray);
// NO GOOD, will always get 4 (as in 4 bytes in the pointer)
}
I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Spring.net Drop all adotemplate connections? I have an application which is connected to a database through a spring.net AdoTemplate. I am charged with creating a restore database method which keeps the app running but drops the network connections so as to drop the old database and bring up the new one. My questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make NHibernate delete child references when I delete a parent? I have a NewsFeed object mapped as such:
<class name="NewsFeed">
<id name="NewsFeedId">
<generator class="guid"/>
</id>
<property name="FeedName" not-null="true" />
<property name="FeedURL" not-null="true" />
<prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can you create custom events on non-UIComponent based objects in Flex 3? I have a simple object that get's geocoding data from the Google Maps API and I'd like it to dispatch a set of custom events depending on the response from Google. However, I don't have the addEventListener() and dispatchEvent() methods on thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NHibernate IQuery.List Error "Invalid index 4 for this SqlParameterCollection with Count=4." Long title, I know but I searched all over and couldn't find that error message coming from that function call so I thought this might be more useful.
This is the code snippet:
string hql = " from LabRequest r where 1 = 1 ";... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF EventRouting to Children Is there any way to broadcast a RoutedEvent to all of my children in WPF?
For example lets say I have a Window that has 4 children. 2 of them know about the RoutedEvent 'DisplayYourself' and are listening for it. How can I raise this event from the window and have it sent to all childre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best regex library for iphone sdk app? I'm confused about the regex libraries that are available in the iPhone SDK. For example RegexLite looks like it needs a dynamic link, and from what I understand, this is not possible for the SDK on the iPhone.
I want a RegEx library for data validation... which one is the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to recover from svn hotcopy backups Our current backup process is doing a SVN HOTCOPY every night, to a backup location on a different machine.
Can I somehow recover from that backup and retain all revision history?
Or do I need to use the svn dump/load?
Thanks,
Chandrajeet
A: As part of your daily backup, yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to create .NET interface with static members? In .NET 3.5, I'd like to create a singleton interface:
interface ISingleton <T>
{
public static T Instance {get;}
}
Of course that doesn't work but is what I'd like. Any suggestions?
EDIT: I just want it to be known that all singeltons will have a static property... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Spinning javascript menu I would like to create a spinning menu akin to the one done in flash here. Are there any relevant links you know about to help with this endeavor?
Thank you kindly.
A: You can do it with a series of images and just swap them. Without getting into complexities of cross-browser canvas/svg tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate Java code from an XSD that includes MSFT Serialization: GUID datatypes? I have used the Jaxme 2 libraries before to generate Java code from .XSD files without a problem. I'm currently encountering a problem generating Java from an XSD file that contains a http://schemas.microsoft.com/2003/10/Serializ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PostMessage occasionally loses a message I wrote a multi-threaded windows application where thread:
A – is a windows form that handles user interaction and process the data from B.
B – occasionally generates data and passes it two A.
A thread safe queue is used to pass the data from thread B to A. The enq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can intellisense be exported or extracted from Visual Studio to a text file? I'm trying to write some documentation for a webservice that has been provided by one of our vendors for an application we're integrating. A bunch of the interface is custom objects defined in the web service itself. The vendor has put up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Case insensitive 'Contains(string)' Is there a way to make the following return true?
string title = "ASTRINGTOTEST";
title.Contains("string");
There doesn't seem to be an overload that allows me to set the case sensitivity. Currently I UPPERCASE them both, but that's just silly (by which I am referring to the i18n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3350"
} |
Q: Move X number of rows in a table using jquery I'm trying to move X number of rows down in a table using jQuery...
I can do the following and it works....
/* Now let's move next 3 times to arrive at the foo account */
for (var rowCount = 1; rowCount <=3; rowCount++) {
foobarRow = $(foobarRow).next('tr');
}
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting a CGImage out of a PDF file I have a PDF file where every page is a (LZW) TIFF file. I know this because I created it. I want to be able to load it and save it as a bunch of TIFF files.
I can open the PDF file with CGPDFDocumentCreateWithURL, and get a page. I can even draw the page onto the screen.
What I W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Left outer join on two columns performance issue I'm using a SQL query that is similar to the following form:
SELECT col1, col2
FROM table1
LEFT OUTER JOIN table2
ON table1.person_uid = table2.person_uid
AND table1.period = table2.period
And it's either way too slow or something's deadlocking because it takes at le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Blueprint CSS affecting appearance of jQuery datepicker Does anyone have any pointers how to to fix the styling issue presented when using jquery ui's datepicker along side blueprint css framework? Specifically the table with the dates appears larger (wider) than the container it sits in.
A: I tried the other answ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How Many Static Methods is Too Many For One Class? UPDATE: Rephrasing the question to ask, 'are there too many' static methods (I realize that right now there are only 4 but I originally started with 2) in this class structure? If so, any suggestions on how to refactor these classes to use some sort of Finder class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Annoying eclipse automatically closing quotes I've always found the eclipse's automatic close quotes and parenthesis features to be useless. For example hitting on a single " will lead to
"<cursor>"
I don't need the second quote. It's annoying to remove afterward. How to turn this feature off?
Update: I now kept... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: Simple Facebook Connect Demo in ASP.NET Does anyone have a simple and successful demo implementation of facebook connect in an asp.net application. I am developing an asp.net web application and want facebook connect to be the primary method for logging in.
A: I was having troubles as well, but found that this st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: MSBUILD MSB4075 I converted my VS2005 to VS2008 and I get the following error:
error MSB4075: The project file must be opened in the Visual Studio IDE and converted to the latest version before it can be built by MSBuild.
Any help appreciated. Google failed me this time lol..
A: It sounds like you converted the sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Escaping Special Characters Posted to Servlet I have a jsp containing a form which posts to a servlet, when the servlet receives the parameters from the form the pound sign (£) is preceded with the following character Â. So £ becomes £. What is causing this and how can I get round it?
A: This sounds a lot like a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I implement State Transitions for a DFA in Java using java.util.Set I'm implementing a DFA as close as I can to the formal definition as a learning exercise (and blogging material)
I planned on using a java.util.Set where a set is involved in the definition.
The definition involves a set of tuples to define the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery scope or race condition in AJAX/getJSON I have a piece of jQuery code which invokes several getJSON() calls in quick succession:
var table = $("table#output");
for (var i in items) {
var thisItem = items[i];
$.getJSON("myService", { "itemID": thisItem }, function(json) {
var str = "<tr>";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: jQuery 1.3 - Issue with Setting an Attribute Value This is my first stackoverflow question, so try to be nice. ;-D
My issue is this, I am refactoring some existing javascript code and using jQuery to do it. In several places I've come across javascript code similar to the following:
// some js code working with the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Virtual Network of Virtual Machines I am developing software that is designed to run on a LAN. When multiple instances of the software are run on the network, they interfere with each other.
I want multiple team members to be able to test the program simultaneously. How would I do so (without altering the progra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploying a SharePoint WebPart with its Web Service Reference I'm trying to built a SharePoint Web Part that has as part of it a service reference to Another SharePoint server that I need to call from within vb code. However when I try to call the remote web service for the first time, I get the following in the lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java - Modifying serialVersionUID of binary serialized object A few months back I serialized a java.io.Serializable object into a file. Now I need to read the contents, but since then the serialVersionUID has changed, and now I'm getting a "class incompatible" error. I know for a fact that none of the data members... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I modify this image manipulation function done in codeigniter to be more efficient I think this function isn't as efficient as it should be. I'd appreciate some suggestions on how I can structure it to be faster and take less memory. This is what the code does:
*
*checks to see if the image was uploaded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Logic behind hiding elements I am having a dilemma in the logic of this particular issue. Forgive me if this is quite newbie question but I'd rather have a solid bg on it.
There are a lot of examples of this all around the web where you click on an element to display another element. such case may be a menu that whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hibernate generates invalid SQL query with MySQL I have the following JPA entity classes (example case). A House belongs on a single Street. A Street has many Houses.
@Entity
public class House {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
public Integer id;
public String name
@Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Balancing HTML/CSS Between Designers and Engineers I have a development process question.
Background: I work for a modest sized website where, historically, the designers created mockups/screenshots of what they wanted pages and components to look like, and the engineering team (myself included) turned them into htm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: zsh: stop backward-kill-word on directory delimiter In zsh, how can I set up the line editor such that backward-kill-word stops on a directory separator? Currently in my bash setup, if I type
cd ~/devel/sandbox
and then hit C-w point will be right after devel/. In my zsh setup, point would be after cd . I'd like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Is it possible to communicate directly over USB? Is it possible to have two applications on the same computer to talk to each other directly over USB (no cable, no associated devices)? Is it easy/hard? What API would you guys recommend?
Yes, I posted a similar thread, but it was asking specifically for a JAVA/US... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to handle IPv6 Addresses in PHP? After searching around somewhat thoroughly, I noticed a slight lack of functions in PHP for handling IPv6. For my own personal satisfaction I created a few functions to help the transition.
The IPv6ToLong() function is a temporary solution to that brought up here: How to store IP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Parsing Ambiguous Dates (Language Independent) I am curious what would be the best way to handle an ambiguous date string in any given language. When pre-validating your user input isn't an option, how should MM/dd/YYYY dates be parsed?
How would you parse the following ambiguous date and for what reason (statistica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL/T-SQL - how to get the MAX value from 1 of N columns? In SQL/Transact SQL, I am trying to update a temp table to take the latest date from 3 different date columns (in that temp table), and put that MAX date into a "latest date" column.
What is the best way to do this, using an update statement?
A: With only th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: sync SQL Server 2005 login passwords Background:
We are running a web application where each user has a login to the system. The application login is mapped to an actual SQL Server 2005 login (which we needed to create). Our development and disaster recovery sites are simply copies of this setup. On a nightly bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/444988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cloning or adding an input to a form in jQuery does not submit to PHP in Firefox $('#images_upload_add').click(function(){
$('.images_upload:last').after($('.images_upload:last').clone().find('input[type=file]').val('').end());
});
using this code to append file input's does not upload the file in firefo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Suppressing Linking Errors in G++ 3.4.6 Don't ask why, but is there any way to suppress a failed linking error?
Such as:
undefined reference to BLANK
This is in GCC 3.4.6
A: No, because they are errors and not warnings. By definition this means that the function was referenced someplace but not defined... that's n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent asp.net mvc from generating URLs with subfolders I have my site hosted on a subfolder (ApplicationPath). I have ISAPI Rewrite to translate from www.domain.com/Subfolder to www.domain.com. The problem is that asp.net MVC Html.ActionLink() (and similar functions) generates URLS with www.domain.com/Subfolder. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use linq to generate direct update without select G'day everyone.
I'm still learning LINQ so forgive me if this is naive. When you're dealing with SQL directly, you can generate update commands with conditionals, without running a select statement.
When I work with linq I seem to follow the pattern of:
*
*Select... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: NHibernate Mapping Issue (I think) Ok, so I have an object named "Business" (I know, I know, "Business Business Object")
When it saved its foreign keys are getting lost somehow. Everything else is saving. I have stepped through the code and followed the object up until the
session.SaveOrUpdate(businessObject);
meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I cleanup at request end in Catalyst? I'm trying to get some code called after each request completes using Catalyst. Basically, I want to run some code as part of finalize. Supposedly Catalyst::Plugin::Observe will do this, but it appears completely broken (just loading the plugin breaks Catalyst).
I'm tryin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make a wx Toolbar buttons larger? I've got a wx.Toolbar and I'd like to make the buttons larger. I've searched and can't seem to find any concrete documentation on how to do this.
I'm also wondering how well this will translate across platforms; what will happen to the buttons and icons on OSX?
A: It depend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I revert a file in TFS On occasion, I'll end up checking in a file to our TFS db that I didn't intend to.
Reverting to the prior version is quite tedious with my current approach.
If there a fast way to revert a file to a prior version in TFS? I'm open to command line, powertool, or UI approaches.
A: You nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: java.awt.HeadlessException - Applet not displayed I am using Tomcat 5.5.23, JDK 1.5 on HP Unix. We have an application which when invoked form tomcat starts an applet. It was working fine till JDK 1.4. But now we have moved to JDK 1.5 and the applet does not start. The exception thrown is -
java.awt.HeadlessExceptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I cache objects in ASP.NET MVC? I'd like to cache objects in ASP.NET MVC. I have a BaseController that I want all Controllers to inherit from. In the BaseController there is a User property that will simply grab the User data from the database so that I can use it within the controller, or pass it to the vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Adobe Flex control missing vertical scroll bar I have a canvas containing a datagrid. I set horizontal and vertical scroll to 'off' for the canvas, and set both to 'auto' for the DG. This works until I have a larger number of columns in the DG (>=16), then the vertical scroll bar doesn't appear. Anyone seen this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vectorize my thinking: Vector Operations in R So earlier I answered my own question on thinking in vectors in R. But now I have another problem which I can't 'vectorize.' I know vectors are faster and loops slower, but I can't figure out how to do this in a vector method:
I have a data frame (which for sentimental r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: If vs. Switch Speed Switch statements are typically faster than equivalent if-else-if statements (as e.g. descibed in this article) due to compiler optimizations.
How does this optimization actually work? Does anyone have a good explanation?
A: The no-match stats may not be good.
If you actually download the source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: Pacman in Java questions For my university assignment I have to make a networkable version of pacman. I thought I would best approach this problem with making a local copy of pacman first and then extend this functionality for network play.
I would have to say that I am relatively new to java GUI development and ut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Move two WPF windows at once? My main window has spawned a child window that's positioned on top to look like part of the main. I would like to move the child window in sync with the main but I'm not sure how.
My main window has my own title bar which event MouseLeftButtonDown calls this function:
public void Drag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .Net WFC/Web service exception handling design pattern I'm trying to come up with a simple, easy to use design pattern for error handling in a .net wcf service (specifically a silverlight enabled wcf service). If an exception gets thrown in the service method the silverlight application will see a CommunicationExcep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Visual Studio XSD files with DLLs for Web Projects I'm trying to create a DLL using a Dataset.XSD file to access my website's VistaDB database. The DLL develops and builds fine but I need to build the DLL once and then change the "path" of the database in the all the Website projects that finally references the dll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How best to perform corridor range search over a set of latitude / longitude coordinates What would be the best approach to finding the set of coordinates, from say
about 5,00, which lie within a path of points, given a specified width.
eg an aircraft following several waypoints.
Is there a good way to also sort t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "Approximate" greatest common divisor Suppose you have a list of floating point numbers that are approximately multiples of a common quantity, for example
2.468, 3.700, 6.1699
which are approximately all multiples of 1.234. How would you characterize this "approximate gcd", and how would you proceed to compute or e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to place the same path multiple times at different sizes/coordinates? I have a path I've created in Illustrator and saved as an SVG.
Now I want to programmatically place it at different sizes and coordinates on a large canvas.
Say I've got this image:
(source: omgtldr.com)
How would I reproduce that same image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: svn dump fails with WScript.Shell var WshShell = new ActiveXObject("WScript.Shell");
var commandLine = "svnadmin dump " + repoFullPath + " > " + repoName + ".dumpfile";
WshShell.Exec(commandLine)
I am trying to run above cscript in Windows but it seems like, it's doing nothing. It doesn't create the dump file.
Any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing "this" to a function from within a constructor? Can I pass "this" to a function as a pointer, from within the class constructor, and use it to point at the object's members before the constructor returns?
Is it safe to do this, so long as the accessed members are properly initialized before the function call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Library Database System Design I have a library, and I want to migrate it from an old system to a new optimized one.
The old library was built using MS Access (mdb files), where each book is a file by itself. Each book consists of two tables, one for chapters titles and the second for contents. There is also one mdb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .NET Fingerprint SDK I am looking for a comparison of Fingerprint reader SDKs available for .NET (we are using .Net 3.5). My requirements are
1. Associate more than one fingerprint with a person.
2. Store the fingerprints it self. (So I do not have to change the Database for my program.)
3. Work in both event ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I handle a DBNull to Boolean conversion in my XSD DataSet? In my database, I have a few columns in one of my tables that are bit (boolean) values. They are allowed to be NULL since the fields are not always going to contain data.
I've gone through the process of creating an XSD DataSet using the table and mad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you schedule a daily script run on Windows XP? I wrote a script in Ruby. I'd like to run it every day at a certain time. How do you do that on a Windows XP system?
I poked around on the machine and discovered the "scheduled tasks" control panel, but it doesn't seem to have anything to do with running scripts,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to get Program Files folder path (not Program Files (x86)) from 32bit WOW process? I need to get the path to the native (rather than the WOW) program files directory from a 32bit WOW process.
When I pass CSIDL_PROGRAM_FILES (or CSIDL_PROGRAM_FILESX86) into SHGetSpecialFolderPath it returns the WOW (Program Files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Apache/Tomcat - LDAP Authentication based on AD Group Membership We currently have an Apache/Tomcat (5.5) application running and we're using the LDAP authentication feature (by configuring the realm) against a multi domain structure and it's working great. One thing we would like to do is limit access to users bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get the value of a registry key from within a batch script? I need to use a REG QUERY command to view the value of a key and set the result into a variable with this command:
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "KeyName" /v ValueName') DO SET Variable=%%B
But if the key doesnt exists i get a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Preventing XSS (Cross-site Scripting) Let's say I have a simple ASP.NET MVC blog application and I want to allow readers to add comments to a blog post. If I want to prevent any type of XSS shenanigans, I could HTML encode all comments so that they become harmless when rendered. However, what if I wanted to some b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: multiple forms For example, would like 5 checks boxes to have their own submit button and the other 5 to have their own submit. Should be independednt of each other but they are not grouped together in the html page.
Do I nest the other form? Do I put them under the same name and if so how do I distinct the submit?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making mixed numeric and alpha entry easier for mobile browers I'm refurbishing a simple web-app that our field techs use. One of my goals is to make it Blackberry-friendly, as all of the techs are now using those. This app accepts basic information about a job and stores it. Among that info are times, telephone num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Automatically generating XML documentation for thrown exceptions in C# In C#, it is good practice to add XML documentation to describe any exceptions that a method can throw. It is not difficult to add these for exceptions that you throw yourself. However, if I'm calling another method, and I've decided not to handl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: To check in, or not check in, the entire Eclipse project? I'm soon going to check in the very first commit of a new Java project. I work with Eclipse Ganymede and a bunch of plug ins are making things a little bit easier.
Previously I've been part of projects where the entire Eclipse project was checked in. It's qui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Should we put units of measurements in attribute names? I think most of us agree that it's a good idea to use a descriptive name for variables, object attributes, and database columns. If you want to store something's name, you may as well call the attribute Name so people know what to put in it.
Where the unit of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Where can I find a good treeview control for Flex that supports checkboxes? To my best knowledge the out-of-the-box Flex 3 treeview control does not support checkboxes. Where can I find a good treeview control that supports checkboxes on any and all nodes. I would prefer open source software but commercial componen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explanation about hashing and its use for data compression I am facing an application that uses hashing, but I cannot still figure out how it works. Here is my problem, hashing is used to generate some index, and with those indexes I access to different tables, and after I add the value of every table that I get usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VS2008 Team Edition Code Metrics - Skip Generated Code? According to this blog the build in code metrics feature in VS2008 Team Edition is suppose to be smart enough to skip generated code. It's not. Is there an option somewhere that I need to set?
A: There are a few tags that affect this, depending on the source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switched to ASP.NET 3.5, DropDownList doesn't remember dynamically added items I have a site that uses a couple DropDownLists that are databound. I was also doing the traditional if (!IsPostBack) {list.Databind();} and relied on viewstate to keep the lists filled during a post back. I recently converted the site to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I place the .NET framework on a machine without needing admin privileges? The application that I'm building requires the .NET framework. Unfortunately our end users will not have admin privileges. I know it isn't possible to install .NET without admin privileges, but is it possible to build a pre-packaged vers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Emacs Command to Delete Up to Non-Whitespace Character I often want to make a multiline function call and reduce it down to one line. For example, convert...
function_call(
'first_arg',
'second')
to
function_call('first_arg', 'second')
Does emacs have some commands to help with this. Specifically, is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Generating random results by weight in PHP? I know how to generate a random number in PHP but lets say I want a random number between 1-10 but I want more 3,4,5's then 8,9,10's. How is this possible? I would post what I have tried but honestly, I don't even know where to start.
A: This tutorial walks you through it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: What language to further develop in? Okay, so far, I have been taking computer science courses in my high school and doing some of my own research on the web, and I have found I really like the subject. However, the computer science courses, having given me a small amount of experience in a few languages (C++, java,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I get images or full Windows OS's to run in Virtual Machines I want to test my software on different Windows Operating Systems. I plan to do it using Virtual Machine software, either VMWare or Microsoft Virtual PC.
I would like to be able to test Windows 7, Windows Vista, Windows XP and Windows 98 in both ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Use Exchange Web Services to enumerate all the properties(mapi properties?) on a mail item I'm trying to troublshoot a problem with some mail items in on an Exchange 2007 server. I've been able to determine there is something wrong with I think a reciepient property, but I'm not sure, so I'd like to just enumerate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SharePoint Lists, GetListItems, XML, and VBA - I just want to crossreference! I have a SharePoint list with, among other things, two columns that I care about; in Excel-ese, I want to match value X in column 1, and return the corresponding value in column 2. I'm able to use a variant of code at http://guruj.net/node... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Attribute to Skip over a Method while Stepping in Debug Mode Is there an attribute I can use on a method so that when stepping through some code in Debug mode the Debugger stays on the outside of the method?
A: It's written <DebuggerStepThrough> in VB.NET.
To use it just put on top of the method like :
<DebuggerSte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: How do I find duplicate data in xml document using XQuery? I have a bunch of documents in a MarkLogic xml database. One document has:
<colors>
<color>red</color>
<color>red</color>
</colors>
Having multiple colors is not a problem. Having multiple colors that are both red is a problem. How do I find the documen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nested User Controls - how to best get a reference to an ancestor control I realize that a whole lot of code cannot fit here, but I am asking for general direction or pointer.
I have .NET user controls nested six deep for an interactive gadget with (outer to inner) of : wrapper, tabs, panels, lists, rows, items.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help with building a web server Greetings!
I'd like to build an apache web server, running on debian lenny.
It will primarily be used for hosting a web-shop, so it should have some light db i/o and lots of image serving (item previews/thumbs/etc...).
It's tough to put a finger on the exact number of concurrent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: What is the correct syntax when passing CComSafeArray to a method expecting SAFEARRAY** This most likely has a very simple answer, but I can't figure it out.
I'm trying to refactor some code that looks like this:
SAFEARRAY* psa;
long* count;
HRESULT hr = pSomeInterface->ListSomething(&psa, &count);
if (SUCCEEDED(hr)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I use ⨝ and ⊐ in my LaTeX document? I'm trying to insert some symbols from LaTeX Math Symbols into my LaTeX document: under the relational symbols heading, I want join (⨝) and square supset (⊐).
They both have a little b symbol after them. What does that mean; how do I insert them into my doc? I tried addi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Ruby on Rails: Confirmation Page for ActiveRecord Object Creation Using Ruby on Rails I want a confirmation page before creating an ActiveRecord object. The user will see a preview of the item they are creating before submitting and the object being saved in the database
A common pattern;
*
*User visits /entry/ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/445293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.