text stringlengths 8 267k | meta dict |
|---|---|
Q: PHP with SQL Server 2005+ Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database. But all the query work is done on the client side, I'd like to move some of this to PHP.
What driver and/or connection string is needed to connect to Sql Svr and what is the syntax to use in PHP?
Update: OK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby blocks/Java closures in C I've been trying to understand how Ruby blocks work, and to do that I've been trying to implement them in C.
One easy way to implement closures is to pass a void* to the enclosing stack to the closure/function but Ruby blocks also seem to handle returns and break statements from the sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Generics in c# & accessing the static members of T My question concerns c# and how to access Static members ... Well I don't really know how to explain it (which kind of is bad for a question isn't it?) I will just give you some sample code:
Class test<T>{
int method1(Obj Parameter1){
//in here I want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Maximum length of a MIME Content-Type header field? I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. "image/jpg", "audio/mp3", etc).
Does anybody know the maximum length that I can expect a content-type to be?
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Is there a bug/issue tracking system which integrates with Mercurial? I've used Trac/Subversion before and really like the integration. My current project is using Mercurial for distributed development and it'd be nice to be able to track issues/bugs and have this be integrated with Mercurial. I realized this could ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How do you embed binary data in XML? I have two applications written in Java that communicate with each other using XML messages over the network. I'm using a SAX parser at the receiving end to get the data back out of the messages. One of the requirements is to embed binary data in an XML message, but SAX doesn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: How to copy a file in C# I want to copy a file from A to B in C#. How do I do that?
A: Use the FileInfo class.
FileInfo fi = new FileInfo("a.txt");
fi.CopyTo("b.txt");
A: This should work!
using System.IO;
...
var path = //your current filePath
var outputPath = //the directory where you want your (.txt) file
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I redirect a user to a custom 404 page in ASP.NET MVC instead of throwing an exception? I want to be able to capture the exception that is thrown when a user requests a non-existent controller and re-direct it to a 404 page. How can I do this?
For example, the user requests http://www.nosite.com/paeges/1 (sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Algorithm to perform RFC calculation in Java The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class.
RFC = M + R where
M = Number of methods in the class.
R = Total number of other methods directly invoked from the M.
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I stop MS Graph component popping up during Interop? When using Office Interop in C#, if you insert a chart object into a MS Word document, the Grap application loads up very briefly and then goes away. Is there a way to prevent this from happening? I have tried setting the Visible property of the application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What to use Windows CardSpace for? I'm doing some funky authentication work (and yes, I know, open-id is awesome, but then again my open-id doesn't work right at this moment!).
Stumbling across Windows CardSpace I was wondering if anyone has used this in a real product-system. If you have used it, what were the pros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way of diffing Crystal Reports? If you have two versions of the same report (.rpt) and you want to establish what the exact differences are, what is the best way to go about this? I've seen some commercial tools to do this, but I'm not too interested in forking out cash for something that should be r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Best way to keep an ordered list of windows (from most-recently created to oldest)? What is the best way to manage a list of windows (keeping them in order) to be able to promote the next window to the top-level when the current top-level window is closed.
This is for a web application, so we're using jQuery Javascr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Being as DRY as possible in a Ruby on Rails App I'm currently using the awesome attachment-fu plugin for a Rails app, but as a novice developer, I've never encountered a scenario like the one I've found myself in.
Essentially, I'm using the attachment-fu plugin on two levels.
*
*Is for user avatars in the user cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there some way to PUSH data from web server to browser? Of course I am aware of Ajax, but the problem with Ajax is that the browser should poll the server frequently to find whether there is new data. This increases server load.
Is there any better method (even using Ajax) other than polling the server frequently... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "138"
} |
Q: Repository layout for large Maven projects I have a large application (~50 modules) using a structure similar to the following:
*
*Application
*
*Communication modules
*
*Color communication module
*SSN communication module
*etc. communication module
*Router module
*Service modules
*
*Voting servi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Version track, automate DB schema changes with django I'm currently looking at the Python framework Django for future db-based web apps as well as for a port of some apps currently written in PHP. One of the nastier issues during my last years was keeping track of database schema changes and deploying these changes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is Project Darkstar Realistic? Project Darkstar was the topic of the monthly JavaSIG meeting down at the Google offices in NYC last night. For those that don't know (probably everyone), Project Darkstar is a framework for massively multiplayer online games that attempts to take care of all of the "hard stuff." The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: What are the most important things to learn about .net as a Project Manager? Thinking about getting into .net technology project management
I've had plenty of experience with PHP projects: I'm aware of most of the existing frameworks and libraries, and I've written specs and case studies based on this knowledge.
Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Diagnosing Deadlocks in SQL Server 2005 We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database.
I attached the profiler, set up a trace profile using this excellent article on troubleshooting deadlocks, and captured a bunch of examples. The weird thing is that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Any tips on getting Rails to run with an Access back-end? I shudder to ask, but my client might offer no other SQL (or SQL-like) solution. I know Access has some SQL hooks; are they enough for basic ActiveRecord?
Later:
I appreciate all the suggestions to use other databases, but trust me: I've tried convincing the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Suggestions on starting a child programming What languages and tools do you consider a youngster starting out in programming should use in the modern era?
Lots of us started with proprietary Basics and they didn't do all of us long term harm :) but given the experiences you have had since then and your knowledge of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Store data from a C# application I've recently taken up learning some C# and wrote a Yahtzee clone. My next step (now that the game logic is in place and functioning correctly) is to integrate some method of keeping stats across all the games played.
My question is this, how should I go about storing this informati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What's the best way to parse command line arguments? What's the easiest, tersest, and most flexible method or library for parsing Python command line arguments?
A: Using docopt
Since 2012 there is a very easy, powerful and really cool module for argument parsing called docopt. Here is an example taken from its docu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "340"
} |
Q: Best way to encapsulate complex Oracle PL/SQL cursor logic as a view? I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together.
The logic is written as a pipelined table function, follow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XML Serialization and Inherited Types Following on from my previous question I have been working on getting my object model to serialize to XML. But I have now run into a problem (quelle surprise!).
The problem I have is that I have a collection, which is of a abstract base class type, which is populated by the conc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Is there a way to make Firefox ignore invalid ssl-certificates? I am maintaining a few web applications. The development and qa environments use invalid/outdated ssl-certificates.
Although it is generally a good thing, that Firefox makes me click like a dozen times to accept the certificate, this is pretty annoying.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: YUI Reset CSS Makes this not work This line in YUI's Reset CSS is causing trouble for me:
address,caption,cite,code,dfn,em,strong,th,var {
font-style: normal;
font-weight: normal;
}
It makes my em not italic and my strong not bold. Which is okay. I know how to override that in my own stylesheet.
strong, b
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Virtual Machine Optimization I am messing around with a toy interpreter in Java and I was considering trying to write a simple compiler that can generate bytecode for the Java Virtual Machine. Which got me thinking, how much optimization needs to be done by compilers that target virtual machines such as JVM and CLI?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to create a temporary file (for writing to) in C#? I'm looking for something like the tempfile module in Python: A (preferably) secure way to open a file for writing to. This should be easy to delete when I'm done too...
It seems, .NET does not have the "batteries included" features of the tempfile module, which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: MyISAM versus InnoDB I'm working on a projects which involves a lot of database writes, I'd say (70% inserts and 30% reads). This ratio would also include updates which I consider to be one read and one write. The reads can be dirty (e.g. I don't need 100% accurate information at the time of read).
The task in que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "891"
} |
Q: Is there an easy way to create ordinals in C#? Is there an easy way in C# to create Ordinals for a number? For example:
*
*1 returns 1st
*2 returns 2nd
*3 returns 3rd
*...etc
Can this be done through String.Format() or are there any functions available to do this?
A: While I haven't benchmarked this yet, yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "225"
} |
Q: C# application detected as a virus Regarding the same program as my question a few minutes ago... I added a setup project and built an MSI for the program (just to see if I could figure it out) and it works great except for one thing. When I tried to install it on my parent's laptop, their antivirus (the free Avast... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MSTest and NHibernate Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass.
A: Edit localtestrun.testrunconfig (in your solution items folder... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a way to make a constructor only visible to a parent class in C#? I have a collection of classes that inherit from an abstract class I created. I'd like to use the abstract class as a factory for creating instances of concrete implementations of my abstract class.
Is there any way to hide a constructor fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does the ASP.NET "Yellow Screen of Death" display code? I thought .Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message?
Feel free to edit thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Broken chart images in Crystal Reports in web application I have a collection of crystal reports that contains charts. They look fine locally and when printed, but when viewing them through a web application using a CrystalReportViewer the charts dispay as broken images.
Viewing the properties of the broken image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find decent visio templates/diagrams for software architecture? Anyone have any good urls for templates or diagram examples in Visio 2007 to be used in software architecture?
A: Beautiful set of stencils from Microsoft here.
A: Here is a link to a Visio Stencil and Template for UML 2.0.
A: There shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: Does the Microsoft Report Viewer Redistributable 2008 really require .NET Framework version 3.5? I'm packaging up a .NET 2.0 based web app for deployment through a Windows Installer based package. Our app uses Report Viewer 2008 and I'm including the Microsoft Report Viewer Redistributable 2008 installer. When I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I use 3DES encryption/decryption in Java? Every method I write to encode a string in Java using 3DES can't be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string?
I know I'm making a very silly mistake somew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: Audio player on Windows Mobile I'm trying to develop specialized audio player for windows mobile devices (Professional ones). And I've ran into the problem an once.
There no compressed audio APIs on WM or I was unable to found house in documentation. Yes there are WM6 Sound API but it cannot even pause playback or s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Process raw HTTP request content I am doing an e-commerce solution in ASP.NET which uses PayPal's Website Payments Standard service. Together with that I use a service they offer (Payment Data Transfer) that sends you back order information after a user has completed a payment. The final thing I need to do is to par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ILMerge and Web Resources We're attemtping to merge our DLL's into one for deployment, thus ILMerge. Almost everything seems to work great. We have a couple web controls that use ClientScript.RegisterClientScriptResource and these are 404-ing after the merge (These worked before the merge).
For example one of our ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Refactoring for Testability on an existing system I've joined a team that works on a product. This product has been around for ~5 years or so, and uses ASP.NET WebForms. Its original architecture has faded over time, and things have become relatively disorganized throughout the solution. It's by no means terrible, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a Profiler equivalent for MySql? "Microsoft SQL Server Profiler is a graphical user interface to SQL Trace for monitoring an instance of the Database Engine or Analysis Services."
I find using SQL Server Profiler extremely useful during development, testing and when I am debugging database application probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Best way to replace tokens in a large text template I have a large text template which needs tokenized sections replaced by other text. The tokens look something like this: ##USERNAME##. My first instinct is just to use String.Replace(), but is there a better, more efficient way or is Replace() already optimized fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why doesn't 'shell' work in VBscript in VS6? In a macro for Visual Studio 6, I wanted to run an external program, so I typed:
shell("p4 open " + ActiveDocument.FullName)
Which gave me a type mismatch runtime error. What I ended up having to type was this:
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Serve a form without a web interface Anyone doing any work using "offline" forms? We have an application that requires inputting data from outside our company. I was thinking about sending a form out via email, allowing the form to be filled out then sent back. Obviously a web application would be the best soluti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Associating source and search keywords with account creation As a part of the signup process for my online application, I'm thinking of tracking the source and/or search keywords used to get to my site. This would allow me to see what advertising is working and from where with a somewhat finer grain than Google Anal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stop an animation in C# / WPF? I have something like this:
barProgress.BeginAnimation(RangeBase.ValueProperty, new DoubleAnimation(
barProgress.Value, dNextProgressValue,
new Duration(TimeSpan.FromSeconds(dDuration)));
Now, how would you stop that animation (the DoubleAnimation)? The reason I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: What's the best way to manage a classic asp front-end using Visual Studio 2008? I support a third party system that uses COM, classic ASP, and SQL Server. Our company has gone to using TFS as our source control provider - which pushes things through Visual Studio. So, what's the best way to get a classic asp front... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: One database or many? I am developing a website that will manage data for multiple entities. No data is shared between entities, but they may be owned by the same customer. A customer may want to manage all their entities from a single "dashboard". So should I have one database for everything, or keep the data se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I log uncaught exceptions in PHP? I've found out how to convert errors into exceptions, and I display them nicely if they aren't caught, but I don't know how to log them in a useful way. Simply writing them to a file won't be useful, will it? And would you risk accessing a database, when you don't know what c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Double postback issue I have a ASP.NET 1.1 application, and I'm trying to find out why when I change a ComboBox which value is used to fill another one (parent-child relation), two postbacks are produced.
I have checked and checked the code, and I can't find the cause.
Here are both call stacks which end in a page_l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: State of Registers After Bootup I'm working on a boot loader on an x86 machine.
When the BIOS copies the contents of the MBR to 0x7c00 and jumps to that address, is there a standard meaning to the contents of the registers? Do the registers have standard values?
I know that the segment registers are typically set to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What are attributes in .NET? What are attributes in .NET, what are they good for, and how do I create my own attributes?
A: An attribute is a class that contains some bit of functionality that you can apply to objects in your code. To create one, create a class that inherits from System.Attribute.
As for what they'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "209"
} |
Q: SQL Server 2005 - Export table programmatically (run a .sql file to rebuild it) I have a database with a table Customers that have some data
I have another database in the office that everything is the same, but my table Customers is empty
How can I create a sql file in SQL Server 2005 (T-SQL) that takes everything ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: JavaScript Profiler in IE Does anyone know a tool for Profiling JavaScript in IE?
List available:
*
*IE8 (Internet Explorer 8 only)
*JavaScript Profiler
*YUI!
A: JavaScript Profiler is a decent tool.
A: Checkout http://ejohn.org/blog/deep-tracing-of-internet-explorer/ the dynaTrace tool shown here is fantasti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Memory leaks in .NET What are all the possible ways in which we can get memory leaks in .NET?
I know of two:
*
*Not properly un-registering Event Handlers/Delegates.
*Not disposing dynamic child controls in Windows Forms:
Example:
// Causes Leaks
Label label = new Label();
this.Controls.Add(label);
this.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Deploying InfoPath forms to different SharePoint servers How do you manage deploying InfoPath forms to different sharepoint servers? Is there a better way to deal all the data connections being site-specific without opening the forms, editing the data connections and republishing for each environment?
A: This is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Script to backup svn repository to network share I have a svn repo on my machine (Windows). Anyone have a script to back it up to a network share?
I'm using the repo locally since I'm disconnected a lot. The network share is on a server with a backup strategy. I'm a perfect candidate for git/hg but I don't want to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it OK to drop sql statistics? We've been trying to alter a lot of columns from nullable to not nullable, which involves dropping all the associated objects, making the change, and recreating the associated objects.
We've been using SQL Compare to generate the scripts, but I noticed that SQL Compare doesn't script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Any ReSharper equivalent for Xcode? I'm a complete Xcode/Objective-C/Cocoa newbie but I'm learning fast and really starting to enjoy getting to grips with a new language, platform and paradigm.
One thing is though, having been using Visual Studio with R# for so long I've kind of been spoiled with the coding tools su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How to maintain a recursive invariant in a MySQL database? I have a tree encoded in a MySQL database as edges:
CREATE TABLE items (
num INT,
tot INT,
PRIMARY KEY (num)
);
CREATE TABLE tree (
orig INT,
term INT
FOREIGN KEY (orig,term) REFERENCES items (num,num)
)
For each leaf in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cleaning up RTF text I'd like to take some RTF input and clean it to remove all RTF formatting except \ul \b \i to paste it into Word with minor format information.
The command used to paste into Word will be something like:
oWord.ActiveDocument.ActiveWindow.Selection.PasteAndFormat(0) (with some RTF text already in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the point of interfaces in PHP? Interfaces allow you to create code which defines the methods of classes that implement it. You cannot however add any code to those methods.
Abstract classes allow you to do the same thing, along with adding code to the method.
Now if you can achieve the same goal with abst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "244"
} |
Q: .NET - Excel ListObject autosizing on databind I'm developing an Excel 2007 add-in using Visual Studio Tools for Office (2008). I have one sheet with several ListObjects on it, which are being bound to datatables on startup. When they are bound, they autosize correctly.
The problem comes when they are re-bound. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Path Display in Label Are there any automatic methods for trimming a path string in .NET?
For example:
C:\Documents and Settings\nick\My Documents\Tests\demo data\demo data.emx
becomes
C:\Documents...\demo data.emx
It would be particularly cool if this were built into the Label class, and I seem to recall it is--c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Use a LIKE clause in part of an INNER JOIN Can/Should I use a LIKE criteria as part of an INNER JOIN when building a stored procedure/query? I'm not sure I'm asking the right thing, so let me explain.
I'm creating a procedure that is going to take a list of keywords to be searched for in a column that contains text.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Executing JavaScript from Flex: Is this javascript function dangerous? I have a flex application that needs the ability to generate and execute JavaScript. When I say this, I mean I need to execute raw JavaScript that I create in my Flex application (not just an existing JavaScript method)
I am currently doing this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you unit test web apps hosted remotely? I'm familiar with TDD and use it in both my workplace and my home-brewed web applications. However, every time I have used TDD in a web application, I have had the luxury of having full access to the web server. That means that I can update the server then run my unit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error installing iKernel.exe Has anybody come across this problem during an application install?
*
*OS is Windows Server 2k3
I do have local Admin access and I have installed this application on other machines.
Any help would be much appreciated, as Google isn't helping much
A: This issue may occur if one or m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Useful Eclipse features? I have been using Eclipse as an IDE for a short amount of time (about 3 months of full use) and almost every day I learn about some shortcut or feature that I had absolutely no idea about. For instance, just today I learned that Ctrl+3 was the shortcut for a Quick Access window.
I was wonde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: List of macOS text editors and code editors I searched for this and found Maudite's question about text editors but they were all for Windows.
As you have no doubt guessed, I am trying to find out if there are any text/code editors for the Mac besides what I know of. I'll edit my post to include editors listed.
Free... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "176"
} |
Q: Link from ASP.NET yellow error page directly to VS source code When an ASP.NET application errors out and generates the yellow-screen display, I'd like to create some kind of link from the error page which would jump directly to the correct line of code in Visual Studio.
I'm not sure how to approach this, or if ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Image UriSource and Data Binding I'm trying to bind a list of custom objects to a WPF Image like this:
<Image>
<Image.Source>
<BitmapImage UriSource="{Binding Path=ImagePath}" />
</Image.Source>
</Image>
But it doesn't work. This is the error I'm getting:
"Property 'UriSource' or property 'StreamSou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: How to write stored procedure output directly to a file on an FTP without using local or temp files? I want to get the results of a stored procedure and place them into a CSV file onto an FTP location.
The catch though is that I cannot create a local/temporary file that I can then FTP over.
The approach I was taking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: FTP in NetBeans 6.1 Is there an FTP browser hiding away in NetBeans 6.1? The help manual doesn't even suggest FTP exists.
All I've been able to find so far is a tree viewer in the Services panel (no edit controls) and the ability to upload projects, folders and specific files from the Projects/Files views. Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If I have a PHP string in the format YYYY-DD-MM and a timestamp in MySQL, is there a good way to convert between them? I'm interested in doing comparisons between the date string and the MySQL timestamp. However, I'm not seeing an easy conversion. Am I overlooking something obvious?
A: You can avoid having to use s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Removing nodes from an XmlDocument The following code should find the appropriate project tag and remove it from the XmlDocument, however when I test it, it says:
The node to be removed is not a child of this node.
Does anyone know the proper way to do this?
public void DeleteProject (string projectName)
{
strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: why are downloads sometimes tagged md5, sha1 and other hash indicators? I've seen this all over the place:
Download here! SHA1 =
8e1ed2ce9e7e473d38a9dc7824a384a9ac34d7d0
What does it mean? How does a hash come into play as far as downloads and... What use can I make of it? Is this a legacy item where you used ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Determine if my PC supports HW Virtualization How, in general, does one determine if a PC supports hardware virtualization? I use VirtualPC to set up parallel test environments and I'd enjoy a bit of a speed boost.
A: Download this: http://www.cpuid.com/cpuz.php
Also check, http://en.wikipedia.org/wiki/X86_virtual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Do you use AOP (Aspect Oriented Programming) in production software? AOP is an interesting programming paradigm in my opinion. However, there haven't been discussions about it yet here on stackoverflow (at least I couldn't find them). What do you think about it in general? Do you use AOP in your projects? Or do you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Is there a way to call a private Class method from an instance in Ruby? Other than self.class.send :method, args..., of course. I'd like to make a rather complex method available at both the class and instance level without duplicating the code.
UPDATE:
@Jonathan Branam: that was my assumption, but I wanted to ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: ASP/VBScript - Int() vs CInt() What is the difference in ASP/VBScript between Int() and CInt()?
A: The usual answer for this issue is to manually force a re-rounding. This problem is as old as FORTRAN.
Instead of
a = int(40.91 * 100)
Use
b = 40.91 * 100
a = int(b + 0.5)
Very old trick, still useful in Excel spre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Linq to SQL - Underlying Column Length I've been using Linq to SQL for some time now and I find it to be really helpful and easy to use. With other ORM tools I've used in the past, the entity object filled from the database normally has a property indicating the length of the underlying data column in the database. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I declare a list of fixed length in specman? In E (specman) I want to declare variables that are lists, and I want to fix their lengths.
It's easy to do for a member of a struct:
thread[2] : list of thread_t;
while for a "regular" variable in a function the above doesn't work, and I have to do something like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Testing .NET code in partial trust environments I want to test the behavior of a certain piece of .NET code in partial trust environments. What's the fastest way to set this up? Feel free to assume that I (and other readers) are total CAS noobs.
@Nick: Thanks for the reply. Alas, the tool in question is explicitl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Version detection with Silverlight How can I efficiently and effectively detect the version and, for that matter, any available information about the instance of Silverlight currently running on the browser?
A: The Silverlight control only has an IsVersionSupported function, which returns true / false when you give... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What's the best way to create ClickOnce deployments Our team develops distributed winform apps. We use ClickOnce for deployment and are very pleased with it.
However, we've found the pain point with ClickOnce is in creating the deployments. We have the standard dev/test/production environments and need to be able to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do you clear a stringstream variable? I've tried several things already,
std::stringstream m;
m.empty();
m.clear();
both of which don't work.
A: For all the standard library types the member function empty() is a query, not a command, i.e. it means "are you empty?" not "please throw away your contents".
The cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "578"
} |
Q: Red-Black Trees I've seen binary trees and binary searching mentioned in several books I've read lately, but as I'm still at the beginning of my studies in Computer Science, I've yet to take a class that's really dealt with algorithms and data structures in a serious way.
I've checked around the typical sources (Wik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: SQL Reporting Services viewer for webpage - can you move the View Report button? Using the viewer control for display of SQL Reporting Services reports on web page (Microsoft.ReportViewer.WebForms), can you move the View Report button? It defaults to the very right side of the report, which means you have to scroll ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you remove invalid hexadecimal characters from an XML-based data source prior to constructing an XmlReader or XPathDocument that uses the data? Is there any easy/general way to clean an XML based data source prior to using it in an XmlReader so that I can gracefully consume XML data that is non-conformant to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: XRef Relationships in dbml So I have a database schema like this:
Users
UserId
RoleUserXRef
RoleUserId
RoleId
UserId
Roles
RoleId
Name
With foreign keys defined between User & RoleUserXRef and RoleUserXRef & Role. Basically, I have a one to many relationship between users and roles.
How would I mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you convert binary data to Strings and back in Java? I have binary data in a file that I can read into a byte array and process with no problem. Now I need to send parts of the data over a network connection as elements in an XML document. My problem is that when I convert the data from an array of bytes to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Call Project Server Interface web method from an msi installer I'm using a Visual Studio web setup project to install an application that extends the functionality of Project Server. I want to call a method from the PSI ( Project Server Interface ) from one of the custom actions of my setup project, but every time a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When to use STL bitsets instead of separate variables? In what situation would it be more appropriate for me to use a bitset (STL container) to manage a set of flags rather than having them declared as a number of separate (bool) variables?
Will I get a significant performance gain if I used a bitset for 50 flags ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What tools do you use for static code analysis? This question on Cyclomatic Complexity made me think more about static code analysis. Analyzing code complexity and consistency is occasionally useful, and I'd like to start doing it more. What tools do you recommend (per language) for such analysis? Wikipedia has a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I set up a test cert for an SSL connection in .NET? I would like to create an SSL connection for generic TCP communication. I think I figured out how to do it in the code, using the info here: http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx
What I'm having trouble with is creating ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.