text stringlengths 8 267k | meta dict |
|---|---|
Q: PHP performance What can I do to increase the performance/speed of my PHP scripts without installing software on my servers?
A: One reasonable technique that can easily be pulled off the shelf is caching. A vast amount of time tends to go into generating resources for clients that are common between requests (and e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: No trace info during processing of a cube in SSAS When I process a cube in Visual Studio 2005 I get following message:
Process succeeded. Trace information
is still being transferred. If you do
not want to wait for all of the
information to arrive press Stop.
and no trace info is displayed. Cube is processed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using an XML catalog with Python's lxml? Is there a way, when I parse an XML document using lxml, to validate that document against its DTD using an external catalog file? I need to be able to work the fixed attributes defined in a document’s DTD.
A: You can add the catalog to the XML_CATALOG_FILES environment va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Can you check that an exception is thrown with doctest in Python? Is it possible to write a doctest unit test that will check that an exception is raised?
For example, if I have a function foo(x) that is supposed to raise an exception if x < 0, how would I write the doctest for that?
A: >>> import math
>>> math.log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Does System.Xml use MSXML? I'm developing a C# application that uses a handful of XML files and some classes in System.Xml. A coworker insists on adding the MSXML6 redistributable to our install, along with the .NET framework but I don't think the .NET framework uses or needs MSXML in anyway. I am well aware that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Windows/C++: How do I determine the share name associated with a shared drive? Let's say I have a drive such as C:\, and I want to find out if it's shared and what it's share name (e.g. C$) is.
To find out if it's shared, I can use NetShareCheck.
How do I then map the drive to its share name? I thought that NetShare... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why was the Profile provider not built into Web Apps? If you create an ASP.NET web file project you have direct access to the Profile information in the web.config file. If you convert that to a Web App and have been using ProfileCommon etc. then you have to jump through a whole bunch of hoops to get your web app to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Designing a Calendar system like Google Calendar I have to create something similiar to Google Calendar, so I created an events table that contains all the events for a user.
The hard part is handling re-occurring events, the row in the events table has an event_type field that tells you what kind of event it is, si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Access Control Lists & Access Control Objects, good tutorial? we're developing a web app to cover all aspects of a printing company from finances, to payroll, to job costing. Its important to be able to control who can access what parts of these applications. Don't want a line employee giving himself a raise, etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Specify a Port Number in Emacs sql-mysql I've been using Emacs's sql interactive mode to talk to the MySQL db server and gotten to enjoy it. A developer has set up another db on a new non-default port number but I don't know how to access it using sql-mysql.
How do I specify a port number when I'm trying to connect ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is the easiest way to parse an INI File in C++? I'm trying to parse an INI file using C++. Any tips on what is the best way to achieve this? Should I use the Windows API tools for INI file processing (with which I am totally unfamiliar), an open-source solution or attempt to parse it manually?
A: this question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: Building an auditing system; MS Access frontend on SQL Server backend So basically I'm building an app for my company and it NEEDS to be built using MS Access and it needs to be built on SQL Server.
I've drawn up most of the plans but am having a hard time figuring out a way to handle the auditing system.
Since it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Upload binary data with Silverlight 2b2 I am trying to upload a file or stream of data to our web server and I cant find a decent way of doing this. I have tried both WebClient and WebRequest both have their problems.
WebClient
Nice and easy but you do not get any notification that the asynchronous upload has comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I tell if a variable has a numeric value in Perl? Is there a simple way in Perl that will allow me to determine if a given variable is numeric? Something along the lines of:
if (is_number($x))
{ ... }
would be ideal. A technique that won't throw warnings when the -w switch is being used is certainly prefer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "97"
} |
Q: Variable parameter/result binding with prepared statements In a project that I'm about to wrap up, I've written and implemented an object-relational mapping solution for PHP. Before the doubters and dreamers cry out "how on earth?", relax -- I haven't found a way to make late static binding work -- I'm just working ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can I create a ListView with dynamic GroupItemCount? I'm using the new ASP.Net ListView control to list database items that will be grouped together in sections based on one of their columns like so:
region1
store1
store2
store3
region2
store4
region3
store5
store6
Is this possible to do wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Efficient JPEG Image Resizing in PHP What's the most efficient way to resize large images in PHP?
I'm currently using the GD function imagecopyresampled to take high resolution images, and cleanly resize them down to a size for web viewing (roughly 700 pixels wide by 700 pixels tall).
This works great on small (unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Resources for getting started with web development? Let's say I woke up today and wanted to create a clone of StackOverflow.com, and reap the financial windfall of millions $0.02 ad clicks. Where do I start?
My understanding of web technologies are:
*
*HTML is what is ultimately displayed
*CSS is a mechanism for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I pass data from an aspx page to an ascx modal popup? I'm fairly new to ASP.NET and trying to learn how things are done. I come from a C# background so the code-behind portion is easy, but thinking like a web developer is unfamiliar.
I have an aspx page that contains a grid of checkboxes. I have a button tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: IronPython and ASP.NET Has anyone built a website with IronPython and ASP.NET. What were your experiences and is the combination ready for prime-time?
A: The current version of ASP.NET integration for IronPython is not very up-to-date and is more of a "proof-of-concept." I don't think I'd build a production websit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Returning DataTables in WCF/.NET I have a WCF service from which I want to return a DataTable. I know that this is often a highly-debated topic, as far as whether or not returning DataTables is a good practice. Let's put that aside for a moment.
When I create a DataTable from scratch, as below, there are no problems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Best way to custom edit records in ASP.NET? I'm coming from a Rails background and doing some work on a ASP.NET project (not ASP MVC). Newbie question: what's the easiest way to make a custom editor for a table of records?
For example: I have a bunch of data rows and want to change the "category" field on each -- ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Load an XmlNodeList into an XmlDocument without looping? I originally asked this question on RefactorMyCode, but got no responses there...
Basically I'm just try to load an XmlNodeList into an XmlDocument and I was wondering if there's a more efficient method than looping.
Private Function GetPreviousMonthsXml(ByVa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problems with #import of .NET out-of-proc server In C++ program, I am trying to #import TLB of .NET out-of-proc server.
I get errors like:
z:\server.tlh(111) : error C2146: syntax error : missing ';' before identifier 'GetType'
z:\server.tlh(111) : error C2501: '_TypePtr' : missing storage-class or type specifiers
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Setting up Subversion on Windows as a service When installing subversion as a service, I used this command:
c:\>svnservice -install --daemon --root "c:\documents and settings\my_repository"
And then I got this error:
Could not create service in service control manager.
After looking at some MSDN docs on the servic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Add .NET 2.0 SP1 as a prerequisite for deployment project I have a .NET 2.0 application that has recently had contributions that are Service Pack 1 dependent. The deployment project has detected .NET 2.0 as a prerequisite, but NOT SP1. How do I include SP1 as a dependency/prerequisite in my deployment project?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strange characters in PHP This is driving me crazy.
I have this one php file on a test server at work which does not work.. I kept deleting stuff from it till it became
<?
print 'Hello';
?>
it outputs
Hello
if I create a new file and copy / paste the same script to it it works!
Why does this one file give m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How is the HTML on this site so clean? I work with C# at work but dislike how with webforms it spews out a lot of JavaScript not including the many lines for viewstate that it creates.
That's why I like coding with PHP as I have full control.
But I was just wondering how this sites HTML is so clean and elegant?
Does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Attaching VisualSVN Server to an existing repository All the recent VisualSVN Server posts made me want to check it out. I have SVN running right now through Apache, but I'd like to try out VisualSVN Server, mostly for the Active Directory integration. Their docs don't describe whether you can easily migrate an exis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I add a pre tag inside a code tag with jQuery? I'm trying to use jQuery to format code blocks, specifically to add a <pre> tag inside the <code> tag:
$(document).ready(function() {
$("code").wrapInner("<pre></pre>");
});
Firefox applies the formatting correctly, but IE puts the entire code block on one li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to register COM from VS Setup project? I have marked my DLL as vsdraCOM, and I can see it in the registry after installing, but my application does not see the COM interface until I call RegAsm on it manually. Why could this be?
The COM registration does not work on Vista (confirmed myself) and on XP (confirmed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Anyone Using Executable Requirements? In my limited experience with them executable requirements (i.e. specifying all requirements as broken automated tests) have proven to be amazingly successful. I've worked on one project in which we placed a heavy emphasis on creating high-level automated tests which exercised ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Filter by zip code, or other location based data retrieval strategies My little site should be pooling list of items from a table using the active user's location as a filter. Think Craigslist, where you search for "dvd' but the results are not from all the DB, they are filtered by a location you select. My question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# Database Access: DBNull vs null We have our own ORM we use here, and provide strongly typed wrappers for all of our db tables. We also allow weakly typed ad-hoc SQL to be executed, but these queries still go through the same class for getting values out of a data reader.
In tweaking that class to work with Oracle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to combine two projects in Mercurial? I have two separate mercurial repositories. At this point it makes sense that they "become one" because I want to work on the two projects simultaneously.
I'd really like the two projects to each be a subdirectory in the new repository.
*
*How do I merge the two projects?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Database Case Insensitive Index? I have a query where I am searching against a string:
SELECT county FROM city WHERE UPPER(name) = 'SAN FRANCISCO';
Now, this works fine, but it doesn't scale well, and I need to optimize it. I have found an option along the lines of creating a generated view, or something like that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Mercurial stuck "waiting for lock" Got a bluescreen in windows while cloning a mercurial repository.
After reboot, I now get this message for almost all hg commands:
c:\src\>hg commit
waiting for lock on repository c:\src\McVrsServer held by '\x00\x00\x00\x00\x00\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "360"
} |
Q: Arrays of Arrays in Java This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse.
I'd prefer to do it right. Here is the situation:
I'm writing a small display to show customers what days they can wat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Oracle SQL Developer not responsive when trying to view tables (or suggest an Oracle Mac client) I just get the beach ball all day long (it's been doing nothing for hours). It's not taking CPU, not reading from disk, not using the network.
I'm using Java 1.6 on Mac OS X 10.5.4. It worked once, now even restarts of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is a good way to denormalize a mysql database? I have a large database of normalized order data that is becoming very slow to query for reporting. Many of the queries that I use in reports join five or six tables and are having to examine tens or hundreds of thousands of lines.
There are lots of queries and mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: parsing raw email in php I'm looking for good/working/simple to use PHP code for parsing raw email into parts.
I've written a couple of brute force solutions, but every time, one small change/header/space/something comes along and my whole parser fails and the project falls apart.
And before I get pointed at PEAR/PE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Creating Infopath 2007 addins that manipulate the design-time form I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find out complete SQL Server database size I need to know how much space occupies all the databases inside an SQL Server 2000. I did some research but could not found any script to help me out.
A: Source: http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1313431,00.html
Works with SQL2000,2005,2008
USE ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: If you have a Java application that is consuming CPU when it isn't doing anything, how do you determine what it is doing? I am calling a vendor's Java API, and on some servers it appears that the JVM goes into a low priority polling loop after logging into the API (CPU at 100% usage). The same app on other servers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is a Homogeneous development platform good for the industry? Is it in best interests of the software development industry for one framework, browser or language to win the war and become the de facto standard? On one side it takes away the challenges of cross platform, but it opens it up for a single point of failu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is using PHP accelerators such as MMCache or Zend Accelerator making PHP faster? Does anybody have experience working with PHP accelerators such as MMCache or Zend Accelerator? I'd like to know if using either of these makes PHP comparable to faster web-technologies. Also, are there trade offs for using these?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Database replication. 2 servers, Master database and the 2nd is read-only Say you have 2 database servers, one database is the 'master' database where all write operations are performed, it is treated as the 'real/original' database. The other server's database is to be a mirror copy of the master database (slave?)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is your preferred method of sending complex data over a web service? It's 2008, and I'm still torn on this one. So I'm developing a web method that needs a complex type passed into it and returned from it. The two options I'm toying with are:
*
*Pass and return actual business objects with both data and be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to setup site-wide variables in php? I want to define something like this in php:
$EL = "\n<br />\n";
and then use that variable as an "endline" marker all over my site, like this:
echo "Blah blah blah{$EL}";
How do I define $EL once (in only 1 file), include it on every page on my site, and not have to refere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a "concise" way to do namespacing in JavaScript? I've frequently encountered sites that put all of their JavaScript inside a namespace structure along the lines of:
namespaces = { com : { example: { example.com's data} }
However, setting this up safely with respect to other namespaced frameworks seems to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is there a tool that can display a SVN repository visually ( i.e. pretty charts )? Real strange.
I cannot find a tool that enables one to display a SVN repository in graphical form.
I would like the ability to see changes in revision / time , branch / time graphs.
Does anyone know of one. Ideally it would be platfor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: What's the difference between struct and class in .NET? What's the difference between struct and class in .NET?
A: Just to make it complete, there is another difference when using the Equals method, which is inherited by all classes and structures.
Lets's say we have a class and a structure:
class A{
public int ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "876"
} |
Q: What is boxing and unboxing and what are the trade offs? I'm looking for a clear, concise and accurate answer.
Ideally as the actual answer, although links to good explanations welcome.
A: Boxing & unboxing is the process of converting a primitive value into an object oriented wrapper class (boxing), or convertin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: What do ref, val and out mean on method parameters? I'm looking for a clear, concise and accurate answer.
Ideally as the actual answer, although links to good explanations welcome.
This also applies to VB.Net, but the keywords are different - ByRef and ByVal.
A: One additional note about ref vs. out: The distinct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Delphi resources for existing .NET developer Can anyone recommend some decent resources for a .NET developer who wishes to get a high level overview of the Delphi language?
We are about acquire a small business whose main product is developed in Delphi and I am wanting to build up enough knowledge to be able to talk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I convert a date to a HTTP-formatted date in .Net / C# How does one convert a .Net DateTime into a valid HTTP-formatted date string?
A: Dates can be converted to HTTP valid dates (RFC 1123) by using the "r" format string in .Net. HTTP dates need to be GMT / not offset - this can be done using the ToUniversal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Should I support ASP.NET 1.1? I've just started working on an ASP.NET project which I hope to open source once it gets to a suitable stage. It's basically going to be a library that can be used by existing websites. My preference is to support ASP.NET 2.0 through 3.5, but I wondered how many people I would be leavin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP: Access Array Value on the Fly In php, I often need to map a variable using an array ... but I can not seem to be able to do this in a one liner. c.f. example:
// the following results in an error:
echo array('a','b','c')[$key];
// this works, using an unnecessary variable:
$variable = array('a','b','c');
echo ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How can I combine several C/C++ libraries into one? I'm tired of adding ten link libraries into my project, or requiring eight of them to use my own. I'd like to take existing libraries like libpng.a, libz.a, libjpeg.a, and combine them into one single .a library. Is that possible? How about combining .lib libraries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Is it safe to install SVN on a production win2008 web server? I have a web server and I am currently paying for SVN hosting at a company that specializes in hosting svn.
I am thinking of just installing SVN on my dedicated server, are there any security implications of this?
A: Small correction to Jedi: it's Visua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best practice for webservices I've created a webservice and when I want to use its methods I instantiate it in the a procedure, call the method, and I finally I dispose it, however I think also it could be okay to instantiate the webservice in the "private void Main_Load(object sender, EventArgs e)" event.
The thing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: A ThreadStateException occures when trying to restart a thread From time to time I get a System.Threading.ThreadStateException when attempting to restart a thread. The code in question is as follows:
// Make sure the thread is done stopping
while (this.mThread.ThreadState == ThreadState.Running)
{
Thread.Sleep(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I integrate my continuous integration system with my bug tracking system? I use cruisecontrol.rb for CI and FogBugz for bug tracking, but the more general the answers, the better.
First is the technical problem: is there an API for FogBugz? Are there good tutorials, or better yet, pre-written code?
Second is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why Doesn't My Cron Job Work Properly? I have a cron job on an Ubuntu Hardy VPS that only half works and I can't work out why. The job is a Ruby script that uses mysqldump to back up a MySQL database used by a Rails application, which is then gzipped and uploaded to a remote server using SFTP.
The gzip file is creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to avoid conflict when not using ID in URLs I see often (rewritten) URLs without ID in it, like on some wordpress installations. What is the best way of achieve this?
Example: site.com/product/some-product-name/
Maybe to keep an array of page names and IDs in cache, to avoid DB query on every page request?
How t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I update my UI from within HttpWebRequest.BeginGetRequestStream in Silverlight I am uploading multiple files using the BeginGetRequestStream of HttpWebRequest but I want to update the progress control I have written whilst I post up the data stream.
How should this be done, I have tried calling Dispatch.Beg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Mobile device is detected as non mobile device I've included a mobile web form in my asp.net project, I thought that it could/should be seen just for my mobile users but I realize that it can also be seen from any browser, I don't see problem there cause I could diff the access using HttpBrowserCapabilities.IsMobile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I refactor HTML markup out of my property files? I've recently inherited a internationalized and text-heavy Struts 1.1 web application. Many of the JSP files look like:
<p>
<bean:message key="alert" />
</p>
and the properties files look like:
messages.properties
alert=Please update your <a href="/addres... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: OpenID authentication in Ruby on Rails I am a neophyte with Ruby on Rails but I've created a couple of small apps. Anyway, I'm really interested in OpenID and I would like to implement OpenID authentication and maybe some Sreg stuff in a Rails app. All of the research that I have done has come up with articles that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Any good resources or advice for working with languages with different orientations? (such as Japanese or Chinese) We have an enterprise web application where every bit of text in the system is localised to the user's browser's culture setting.
So far we have only supported English, American (similar but mis-spelt ;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I determine CodeIgniter speed? I am thinking of using a PHP framework called CodeIgniter.
One of the things I am interested in is its speed. I have, however, no way to find out how fast it is, and would rather not simply take the word of their website for it. Does anybody know how I can determine its speed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Image manipulation in asp.net/c# without System.Drawing/GDI+ Is there any alternative image manipulation library for .net? I would prefer something that is managed and open source.
I ask this because of two reasons:
*
*I have encountered hard to debug GDI+ errors with System.Drawing in the past
*I have read th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How much of your work day is spent coding? I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience developing software.
When you have to estimate the amount of time you'll spend w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Firefox plugin - sockets I've always wanted a way to make a socket connection to a server and allow the server to manipulate the page DOM. For example, this could be used in a stock quotes page, so the server can push new quotes as they become available.
I know this is a classic limitation (feature?) of HTTP's re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Developing for multiple monitors We are currently working on a new version of our main application. one thing that I really wish to work on is providing support for multiple monitors. Increasingly, our target users are adding second screens to their desktops and I think our product could leverage this extra space ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What are the advantages of using a single database for EACH client? In a database-centric application that is designed for multiple clients, I've always thought it was "better" to use a single database for ALL clients - associating records with proper indexes and keys. In listening to the Stack Overflow podcast, I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Override tab behavior in WinForms I have a UserControl that consists of three TextBoxes. On a form I can have one or more or my UserControl. I want to implement my own tab behavior so if the user presses Tab in the second TextBox I should only move to the third TextBox if the the second TextBox has anything entered.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Scrolling Overflowed DIVs with JavaScript I've got a div that uses overflow:auto to keep the contents inside the div as it is resized and dragged around the page. I'm using some ajax to retrieve lines of text from the server, then append them to the end of the div, so the content is growing downwards. Every time thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Replacement for for... if array iteration I love list comprehensions in Python, because they concisely represent a transformation of a list.
However, in other languages, I frequently find myself writing something along the lines of:
foreach (int x in intArray)
if (x > 3) //generic condition on x
x++
//do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Do you have "Slack" time? The CodePlex team has a Slack time policy, and it's worked out very well for them.
*
*Jim Newkirk and myself used it to work on the xUnit.net project.
*Jonathan Wanagel used it to work on SvnBridge.
*Scott Densmore and myself used it to work on an ObjectBuilder 2.0 prototype.
For oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Does CruiseControl.NET run on IIS 7.0? I'm new to development (an admin by trade) and I'm setting up my development environment and I would like to set up a CruiseControl.Net server on Server 2008. A quick Google did not turn up any instructions for getting it running on IIS 7.0, so I was wondering if anyone had ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Programatic access to call stack in .net How can I get programmatic access to the call stack?
A: You can use the StackTrace and StrackFrame classes in System.Diagnostics.
A: Try System.Diagnostics.StackTrace.
A: The right way is to use the StackTrace and StackFrame classes. Throwing an exception just to get the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Python version of PHP's stripslashes I wrote a piece of code to convert PHP's striplashes into valid Python [backslash] escapes:
cleaned = stringwithslashes
cleaned = cleaned.replace('\\n', '\n')
cleaned = cleaned.replace('\\r', '\n')
cleaned = cleaned.replace('\\', '')
How can I condense it?
A: It sounds like wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: The theory (and terminology) behind Source Control I've tried using source control for a couple projects but still don't really understand it. For these projects, we've used TortoiseSVN and have only had one line of revisions. (No trunk, branch, or any of that.) If there is a recommended way to set up source cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Purpose of {1} in this regular expression to match url protocols I was reading this question about how to parse URLs out of web pages and had a question about the accepted answer which offered this solution:
((mailto\:|(news|(ht|f)tp(s?))\://){1}\S+)
The solution was offered by csmba and he credited it to regexlib.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are there any "mind mapping" components for Delphi? (native VCL preferably) I'm looking for a pre-written component (w/source) for a Delphi project that I'm working on, to generate mind-maps / concept-maps similar to these:
http://en.wikipedia.org/wiki/Image:MindMeister_screenshot_OS_X.jpg
http://en.wikipedia.org/wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does one rank an array (sort) by value? *With a twist* I would like to sort an array in ascending order using C/C++. The outcome is an array containing element indexes. Each index is corespondent to the element location in the sorted array.
Example
Input: 1, 3, 4, 9, 6
Output: 1, 2, 3, 5, 4
Edit: I am using sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you keep two related, but separate, systems in sync with each other? My current development project has two aspects to it. First, there is a public website where external users can submit and update information for various purposes. This information is then saved to a local SQL Server at the colo facility.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: simultaneous Outlook reminders on multiple devices Disclaimer: This is not actually a programming question, but I feel the audience on stackoverflow is more likely to have an answer than most question/answer sites out there.
Please forgive me, Joel, for stealing your question. Joel asked this question on a podcast ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Browser Sync across many machines Everyone remembers google browser sync right? I thought it was great. Unfortunately Google decided not to upgrade the service to Firefox 3.0. Mozilla is developing a replacement for google browser sync which will be a part of the Weave project. I have tried using Weave and found it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GridView delete not working I'm using a GridView in C#.NET 3.5 and have just converted the underlying DataSource from Adapter model to an object which gets its data from LINQ to SQL - i.e. a Business object that returns a List<> for the GetData() function etc.
All was well in Denmark and the Update, and conditional ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Bootstrapping still requires outside support I've heard of the idea of bootstrapping a language, that is, writing a compiler/interpreter for the language in itself. I was wondering how this could be accomplished and looked around a bit, and saw someone say that it could only be done by either
*
*writing an initi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: Insert Update stored proc on SQL Server I've written a stored proc that will do an update if a record exists, otherwise it will do an insert. It looks something like this:
update myTable set Col1=@col1, Col2=@col2 where ID=@ID
if @@rowcount = 0
insert into myTable (Col1, Col2) values (@col1, @col2)
My logic behind ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: .NET 3.5 SP1 and aspnet_client Crystal Reports I recently (a few days ago) installed .NET 3.5 SP1 and subsequently an aspnet_client folder with a bunch of Crystal Reports support code has been injected into my .net web apps.
Anybody else experienced this?
Am I correct in saying that this is a side effect of SP1?
Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Productivity gains of using CASE tools for development I was using a CASE called MAGIC for a system I'm developing, I've never used this kind of tool before and at first sight I liked, a month later I had a lot of the application generated, I felt very productive and ... I would say ... satisfied.
In some way a felt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: user controls and asp.net mvc Here is one trivial question, that I am not sure how to handle.
I need to display list of categories on every page, and to be able to choose items from a specific category to be displayed. I use asp.net MVC, and have chosen to create a user control that will display categories. My quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: mysqli or PDO - what are the pros and cons? In our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects use one, some the other. There is little realistic likelihood of us ever moving to another RDBMS.
I prefer PDO for the single reason that it allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "342"
} |
Q: Determining how long the user is logged on to Windows The need arose, in our product, to determine how long the current user has been logged on to Windows (specifically, Vista). It seems there is no straight forward API function for this and I couldn't find anything relevant with WMI (although I'm no expert with WMI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Interpreted languages - leveraging the compiled language behind the interpreter If there are any language designers out there (or people simply in the know), I'm curious about the methodology behind creating standard libraries for interpreted languages. Specifically, what seems to be the best approach? Defining stan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.net AJAX Drag/Drop? I wonder if someone knows if there is a pre-made solution for this: I have a List on an ASP.net Website, and I want that the User is able to re-sort the list through Drag and Drop. Additionally, I would love to have a second list to which the user can drag items from the first list onto.
So f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.