text string | meta dict |
|---|---|
Q: Looking for a good Bulk Insert XML Shredding example for SQL 2005 A little help needed. I'm receiving an xml file similar to this:
<?xml version="1.0" encoding="utf-16"?>
<dc:GRANTEE xsi:schemaLocation="http://www.blahblahblah.com/FullSchema test.xsd " xmlns:dc="http://www.blahblahblah.com/FullSchema" xmlns:xsi="ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the memory footprint of an object at Runtime in .NET? I have a static object at runtime that is basically a list of other objects (ints, strings, Dictionary, other objects, etc). Is there way to determine the memory used by my static "list of other objects" object at runtime? This would be handy for instru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get the length of a string in Perl? What is the Perl equivalent of strlen()?
A: length($string)
perldoc -f length
length EXPR
length Returns the length in characters of the value of EXPR. If EXPR is
omitted, returns length of $_. Note that this cannot be used on an
entire ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Cross Site Scripting and HTML Encoding If I HTML encode any data entered by website users when I redisplay it, will this prevent CSS vulnerabilities?
Also, is there a tool/product available that will sanitize my user input for me, so that I don't have to write my own routines.
A: There are various subtleties to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Checking for duplicates in a complex object using Linq or Lambda expression I've just started learning linq and lambda expressions, and they seem to be a good fit for finding duplicates in a complex object collection, but I'm getting a little confused and hope someone can help put me back on the path to happy coding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding unit tests to an existing project My question is quite relevant to something asked before but I need some practical advice.
I have "Working effectively with legacy code" in my hands and I 'm using advice from the book as I read it in the project I 'm working on. The project is a C++ application that consists ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Database comparison Which industry-class database has the most unique features? (with "unique" meaning that no other RDBMS has them)
I think my choice here is Oracle 11g:
*
*Flashback query (you can estract data as it was a moment in the past)
*ASM - automatic storage management
*Native code compilation of stor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I compare two datetime fields but ignore the year? I get to dust off my VBScript hat and write some classic ASP to query a SQL Server 2000 database.
Here's the scenario:
*
*I have two datetime fields called fieldA and fieldB.
*fieldB will never have a year value that's greater than the year of fieldA
*I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the scope of isolation in nested transactions in SQL Server? Consider the following SQL:
BEGIN TRAN
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
INSERT Bands
( Name )
SELECT 'Depeche Mode'
UNION
SELECT 'Arcade Fire'
-- I've indented the inner transaction to make it clearer.
BEGIN TRAN
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I update an Environment Variable in a Visual Studio Deployment Project I would like to append a path to the PATH environment variable in a Visual Studio 2005 deployment project. How does one do this?
A: Use the registry editor view in the setup project and create the path key in the appropriate place
ie.
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Clearing parser state of a bison generated parser I am using a C lexer that is Flex-generated, and a C++ parser that is Bison-generated. I have modified the parser to acccept only string input.
I am calling the parser function yyparse() in a loop, and reading line by line of user input. I stop the loop if the input ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can someone help explain this scheme procedure Question:
((lambda (x y) (x y)) (lambda (x) (* x x)) (* 3 3))
This was #1 on the midterm, I put "81 9" he thought I forgot to cross one out lawl, so I cross out 81, and he goes aww. Anyways, I dont understand why it's 81.
I understand why (lambda (x) (* x x)) (* 3 3) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I use GNU Aspell for English in my asp.net application? Aspell-net is a port of the GNU Aspell for .Net Framework. The library itself is open source, and is under the LGPL license, but the english dictionary for aspell is mentioned as copyrighted on the sourceforge.net project home page at http://aspell-net.sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does the asp.net login control encrypt the password field? I'm setting up my first site using the asp authentication provider and using the built in asp.net login control.
My question, is the password encrypted or hashed as it's sent to the server using the asp.net login control? or do I need to use https/ssl to acc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTML encode user input when storing or when displaying Simple question that keeps bugging me.
Should I HTML encode user input right away and store the encoded contents in the database, or should I store the raw values and HTML encode when displaying?
Storing encoded data greatly reduces the risk of a developer forge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Saving/Organizing/Searching Outlook E-mail outside of Outlook My company requires me to use Outlook for my E-mail. Outlook does virtually nothing the way I want to do it and it frustrates me greatly. (I'm not trying to start a flame war here, it must do exactly what thousands of CEO's want it to do, but I'm not a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to use Reflection to Invoke an Overloaded Method in .NET Is there a way to Invoke an overloaded method using reflection in .NET (2.0). I have an application that dynamically instantiates classes that have been derived from a common base class. For compatibility purposes, this base class contains 2 methods of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: How do I update a WinForms ListView when using VirtualMode=True? I have an app with a large ListView which is terribly slow so I'm implementing VirtualMode. MSDN does not seem to cover how I would add and delete new items in the middle of the listview.
For example, the ListView has 1000 items (representing files on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do these values belong in a config file or database? There are multiple values I have been storing in ASP.NET configSections sections for each "module". I have been wondering if they even belong in these files at all.
The background stands at: These are multiple instances of the web application deployed. All use the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to detect the current sharepoint pages from the client machine? On the client machine I need to be able to somehow detect which sites the current user are looking at right now.
I know the base URL of the sharepoint app, say sharepoint.thecompany.net but how the hack do I get the last requested url from the serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I write objects for easy XML Serialization in VB.NET? I'm writing a small application in VB.NET and I would like some of the classes to be able to write themselves out to XML to serve as a "save" feature. I have seen XSD files used to generate VB classes that can serialize themselves into and out of XML very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert CSV file or Excel spreadsheet to RESX File I am looking for a solution or recommendation to a problem I am having. I have a bunch of ASPX pages that will be localized and have a bunch of text that needs to be supported in 6 languages.
The people doing the translation will not have access to Visual Studio an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I modify the timeout of an aspx page? Is there a way to manually increase / decrease the timeout of a specific aspx page?
A: In the web.config:
<configuration>
<location path="~/Default.aspx">
<system.web>
<httpRuntime executionTimeout="1000"/>
</system.web>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do we create a simple search engine using Lucene, Solr or Nutch? Our company has thousands of PDF documents. How do we create a simple search engine using Lucene, Solr or Nutch? We'll provide a basic Java/JSP web page were people can type in words and perform basic and/or queries then show them the document li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ASP.NET Model View Presenter project structure I am just starting a new ASP.NET project and using the MVP pattern. I did consider the MS MVC but it is not released yet and would be a big learning curve for some people on the team, so I opted for MVP now and possibly future projects MVC.
Anyway, it seems I will have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Probability of selecting an element from a set The expected probability of randomly selecting an element from a set of n elements is P=1.0/n .
Suppose I check P using an unbiased method sufficiently many times. What is the distribution type of P? It is clear that P is not normally distributed, since cannot be negati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing messages from subclass to original WndProc I have been reading the MSDN documentation on subclassing and I have been successful in handling events in a subclass
My issue is with passing messages back to the original WndProc.
As an example, if I have a window, with a sub-classed groupbox control and a button... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: want different icons with different builds in C# We have a product but we are doing some rebranding so we need to be able to build and maintain two versions. I used resource files combined with some #if stuff to solve the strings, images, and whatever else, but the program icon is giving me trouble. I couldn't fig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Infix format for Nemerle macro Say I need some very special multiplication operator. It may be implemented in following macro:
macro @<<!(op1, op2)
{
<[ ( $op1 * $op2 ) ]>
}
And I can use it like
def val = 2 <<! 3
And its work.
But what I really want is some 'english'-like operator for the DSL Im developing no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Variables for Class Names in Python? I want to know how to use variables for objects and function names in Python. In PHP, you can do this:
$className = "MyClass";
$newObject = new $className();
How do you do this sort of thing in Python? Or, am I totally not appreciating some fundamental difference with Pyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Why doesn't the NameObjectCollectionBase class provide a way to insert objects into the collection by index? The System.Collections.Specialized.NameObjectCollectionBase class is used extensively at my company as the basis of collection classes. (Let's not get into questioning why.) I recently came across a situation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET RegionInfo class When I try to create a new RegionInfo with certain ISO 3166 country codes ("BD" for Bangladesh, "SO" for Somalia, "LK" for Sri Lanka), I get an ArgumentException that says it's not recognized.
What's the deal? The Intellisense of RegionInfo(string) says it conforms to ISO 3166, but these countr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: copy files from one solaris 9 to another using java How to copy file(s) from one solaris 9 machine to another solaris 9 machine using only java?
We have ssh access to both machines. The java program will run on one of those two machines.
Update: rsync is not really an option. can't install it easily (UNIX team is, h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XAML - TextBox Linebreak Is there anyway in XAML only to have a linebreak in a TextBox?
I know I can set myTextBox.Text = "something\r\nsomething2" in Code, but I can't do this:
<TextBox x:Name="myTextBox">
<TextBox.Text>
Something
<Linebreak/>
Something2
</TextBox.Text>
</TextBox>
o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Perl ADO thinks printed output in stored procedure is an error! First of all (in case this is important) I'm using ActiveState's Perl (v5.8.7 built for MSWin32-x86-multi-thread).
I've just emerged from a three hour long debugging session, trying to find the source of an error. I found there was simply no error, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Swf object doesn't seem to work inside a Blogger post Any ideas why?
On the following link, where it says "So..." there should be an embedded swf.
http://blog.iainlobb.com/2008/10/wrong-door-creating-papervision3d.html
A: <div id="walkmovie"></div>
<script type="text/javascript">
var so = new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do Spring.NET and Common.Logging XML schemas (XSD) exist? Spring.NET 1.2.0 M1 comes with several XSD files for the <objects> node, database stuff, etc. However, it is an incomplete collection because it does not seem to include <spring> (used in App.config), <context>, or <parsers> elements. Additionally, Common.L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Returning records that partially match a value I'm trying to get a query working that takes the values (sometimes just the first part of a string) from a form control. The problem I have is that it only returns records when the full string is typed in.
i.e. in the surname box, I should be able to type gr, and it bri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Double buffering problem of a derived owner-drawn TabControl? I have derived a TabControl with the express purpose of enabling double buffering, except nothing is working as expected. Here is the TabControl code:
class DoubleBufferedTabControl : TabControl
{
public DoubleBufferedTabControl() : base()
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Awesomebar-like behavior with Windows Forms I'm trying to make a combo box that behaves somewhat like the Firefox 3 Awesomebar, with the following behavior:
*
*Type in text
*Asynchronously bring back results
*Up and down selects results in the list, BUT leaves the text that was typed in the entry box so the use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Linux programming environment configuration The other day I set up an Ubuntu installation in a VM and went to gather the tools and libraries I figured I would need for programming mostly in C++.
I had a problem though, where to put things such as 3rd party source libraries, etc. From what I can gather, a lot of sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java generics - returning subtype of declared type from method My class is implementing a super-class method which which returns List<JComponent>. The list being returned is read-only:
public abstract class SuperClass {
public abstract List<JComponent> getComponents();
}
In my class, I want to return a field w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: using the 'is' keyword in a switch in c# I'm currently adding some new extended classes to this code:
foreach (BaseType b in CollectionOfExtendedTypes) {
if (b is ExtendedType1) {
((ExtendedType1) b).foo = this;
}
else if (b is ExtendedType2) {
((ExtenedType2) b).foo = this;
}
else {
b.foo =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What is an uninterruptible process? Sometimes whenever I write a program in Linux and it crashes due to a bug of some sort, it will become an uninterruptible process and continue running forever until I restart my computer (even if I log out). My questions are:
*
*What causes a process to become uninterruptible?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "180"
} |
Q: Developing ArcMap extension .Net books? We have 2 new GIS programmer/analyst in our department (new to programming and ArcObjects) and I don't feel I'm qualified enough or have the time to teach them. So I'm looking for entry level books/tutorials for them to use as reference.
The only books I can find for developi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to escape a CDATA end token in xml? I was wondering if there is any way to escape a CDATA end token (]]>) within a CDATA section in an xml document. Or, more generally, if there is some escape sequence for using within a CDATA (but if it exists, I guess it'd probably only make sense to escape begin or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: SVN blame in Eclipse Yesterday, I discovered the Subversion (SVN) blame feature, and I was wondering, is this feature available from Eclipse?
A: As was pointed out, you would currently have to first install a plug-in to enable Subversion support. I recommend Subversive, myself, and a search here on Stack Overflow f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: Cleanest way to dynamically call a non static method from a non static class? I am looking for the cleanest way. I am tempted to use delegates not sure though.
A: Are you after something like this?
class A
{
public int Value;
public int Add(int a) { return a + Value; }
public int Mul(int a) { return a *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Internal DNS configuration woes Alright, I am going to state up front that this question may be too involved (amount of detail not complexity) for this medium. But I figured this was the best place to start.
I am attempting to setup a proof of concept project and my BIND configuration is my first big hurdle. I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting a sed string to PHP I have a regexp I'm using with sed, but now I need to make it work in PHP also. I can't use system calls as they are disabled.
$ cat uglynumber.txt:
Ticket number : 303905694, FOO:BAR:BAR: Some text
Case ID:123,456,789:Foobar - Some other text
303867970;[FOOBAR] Some text goes here
Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which commit has this blob? Given the hash of a blob, is there a way to get a list of commits that have this blob in their tree?
A: I thought this would be a generally useful thing to have, so I wrote up a little perl script to do it:
#!/usr/bin/perl -w
use strict;
my @commits;
my %trees;
my $blob;
sub blob_in_t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "188"
} |
Q: c# locking I am trying to prevent data races in a multihreaded server. My problem is the following: there is a List<RServer>, the type RServer is a class with several fields. Now, the server has several threads all running at the same time and they can modify both the List (adding more items) and the individual RSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using Ruby-based MySQL adaptor when the C MySQL gem is already installed? Well this is incredibly frustrating. After being nagged by Rails that I need to install the C-based MySQL adaptor, I did so... and then discovered that it won't work with MySQL under version 6. Now 'gem uninstall mysql' results in 'unknown ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Optimising binary serialization for multi-dimensional generic arrays I have a class that I need to binary serialize. The class contains one field as below:
private T[,] m_data;
These multi-dimensional arrays can be fairly large (hundreds of thousands of elements) and of any primitive type. When I tried standard .ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I pass an anonymous type to my ASP.NET MVC view? I've just started working with ASP.NET MVC now that it's in beta. In my code, I'm running a simple LINQ to SQL query to get a list of results and passing that to my view. This sort of thing:
var ords = from o in db.Orders
where o.OrderDate == DateTime.T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: .NET - Stream DataSet (of XML data) to ZIP file? I have a DataSet consisting of XML data, I can easily output this to a file:
DataSet ds = new DataSet();
DataTable dt = new DataTable();
ds.Tables.Add(dt);
ds.Load(reader, LoadOption.PreserveChanges, ds.Tables[0]);
ds.WriteXml("C:\\test.xml");
However what I want to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Preventing browser timeout on large file uploads I have a nice little file upload control I wrote for ASP.NET webforms that utilizes an IFrame and ASP.NET AJAX.
However, on large uploads, the browser times out before it can finish posting the form.
Is there a way I can increase this?
I'm not really interesting in al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do .NET sites hide .aspx extension of their files? I'm pretty sure stackoverflow.com is created with ASP.NET, but no matter where I click I see no .aspx extension in the address bar.
How it is done and is there a particular reason for this?
A: Most likely its done by URL Rewriting...
The webserver is taking URL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Best way to receive file through webservice I have an API consisting of ASP.NET webservices callable through GET/POST/SOAP.
A new functionality will require me to accept files through this webservice. Basically I'm allowing users to upload files to a file archive through the API, which they'd otherwise do by logging... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Repeated Multiple Definition Errors from including same header in multiple cpps So, no matter what I seem to do, I cannot seem to avoid having Dev C++ spew out numerous Multiple Definition errors as a result of me including the same header file in multiple source code files in the same project. I'd strongly prefer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to create .odt files with C#.NET? Note: I found this "Creating a Word Doc in C#.NET", but that is not what I want.
Do you know how to create a .odt to create file from C# .NET?
Is there a .NET component or wrapper for an OpenOffice.org library to do this?
A: Have a look at AODL (see http://odftoolkit.org/projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is it possible to install Kohana libraries for ORM in PHP without using the entire framework? In a previous question, I asked about various ORM libraries. It turns out Kohana looks very clean yet functional for the purposes of ORM. I already have an MVC framework that I am working in though. If I don't want to run i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Merge Primary Keys - Cascade Update Is there a way to merge two primary keys into one and then cascade update all affected relationships? Here's the scenario:
Customers (idCustomer int PK, Company varchar(50), etc)
CustomerContacts (idCustomerContact int PK, idCustomer int FK, Name varchar(50), etc)
CustomerNotes (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I relax PHP's open_basedir restriction? open_basedir limits the files that can be opened by PHP within a directory-tree.
I am storing several class libraries and configuration files outside of my web root directory. This way the web server does not make them publicly accessible. However when I try to inclu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Checking registrations against a CSV file I am new to MySQL and PHP(as you can probably tell) and I was wondering if anybody knew an easy way to import a CSV file into a MySQL table.
"There are any number of ways to input
csv into mysql depending in what kind
of access you have, if you can use the
mysql clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Indexes for has_many :through Suppose you have two models, User and City, joined by a third model CityPermission:
class CityPermission < ActiveRecord::Base
belongs_to :city
belongs_to :user
end
class City < ActiveRecord::Base
has_many :city_permissions
has_many :users, :through => :city_permissions
end
cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C and modern practices/examples in Linux I'm looking for programs/projects that are small to moderate size that show good modern practices for developing applications in C on Linux. I'd like to learn by example and curious how things are done out in the real world.
A: The Art of Unix Programming
A great book that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to salvage referential integrity with mutiple databases I am in the middle of designing a system that will be used to feed several production sites around the country (all information is in one site) with the potential to add more. Initially I thought that I could get away with only using one database. I am no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How much JavaScript do you let Rails generate? Ruby on Rails has a lot of ways to generate JavaScript. Particularly when it comes to Ajax. Unfortunately, there are a few problems that I often see with the JavaScript that it generates.
*
*Rails typically uses inline event handling.
<a onclick="somejavascript(); r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Low Cost Technical Architecture for a Website Backend I'm looking at opening up a website in the near future and aside from the standard domain registration costs, I'm unsure of how to proceed. I'm expecting the volume of data to be quite significant and looking at many webhosts it seems that while they might offer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Check a string to see if all characters are hexadecimal values What is the most efficient way in C# 2.0 to check each character in a string and return true if they are all valid hexadecimal characters and false otherwise?
Example
void Test()
{
OnlyHexInString("123ABC"); // Returns true
OnlyHexInString("123de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: @import in @media not working in Firefox 3.0.3 This is what I have, which works in IE7, but not in Firefox:
@media screen { @import 'screen.css'; }
It works outside of the @media block in Firefox:
@import 'screen.css';
UPDATE:
This works:
@media screen {
.yui-d3f
{
border: 1px solid #999;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: History of VB.NET Nullable syntax I can't find a definitive answer. Since C# 2.0 you've been able to declare
int? i = 125;
as shorthand for
Nullable<int> i = Nullable<int>(123);
I recall reading somewhere that VB.NET did not allow this shortcut. But low and behold, I tried it in VS 2008 today and it works.
Does ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Elegant structured text file parsing I need to parse a transcript of a live chat conversation. My first thought on seeing the file was to throw regular expressions at the problem but I was wondering what other approaches people have used.
I put elegant in the title as i've previously found that this type of task ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Logging in Eclipse/OSGi plugins I am starting to develop an Eclipse plugin (technically, an OSGi plugin) and one of the first problems I've run into is that I can't seem to control the commons-logging output as I normally would.
I've included the commons-logging package in the plugin dependencies, and indeed, when I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I avoid duplicated code in my tests and avoid mocking on self? In my question As a “mockist” TDD practitioner, should I mock other methods in the same class as the method under test?, Avdi answered "Personally I think that mocking on self is almost always a code smell. It's testing the implementation rather t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: opengl rotation using gldrawpixels My team is currently limited to drawing images on an opengl 1.4 platform, which means that we can't use any nifty texture mapping to draw an image (yes, we're confined to using the intel integrated graphics platform, it's very annoying). So far, we're able to draw, scale, and flip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you configure Apache on Windows for SSL? Apache just fails to start with NO error message when we try to reboot it after enabling the code for the ssl module.
NOTE: I was able to use OpenSSL to generate a request and have a legit wildcard certificate in place and referenced in the httpd.conf
A: Apache on Win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you deal with "super" generics in java? Take the following generics example
import java.util.List;
import java.util.ArrayList;
public class GenericsTest {
private List<Animal> myList;
public static void main(String args[]) {
new GenericsTest(new ArrayList<Animal>()).add(new Dog());
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you survive in a corporate coding environment? I work for a smallish software shop with a mix of internal products, and external consulting. For the last few years I've been working on in house apps at the office with a bunch of other geeks. Fairly laid back and productive. Pretty much perfect coding conditio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop We all know you can't do the following because of ConcurrentModificationException:
for (Object i : l) {
if (condition(i)) {
l.remove(i);
}
}
But this apparently works sometimes, but not always. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1290"
} |
Q: Having trouble linking a static library C++ I've figured out how to set VC++ to compile code into a .lib file instead of a .exe, but I'm having trouble getting a lib to link together with my other .obj files.
Here is how I have the library and application folders set up. (I'm not sure if this is right)
AppFolder
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Will Pro*C work with MSVC 6? How do you get Pro*c to work within MSVC 6?
In otherwords compile a .pc file into a .cpp file.
A: I'm not familiar with Pro*C, but in general it is possible, using a custom build step in MSVC. If you add the .pc file to your project, then view the Project Settings dialog for that file, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ to SQL entity and data-context classes: business object encapsulation What are your favorite ways to encapsulate LINQ to SQL entity classes and data-context classes into business objects?
What have you found to work in a given situation?
Have you invented or taken to any specific patterns?
A: I've found a patt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: do i need to unregister events in asp.net I have a web user control that contains several other (web user) controls and subscribes to events the children raise.
I saw someone somewhere in a similar situation providing Dispose() on the containing control and unregistering the events it had subscribed to.
Isn't it a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inline Disabling of Firefox Spellcheck? I researched this a while ago and can't remember how to do it. I want to be able to prevent Firefox from running it's spell-checking functionality on certain input fields from within the page. I know it's possible but can't remember how to set it up.
A: The "spellcheck" attri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Update columns in one LINQ object with another LINQ object I have two LINQ objects which have exactly the same columns and I would like to be able to update one with the fields from the other. I first create a new object from some data in a file, then I query the database for an existing item with the same ID. Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create an instance of a class from a string Is there a way to create an instance of a class based on the fact I know the name of the class at runtime. Basically I would have the name of the class in a string.
A: To create an instance of a class from another project in the solution, you can get the assembly indicate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "262"
} |
Q: How do I configure cocoon to use a database as a store for quartz jobs and triggers I'm using Cocoon and want to store the jobs and triggers for the quartz scheduler in the database so they are persisted. I can see where I need to make the change in cocoon.xconf but I can't find much on how to configure the datasour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .Net webservice, how to access...? Note: I am just consuming webservice I have no control over webservice code.
So in .net 2.0 I reference the webservice and see a class in the webservice namespace, say foobar. It's defined as:
public class foobar : System.Web.Services.Protocols.SoapHttpClientProtocol
but in .net 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's a good way to bind from a shared utility window and the frontmost document window? I have an application which allows for multiple NSDocuments to be open. In this application is a single utility window that contains some functionality that I want to apply to the frontmost document.
I am trying to use binding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Generating spectrum color palettes Is there an easy way to convert between color models in Java (RGB, HSV and Lab).
Assuming RGB color model:
*
*How do I calculate black body spectrum color palette? I want to use it for a heatmap chart.
*How about single-wavelength spectrum?
Edit: I found that the ColorSpace ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: SML comparing files at the bit level I am attempting to compare files in a directory using SML. Using the TextIO library is fairly easy but I need to compare the files at the bit level. That is, a binary compare. I am using a function similar to this:
fun listDir (s) = let
fun loop (ds) = (case OS.FileSys.readDi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Business logic invading UI in a large winforms app I have seen this theme present itself more than once now. I am hoping that people here who are currently in similar situations or have been in the past can offer some insightful advice. It might be useful if you share your past experiences as well.
So there is this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Live Video Streaming with PHP I have a PHP/AJAX/MYSQL chat application. I want to add video chatting to my application. How can I create live video streaming to be used for live video conferences/chatting in a PHP application. What are the key-terms I need to know if I wanted to build such a system? Is it a good ide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Automatic method to set the tabindex using form helpers Is there an easy way to have the form helpers set the tabindex parameter automatically when using form helpers in Rails?
Basically, I don't want to have to manually set the tab index on every form element when building forms (I keep forgetting to update them wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do I perform query filtering in django templates I need to perform a filtered query from within a django template, to get a set of objects equivalent to python code within a view:
queryset = Modelclass.objects.filter(somekey=foo)
In my template I would like to do
{% for object in data.somekey_set.FILTER %}
but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How can I get the window object that an HTML node belongs to using JavaScript? Because of several iframes, XUL browser elements, and so forth, I have a number of window objects in my XULRunner application. I'm looking for the best way to find the window object that a specified node belongs to using JavaScript.
So, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you debug SugarCRM problems/learn how SugarCRM works? I'm in the process of trying to move our company from SalesForce to SugarCRM, but I've run in to a nasty bug (the moment I add a custom field to Accounts, all accounts stop showing up). We've paid for support from the SugarCRM people, but they only have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/223993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to manage session variables in a web cluster? Session variables are normally keept in the web server RAM memory.
In a cluster, each request made by a client can be handled by a different cluster node. right?!
So, in this case...
*
*What happens with session variables? Aren't they stored in the nodes RAM mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/224009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |