text stringlengths 8 267k | meta dict |
|---|---|
Q: problem with cross-domain ajax calls i have two servers a main site and a static server.
i want to get a file's content from ajax in runtime, which is stored in static server.
obviously cross domain problem will occur.
so what i am trying to do is storing that ajax .js in the static server, so that calling the loca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does anyone know of a C/C++ Unix QR-Code library? I'm looking for a QR-Code library for C/C++, not Java or .Net please. Anyone knows of one?
Note: There was a similar question a while back however but it didn't get
answered properly.
A: The zxing library is primarily Java, but, includes a port of the QR Code detec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Does SQLite support SCOPE_IDENTITY? I'm trying to perform a simple INSERT and return the identity (auto-incrementing primary key). I've tried
cmd.CommandText = "INSERT INTO Prototype ( ParentID ) VALUES ( NULL ); SELECT SCOPE_IDENTITY();";
and I receive the following error
EnvironmentError: SQLite error
no such fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Spin Control in Delphi I want to use a "spin button control" (also known as an up-down control) in my Delphi Win 32 application (I'm using Delphi 2007).
The aim is to have a control that looks like in Microsoft Office:
image of up/down control in Powerpoint. http://img167.imageshack.us/my.php?image=updownzn8.png
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MASM under Linux? Is there a way that I use MASM under Linux. Even tough NASM is quite popular under Linux, it still differs for some instruction style on code.
A: I use DosBox and it does work fine for me.
Details here
A: You should be able to run MASM under Wine.
A: MASM dont run with WINE, im running MASM unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is there a good K++ Kode editor for Klingon? Ok, I know this is a strange question, but there is a "standard" (fan-wise at least) Unicode support for the Klingon alphabet, and since code can be written in Unicode with no problem, that means it is possible to write Kode with Klingon tokens( vars, function names, etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to integrate seam into an existing project. Or the other way around Is there any documentation about introducing jBoss seam to an old Hibernate/JSF project?
Have tried google, and what I found was: Start new seam project, copy&paste existing code into new project. Would be nice to know a little bit more before s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting TRAC to run on IIS7 Im trying to get Trac upp and running on my IIS/w2008 server using this FAQ: TracOnWindowsIisAjp
Everything upp until "3. Install Tomcat AJP Connector for IIS" works ok.
I then define my directories as : C:\wwwroot\trac.evju.biz\AJP\, in the bin catalog I place the dll file, and 3 config ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linq to SQL update not working using Repository pattern I am using asp.net mvc for an application. I've taken some guidance from Rob Conery's series on the MVC storefront. I am using a very similar data access pattern to the one that he used in the storefront.
However, I have added a small difference to the patter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: can a variable have multiple values In algebra if I make the statement x + y = 3, the variables I used will hold the values either 2 and 1 or 1 and 2. I know that assignment in programming is not the same thing, but I got to wondering. If I wanted to represent the value of, say, a quantumly weird particle, I would w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Have you ever used a genetic algorithm in real-world applications? I was wondering how common it is to find genetic algorithm approaches in commercial code.
It always seemed to me that some kinds of schedulers could benefit from a GA engine, as a supplement to the main algorithm.
A: I used GA in my Master's thesis,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Hibernate-like framework for C++ I am looking for database-caching framework for C++ providing the following:
*
*Generate object/table representations via some pseudo-language (macros/templates)
*Retrieve objects from DB by key when needed
*LRU caching
*Immediate and delayed update of DB on object update (via ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Action and Jsp to get the iterator and display it This is my action class
public Iterator<CgConsultant> getSearchresult() {
List<CgConsultant> list =userSearch.getConsultantMatches(searchstring);
System.out.println("The size of the resutl list:"+list.size());
Iterator<CgConsultant> iterator... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make Oracle procedure return result sets SQL Server procedure can return result sets. I have a table emp(emp__id, emp__name, ...). The procedure below will return a list of employees that matched with the name provided.
CREATE OR REPLACE PROCEDURE get_employee_by_name ( @name VARCHAR(100) )
AS
SELECT emp_id, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: stange -I effect with make and bad -L I am trying to build an automated build system. It took me a little while to change a working wii generic makefile to a working win32 (using mingw32) makefile.
my make is here http://pastie.org/319482
The weird effect is, if i remove the a preceding the paths in ABS_INCL (line 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unregistering Event with -=-Operator When opening a window, I register a Deleted-event-handler on my business object. It is passed to the constructor as business:
business.Deleted += new EventHandler<EventArgs>(business_Deleted);
Now the user can click a button to delete it (removing the record, you know). The even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Tidy configuration I am using CSS Tidy. Due to all of its compression measures, in some cases it's messing up my pages by combining or re-arranging selectors, etc. Even with the options shown below, pages with the compressed CSS do not render as they do with the uncompressed.
My question is: How can I configure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Swing app global modal Simple question:
Can a swing frame be completely modal ( block all others windows ) ?
I tried the following, but I can still click on other apps windows ( like this browser )
JDialog myDialog = ....
myDialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
Plase paste some code if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Haskell on Windows Setup Unfortunately I don't have access to a *nix box at work or at home. The only way I can play with Haskell is on windows. Anyone here using Haskell on Windows? What's your setup?
A: DISCLAIMER: What's below was valid in Oct, 2013. So there is a good chance it might get outdated soon. Your e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Another Security Exception on GoDaddy after Login attempt Host: GoDaddy Shared Hosting
Trust Level: Medium
The following happens after I submit a valid user/pass. The database has read/write permissions and when I remove the login requirement on an admin page that updates the database work as expected.
Has anyone el... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Html helper for Is there a HTMLHelper for file upload? Specifically, I am looking for a replace of
<input type="file"/>
using ASP.NET MVC HTMLHelper.
Or, If I use
using (Html.BeginForm())
What is the HTML control for the file upload?
A: Or you could do it properly:
In your HtmlHelper Extension class:
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Screen Rotation on Pocket PC I am developing an application for pocket PC which should run in landscape mode.
I wrote the function SetScreenOrientation(int angle), which rotates the screen. This function is called on application start and on application close. I want to change the screen orientation when I minimize/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I put source code into subfolders in VB6? I have all the forms in one folder and all the code modules in an other folder in VB6. How do I create a better folder structure for the source files?
For example if I have twenty forms and twenty code modules, how can I create subfolders Main, Sales, and Employees an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I store the generics attribute into an object's field Assuming the following class stub:
public class Foo<T> {
private Class<T> type;
public Foo<T> () {}
}
Can I store the generic type T into the field type in the constructor, without changing the constructor's signature to "public Foo<T> (Class<T> type)"?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I make my NSScroller subclass have a different width? I am trying to create a custom subclass of NSScroller. I have created the class, and set it as the vertical scroller on an NSScrollView in IB. When I run my project, the drawRect: method is called for my subclass, so I know that it is properly connected.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The best way to invoke methods in Python class declarations? Say I am declaring a class C and a few of the declarations are very similar. I'd like to use a function f to reduce code repetition for these declarations. It's possible to just declare and use f as usual:
>>> class C(object):
... def f(num):
... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the algorithm identifier when using AES in CBC mode with ISO 10126 padding inside of PKCS#7? I want to use PKCS#7 as a container format for some encrypted, signed content and we need to use AES in CBC mode with ISO 10126 based padding. I can't seem to find a concrete reference to an algorithm identifier to u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I validate parameters without creating a separate dialog? I'm going to make an application (in Swing) that uses a tree to visualize a data structure (JTree). A tree will be on the left side of a window. The user will be able to browse a tree. The parameters of every tree node will be displayed on the right ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why Direct3D application performs better in full screen mode? The performance of a Direct3D application seems to be significantly better in full screen mode compared to windowed mode. What are the technical reasons behind this?
I guess it has something to do with the fact that a full screen application can gain excl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: what is the diff between dependencies and manually add a dll/ocx in vs installer 6? i'm using vs installer to build a setup package for my vb6 app.
and the problem is i can see that under the project explorer there's a list of dependencies attached to my exe file.
alt text http://img505.imageshack.us/img505/9696/cro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transaction for ASP .net Membership I would like to make two database operation in one transaction. Those two operations are
*
*Do one insert operation.
*Create one user (using membership - sql membership provider)
I tried TransactionScope but it went to distributed transaction at that line:
-- Membe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problems finding an attribute attached to a Type When running the below code a type is never returned, despite there being a class with the correct attribute assigned. In fact the attr array always has a length of 0.
Assembly a = Assembly.LoadFile(file);
foreach (Type t in a.GetTypes())
{
object[] attr = t.GetCu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does the CLR automatically detect if the garbage collector should be run in server mode? From a previous question I have seen that the CLR has workstation and server modes for its garbage collector. I know that these can be set from configuration using the gcServer element.
If you don't specify this, does the CLR u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: no DOM for Yahoo! Widgets web objects? I have a Yahoo! Widgets Web object and I'd like to access elements inside of it when it's done loading. I'm already handling everything wonderfully via the WebEvents Y!W provides, but there's one small problem.
Web objects don't appear to have any DOM of their loaded page.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Beginners guide to BPEL What is BPEL? I'm looking for some nice simple examples of BPEL usage. The wikipedia page isn't too enlightening. How about a "Hello world" in BPEL? A BPEL shell? A BPEL IDE?
A: This BPEL tutorial covers on how to write a BPEL from scratch.
Writing a simple WS-BPEL process for WSO2 BPS and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: IDE for Pl/SQL development Is there any free IDE for Pl/SQL development
A: I personally like http://www.allroundautomations.nl/plsqldev.html
Quite usefull for PL/SQL and Oracle in general. But not free.
A: I use SQL Developer every day to develop packages. Whilst it's not perfect, it's got some useful features:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to Not Submit a Form Using AJAXToolkit AutoComplete Extender? I have used AJAXToolkit AutoComplete extender in my project.It works fines.But the issue is with the form of the page.
when i type in the AutoComplete, i get list of suggestions.When i click on the page other than the Autocomplete, the form gets submi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding an extra column in the sharepoint list preview viewstyle I am using the Out-Of-The-Box preview viewstyle for displaying a list. My requirement is to display and extra column on the left side of the the view, along with the title column. How can I do this?
A: You may add the extra column by modifying the defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not-Null constraints in POCO Objects I am currently writing an financial application, and we have a pretty standard customer table. It consists of many mandatory fields, and some optional like Cell/Fax etc.. I'm using NHibernate as a ORM and have all the mappings right. It already works.
I just wonder, how do I "exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Video in email? We often send emails in HTML for clients (Dont like it but not my choice)
Does anyone have any info or a link on support for the dynscrc attribute or img in email clients?
A: My solution here would be to have a screenshot (perhaps with a 'click to watch' overlay) of your movie that links to a non-ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Classic ASP - IIS 5 to IIS 6 migration causes image caching problems? Apologies in advance for the long-winded question.
I'm really a database programmer, but have inherited support of a classic-ASP intranet application which has recently been migrated from IIS 5 to a new server running IIS 6. The user-base is about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to estimate the thread context switching overhead? I am trying to improve the performance of the threaded application with real-time deadlines. It is running on Windows Mobile and written in C / C++. I have a suspicion that high frequency of thread switching might be causing tangible overhead, but can neither pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Which version(s) of VSTS for .dbproj files? With which version(s) of VS2008/VSTS can I work with .dbproj files?
A: You can definitely use Team Edition for Database Professionals. The bad news is that it seems you can only use this or of course the superset version Team Suite but that would set you back a lot for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I change the default layout ruler guides in FlexBuilder 3? I'm using FlexBuilder 3. I love the way the layout guides tell you when a component you're placing on a canvas is so far from the next component (presumably 8 pixels). Is it possible to change the distance at which the ruler guide pops up? I'm putting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does using delegates slow down my .NET programs? Does using delegates slow down my programs?
I've been avoiding them because I really have no clue if they make my programs any slower. I know if I cause a (catch) exception, that uses quite a bit of CPU power but I don't know about Delegates and Events and what .NE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: WAS hung threads
[11/18/08 10:13:08:772 GMT+05:30] 690f5641 ThreadMonitor W WSVR0606W: Thread "Servlet.Engine.Transports : 2162" (690f5641) was previously reported to be hung but has completed. It was active for approximately 1,032,152 milliseconds. There are 21 threads in total in the server that still may be hu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Cruise Control .Net server unable to detect modifications done on Starteam I'm using Cruise Control .Net 1.4 for Continuous integration and have installed it on my Windows 2000 desktop. I have Nant 0.85 for the Build. My Source control is in Borland Starteam 2005. I have the .Net 2003 framework installed which I use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adobe Flash and Python Is it possible to use CPython to develop Adobe Flash based applications?
A: You can try ming, a library for generating Macromedia Flash files (.swf).
It's written in C but it has wrappers that allow it to be used in C++, PHP, Python, Ruby, and Perl.
A: take a look at Flex PyPy: http://code.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is JDBC? What is JDBC and where can I start learning about?
I know it's a way to access databases with Java, but what problems does it solve? Is it an ORM (or does it try to be)? Does it abstract away differences between databases, at the syntax level? What does it do? and what does it not do?
A: JDBC is a dri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between using fork/execvp and system call What is the difference between using system() to execute a binary and using the combination of fork/execvp.
Is there any security/portablility/performance difference.
A: Yes, system() runs the command through a shell, while exec() runs the command directly. Of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is there a free (LGPL, BSD, etc) implementation of XML editor swing component I need a JComponent thad enables editing xml documents so I can embed it in my application.
It doesnt need to bee fancy.
Plain text editing and highlighting would bee enough.
Thank in advance
A: Maybe this Xml Editor would do:
I had to e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a free (LGPL< BSD, etc. ) RDF editor component for swing? I look for a JComponenet based RDF editor which I could embed in my application?
It does'n need to be fancy .
Thanks in advance.
A: Swoop is a good editor that's released under an MIT style license. It's available on Google code. They also have an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Drawing on top of an image in Javascript I want to let the user draw on an image in a browser. In other words, I need both bitmapped graphics and drawing capabilities, whether vector or bitmapped.
Canvas looks good, but is not supported by IE, and though there is ExCanvas, I wonder if ExCanvas is stable enough for c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Encode and Decode rfc2396 URLs What is the best way to encode URL strings such that they are rfc2396 compliant and to decode a rfc2396 compliant string such that for example %20 is replaced with a space character?
edit:
URLEncoder and URLDecoder classes do not encode/decode rfc2396 compliant URLs, they encode to a M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SQLServer 2005 - Change character in NVarChar I receive some arguments into a stored procedure. These arguments are NVARCHAR's.
I have a problem, when I need to cast some of these values to FLOATS, because they are being received as e.g.
@VALUE1 NVARCHAR(100)
DECLARE @ChangedValue
SET @ChangedValue = CAST(@Value1 AS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scheme IDE for Windows What is a good Scheme IDE for Windows? OK, I'll admit it; I'm not at RMS's level, and don't want to use Emacs or any character-based interface -- I want a graphic IDE with colorization, a REPL, and usable, in-line help for a specific, well-documented dialect of Scheme. I have searched around a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Most efficient way to append arrays in C#? I am pulling data out of an old-school ActiveX in the form of arrays of doubles. I don't initially know the final number of samples I will actually retrieve.
What is the most efficient way to concatenate these arrays together in C# as I pull them out of the system?
A: You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Detect whether IIS is Enabled Is there a way to detect whether IIS is enabled or not?
I know how to check if it is INSTALLED, but I need to know if it's installed but not enabled.
Also, can this be done natively via InstallShield? Checking this via .NET would be acceptable as we can write custom actions, but if the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to restore a DB in SQL 2005 from LDF only? Our DB server fell, and we need to restore some of it's DB's. We can find only the LDF file of the needed DB. Is there a tool that can use that for restoring? We're using SQL 2005.
A: No. You will also need the .mdf
A: The LDF file is the transaction log, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where can I find clear examples of MVC? I've read a couple of things about MVCs but I still don't understand when they should be used and when they shouldn't be used. I am looking for clear examples that say things like "if you're developing this then you should use MVC, like this" and "if you're developing this, yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Enabling Auditing feature in SQLServer 2005 Did you ever use SQL Server auditing features on a production db?
How did that impact on performances, and are there differences you noticed between different versions of SQL Server.
Also how we need to enable the audit features.
A: The C2 audit mode suffers from a variet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Stategies for coping with schema evolution? Currently we're using hand-rolled SQL in Data-Access objects and a lot of stored-procedures and triggers which amount to around 20k lines of code. We're finding that simple changes are causing a couple of days' work to fix, and its causing deadlines to slip.
Changes includ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Detect citrix "application mode"? Forgive me for probably using the wrong term for this "application mode".
Our application has a problem during start in that it doesn't show a task bar icon until the main window is up, even though there are loading progress windows, logon-windows, etc. on screen before that.
We cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: javascript user selection highlighting I'm trying to find a way with javascript to highlight the text the user selects when they click some odd highlight button (as in <span style="background-color:yellow">highlighted text</span>). It only has to work with either WebKit or Firefox, but it seems to be well nigh impos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Why do SelectedIndices and SelectedItems not work when ListView is instantiated in unit test? I'm writing this question in the spirit of answering your own questions, since I found a solution to the problem, but if anyone has a better solution I would gladly listen to it.
In the application I am currently working on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it legal and possible to access the return value in a finally block? I wish to set a usererror string before leaving a function, depending on the return code and variable in the function.
I currently have:
Dim RetVal as RetType
try
...
if ... then
RetVal = RetType.FailedParse
end try
endif
...
finally
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Boost Spirit crash when used in DLLs I am experiencing a crash while using the Boost.Spirit and Boost.Thread
libraries in my application. This only happens if I have used the Spirit
parser during the lifetime of the process from the main thread.
The crash happens at exit and appears to be related to the clean-up o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can unit tests have a execution time criteria? Is it good practice to have a unit test that specifies how long a certain function takes to return a value. I'm unit testing a curl function and want to specify that it needs to time out after 5 seconds. Is this in line with the way unit tests work?
A: Testing your fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Should I distribute log4net with my releases? I am wondering what is best practice when it comes to dependencies and how releases should be done. In my case I have a library that relies on log4net and I am wondering if I should distribute log4net.dll (set the log4net reference to copy local) along with the release? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I use regular expressions in bash scripts? I want to check if a variable has a valid year using a regular expression. Reading the bash manual I understand I could use the operator =~
Looking at the example below, I would expect to see "not OK" but I see "OK". What am I doing wrong?
i="test"
if [ $i=~"200[78]"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: What are good docking frameworks for Java/Swing? I'm looking for a good lightweight Java docking framework.
I know that Netbeans and Eclipse can be used as RCP, but I'm looking for something a little bit more lightweight.
A: I have successfully used FlexDock in the past but it seems not well supported and it is qui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How can a webpage react to Information Bar To facilitate uploading on our web application we install/load an ActiveX control on the upload page. People don't realise the information bar is asking them to install this control. How do I set up the page so it instructs /suppors users and helps them install the addon an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Multi-threaded Debugging" feature missing in VC++ 2008 Express? I've seen comments that there are some missing features in the VC++ 2008 Express debugger, particularly related to multi-threaded debugging. I've tried debugging a multi-threaded program in Visual C++ 2008 Express and it seemed to work fine. What is re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What do I use on linux to make a python program executable I just installed a linux system (Kubuntu) and was wondering if there is a program to make python programs executable for linux.
A: Putting these lines at the starting of the code will tell your operating systems to look up the binary program needed for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Unable to call an Objective C method from a C function I am using MVC architecture for a GUI application. The model class has some C functions. One of the C functions calls some methods of Objective-C class. I call those methods using an object of that class. The strange thing happening is that methods previously to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: PSake extensions? I recently discovered Powershell and through that PSake. If you are using it and you've extended it or created tasks for it, please share!
A: JP Boodhoo has evidently extended psake. Just hoping he would release what he's made...
A: If still interested in psake, there is new project psake-contrib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best practices for referencing 3rd party assemblies I have been wondering what are best practices when it comes to referencing 3rd party assemblies. A while ago I asked a question "Dependencies and references: what exactly should I reference" and received something to think about but I am not completely convinced. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Replacing MS Access forms We have a number of very old data entry forms that were made in Access that link to our SQL Server database. Each form may have any number of sub-forms.
We'd like to move away from using these access frontends but don't have the time to create a new app or web app to replace every form that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to mock ADO.Net Dataservice calls from Silverlight Has anyone found a good method of mocking out ADO.Net Data Service calls from a Silverlight application?
The power of Data Services seems to be the use of linq, client side, over entities. However when testing the objects that do the data access how can you moc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting started with SOAP for Delphi in Win32 I have a server process built in Delphi/C++Builder with RemObjects SDK which claims to support SOAP requests.
What's the quickest and easiest way of testing out the SOAP support? I'd prefer not to have to learn a new language/install a new IDE/spend more than a day...
To... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which Triplestore for rapid semantic web development? Ease of installation/use is the most important factor here - not performance.
Small is OK as large datasets are not expected.
A: I'd also recommend sesame, its lightweight, pretty easy to install, and provides good performance for small datasets. Query performa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: JFileChooser hangs sometimes I am running into the problem of the "hanging JFileChooser" as described in the following threads:
http://forums.sun.com/thread.jspa?threadID=5309960
http://forums.sun.com/thread.jspa?threadID=724817
http://x86.sun.com/thread.jspa?threadID=5275999&messageID=10156541
I am using JVM 1.6.0_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I load balance Lucene.Net? Is it possible to load balance a Lucene.NET index across multiple processes / servers?
Since Lucene.NET is filebased is it possible to just make a simple filecopy (using i.e. robocopy) of the index to the servers serving queries?
A: Yes, this is possible, no problems to be expected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to choose returned column name in a SELECT FOR XML query? MS SQL has a convenient workaround for concatenating a column value from multiple rows into one value:
SELECT col1
FROM table1
WHERE col2 = 'x'
ORDER by col3
FOR XML path('')
and that returns a nice recordset:
XML_F52E2B61-18A1-11d1-B105-00805F49916B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Creating Sharepoint lists declaratively or programmatically? Is it best to create sharepoint lists in a feature using xml (schema.xml) or using custom code which create the list using the API?
I ask because I would expect the declarative approach to be the easiest, but according to all tutorials I have found it see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Detecting if an Oracle Database is Installed I was wondering if there was a way to tell if an instance of Oracle on a system has a database installed or not?
This is for an installation script, and I need to verify that there is an actual database in place before proceeding with the loading of my own tablespace onto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Detecting dependencies between namespaces in .NET Are there any utilities that can examine a set of managed assemblies and tell you whether any of the types in one namespace depend on any in another? For example, say I have a MyApp.BusinessRules namespace and don't want it to access directly anything in MyApp.GUI, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can you use mod_python with JBoss? Anyone know whether it is possible to put mod_python under JBoss like you can Apache HTTPD? Given that JBoss has Tomcat inside it would seem to be a reasonable thing to do.
If not mod_python is there any python support under JBoss which will keep the interpreter in memory?
A: I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Proper replacement for the missing 'finally' in C++ Since there is no finally in C++ you have to use the RAII design pattern instead, if you want your code to be exception safe. One way to do this is by using the destructor of a local class like this:
void foo() {
struct Finally {
~Finally() { /* cleanup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I get the friendly name of a COM port in Windows? I have a GSM modem connected via USB. The modem creates 2 serial ports. The first is automatically attached to the modem, the second shows in Device Manager as "HUAWEI Mobile Connect - 3G PC UI Interface (COM6)"
The second port is used to get vital informati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I email Active Directory distribution groups from a c# web application? I'm trying to send email to Active Directory distribution groups.
I know you can send mail using something like:
mail.From = new MailAddress("steveb@microsoft.com");
mail.To.Add("billg@microsoft.com");
//set the content
mail.Subject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Labeling Web Service endpoints The web service endpoint usually is defined in an early stage of a project. Since it follows the "contract first" principle, it shouldn't be changed after communicated to client systems.
Therefore, it is vital to label the web service in a good way.
How would you label web services?
e.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rules of thumb for adding references between C# projects? I've got a question about references between projects in a solution. Most of my previous applications have just had one or two projects in the Solution, but this time I want to divide the application further.
I'm starting a new Solution in Visual Studio 2008... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Paradox Tables in C# I'm trying to read a Paradox 5 table into a dataset or simular data structure with the view to putting it into an SQL server 2005 table. I've trawled google and SO but with not much luck. I've tried ODBC:
public void ParadoxGet()
{
string ConnectionString = @"Driver={Microsoft Paradox Driver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Updating Zend_Auth_Storage after edit users profile I have following situation:
I have loged user, standard authentication with DB table
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Db_Table::getDefaultAdapter());
$authAdapter->setTableName('users');
$authAdapter->setIdentityColumn('user_name');
$authAdapte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why Does the Infopath 2007 Form Shows Error Message When Saving Repeating Table With More Than 60 Records? We are currently creating an InfoPath 2007 form is deployed in SharePoint 2007. In the form we populate the repeating tables with more than 60 records. However, when we're submitting the form, an error message ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/304999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to test error-conditions with code that interacts with remote web-servers? I have a small project that basically a Python wrapper to a websites API.
It's fairly well tested, but there are some conditions I cannot work out how to easily test: when the remote API is unreachable, or otherwise broken.
More specifica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/305003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapping exceptions to HTTP status codes in REST web services When building REST web services in .NET, what is the most "RESTful" way of mapping System.ArgumentNullException and System.ArgumentException to HTTP status codes? My first guess would be to use HTTP 400/Bad Request with an appropriate description.What is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/305015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are major incentives to upgrade to D2009 (Unicode excluded)? I'm a hesitant upgrader when it comes to development tools. For roughly half of my product I still use D7, and for others D2006.
The truth is, although Unicode support is more than welcomed and very useful, it could cause me more troubles than gains w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/305016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C# redirect standardinput with PGP -ka command I am having a problem which seems really daft. I must be missing something silly. We have a PGP keyring that is on one of our production servers. The user account it belongs to is not allowed to be logged on as interactively for security. Our problem is we sometimes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/305023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.