text stringlengths 8 267k | meta dict |
|---|---|
Q: Using RegEX To Prefix And Append In Notepad++ I have quite a large list of words in a txt file and I'm trying to do a regex find and replace in Notepad++. I need to add a string before each line and after each line.. So that:
wordone
wordtwo
wordthree
become
able:"wordone"
able:"wordtwo"
able:"wordthree"
How can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "93"
} |
Q: XSD - how can I ensure the existance of a particular element with a given attribute? I'm trying to add extra validation to jdpl process-definition files using XSD.
We have a couple of rules we want to add; but the one that's causing me problems is that there must exist one "node" element with it's "name" attribute =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Put a program in the system tray at startup I followed the commonly-linked tip for reducing an application to the system tray : http://www.developer.com/net/csharp/article.php/3336751 Now it works, but there is still a problem : my application is shown when it starts ; I want it to start directly in the systray. I t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Apache reverse proxy set up SSL certificate We need to set up a secure certificate on an Apache reverse proxy.
We've been advised that we need to use a virtual host directive.
I've looked these up in the O'Reilly book bit can't find any examples that pick up https specifically.
Does anyone have any examples of confi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JavaFX and Java Interoperability Can I utilise the new functionality provided by the new JavaFX APIs directly from Java to the same extent as I would be able to using JavaFX Script?
Are all the underlying JavaFX APIs purely Java or JavaFX Script or a mix?
A: The JavaFX APIs are a mix of JavaFX and Java. The SDK com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python list in sql query as parameter I have a python list, say l
l = [1,5,8]
I want to write a sql query to get the data for all the elements of the list, say
select name from students where id = |IN THE LIST l|
How do I accomplish this?
A: If you're using PostgreSQL with the Psycopg2 library you can let its tup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: STL Migration issues (VS 2003 -> 2005) I have just converted a project from Visual Studio 2003 to 2005 and although most of it 'converted' fine, I have a series of STL errors from the following line:
void SomeFn( std::vector<CSomeObject*>::iterator it,
std::vector<CSomeObject*>::iterator itBegin = NULL,
std::vector<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Erlang JInterface - is OtpMBox thread-safe? In my Java program, I create an OtpNode and a "named" OtpMBox. Whenever a message is received via this mbox, some time-consuming operation needs to be performed after which a reply message is sent back. Since this operation is time-consuming, subsequent messages sent to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mysql InnoDB Operating system error number 32 in a file operation on Windows Since a few days ago, MySQL server on my Windows machine was not successful on closing itself. I found multiple instance of these lines in the MySQL error log:
InnoDB: Operating system error number 32 in a file operation.
InnoDB: The error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Writing string at the same position using Console.Write in C# 2.0 I have a console application project in C# 2.0 that needs to write something to the screen in a while loop. I do not want the screen to scroll because using Console.Write or Console.Writeline method will keep displaying text on console screen incremen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Conflict with squid and ajax I have a user who gets an error from ajax calls on our site.
The error is pasted below.
They get the error in FF3 Windows, but not IE.
Based on some searching it seems this issue is often caused by the client protocol squid (you'll notice at the end of the error, squid is mentioned).
My... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual C# 2008 EE SP1 - Linq to SQL - Data Connection to remote server? After upgrading my Visual C# 2008 Express Edition to .NET3.5, SP1, I've been unable to create new LINQ to SQL classes using a remotely connected database. I used to be able to do so fine.
I open up a project (windows forms, class library, same b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I call .NET code from Java? I'm not looking for the usual answer like Web-services. I'm looking for a light solution to be run in the same machine.
Edit: I'm looking for way in Java to call .NET methods
A: Have you looked at IKVM?
A: Hve you looked into the Java Native Interface?
What I have done in the pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How do I get the error icon used by DataGridImageCell? I display some objects that have thumbnails in two ways: one in a DataGridView, and one in a custom control.
In the DataGridView, the thumbnail is displayed in a DataGridViewImageCell. If the thumbnail is missing, the cell displays an error icon.
I want to show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C And C++ Coding Standards What are best practices with regards to C and C++ coding standards? Should developers be allowed to willy-nilly mix them together. Are there any complications when linking C and C++ object files.
Should things like socket libraries that traditionally is written in C remain in C and kept ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Size of an open file object Is there a way to find the size of a file object that is currently open?
Specifically, I am working with the tarfile module to create tarfiles, but I don't want my tarfile to exceed a certain size. As far as I know, tarfile objects are file-like objects, so I imagine a generic solution w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Big integer field in django models In short: How do you specify a BIGINT in Django models?
In a current project I am doing using Django (0.97-svn release), I've all the integer fields in all the models defined as IntegerField. It was working immaculately during the development cycle where I was using SQLite for the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Memory leak detection under Windows for GNU C/C++ What memory leak detection tools are available for use with open source C/C++ on Windows?
A: I've been using VLD (Visual Leak Detector) for some times, it works nicely for good code, for more complex code; it's not perfect.
A: The mem (revised) package is an effect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Add / Remove the word 'The' to specific countries I've spent hours trying to get my code to work, its a rats nest of if/elses. Basically I want to check a country name against these two arrays:
//if its in this array add a 'THE'
$keywords = array("bahamas","island","kingdom","republic","maldives","netherlands",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running applications through Telnet I need to create a BAT file to run an application through telnet, but as far as I know there is no way to do this on DOS. Telnet does not allow any command to be sent to the remote machine at the very instant of the connection, and each subsequent command in the BAT file would onl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using Server.CreateObject("ADODB.Stream") in IE7 I have an ASP.NET 1.1 application that uses the following code to write out a file in the response:
Dim objStream As Object
objStream = Server.CreateObject("ADODB.Stream")
objStream.open()
objStream.type = 1
objStream.loadfromfile(localfile)
Response.BinaryWrite(objSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend framework; Getting controller to use different viewer I am using the Zend Framework.
I have a controller named 'UserController' that has a public function displayAction().
I would like to know how I can get that action method to use a different viewer than the default display.phtml.
Any help is appreciated.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: The VB.NET 'With' Statement - embrace or avoid? At work, I'm frequently working on projects where numerous properties of certain objects have to be set during their construction or early during their lifetime. For the sake of convenience and readability, I often use the With statement to set these properties. I find... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: PHP replaces spaces with underscores I have the problem, that PHP replaces all spaces with underscores in POST and GET variables.
For example if I have the URL: http://localhost/proxy.php?user name=Max
the browser will convert it to http://localhost/proxy.php?user%20name=Max.
But if I give the $_GET parameters out, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: 'Refresh' HTTP header I'm automating a web application (the Mantis bug tracker) and I'm getting an interesting response header from it, called Refresh:
HTTP/1.x 200 OK
...
Refresh: 0;url=my_view_page.php
It seems to be acting the same way that meta refresh does, and the meta refresh technique implies that it is an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: Convert string to PAnsiChar in Delphi 2009 I'm converting my applications to Delphi 2009 and faced an intriguing issue with some calls that need to convert a string (wide) to AnsiString.
Here's an example to demonstrate the issue I'm having:
var
s: PAnsiChar;
...
s := PAnsiChar(Application.ExeName);
With Delphi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How can I sort an array returned from File.ReadAllLines on an alphabetical member? I am reading a .csv file and returning its lines in string array. One of the members is manufacturer, for which I have Toyota, Ford, etc.
I want to sort an array (Can be another collection) of the rows, by the value in manufacturer an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Finding someone's age in SQL In a SQL Server database, I record people's date of birth. Is there an straight-forward method of working out the person's age on a given date using SQL only?
Using DATEDIFF(YEAR, DateOfBirth, GETDATE()) does not work as this only looks at the year part of the date. For example DATEDIFF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Pickled file won't load on Mac/Linux I have an application that imports data from a pickled file. It works just fine in Windows but Mac and Linux behaviour is odd.
In OS X, the pickled file (file extension ".char") is unavailable as a selection unless I set the file type to *.*. Then, if I select a file that has the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Maximum number of cookies allowed As far as Google searches tell me, the maximum allowed number of cookies depends very much on the browser, however I cannot find any recent data as to how much cookies are allowed on modern browsers.
I need to store a somewhat large number of user preferences in cookies (for not-yet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Automation Error when using ADO/MDAC OK, struggling to get a definitive answer to this one...
I have an application written in VB6 which requires MDAC (2.8 for this installation). MDAC is included in the installer for my application. When the software is removed and re-installed on the same machine MDAC seems to go ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do they draw the charts/graphs on stackoverflow? I spent ages learning VML and creating charts for a website once, but since VML only works in Internet Explorer, it's not much good these days.
I notice stackoverflow has graphs on my profile page, under 'reputation', but I wasnt able to see how they did it.
Can a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problem with Regional settings somewhere With reference to Problem with date day/month reversing on save
I have further noted that even setting the Session.LCID on the page itself is making no difference what so ever.
How could the environments be such that between test and live the asp site on live is reversing dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access java-classes in the default-package? I'm working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that this object has to be placed in the default-package.
My question is: Is there a way to access ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: QueueConnectionFactory for WebSphere MQ Does anyone know if there is an implementation of javax.jms.QueueConnectionFactory for WebSphere MQ and where to get it? I Googled it and searched IBM website but couldn't find anything. I don't want to retrieve the connection or factory from Websphere MQ via JNDI, I need my o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Constraints for explicit interface implementation..." I can't figure out why the following wont work, any ideas??
public interface IFieldSimpleItem
{ }
public interface IFieldNormalItem : IFieldSimpleItem
{ }
public class Person
{
public virtual T Create<T>()
where T : IFieldSimpleItem
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I call a C++ function from C#? How can I call a C++ function from C# .NET?
A: *
*compile the C++ function into a dll and use P/Invoke
or
*compile the C++ function into a C++/CLI assembly, wrap in a managed C++ class, and then treat like any other assembly (add a reference, use a using statement and call ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does my .NET Remoting target machine actively refuse the connection? I am trying to establish a basic .NET Remoting communication between 2x 64bit windows machines. If Machine1 is acting as client and Machine2 as server, then everything works fine. The other way around the following exception occurs:
System.Net.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Our boss wants to know what company rules we should have to improve the culture? He want's to know our opinions on whether we should have flexitime, allow non-work related internet access etc.
We've got about 200 people in the company, half are programmers half are sales. We all want the workplace to be productive a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Output result of xsl:value-of in an xml attribute I have an XML input file and I'm trying to output the result of a call like:
<xsl:value-of select="Some/Value"/>
into an attribute.
<Output Attribute="Value should be put here"/>
My problem is, since I'm outputting XML, the XSL processor won't allow me to wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Easiest way to deploy simple ASP.NET app to hosted IIS 6.0 server I'm building a simple ASP.NET web application in VS 2008 with a SQL 2005 database. I'm working on Vista and I'd prefer not to install IIS (I'd rather just us Cassini for local testing). Here's what I've tried:
*
*FrontPage Server Extensions. I inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery SimpleTree: Add a node programatically I'm trying to add a new node to an jQuery SimpleTree, but all I seem to be able to get is "sTC.addNode is not a function"...
var simpleTreeCollection = $('.simpleTree').simpleTree({
animate:true,
drag:false,
autoclose: false,
afterClick:function(node){},... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Acegi Security: How do i add another GrantedAuthority to Authentication to anonymous user i give users special URL with access key in it. users accessing the public page via this special url should be able to see some additional data as compared to simple anonymous user.
i want to give some additional role to anony... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Interactions between windows what's the best/proper way of interacting between several windows in C# app?
Recently, I've run into a problem where one of program windows has to call method modifying main window. My solution was to create factory-like class, that would arrange all underlying model-data and organize t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Include another MSI file in my setup project I'm trying to make a setup program for an ASP.NET web site. I need to make sure the target machine has sqlxml installed.
I must verify the target machine has the software installed, and if not, launch a .msi file either before or after the main installation.
I'm a complet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Invoking WCF Service through Javascript How can I access the WCF Service through JavaScript?
My problem is, I have to access the operation contracts through the JavaScript (my website is not Ajax enabled).
Previously for calling .asmx web services,
I am using the following code snippet
var xmlHttp = new ActiveXObje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does Ada have a preprocessor? To support multiple platforms in C/C++, one would use the preprocessor to enable conditional compiles. E.g.,
#ifdef _WIN32
#include <windows.h>
#endif
How can you do this in Ada? Does Ada have a preprocessor?
A: AdaCore provides the gnatprep preprocessor, which is specialized for Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use Popen in Windows to invoke an external .py script and wait for its completion Have you ever tried this feedback calling an external zip.py script to work? My CGITB does not show any error messages. It simply did not invoke external .py script to work. It simply skipped over to gush. I should be grateful... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Schedule an appointent from a SharePoint workflow I need to get an appointment into someone's Outlook calendar based on requests from their employees. The application runs in SharePoint (WSS 3.0). My first impressions are to use iCal or send meeting requests, but I haven't done either before & I'm looking for a very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multiple slaves on a single machine with hudson Can I run multiple hudson slaves on a single machine, I mean real slaves with only one build process?
My problem is, I have a slave with 3 build processes, using locks-and-latches (V0.4) to run three different kinds of build jobs. But sometimes I have the problem that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the best Java social networking frameworks? I would like to create a private customized social networking for my company employees and partners so that they can collaborate, exchange messages, share experiences (events, book references, etc) and be grouped into communities. Does anybody know good Java frame... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Saving And Loading CollapsiblePanelExtender Control State Over Postback I'm using asp.net/c# and have a number of Collapsible Panel Extenders that have been dynamically created when the page loads. The controls are within an update panel that updates every 5 seconds. The problem I have is whenever the update panel u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Shallow Copy From Inherited Classes Ok so I have an abstract base class called Product, a KitItem class that inherits Product and a PackageKitItem class that inherits KitItem. ie.
Product
KitItem : Product
PackageKitItem : KitItem
I have my KitItems loaded and I need to load up a collection of PackageKitItems which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight - Data binding not listening for PropertyChanged event Could somebody please explain to me what happens here?
I am creating a binding in code.
The target object is a UserControl
The target property is a boolean DependencyProperty
The source object is a FrameworkElement and implements INotifyPropertyCha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: extract an object from a TObjectList I have a TObjectList with OwnsObjects = true. It contains quite a few objects. Now I want to remove the object at index Idx from that list, without freeing it.
Is the Extract method the only option?
ExtractedObject := TheList.Extract(TheList[Idx]);
All other methods seem to free ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find UI element corresponding to an item in a Silverlight ItemsControl I have a list of strings displayed by a Silverlight ItemsControl. The DataTemplate is a Border control with a TextBlock as its child. How can I access the border control corresponding to an item? For example, I might want to do this to change ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using foreach (...) syntax while also incrementing an index variable inside the loop When looking at C# code, I often see patterns like this:
DataType[] items = GetSomeItems();
OtherDataType[] itemProps = new OtherDataType[items.Length];
int i = 0;
foreach (DataType item in items)
{
// Do some stuff with item, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Dealing with relative filepaths in ASP.NET and master pages This may be a painfully simply question for which I will be mocked but I am having difficulty in using filepaths in master pages. I believe this is because if a page in a sub-directory to using the master page then the filepath is incorrect.
To fix this I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way to specify a suggested filename when using data: URI? If for example you follow the link:
data:application/octet-stream;base64,SGVsbG8=
The browser will prompt you to download a file consisting of the data held as base64 in the hyperlink itself. Is there any way of suggesting a default name in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "265"
} |
Q: REST: Correct HTTP Response Code For a POST Which Is Ignored We have a REST API which clients routinely POST and PUT data to. When they do this, sometimes they POST data which results in no change on our system. The POSTs and PUTs are well-formed, but they data they're sending is identical to the data in our data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Centering a div block without the width I have a problem when I try to center the div block "products" because I don't know in advance the div width. Anybody have a solution?
Update: The problem I have is I don't know how many products I'll display, I can have 1, 2 or 3 products, I can center them if it was a fixed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "251"
} |
Q: How to get the page count of a microsoft word document in java? for a server based j2ee application, I need to retrieve the number of pages from word documents.. any ideas what works?
A: If the documents are modern Word 2007 format you can use direct XML-based manipulation, through OOXML. This is by far the better ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I control the display of a JComponent's Tooltip? I have a JComponent that's painting various shapes on itself. I'm detecting whenever the mouse enters one of these shapes and changing the tooltip accordingly.
The problems I'm having are:
*
*The tooltip doesn't follow the mouse as the user tracks the mouse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Time estimate for ABAP development I'm looking for a table or list of standard time estimations for developments in ABAP, something customizable in some variables according to the development team, complexity of project, etc...
Something similar to:
Simple Module Pool -> 10 hours
Complex Module Pool -> 30 hours
Defi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: c++ STL set difference Does the C++ STL set data structure have a set difference operator?
A: Not an "operator" in the language sense, but there is the set_difference algorithm in the standard library:
http://www.cplusplus.com/reference/algorithm/set_difference.html
Of course, the other basic set operations are pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Is it possible to export a WF diagram to visio? I would like to be able to export my WF diagram from visual studio 2008 into Visio so I can better show it to non-programmers. Dose anyone know if its possible? I haven't come across any mention of it before, and I don't see anything that jumps out at me from VS.
[EDIT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/283986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Transforming selected text with a hotkey I have this code:
myVariable
which I want to change into
trace("myVariable: " + myVariable);
using a direct hotkey like alt - f12 to do it. I.e not using ctrl - space and arrow buttons.
is it possible in eclipse?
A: I don't know if it's possible to bind hotkeys for templates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ Arrays: conversion of contained type What is the best way to convert a fixed length string array to a fixed lengh integer array in C++ ?
A: #include <algorithm>
std::string foo[9];
int bar[9];
std::transform(foo, foo+9, bar, MyMagicStringToIntFunction);
Where MyMagicStringToIntFunction is whichever function ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CruiseControl.NET Build Label & SourceGear Vault Practice Related Question I use SourceGear Vault and applyLabel="true" for a project so when it builds it will create a label in SourceGear Vault for the corresponding project.My questions are
I have a nightly builds so what if i don't have any changes made to that pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSF : How to update one session bean base on another session bean? I am currently modifying some jsf application. I have two beans.
*
*connectionBean
*UIBean
When I set my connection parameters in connectionBean the first time, the UIBean is able to read my connectionBean information and display the correct UI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Outputting data from unit test in Python If I'm writing unit tests in Python (using the unittest module), is it possible to output data from a failed test, so I can examine it to help deduce what caused the error?
I am aware of the ability to create a customized message, which can carry some information, but sometim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: Xcode Property Automation Xcode has these handy time savers in the scripts menu called "Code->Place Accessor Defs on Clipboard" and "Code->Place Accessor Decls on Clipboard". These scripts allow you to automate the generation of getter and setter methods for any highlighted instance variables.
Does anyone know of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you get the current directory in compact framework? How do you get the current directory where your app is running?
A: Try this:
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
A: You could try this:
using System.IO;
using System.Reflection;
namespace Utilities
{
static pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Using Volume Shadow Copy Service (VSS) in Delphi Does anyone have sample code to copy open (in-use and locked by another program) files using Volume Shadow Copy Service (VSS) API?
There was an article about this in The Delphi Magazine (September 2005). But that code is no longer available and even if it was, it's no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Emulate old PC? I'm writing a Flash game, pretty intensive on CPU.
Besides optimizing it a lot, I would like to be able to play it as players on slow PC's will, because I have a good CPU and I would like to make it also playable on bad CPU's
First I thought that virtualization would help, but I've tried vmware playe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How would you prefer
A: I'm adding my own answer here, so its more obvious what I'm trying to find out. The current idea I have settled on would perform as follows:
my $html=<<'EOF'
<script>
//<!--<![CDATA[
foo
//]]>-->
</script>
EOF
#/# this line is here for the syntax highlighter
my $obj = parse($html);
print $o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to redirect to the requested URI after authentication using Zend_Auth? I am using a simple Zend_Auth setup to authenticate users for one of my applications, using a check in the preDispatch() method in a controller plugin. When anonymous users navigate to
/users/view/id/6
for example, they should be redirected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: .NET Settings Relative Path I am working on an application where I have an images folder relative to my application root. I want to be able to specify this relative path in the Properties -> Settings designer eg. "\Images\". The issue I am running into is in cases where the Environment.CurrentDirectory gets changed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using TryParse for Setting Object Property Values I'm currently refactoring code to replace Convert.To's to TryParse.
I've come across the following bit of code which is creating and assigning a property to an object.
List<Person> list = new List<Person>();
foreach (DataRow row in dt.Rows)
{
var p = new Person... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Building my first ASP application I've just been tasked with building a web application using ASP (.net) and am looking for some advice on where to start. In a nutshell the application needs to be able to.
*
*Handle user verification / authentication
*Handle sessions
*Do SOAP messaging
The application is in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to get a ReadOnlyCollection of the Keys in a Dictionary My class contains a Dictionary<T, S> dict, and I want to expose a ReadOnlyCollection<T> of the keys. How can I do this without copying the Dictionary<T, S>.KeyCollection dict.Keys to an array and then exposing the array as a ReadOnlyCollection?
I want the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: wintypes.dcu not found and code completion stops working I'm getting the error: wintypes.dcu not found several times a day in the Delphi 2009 IDE, after this error code completion stops working, also I can't open any unit's source code with Ctrl + Click, then I have to reopen the IDE to fix it.
Anyone has a clue abo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: stop Ms Excel auto-formatting numeric strings as numbers I am exporting a report from MS Access(2003) to Excel (97-2003) output.
One of the columns has a character string that is numeric for some rows e.g. "05-0880".
When I open the output file in MS Excel the corresponding cell is set to the number -372424.
I assu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Build hexadecimal notation string How do I build an escape sequence string in hexadecimal notation.
Example:
string s = "\x1A"; // this will create the hex-value 1A or dec-value 26
I want to be able to build strings with hex-values between 00 to FF like this (in this example 1B)
string s = "\x" + "1B"; // Unrec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to 'select' from XML with namespaces? I have an XML document something like :::
<?xml version="1.0" encoding="utf-8"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:sche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What Windows API do I choose for a rich client application? I develop rich client software on Mac OS X and Linux. I wish to port an application to Windows and not being a user of Microsoft products, I'm not very familiar with Windows in general.
What I'm familiar with:
On Mac OS X, I have the option of Cocoa and Obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What source control do you use for Report Builder 2.0? I want to use the new report builder 2.0, rather than the old VS2005 integrated report builder for the new features and ease of use, but source control integration is a must.
I don't see any ability to use TFS natively, and I have installed the TFS MSSCCI Provid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XmlSerializer and XmlElement fields I have an xml that looks like this:
<Config>
<A></A>
<Template><B/><C/></Template>
</Config>
and I would like to deserialize it in to get the <Template><B/><C/></Template> bit as a XmlElement or XmlNode. But when I try like this:
public class Config
{
public string A;
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Do you follow the naming convention of the original programmer? If you take over a project from someone to do simple updates do you follow their naming convention? I just received a project where the previous programmer used Hungarian Notation everywhere. Our core product has a naming standard, but we've had a lot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Cross platform hidden file detection What is the best way to do cross-platform handling of hidden files?
(preferably in Python, but other solutions still appreciated)
Simply checking for a leading '.' works for *nix/Mac, and file attributes work on Windows. However, this seems a little simplistic, and also doesn't a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: NAnt extension function, Project object Is there a way to access the Project object from a NAnt extension function, as can be done from an extension task?
In this example, I want to use the BaseDirectory property inside the Bar function:
[FunctionSet("foo", "Foo")]
public class FooFunctions : FunctionSetBase
{
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I mix message encoding types (Text/MTOM) in the Request & Response of a Web Service client application using WCF (or WSE 3)? Here is my problem. I am hitting a web service (hosted on a Java based server) that will only accept text encoded Requests, but it returns MTOM Responses. What I've found is that if I s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: SQL Server NOLOCK on queries run for authorization During the course of our application login there are several queries ran, all around validating the login. In evaluating them I noticed that one of the queries is run without the NOLOCK hint.
There does not seem to be any particular danger of dirty read because the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flex datagrid universal numeric sorting function? I am using a Flex dataGrid, and need to sort some of my columns numerically.
Looking at the sortCompareFunction, it seems like i need to create a different function for each column that i want to sort, because my sort function has to know what field it is sorting on.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Warm Standby SQL Server/Web Server Warm Standby SQL Server/Web Server
This question might fall into the IT category but as the lead developer I must come up with a solution to integration as well as pure software issues.
We just moved our web server off site and now I would like to keep a warm standby of both the we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284187",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to center list on page programically on Reporting services? I'm interested to center (dynamically) the list/table on page.
Eg I have table with unknown records count (only in runtime will know that)
So how to center it on the page?
A: I have not tried this myself, but have you thought about setting t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: script for actionscript/flash and c++ I havent used flash or action script much. I am planning a small project that i'd like to be online via flash but i'd like to reuse the code in my c/c++ projects
Is there a script language i can use? i am thinking lua or python. After googling i found flua which is incomplete an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is Vista Ultimate 64 w/SP1 okay for a development machine? I am updating my rig and I need to make a decision between staying with XP x64 or going to Vista x64. I do very little development, really just building products from my developers. The other 90% of my work is done with Google Apps, Skype, Office, etc...
I w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Schedule a .vbs file to run in Windows I have a VBScript script that starts a cmd prompt, telnets into a device and TFTP's the configuration to a server. It works when I am logged in and run it manually. I would like to automate it with Windows Task Scheduler.
Any assistance would be appreciated, here is the VBScrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Iterate though Generic List in C# public class Item
{
private int _rowID;
private Guid _itemGUID;
public Item() { }
public int Rid
{
get
{
return _rowID;
}
set { }
}
public Guid IetmGuid
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.