text stringlengths 8 267k | meta dict |
|---|---|
Q: How do I send an email attachment using the designated client, programmatically from Java I'd like to encourage our users of our RCP application to send the problem details to our support department. To this end, I've added a "Contact support" widget to our standard error dialogue.
I've managed to use URI headers to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to print a variable's type in standard C++? For example:
int a = 12;
cout << typeof(a) << endl;
Expected output:
int
A: The other answers involving RTTI (typeid) are probably what you want, as long as:
*
*you can afford the memory overhead (which can be considerable with some compilers)
*the cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "602"
} |
Q: How to start facebook app? Just want to know what is better way to get start developing faccebook app?Any tutorial recommnedation?And which is better to start up -php or rails?
A: From my experience, there is a much better support focus on PHP than on anything else. That said, there'd be no point learning PHP just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Why is the Content Header 'application/javascript' causing a 500 Error? I have a script that works fine on my test server (using IIS6). The script processes an ajax request and sends a response with the following line:
header( 'application/javascript' );
But on my live server, this line crashes the page and causes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to find and kill running Win-Processes from within Java? I need a Java way to find a running Win process from which I know to name of the executable. I want to look whether it is running right now and I need a way to kill the process if I found it.
A: private static final String TASKLIST = "tasklist";
private s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Quicker way to create duplicate Virtual PC images? I use Virtual PC to create fresh environments for testing my installer. But I must be doing something wrong because a VPC image with Vista or XP inside is taking around 15GB of disk space (that includes VS2005/S2008 installed in them).
To create a new copy for test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Transact-SQL to sum up elapsed time I have a table in my database the records start and stop times for a specific task. Here is a sample of the data:
Start Stop
9/15/2008 5:59:46 PM 9/15/2008 6:26:28 PM
9/15/2008 6:30:45 PM 9/15/2008 6:40:49 PM
9/16/2008 8:30:45 PM 9/15/20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET website does not rebuild I have a solution with several projects in Visual 2008, let's say SuggestionProcessor (a class library) and Suggestions (a website) with a webhandler GetSuggestions.ashx. I changed a method in SuggestionProcessor which is used in the webhandler. The call in the webhandler has been ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Easy way to export a SQL table without access to the server or phpMyADMIN I need a way to easily export and then import data in a MySQL table from a remote server to my home server. I don't have direct access to the server, and no utilities such as phpMyAdmin are installed. I do, however, have the ability to put PHP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Hide google Toolbar by javascript Is there a way to hide the google toolbar in my browser programmable?
A: You haven't said which browser you are using so I'm going to assume Internet Explorer* and answer No.
If JavaScript on a web page could manipulate the browser, it would be a serious security hole and could cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unicode debug visualizer in Visual Studio 2008 Is there a unicode debug visualizer in Visual Studio 2008? I have a xml file that I'm pretty sure is in unicode. When I open it in wordpad, it shows the japanese characters correctly. When I read the file into a string using File.ReadAllText (UTF8), all the japanese cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting Remote Launch in DCOM I can use DCOMCNFG to disable remote launch on my DCOM application, but I would like to do this programatically. I looked at CoInitializeSecurity, but that does not seem to do it. Anyone done this?
I am using Delphi BTW.
A: The binary data is simply a security descriptor structure (PSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 'Looser' typing in C# by casting down the inheritance tree The question I want to ask is thus:
Is casting down the inheritance tree (ie. towards a more specialiased class) from inside an abstract class excusable, or even a good thing, or is it always a poor choice with better options available?
Now, the example of w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Issues with using ruby (on rails) in 64-bit multiple platforms Has anyone used ruby in 64-bit environments in various platforms (HP=UX, Solaris, AIX etc.) in a commercial production environment that heavily relies on database.
Have you faced any issues / bugs during these times?
I know that overall things look ok. C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A potentially dangerous Request.Form value was detected from the client Every time a user posts something containing < or > in a page in my web application, I get this exception thrown.
I don't want to go into the discussion about the smartness of throwing an exception or crashing an entire web application because s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1577"
} |
Q: how to get login credentials by openId? Is is possible to get login credentials such as name/id if user does login by OpenId?
A: There are two accepted methods for retrieving these kind of things by OpenID: SReg and Attribute Exchange (AX). Both of these are extensions to the standard OpenID specification; SReg is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/81994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why wouldn't DB2 let me have a column in WHERE clause? I have a remote DB2 database that I'm accessing through ODBC. When I have a query like
SELECT t.foo, t.bar, t.problemcolumn
FROM problemtable t
WHERE t.bar < 60;
it works like a charm, so the table and columns obviously exist.
But if I specify the problem colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Non-unicode XML representation I have xml where some of the element values are unicode characters. Is it possible to represent this in an ANSI encoding?
E.g.
<?xml version="1.0" encoding="utf-8"?>
<xml>
<value>受</value>
</xml>
to
<?xml version="1.0" encoding="Windows-1252"?>
<xml>
<value>殘</value>
</xml>
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are .NET languages really making any kind of dent in consumer desktop applications? Do you write consumer desktop applications with .NET languages? If so what type?
My impression is that most consumer desktop applications are still native compiled applications in C, C++ and the like.
Whilst .NET languages are growin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Validating XML files against schema in Oracle PL/SQL I have a requirement to validate an incoming file against an XSD. Both will be on the server file system.
I've looked at dbms_xmlschema, but have had issues getting it to work.
Could it be easier to do it with some Java?What's the simplest class I could put in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Deserializing Client-Side AJAX JSON Dates Given the following JSON Date representation:
"\/Date(1221644506800-0700)\/"
How do you deserialize this into it's JavaScript Date-type form?
I've tried using MS AJAX JavaScrioptSerializer as shown below:
Sys.Serialization.JavaScriptSerializer.deserialize("\/Date(1221644506... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: A regex for version number parsing I have a version number of the following form:
version.release.modification
where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing.
So the following are valid and pars... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: Design Pattern for multithreaded observers In a digital signal acquisition system, often data is pushed into an observer in the system by one thread.
example from Wikipedia/Observer_pattern:
foreach (IObserver observer in observers)
observer.Update(message);
When e.g. a user action from e.g. a GUI-thread requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Y-Modem Implementation for .Net Is there a ready and free Y-Modem Implementation for .Net, preferrably in C#?
I found only C/C++ Solutions.
A: There is a library for XModem that you could adapt to use Y-Modem without much effort.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/82093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I handle message failure in MSMQ bindings for WCF I have create a WCF service and am utilising netMsmqBinding binding.
This is a simple service that passes a Dto to my service method and does not expect a response. The message is placed in an MSMQ, and once picked up inserted into a database.
What is the best... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Should a Log4J logger be declared as transient? I am using Java 1.4 with Log4J.
Some of my code involves serializing and deserializing value objects (POJOs).
Each of my POJOs declares a logger with
private final Logger log = Logger.getLogger(getClass());
The serializer complains of org.apache.log4j.Logger not bei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Do Delphi class vars have global or thread local storage? My guess is that class variables ("class var") are truly global in storage (that is, one instance for the entire application).
But I am wondering whether this is the case, or whether they are thread in storage (eg similar to a "threadvar") - once instance per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: AssertionError with BIRT Runtime Engine API I'm new to BIRT and I'm trying to make the Report Engine running. I'm using the code snippets provided in http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php
But I have a strange exception:
java.lang.AssertionError
at org.eclipse.birt.core.framework.Platf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying build times in Visual Studio Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008, running devenv.com MyApp.sln /Build -- see devenv command-line switches (although that's for a newer version of VS). Is there a way to get devenv.com to log the time taken to buil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "199"
} |
Q: producing 2 or more short sounds when a web page loads I have 6 sound files (1.wav 2.wav etc..) of which 3 different ones have to be heard each time the web page opens. The numbers are selected randomly.
I have tried multiple "embeds" but only the last sound selected gets produced.
I have also tried javascript routi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a fast, accurate Highlighter for Lucene? I've been using the (Java) Highlighter for Lucene (in the Sandbox package) for some time. However, this isn't really very accurate when it comes to matching the correct terms in search results - it works well for simple queries, for example searching for two separate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Build setup project with NAnt I've already got a NAnt build script that builds/runs tests/zips web project together, etc. but I'm working on a basic desktop application. How would I go about building the setup project using NAnt so I can include it with the build report on TeamCity.
Edit: The setup is the basic Set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PyQt and PyCairo I know it's possible to place a PyCairo surface inside a Gtk Drawing Area. But I think Qt is a lot better to work with, so I've been wondering if there's anyway to place a PyCairo surface inside some Qt component?
A: Qt's own OpenGL based surfaces (using QPainter) are known to be much faster than C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way of speccing plugins with RSpec? I'm creating a plugin, and am looking to use RSpec so I can build it using BDD.
Is there a recommended method of doing this?
A: OK, I think I have a solution:
*
*Generate the plugin via script/generate plugin
*change the Rakefile, and add
require 'spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do you customize the RSS feeds in SharePoint In the early days of SharePoint 2007 beta, I've come across the ability to customize the template used to emit the RSS feeds from lists. I can't find it again. Anybody know where it is?
A: Ah, found it, based on a subtle hint from Jan Tielens. It's on the Settings... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I use calculated value date in Sharepoint lists field to find a date+30 days? I have a list I've built in Sharepoint, where one of the fields is a date that the user enters.
I want to add another field, which is a calculated value field that needs to be the date provided by the user + 30 days.
What formula do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it worth the effort to move from a hand crafted hibernate mapping file to annotaions? I've got a webapp whose original code base was developed with a hand crafted hibernate mapping file. Since then, I've become fairly proficient at 'coding' my hbm.xml file. But all the cool kids are using annotations these days... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Force IIS7 to suggest downloading *.exe files in "Local intranet" zone Problem:
*
*html file on local server (inside our organization) with link to an exe on the same server.
*clicking the link runs the exe on the client. Instead I want it to offer downloading it.
Tried so far:
*
*Changed permissions on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a Problem with JPA Entities, Oracle 10g and Calendar Type properties? I'm experiencing the following very annoying behaviour when using JPA entitys in conjunction with Oracle 10g.
Suppose you have the following entity.
@Entity
@Table(name = "T_Order")
public class TOrder implements Serializable {
priva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Testing StarTeam operations In a Java application I need to checkout files from Borland Starteam 2006 R2 using Starteam API by various parameters (date, label). Is there any framework that helps to write automatic tests for such functionality?
A: I'm not aware of any; the approach i'd take is a project which has sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I use sudo to redirect output to a location I don't have permission to write to? I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to.
The trouble is, this contrived exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1081"
} |
Q: HTML drag and drop sortable tables Ever wanted to have an HTML drag and drop sortable table in which you could sort both rows and columns? I know it's something I'd die for. There's a lot of sortable lists going around but finding a sortable table seems to be impossible to find.
I know that you can get pretty close... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: pseudo-streaming of wmv files Is it possible to do pseudo-streaming(eg start playback at any point) with wmv files and silverlight?
This is possible using Flash in a progressive download setup but can it be done on the Microsoft track?
A: You can use Windows Media Services 2008. It enables you to actually stream W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Launch Local Mail Client from App Hosted on Citrix I have a desktop application (Windows Forms) which my client hosts on a Citrix server. I would like to launch the user's locally configured mail client to send mail from my application. How do I do this?
In addition to this, I will need to attach a file to the email... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tools for command line file parsing in cygwin I have to deal with text files in a motley selection of formats. Here's an example (Columns A and B are tab delimited):
A B
a Name1=Val1, Name2=Val2, Name3=Val3
b Name1=Val4, Name3=Val5
c Name1=Val6, Name2=Val7, Name3=Val8
The files could have headers or not, ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I use the same field type in multiple lists on SharePoint? I have a SharePoint site with multiple lists, some of which have the same fields - a choice of products or countries.
How can I build the lists in a way that I configure the choice field once and use it in multiple lists, so that in the future, if I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Placing Share Documents subfolder as a webpart in SharePoint I want to place a Webpart on a page that holds a subfolder of the Document Library in SharePoint, but somehow, the only thing I get is the root folder of the document library.
Is there a Webpart that fills this need?
A: Here is how to do it in Sharepoint ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to build a Linux/Motif Eclipse RCP application? I am trying to build an Eclipse application that would work with a linux/motif installation target. However, this seems not to be possible even though the export option is available in the product export wizard.
I've checked the content of the delta pac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I determine the length (i.e. duration) of a .wav file in C#? In the uncompressed situation I know I need to read the wav header, pull out the number of channels, bits, and sample rate and work it out from there:
(channels) * (bits) * (samples/s) * (seconds) = (filesize)
Is there a simpler way - a free librar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to Set Grid Column MaxWidth depending on Window or Screen Size in XAML I have a 3 column grid in a window with a GridSplitter on the first column. I want to set the MaxWidth of the first column to a third of the parent Window or Page Width (or ActualWidth) and I would prefer to do this in XAML if possible.
This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using CreateItemFromTemplate to process an olEmbeddeditem Outlook attachment I am using C# to process a message in my Outlook inbox that contains attachments. One of the attachments is of type olEmbeddeditem. I need to be able to process the contents of that attachment. From what I can tell I need to save the att... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to specify a different session store with Tomcat? Tomcat (version 5 here) stores session information in memory. When clustering this information is periodically broadcast to other servers in the cluster to keep things in sync. You can use a database store to make sessions persistant but this informati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Charting in web-based applications What are the various charting tools that are available for displaying charts on a web page using ASP.NET?
I know about commercial tools such as Dundas and Infragistics.
I could have "googled" this but I want to know the various tools that SO participants have used? Any free chartin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I read only x number of bytes of the body using Net::HTTP? It seems like the methods of Ruby's Net::HTTP are all or nothing when it comes to reading the body of a web page. How can I read, say, the just the first 100 bytes of the body?
I am trying to read from a content server that returns a short error mess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Way to Alt-Tab through all applications in Virtual and Host PC I am using VirtualPc 2007 more and more, the one annoyance is "Alt-Tab".
What I want is to be able to use alt-tab to iterate through all of the applications in the host pc and virtual(s) as if they were one long list. Is there a setting or program to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: In Struts 1.3, what's the best way for the Controller to fill the View with variables? I've just inherited some old Struts code.
If Struts (1.3) follows the MVC pattern, how do the Action classes fill the View with variables to render in HTML ?
So far, I've seen the Action classes push variables in (1) the HTTP requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web Site or Web Application in ASP.NET Which Visual Studio template should be used for a ASP.NET web site, the Web Site template or the Project | Web Application template?
A: you'd better read this:
http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx
in my opinion it depends on what you are developing
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Smooth ProgressBar in WPF I'm using the ProgressBar control in a WPF application and I'm getting this old, Windows 3.1 ProgressBlocks thing. In VB6, there was a property to show a smooth ProgressBar. Is there such a thing for WPF?
A: This KB article seems to explain what you are looking for... there is a link to a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way to handle URLs in a multilingual site in ASP.net I need to do a multilingual website, with urls like
www.domain.com/en/home.aspx for english
www.domain.com/es/home.aspx for spanish
In the past, I would set up two virtual directories in IIS, and then detect the URL in global.aspx and change the language acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Should Tables be avoided in HTML at any cost? It is advisable to use tables in HTML pages (now that we have CSS)?
What are the applications of tables? What features/abilities does tables have that are not in CSS?
Related Questions
*
*Tables instead of DIVs
*DIV vs TABLE
*
*DIVs vs. TABLEs a rebuttal please
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How to match URIs in text? How would one go about spotting URIs in a block of text?
The idea is to turn such runs of texts into links. This is pretty simple to do if one only considered the http(s) and ftp(s) schemes; however, I am guessing the general problem (considering tel, mailto and other URI schemes) is much ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WAITFOR command Given the problem that a stored procedure on SQL Server 2005, which is looping through a cursor, must be run once an hour and it takes about 5 minutes to run, but it takes up a large chunk of processor time:
edit: I'd remove the cursor if I could, unfortunatly, I have to be doing a bunch of processin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a way to override the empty constructor in a class generated by LINQtoSQL? If I have a table in my database called 'Users', there will be a class generated by LINQtoSQL called 'User' with an already declared empty constructor.
What is the best practice if I want to override this constructor and add my own l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Prefetch instructions on ARM Newer ARM processors include the PLD and PLI instructions.
I'm writing tight inner loops (in C++) which have a non-sequential memory access pattern, but a pattern that naturally my code fully understands. I would anticipate a substantial speedup if I could prefetch the next location whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change report data visibility based on rendering format in Reporting Services Is it possible to hide or exclude certain data from a report if it's being rendered in a particular format (csv, xml, excel, pdf, html).
The problem is that I want hyperlinks to other reports to not be rendered when the report is generated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When Hibernate flushes a Session, how does it decide which objects in the session are dirty? My understanding of Hibernate is that as objects are loaded from the DB they are added to the Session. At various points, depending on your configuration, the session is flushed. At this point, modified objects are written t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Hosting a website on your own server Is there a detailed guide which explains how to host a website on your own server on linux.
I have currently hosted it on one of the commerical web-hosts.
Also the domain is registered to a different vendor.
Thanks
A: This guide is probably more info than you really requested, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is it impossible to override a getter-only property and add a setter? Why is the following C# code not allowed:
public abstract class BaseClass
{
public abstract int Bar { get;}
}
public class ConcreteClass : BaseClass
{
public override int Bar
{
get { return 0; }
set {}
}
}
CS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "157"
} |
Q: Big PDF file when language is PL (Polish) I converted a Smart Form output into PDF using the function module SX_OBJECT_CONVERT_OTF_PDF.
My problem is that when the language is PL (Polish) the PDF file is 10 times bigger comparing to EN language. Why?
A: Gunstick answer is probably right.
Sap note: 843480 discuss th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extension Methods not working for an interface Inspired by the MVC storefront the latest project I'm working on is using extension methods on IQueryable to filter results.
I have this interface;
IPrimaryKey
{
int ID { get; }
}
and I have this extension method
public static IPrimaryKey GetByID(this IQueryable<IPri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What impact (if any) does Delphi 2009's switch to Unicode(/UTF16) have on executable size and memory footprint? Here's one from the "No question's too dumb" department:
Well, as the subject says: Is there an impact? If so, how much? Will all the string literals I have in my code and in my DFM resources now take up t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Perforce. Getting the file status in the sandbox How can I figure out the state of the files in my client, I want to know if the file needs an updated, or patched, or modified etc. In CVS, I used to simply run "cvs -n -q update . > file". Later look for M,U,P,C attributes to get the current status of the file.
In pe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to catch ALL exceptions/crashes in a .NET app
Possible Duplicate:
.NET - What’s the best way to implement a “catch all exceptions handler”
I have a .NET console app app that is crashing and displaying a message to the user.
All of my code is in a try{<code>} catch(Exception e){<stuff>} block, but still error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Has anyone tried transactional memory for C++? I was checking out Intel's "whatif" site and their Transactional Memory compiler (each thread has to make atomic commits or rollback the system's memory, like a Database would).
It seems like a promising way to replace locks and mutexes but I can't find many testimonia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it possible to drag and drop from/to outside a Flash applet with JavaScript? Let's say I want a web page that contains a Flash applet and I'd like to drag and drop some objects from or to the rest of the web page, is this at all possible?
Bonus if you know a website somewhere that does that!
A: DISCLAIMER I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reviews for programmable, tiling window manager ion3 I find the concept of the programmable, tiling, keyboard-focuessed window manager ion3 very appealing, but I think it takes some time to customize it to your needs until you can really evaluate this totally different UI-concept.
Therefore, I would like to read rev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: svn over HTTP proxy I'm on laptop (Ubuntu) with a network that use HTTP proxy (only http connections allowed).
When I use svn up for url like 'http://.....' everything is cool (google chrome repository works perfect), but right now I need to svn up from server with 'svn://....' and I see connection refused.
I've set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Boost serialization: specifying a template class version I have a template class that I serialize (call it C), for which I want to specify a version for boost serialization. As BOOST_CLASS_VERSION does not work for template classes. I tried this:
namespace boost {
namespace serialization {
template< typename T, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Best server-side framework for heavy RIA based application? What do the collective beleive to be the best platform to use as a backend to AJAX / Flex / Silverlight applications and why?
We are undergoing a technology review and I would like to know some other opinions.
Is It Java, Grails, Python, Rails, ColdFusion, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Python + DNS : Cannot get RRSIG records: No Answer I get DNS records from a Python program, using DNS
Python
I can get various DNSSEC-related records:
>>> import dns.resolver
>>> myresolver = dns.resolver.Resolver()
>>> myresolver.use_edns(1, 0, 1400)
>>> print myresolver.query('sources.org', 'DNSKEY')
<dns.resolver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Information about how many files to compile before build in Visual Studio How can I figure out, how many files needs to be recompiled before I start the build process.
Sometimes I don't remember how many basic header files I changed so a Rebuild All would be better than a simple build. There seams to be no option fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differences between NHibernate, Castle, Linq - Who are they aimed at? This answer says that Linq is targeted at a slightly different group of developers than NHibernate, Castle, etc.
Being rather new to C#, nevermind all the DB stuff surrounding it:
*
*Are there other major, for lack of a better term, SQL wrapper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can you use Microsoft Entity Framework with Oracle? Is it possible to use Microsoft Entity Framework with Oracle database?
A: Update:
Oracle now fully supports the Entity Framework.
Oracle Data Provider for .NET Release 11.2.0.3 (ODAC 11.2)
Release Notes:
http://docs.oracle.com/cd/E20434_01/doc/win.112/e23174/whats... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "97"
} |
Q: Best way for allowing subdomain session cookies using Tomcat By default tomcat will create a session cookie for the current domain.
If you are on www.example.com, your cookie will be created for www.example.com (will only work on www.example.com). Whereas for example.com it will be created for .example.com (desired ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is there any list of blog engines, written in Django? Is there any list of blog engines, written in Django?
A: James Bennett has an interesting take on this question:
“where can I find a good Django-powered blogging application” is probably at the top of the frequently-asked questions list both on django-users and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is the best way to print screens from an ASP.NET page .NET1.1/.NET2.0 I have seen examples of printing from a windows application but I have not been able to find a good example of any way of doing this.
A: I've used the print style sheet
here's and article http://alistapart.com/stories/goingtoprint/ that wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you clear your MRU list in Visual Studio? I want to clear the list of projects on the start page...how do I do this? I know I can track it down in the registry, but is there an approved route to go?
A: There is an MSDN article here which suggests that you just move the projects to a new directory.
However, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: What are the best remoting technologies for mobile applications? I have a java back-end that needs to expose services to clients running in the following environments :
*
*J2ME
*Windows Mobile
*iPhone
I am looking for the best tool for each platform.
I do not search a technology that works everywhere.
I need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I alter a TEXT column on a database table in SQL server? In a SQL server database, I have a table which contains a TEXT field which is set to allow NULLs. I need to change this to not allow NULLs. I can do this no problem via Enterprise Manager, but when I try to run the following script, alter table dbo.[Eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert DOS/Windows line endings to Linux line endings in Vim If I open files I created in Windows, the lines all end with ^M.
How do I delete these characters all at once?
A: dos2unix can directly modify the file contents.
You can directly use it on the file, without any need for temporary file redirection.
dos2un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "808"
} |
Q: How do I reference a diagram in a DSL T4 template? Google's not coming to my rescue, here, and I just know this is the perfect place to ask.
I'm writing a custom DirectiveProcessor for a DSL and I want to be able to access a diagram from within my T4 template.
Within my DirectiveProcessor, I've loaded the domain mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Whats the best windows tool for merging RSS Feeds? It seems like such a simple thing, but I can't find any obvious solutions...
I want to be able to take two or three feeds, and then merge then in to a single rss feed, to be published internally on our network.
Is there a simple tool out there that will do this? Fre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sharepoint UserProfileManager without Manage User Profiles right I have an issue that is driving me a bit nuts: Using a UserProfileManager as an non-authorized user.
The problem: The user does not have "Manage User Profiles" rights, but I still want to use the UserProfileManager. The idea of using SPSecurity.RunWith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the best methods to ensure our SharePoint implementation is accessible? Are there any blogs, guides, checklists, or controls we should be using to ensure our SharePoint implementation is accessible?
Preferrably to the W3C double A standard, or as close to that as we can get.
We're implementing an extranet s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SoundPlayer crash on Vista The following code is causing an intermittent crash on a Vista machine.
using (SoundPlayer myPlayer = new SoundPlayer(Properties.Resources.BEEPPURE))
myPlayer.Play();
I highly suspect it is this code because the program crashes mid-beep or just before the beep is played every time. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I check whether a file exists without exceptions? How do I check whether a file exists or not, without using the try statement?
A: Testing for files and folders with os.path.isfile(), os.path.isdir() and os.path.exists()
Assuming that the "path" is a valid path, this table shows what is returned by each func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6915"
} |
Q: Best way to read commandline parameters in console application Below are two ways of reading in the commandline parameters. The first is the way that I'm accustom to seeing using the parameter in the main. The second I stumbled on when reviewing code. I noticed that the second assigns the first item in the array ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: MySQL tools which ease creation of SQL JOIN statements? Does anyone know tools which look at a MySQL database, show you all the tables graphically and allow you to create complicated JOIN statements via drag-and-drop?
A: Before you buy anything, see if the free, official MySQL's GUI tools (specifically the MySQL Qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: In WPF, what is the equivalent of Suspend/ResumeLayout() and BackgroundWorker() from Windows Forms If I am in a function in the code behind, and I want to implement displaying a "Loading..." in the status bar the following makes sense, but as we know from WinForms is a NoNo:
StatusBarMessageText.Text = "Loading Conf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What files are you allowed to modify in SharePoint 2007? What files can we modify so that our solution is still supported by Microsoft?
Is it allowed to customize error pages?
Can we modify the web.config files to use custom HTTPHandlers?
A: You can certainly edit the web.config file for your sites. The one thing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/82850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.