text string | meta dict |
|---|---|
Q: Whats the 'best' method of writing data out to a file, to be later read in again. What is the best way of storing data out to a file on a network, which will be later read in again programmatically. Target platform for the program is Linux (Fedora), but it will need to write out a file to a Windows (XP) machine
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C#: How to include dependent DLLs? I am using a 3rd party API which is defined in 2 DLLs. I have included those DLLs in my project and set references to them. So far so good.
However, these DLLs have at least one dependent DLL which cannot be found at runtime. I copied the missing DLL into the project and set the '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Logical negation operator in F#? (!-equivalent) What is the equivalent to the C# "!" operator in F#?
A: See Core.Operators Module (F#) for more.
A: According to "Foundations of F#", page 61:
F# uses a function called not for Boolean "not" operations.
A: you can also use "<>"
| {
"language": "en",
"url": "https://stackoverflow.com/questions/239888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Am I immune to SQL injections if I use stored procedures? Lets say on MySQL database (if it matters).
A: It depends what your stored procs do. If they dynamically generate SQL based on their parameters, and then execute that SQL, then you're still vulnerable. Otherwise, you're far more likely to be fine - but I hes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Should this property be part of my object's interface? I have a property called "IsSecureConnection" that is part of my object's interface. This makes sense for most implementations of the interface, however, in some implementations I would like to make the property ReadOnly.
Should I omit this property from the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL CE 3.5 deployment problem, concerning interop between C# and C++ We have a situation where a C# application is working with SQL CE 3.5 . To allow for a legacy program to use some of its features we have produced a C++ dll which uses interop to extract the info that it needs from the C# program. For this to work,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python file interface for strings Is there a Python class that wraps the file interface (read, write etc.) around a string? I mean something like the stringstream classes in C++.
I was thinking of using it to redirect the output of print into a string, like this
sys.stdout = string_wrapper()
print "foo", "bar", "baz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Custom Error Pages in JBoss Hey all, This is my first question here!
I'm trying to setup custom error pages in my JBoss RESTful web service. I'm starting with the 400 error, so in my web.xml I've added
<error-page>
<error-code>400</error-code>
<location>/400.html</location>
</error-page>
and I've placed 40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ORA-12514 after rebooting server I am using Oracle 10g R2.
Recently, after rebooting the server, I started having a problem where I couldn't connect to the instance. I am only connecting locally on the server itself.
Oddly enough, the issue corrects itself if I start the Database Administration Assistant, and sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForms: Proper way to change number of rows in a TableLayoutPanel i'm trying to change the number of rows in a TableLayoutPanel programatically (sometimes it needs to be four, sometimes five, and rarely six).
Unfortunatly changing the number of rows does not keep the RowStyles collection in sync, so you are then n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need to create an expression in an outer join that only returns one row I'm creating a really complex dynamic sql, it's got to return one row per user, but now I have to join against a one to many table. I do an outer join to make sure I get at least one row back (and can check for null to see if there's data in tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to determine if XElement.Elements() contains a node with a specific name? For example for the following XML
<Order>
<Phone>1254</Phone>
<City>City1</City>
<State>State</State>
</Order>
I might want to find out whether the XElement contains "City" Node or not.
A: Just use the other overload for Element... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Which is recommended: "static public" or "public static" If you have a class member that is static and public. Would you write static public or public static? I know they are the same. But is there some recommendation / best practice for writing this?
A: "public static" is far more common, so you might want to go w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Passing a client certificate only works on my machine I have a web service that is protected by requiring the consuming third party application to pass a client certificate. I have installed the certificate on the providing web service in production and on the client as well. This process is currently working fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Deploy asp.net mvc beta to iis 6 causing 404's I'm struggling to get around the 404 errors from asp.net mvc beta when deploying on IIS 6. I had this working in one of the previews by mapping .mvc in IIS but this no longer works. I've read Omar's post and several others on the web and tried their solutions but no luc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: FileSystemWatcher vs polling to watch for file changes I need to setup an application that watches for files being created in a directory, both locally or on a network drive.
Would the FileSystemWatcher or polling on a timer would be the best option. I have used both methods in the past, but not extensively.
What i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/239988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "166"
} |
Q: How can I make an interface property optionally read-only in VB.NET? This is a follow-up to a previous question I had about interfaces. I received an answer that I like, but I'm not sure how to implement it in VB.NET.
Previous question:
Should this property be part of my object's interface?
public interface Foo{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cross-referencing across multiple databases I have two databases, one is an MS Access file, the other is a SQL Server database. I need to create a SELECT command that filters data from the SQL Server database based on the data in the Access database. What is the best way to accomplish this with ADO.NET?
Can I pull t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is a Collection of Collections possible and/or the best way? C# .Net 3.5 I have created a class for a dashboard item which will hold information such as placement on the dashboard, description, etc. I am currently using a pair of Collections to hold those dashboard items contained in the "library" and those items s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: random number with ratio 1:2 I have to generate two random sets of matrices
Each containing 3 digit numbers ranging from 2 - 10
like that
matrix 1: 994,878,129,121
matrix 2: 272,794,378,212
the numbers in both matrices have to be greater then 100 and less then 999
BUT
the mean for both matrices has to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Automatic YUV -> RGB in DirectShow for custom decoder after hours of searching on the net I'm quite desperate to find solution for this. I've up & running OGG Theora decoder in DirectShow which ouputs YV12 and YUY2 color models.
Now, I want to make a RGB pixel manipulation filter for this output and to process it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Question about MSDN and commercial use I work for a small digital marketing company as a programmer, and we are not a Microsoft partner or any sort (Gold/Silver/Bronze). However, we use .NET.
What I am confused about is that the developer before me has left, and he gets subscription DVDs of latest Microsoft tools, d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: WindowsError: priveledged instruction when saving a FreeImagePy Image in script, works in IDLE I'm working on a program to do some image wrangling in Python for work. I'm using FreeImagePy because PIL doesn't support multi-page TIFFs. Whenever I try to save a file with it from my program I get this error message (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you come up with names for your namespaces? I'll preface this by saying that I usually work in C#/.Net.
Normally, I use a naming scheme that puts common, reusable components into a namespace that reflects our organization and project-specific components into a namespace tied to the project. One of the reason... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Oracle utl_match special characters I'd like to use Oracle's utl_match.edit_distance function. It supposed to compare two strings and return the Levenshtein distance.
select utl_match.edit_distance('a','b') from dual
returns 1 as expected, but
select utl_match.edit_distance('á','b') from dual
returns 2. Obviously ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Referencing tables In SQL Server, why is this:
[dbo].[table_name]
preferable to this:
dbo.table_name
And along those lines, why even list the dbo at all if there's only one schema?
A: If the table name contains key words, you will have to enclose it inside [ ]. Most of the tools (like ORM) use this technique to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Subversion externals problem I am new to SVN and make heavy use of the externals property. I have a repository located on my PC and the externals properties have a hardcoded 'localhost' in the name, which is now giving me problems. For example:
/project1/trunk
/shared/trunk
project1/trunk depends on the shared fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: 1ms resolution timer under linux recommended way I need a timer tick with 1ms resolution under linux. It is used to increment a timer value that in turn is used to see if various Events should be triggered. The POSIX timerfd_create is not an option because of the glibc requirement. I tried timer_create and timer_set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Dependency checking - how to clean up a project with bad makefiles I have a very large C project with many separate C files and headers and many dozens of contributors. Many contributors do not have a strong knowledge of makefiles and dependencies, resulting in the not uncommon problem where you almost always have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Securing .NET application with keys I am at the point where I need to add keys to my app. What are some of the possible solutions you guys used? I've looked at an earlier post so far, anything else before I decide. My 2 influential factors are:
*
*Price
*Ease of use
Thanks
A: If you are talking about software... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web Application Time Zone Issue We have a ASP.Net 2.0 web application up and running with the server in the Midwest (Eastern Standard Time). At this moment all of our customers are in the same time zone as the server. We are bringing another server online in Arizona (Mountain Standard Time).
We are storing all our t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why is a left parenthesis being escaped in this Regex? I'm using an HTML sanitizing whitelist code found here:
http://refactormycode.com/codes/333-sanitize-html
I needed to add the "font" tag as an additional tag to match, so I tried adding this condition after the <img tag check
if (tagname.StartsWith("<font"))
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ActiveX communication I'm developing an ActiveX EXE that exposes an specific class to a third-party software. This third-party software instanciates an object of this class and uses its methods.
Strangely, this third-party software destroys its object of my exposed class as soon as it calls an specific method, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MS Reportviewer - Save Expanded/Collapsed Nodes in ViewState? I have a report that's being populated from an ObjectDataSource. The report includes expandable/collapsible nodes per user.
I'm allowing the viewer to filter the report by setting the FilterExpression on the datasource, then calling ReportViewer1.Local... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any designers or libraries for creating "Vista-style" web pages? I'm looking for a way to create websites with the cool stylings of Windows Vista, like what is shown in this screenshot (taken from one of Microsoft's websites):
Any suggestions? I'd prefer an integrated designer / IDE, but libraries or templates migh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert string result of enum with overridden toString() back to enum? Given the following java enum:
public enum AgeRange {
A18TO23 {
public String toString() {
return "18 - 23";
}
},
A24TO29 {
public String toString() {
return "24 - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: When posting info from a form, is it better to use $_REQUEST or $_POST? I have a form a user can enter their name, then it will add it to $message to be sent in an email.
Is it better to use $_POST or $_REQUEST?
Here is a snippet of using $_REQUEST
$message.= "Name: ".$_REQUEST["fname"]." ".$_REQUEST["mname"]." ".$_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What classes from Jeffrey Richter's PowerThreading library are people using? Jeffrey Richter is looking for some input on how people are using his PowerThreading library. If anyone out there is using this, what parts of it are you using? He is looking to clean up the library and wants to know what classes people are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why would I want to use Interfaces? I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this.
A: One specific example: interfaces are a good way of specifying a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Is there a notification mechanism for when a dependency property has changed? In a Silverlight application I'm trying to find out when a property on a usercontrol has changed. I'm interested in one particular DependencyProperty, but unfortunately the control itself doesn't implement INotifyPropertyChanged.
Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android application deployment
Possible Duplicate:
How to install the application on real device without publishing and Eclipse?
Besides the Android Marketplace, what are my options as far as deploying an Android application to someone remotely?
The particular issues I am up against are that I have an applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Corrupt form data: premature ending I am trying to upload files using the FileReference class. Files >2MB all work correctly but files <2MB cause this error:
"java.io.IOException: Corrupt form data: premature ending"
On the server I am using the com.oreilly.servlet package to handle the request.
I have used this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting Invalid Address with javax.mail when the addresses are fine I'm using the javax.mail system, and having problems with "Invalid Address" exceptions. Here's the basics of the code:
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Launching an application (.EXE) from C#? How can I launch an application using C#?
Requirements:
Must work on Windows XP and Windows Vista.
I have seen a sample from DinnerNow.net sampler that only works in Windows Vista.
A: Additionally you will want to use the Environment Variables for your paths if at all possib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "185"
} |
Q: List of lists changes reflected across sublists unexpectedly I created a list of lists:
>>> xs = [[1] * 4] * 3
>>> print(xs)
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
Then, I changed one of the innermost values:
>>> xs[0][0] = 5
>>> print(xs)
[[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]
Why did every first element ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "902"
} |
Q: Why is Oracle's to_char() function adding spaces? Why is Oracle's to_char() function adding spaces?
select length('012'),
length(to_char('012')),
length(to_char('12', '000'))
from dual;
3, 3, 4
A: To make the answers given more clear:
select '['||to_char(12, '000')||']',
'['||to_char(-12... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Freeing memory on the heap. Should I and how? I'm writing a CESetup.dll for a Windows Mobile app. It must be unmanaged, which I have little experience with. So I'm unsure of whether I should free the memory I allocate and how I do it.
Here's the function I've written:
Uninstall_Init(
HWND hwndParent,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP: Removing an attribute from a DOMNode object I've got a DOMNode object that has some attributes. $Node->attributes is a DOMNamedNodeMap, which has no methods for removing one of the entries in the map. The DOMNode class also has no methods for removing attributes from an element. I've looked through a number of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the difference between new/delete and malloc/free? What is the difference between new/delete and malloc/free?
Related (duplicate?): In what cases do I use malloc vs new?
A: The most relevant difference is that the new operator allocates memory then calls the constructor, and delete calls the destructor the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "303"
} |
Q: Get Binary data from a SQL Database I have an ASP .Net (3.5) website. I have the following code that uploads a file as a binary to a SQL Database:
Print("
protected void UploadButton_Click(object sender, EventArgs e)
{
//Get the posted file
Stream fileDataStre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Double/incomplete Parameter Url Encoding In my web app, my parameters can contain all sorts of crazy characters (russian chars, slashes, spaces etc) and can therefor not always be represented as-is in a URL.
Sending them on their merry way will work in about 50% of the cases. Some things like spaces are already enco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Handling of child and grandchild windows in Javascript I have a main window (#1) on my webpage from which I open a new browser window (#2) from which I open a new window (#3).
Now if my user closes window#2 before window#3, I have the problem that window#3 no longer can call function in its window.opener since it ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: vim -- How to read range of lines from a file into current buffer I want to read line n1->n2 from file foo.c into the current buffer.
I tried: 147,227r /path/to/foo/foo.c
But I get: "E16: Invalid range", though I am certain that foo.c contains more than 1000 lines.
A: I just had to do this in a code project of mine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Removing trailing nulls from byte array in C# Ok, I am reading in dat files into a byte array. For some reason, the people who generate these files put about a half meg's worth of useless null bytes at the end of the file. Anybody know a quick way to trim these off the end?
First thought was to start at the end of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: NAnt, MbUnit, CruiseControl, Selenium - passing settings to the test assembly I am putting together some ideas for our automated testing platform and have been looking at Selenium for the test runner.
I am wrapping the recorded Selenium C# scripts in an MbUnit test, which is being triggered via the MbUnit NAnt task.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where has windows working sets gone in Eclipse 3.4 Where can I find the option to switch between the Windows Working Set in Eclipse 3.4 (Ganymede)? In the previous version it was under then Window menu, but it appears to have moved.
A: In the package explorer you will see a small triangle in the top right of the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does the error "htmlfile: invalid argument" mean? I'm getting this in excanvas.js I'm hitting this error and I'm not really sure why. I have a minified version of excanvas.js and something is breaking in IE, specifically on:
var b=a.createStyleSheet();
I'm not sure why. Does anyone have any insight? I can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IIS 6, tool to copy all site host headers? I have a Server 2003 box with about 6 sites that each have about 15-20 host headers.
Is there a tool out there that will copy all the host header records and automatically move them to the new server so I don't have to manually enter each host header again in the new server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does the VisualStudio Dataset visualizer exclaimation mark mean? Some rows in the dataset visualizer have an exclamation mark for each column, other rows have the data as expected. I have been unable to track down a description for the exclamation mark or indeed any symbol within the dataset visualizer.
What do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authorizing REST Requests I'm working on a REST service that has a few requirements:
*
*It has to be secure.
*Users should not be able to forge requests.
My current proposed solution is to have a custom Authorization header that look like this (this is the same way that the amazon web services work):
Authoriza... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Date Parsing and Validation in JavaScript How would I achieve the pseudo-code below in JavaScript? I want to include the date check in the second code excerpt, where txtDate is for the BilledDate.
If ABS(billeddate – getdate) > 31 then yesno “The date you have entered is more than a month from today, Are you sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Given a Java InputStream, how can I determine the current offset in the stream? I'd like something like a generic, re-usable getPosition() method that will tell me the number of bytes read from the starting point of the stream. Ideally, I would prefer this to work with all InputStreams, so that I don't have to wrap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: SCE - Custom Data Feeds I am using the syndicated client experience (SCE) SDK. Has anyone had success with creating custom datafeeds for this? I want to be able to host the masterfeed and other feeds at a URL instead of compiling as embedded resources like the example. For instance, the client application would gath... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to write policy redirect files for native SxS dlls? Where can I find a good reference that explains how to write and install a SxS policy redirecting from one native assembly version to another?
I've already succeeded in building and installing two versions of my native assembly using a wix installer. But I'm no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to trim input field value in struts? I use Struts v1.3 and have following input form:
In struts-config.xml:
<form-bean name="testForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="displayName" type="java.lang.String" />
</form-bean>
In validation.xml... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I wrap a method so that I can kill its execution if it exceeds a specified timeout? I have a method that I would like to call. However, I'm looking for a clean, simple way to kill it or force it to return if it is taking too long to execute.
I'm using Java.
to illustrate:
logger.info("sequentially executing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to Report Bugs the Smart Way I want to write (or find) a guide to effective bug reporting in a style similar to ESR's How To Ask Questions The Smart Way
What are your top tips for effective bug reports?
A: *
*Step-by-step instructions on how to recreate the bug
*Make sure you've attempted to isolate the bug t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to hook a global PASTE EVENT? I am developing a software that needs to know when the PASTE EVENT (through the context menu or ctrl+V) happens (only for files / directories). More or less, something like it happens with TeraCopy or Copy Handler. When you copy and then paste, it is TeraCopy that handles the pastin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you measure page load speed? I am trying to quantify "site slowness". In the olden days you just made sure that your HTML was lightweight, images optimized and servers not overloaded. In high end sites built on top of modern content management systems there are a lot more variables: third party advertising, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: SQL Date Formulas I need a date formula in Oracle SQL or T-SQL that will return a date of the previous week (eg Last Monday's date).
I have reports with parameters that are run each week usually with parameter dates mon-friday or sunday-saturday of the previous week. I'd like to not have to type in the dates when i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Launching a ClickOnce Deployed Windows application using VBScript I have a ClickOnce deployed application I want to launch from VBScript, similar to launching Microsoft Word in the following example:
Dim word
Set word = CreateObject("Word.Application")
word.Visible = True
The problem is I don't know what parameter ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert a preprocessor token to a string I'm looking for a way to convert a preprocessor token to a string.
Specifically, I've somewhere got:
#define MAX_LEN 16
and I want to use it to prevent buffer overrun:
char val[MAX_LEN+1]; // room for \0
sscanf(buf, "%"MAX_LEN"s", val);
I'm open to other ways to accomplish ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: Getting Post - Redirect - Refresh to call redirect page rather than original request We have a POST to a PL/SQL database procedure that (a) does some database operations based on the POST parameters and (b) redirects the user to a page showing the results.
The problem is, when the user does a browser "refresh" of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does XPCSafeJSObjectWrapper do? What does Mozilla Firefox's XPCSafeJSObject wrapper actually do?
MDC's documentation is as follows:
This wrapper was created to address some problems with XPCNativeWrapper. In particular, some extensions want to be able to safely access non-natively-implemented content defined o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF sessions or pass username/password per call? For an enterprise type WCF service, where potentially 10K's of thousands of clients will be authenticating and sending data to central servers, what is 'best' practice when it comes to sessions or authentication?
*
*does WCF support a session, if yes, should I use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: RDP connectivity/responsiveness test I want to write an app to test whether a Windows machine is responding correctly to RDP (Remote Desktop) - i.e. to check if the machine not only allows the connection, but is also responding normally, and is not hung or otherwise responding abnormally.
Is there a library or utili... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you change the extension that .Net pages will run under? I need my .net application to use the .html extension instead of .aspx
I'm converting a php app and there are external applications which depend on that extension to function.
What is the best way to do this?
Thanks
A: In IIS, when you create the app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I reload kerberos configuration under tomcat? My application runs under tomcat.
It is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos.
It allows the user to define AD servers and try to connect to them.
However, once the first Kerberos using connect attempt is done, the applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why won't this SQL statement work? I have the following SQL-statement:
SELECT DISTINCT name FROM log WHERE NOT name = '' AND name LIKE '%.EDIT%';
It works fine on Postgres (returns all different names from log, which aren't empty and contain the string '.EDIT'). But on Oracle this statement doesn't work. Any idea w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET MVC URL auto-resolution in CSS files In normal WebForms scenario, any root-relative URLs (e.g. ~/folder/file.txt) inside CSS files such as:
.form { background-image: url(~/Content/Images/form_bg.gif); }
will automatically get resolved during runtime if I specify
<head runat="server">
In the referencing pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What are the .NET Services? Announced today at PDC. Initially made up of a Service Bus, the Workflow Service, and the Access Control Service. What are they? Why would I use them?
A: I've looked at it a little. There's a few posts that convey a lot of meaning, I feel. This new wave of technologies really does loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MYSQL: Create Table If Not Exists If I do a Create Table If Not Exists, and a table with the same name exists with fewer rows (or columns), what would happen?
A: The table will not be created if a table with the same name already exists regardless of table layout.
A: Nothing. If the "IF Not Exists" clause fails, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: DBI's column_info vs. pgAdmin on quoted identifiers I have a table in my Postgres database with columns named "type", "desc", and "start". When I call $dbh->column_info, only "desc" comes back quoted, whereas in pgAdmin all three of them are quoted. Is one of them wrong?
A: I think I kind of answered my own questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UML : Internal class in a class diagram In a class diagram, is there a way of specifying that a class is an internal class of another class ?
Or is it considered as a pure implementation choice ?
A: Since UML isn't supposed to be directly implementation specific, I'd use a naming convention, such as:
OuterClass v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Modify HTML in a Internet Explorer window using external.menuArguments I've got a VB.NET class that is invoked with a context menu extension in Internet Explorer.
The code has access to the object model of the page, and reading data is not a problem. This is the code of a test function...it changes the status bar t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: subversion merge a delete command When I merge the trunk into a feature-branch, a delete that occurred on the trunk will not be replicated to my working copy.
Why will a delete on trunk not delete the same file on a branch when merging?
I'm using subversion 1.5 client and server.
I'm assuming that changes to the fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MOSS 2007 Breadcrumb problem I've got a page layout for a publishing site with an odd behaviour.
Imagine a publishing site (site) with a subsite (subsite1) which has the following pages (page1 [default], page2, and page3)
for page 2 and page three the breadcrumb renders correctly:
site > subsite1 > page2
site > s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you structure config data in a database? What is people's prefered method of storing application configuration data in a database. From having done this in the past myself, I've utilised two ways of doing it.
*
*You can create a table where you store key/value pairs, where key is the name of the config opt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What is Windows Azure? Announced today. Descriptions so far are confusing. Let's put together a good starting point for understanding Windows Azure.
Strongly related to What is a "Cloud OS"?, but not enough to warrant closing.
A: It's time sharing. Once again we reinvent something. ;) And who predicted mainframes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What is the number of maximum concurrent connections for Sql CE 3.5? as google does not deliver what i want to know, i try to ask stackoverflow :)
what is the number of max concurrent connections to a sql ce 3.5 database?
thanks
j.
A: I know that SQL CE 3.5 allows multiple concurrent connections from multiple proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I change an element (e.g. h1 -> h2) using jQuery / plain old javascript? Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (p) into an address element. My current method is (more-or-less):
var p = $('p#test');... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Will JavaFX work on Android? It would be a shame if it doesn't, because it will make for more attractive looking Android applications.
A: Not right now, and it would be a nontrivial task to make it work. Android doesn't have all the libraries that the typical desktop JRE does. Although since Android is open source ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Transfer variables between PHP pages I want to get user input in one page, store that in a php variable and use it in another php page. I have tried using 'sessions' but it doesn't seem to be working. Is there another safe alternative? This information is likely to be usernames and passwords.
A: I Agree with carson... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Should I use MSMQ or SQL Service Broker for transactions? I've been asked by my team leader to investigate MSMQ as an option for the new version of our product. We use SQL Service Broker in our current version. I've done my fair share of experimentation and Googling to find which product is better for my needs, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to determine path from noisy X, Y data I have an unsorted list of noisy X, Y points. They do, however, form a path through the world. I would like an algorithm to draw an approximation of this data using line segments.
This is similar to how you would use a line -fitting algorithm to pick an approximation of lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Convert a string to GregorianCalendar I have a string from an email header, like Date: Mon, 27 Oct 2008 08:33:29 -0700. What I need is an instance of GregorianCalendar, that will represent the same moment. As easy as that -- how do I do it?
And for the fastest ones -- this is not going to work properly:
SimpleDateFo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Patterns : Java class conversion from axis objects I use a axis to auto-generate webservice artifacts which I then convert into objects used within our application. Is there a sensible pattern for doing this ? We have written transform methods to output our objects from the axis created objects, at other times we ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you do end-of-week rounding on a date field in C# (without using LINQ)? I have a weird date rounding problem that hopefully someone can solve. My client uses a work week that runs from Monday through Sunday. Sunday's date is considered the end of the week, and is used to identify all records entered in a pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Web app for running ant task Does anyone know of a simple web app that supports running ant tasks? Alternatively it could run command line programs. I need to allow the user to choose parameters for running the ant task. I effectively want a web interface to run the ant task and provide any parameters.
I can writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When should I be using "NOT NULL" in a MySQL table and are there any benefits? I have the following rails migration:
create_table :articles do |t|
t.integer :user_id, :allow_null => false
t.integer :genre_id, :allow_null => false
t.string :url, :limit => 255, :allow_null => false
t.string :title, :limit => 6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/240544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |