text stringlengths 8 267k | meta dict |
|---|---|
Q: What are some tricks that a processor does to optimize code? I am looking for things like reordering of code that could even break the code in the case of a multiple processor.
A: The most important one would be memory access reordering.
Absent memory fences or serializing instructions, the processor is free to reo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Alternative to BACKUP LOG WITH TRUNCATE_ONLY This piece of T-SQL is deprecated in 2005:
BACKUP LOG [DB_NAME] WITH TRUNCATE_ONLY
I don't need to keep a backup the log for my db - but I do not want the piece of code to stop working if we port to SQL2008 or successive versions in future.
Cheers
A: Switch the database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How might I update this code <object height="25" width="75" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="http://click-here-to-listen.com/players/iaPlay13.swf?x=1058286910FTRZGK" name="movi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to have a computer flash a light I'd like to have an application monitor written in C# monitoring a set of Forex trading positions. It would be connected via USB to a real set of "traffic lights" sat on a desk which it would use to indicate system status. Can anybody suggest a good solution?
A: Normally I'd sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Calling a Macro in Microsoft Word 2003 I need to reinforce the structure of a Microsoft Word document.
EG:
Style Question here blah blah blah
Style Answer Here blah blahblah
The enforcement here would be the "Answer" style cannot be placed unless there is a "Question" style above it.
To do this I would use a Macro, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically changing Master Template in ASP.NET MVC I have the requirement to support different Master pages on my application (ASP.NET MVC).
What is the recommended way to:
*
*Pass the master page name to the view from.
*Store the master page (in session, or something) so it sticks during a user's visit.
A: U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET application breaks when deploying to IIS I am developing a small ASP.NET website for online shopping, when testing it out in Visual Studio, everything works fine, however that is no longer the case when I deploy it to IIS.
The problem seems to be in a DLL file that I reference, this DLL file contains the Cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Free JavaScript obfuscators? I'm looking for a free JavaScript obfuscator. Would compression be enough? What tools would you recommend? Of course, I don't need military-style obfuscation, I need a simple way to prevent kiddies from stealing my javascript by looking at the source or by using something simple such as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you evaluate reliability in software? We are currently setting up the evaluation criteria for a trade study we will be conducting.
One of the criterion we selected is reliability (and/or robustness - are these the same?).
How do you assess that software is reliable without being able to afford much time evalu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: XMPP Server-to-Server for Gmail.com/Jabber.org I'm in the phase of implementing the server-to-server communication part of a XMPP Server.
I'm testing my implementation with Gmail.com and Jabber.org but both seem to use the dialback protocol. Does anyone know more information about this protocol related to this serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does opacity:0 have exactly the same effect as visibility:hidden If so, does it effectively deprecate the visibility property?
(I realize that Internet Explorer does not yet support this CSS2 property.)
Comparisons of layout engines
See also: What is the difference between visibility:hidden and display:none
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: How can I handle the warning of file_get_contents() function in PHP? I wrote a PHP code like this
$site="http://www.google.com";
$content = file_get_content($site);
echo $content;
But when I remove "http://" from $site I get the following warning:
Warning:
file_get_contents(www.google.com)
[function.file-get-c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "361"
} |
Q: Whats a fast way to check that reference is a specific generic type? If I have a method with a parameter that's an interface, whats the fasts way to see if the interface's reference is of a specific generic type?
More specifically, if I have:
interface IVehicle{}
class Car<T> : IVehicle {}
CheckType(IVehicle param... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server Print Blank Line Without Space In SQL Server 2005, I want to print out a blank line with the PRINT statement, however, when I run
PRINT ''
it actually prints a line with a single space.
Does anyone know if it's possible to just print a blank line without the space?
If I print a new line character, it doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: List all files associated with a tag on CVS command line Is there a way on the CVS command line to list all files associated with a tag?
A: About the closest you'll be able to get is with this:
cvs -q log -R -N -S -rTAGNAME
This works against local copy, it doesn't pull from the server.
EDIT:
As Ken mentioned, a sl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Creating a camera that overviews a Papervision3D Scene When first setting and subsequently experimenting with a Papervison3D scene, I often find myself lost because I somehow get the camera not looking at the scene geometry. If I don't realize that's the problem, then I start trying to find out why my scene isn't r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I securely reference ASP classic include files outside of web root? I'd like to be able to place all my ASP Classic include files outside of the web root. This assures no include files can be called directly via the URL.
What is the best way to accomplish this?
I know I can use a virtual directory to referen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how can i check the start of the string in php? i want something like this
*
*the user enter a website link
*i need check the link if the link
doesn't start with 'http://' I want
to append 'http://' to the link .
how can I do that in PHP ?
A: I'll recommend a slight improvement over tom's
if (0 !== stripos($u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Boost Graph Library: Is there a neat algorithm built into BGL for community detection? Anybody out there using BGL for large production servers?
*
*How many node does your network consist of?
*How do you handle community detection
*Does BGL have any cool ways to detect communities?
*Sometimes two communi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Calling Win32 functions returning strings with alien in Lua I'm trying to use alien to call Win32 functions. I tried this code, but it crashes and I don't understand why.
require( "alien" )
local f = alien.Kernel32.ExpandEnvironmentStringsA
f:types( "int", "string", "pointer", "int" )
local buffer = alien.buffer( 5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is Lucene.Net suitable as the search engine for frequently changing content? Is Lucene.Net suitable as the search engine for frequently changing content?
Or more specificically, can anybody give a subjective opinion on how quickly lucene.net indexes can be updated. Any other approaches to searching frequently chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Covariance vs. contravariance with respect to class inheritance What is the meaning of the concepts 'covariance' and 'contravariance'?
Given 2 classes, Animal and Elephant (which inherits from Animal), my understanding is that you would get a run-time errors if you try and put an Elephant into an array of Animals, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: SQL Server 2005 Named Instance port problem I have 4 different named instances of SQL Server 2005 on a single server (for testing purposes). There is no default instance on the server.
Because I will eventually need to allow communication to these instances across the firewall, I have set the ports of each instance ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I read the 'company name' from Windows using C#? Some programs read the company name that you entered when Windows was installed and display it in the program. How is this done? Are they simply reading the name from the registry?
A: You can read this Using WMI, it looks to me like you're after the Win32_Oper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to reset the globalization resource provider to default resx provider I would like to reset my globalization provider for an inner section of my web site.
The site root uses a custom sql provider, I would like to use resx in my subfolder.
what should I set in resourceProviderFactoryType="???"
Thanks
A: I think ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting the comment of a column to that of another column in Postgresql Suppose I create a table in Postgresql with a comment on a column:
create table t1 (
c1 varchar(10)
);
comment on column t1.c1 is 'foo';
Some time later, I decide to add another column:
alter table t1 add column c2 varchar(20);
I want to lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio Remote Debugging Extensibility I'm trying to attach to a remote machine with code similar to the following:
Debugger2 db (Debugger2)dte.Debugger;
Transport trans = db.Transports.Item("Default");
Process2 proc2 = (Process2)db.GetProcesses(trans, "MACHINENAME").Item("SERVICENAME");
proc2.Attach2();
I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to add button to other apps window title bar (XP/Vista) I have the handler of an open window which wasn't necessarily open by my process. How can I add a button to that window and make the button call a certain application (.exe) when clicked? The button could be next to the system menu or the minimize button. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Forms Authentication: How to limit access to resources like pdf files to authenticated users only I am using .net2.0 and IIS6.
When using .net Forms Authentication: How to limit access to resources like pdf files to authenticated users only; so in order to access a file say mysite.com/mydoc.pdf they would have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there an easy way to get a list of files with version numbers out of ms vss? I often need to make a manifest of files with Microsoft Visual Source Safe version numbers on them. Is there a way to get a list of files with version numbers in a project?
A: You can use automation, VSS 6.0 (and earlier) came with an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET MVC: Redirecting back to page when no parameter is given to URL http://localhost:50034/Admin/Delete/723
Always needs this parameter to perform the action, however, if you go to the URL without the parameter, an exception occurs. How do you handle this and redirect back to the main page without doing anything... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Database Engine Independent Data Modelling I'm looking for a tool where I maintain a simple data model, and then using possibly plugins, generate actual databases for MSSQL and mySQL, and as a bonus, others. This should not be a whole ORM tool, just abstract to concrete data model. Where should I look? Who knows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does noscript get acknowledged by javascript enabled browsers? I'm looking into tightening up our ad code by moving it to an external jQuery script, but I obviously still need some HTML to target the ad to. So I was wondering if I can target a noscript element (or within a noscript element) since I'm going to have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Struts Validation.xml - requiredif problem I want my validation.xml to only check for a null if certain options are selected from a dropdown. So far I have
<field property="empFDServiceStartDate" depends="requiredif, date">
<arg0 key="Service Start date" resource="false"/>
<var>
<var-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to set the value of #define on runtime? I wonder if there is a way to set the value of #define in run time.
I assume that there is a query for Oracle specific and Sql Server specific at the code below.
#define oracle
// ...
#if oracle
// some code
#else
// some different code.
#endif
A: #if is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Duplicate a SharePoint list Is there a way to easily duplicate a SharePoint list code wise?
A: Judging from the SharePoint tag, I'm assuming you meant to ask "How do I copy a SharePoint list (SPList) programmatically?"
Without testing it (or even trying to compile it), I would do something like:
SPWeb web; /* add c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: inserting into mysql I have the following database table created thus:
CREATE TABLE AUCTIONS (
ARTICLE_NO VARCHAR(20),
ARTICLE_NAME VARCHAR(100),
SUBTITLE VARCHAR(20),
CURRENT_BID DECIMAL(5,2),
START_PRICE DECIMAL(5,2),
BID_COUNT VARCHAR(20),
QUANT_TOTAL VARCHAR(20),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get equivalent of printf_l on Linux? This function exists on OS X and allows you to pass custom local to the function. setlocale is not thread-safe, and passing locale as parameter is.
If there is no equivalent, any way of locale-independent printf, or printf just for doubles (%g) will be ok.
A: You might tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Install and use aspnet_merge.exe without installing the Windows SDK? I used web site deployment projects but I discovered that the aspnet_merge.exe utility is not on my build server. This prevents me from being able to build. In order to get this utility I have to install the Windows SDK which comes as an ISO file a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Delphi 7 - Embedded file open dialog in a form Does anyone know if it is possible to embed a file open dialog inside your own form?
We have a tabbed dialog and on one of the tabs we want the user to be able to browse for a file with the same functionality as the the standard open dialog e.g. 'Look in' combobox, pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best static analysis tool for NetBeans 6.1? I'm finding a couple for Java in general but no plugins for netbeans that I can see.
Thanks
A: I've used the PMD NetBeans plugin, and here are the installation instructions (may be a little outdated, due to the speed of NetBeans development, but I got them to w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: a ListView, a LinqDataSource, linq-to-sql and ordering So I'm writing a page which does some reporting and it's pretty dynamic, the user has the ability to group data and sort columns. I've been able to get my dynamic grouping down and then the sorting except now my generated linq-to-sql sql order by statement is ba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Removing the password from a VBA project How can I programmatically remove a (known) password from an Excel VBA project?
To be clear: I want to remove the password from the VBA Project, not the workbook or any worksheets.
A: My 2 cents on Excel 2016:
*
*open the xls file with Notepad++
*Search for DPB= and repla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: EINTR error for semop call I am using the following code fragment in a php script to safely update a shared resource.
$lock_id = sem_get( ftok( 'tmp/this.lock', 'r'));
sem_acquire($lock_id)
//do something
sem_release($lock_id)
When I stress test this code with large number of requests I get an error:
Warning: semo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I explicitly declare a view from a Rails controller? I want to explicitly call a view from my controller.
Right now I have:
def some_action
.. do something ...
respond_to do |format|
format.xml
end
end
... then it calls my some_action.xml.builder view. How can I call some other view? Is there a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to create a GUI inside a function in MATLAB? Is it possible to write a GUI from inside a function?
The problem is that the callback of all GUI-functions are evaluated in the global workspace. But functions have their own workspace and can not access variables in the global workspace. Is it possible to make the G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MSBuild ReadLinesFromFile all text on one line When I do a ReadLinesFromFile on a file in MSBUILD and go to output that file again, I get all the text on one line. All the Carriage returns and LineFeeds are stripped out.
<Project DefaultTargets = "Deploy"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: SQL Server online backup with MozyPro Anyone using MozyPro to backup SQL Server databases?
I'm concerned about the way it does the backup. It just copies data files the way they are. Not using the backup database command.
Is it safe?
A: MozyPro uses the Volume Shadow Service (VSS) to create backups for SQL Server. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Socket Exception: "There are no more endpoints available from the endpoint mapper" I am using winsock and C++ to set up a server application. The problem I'm having is that the call to listen results in a first chance exception. I guess normally these can be ignored (?) but I've found others having the same issue ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Application data synchronisation - running the new app in tandem with the legacy We're in the process of replacing a legacy system. There is going to be a period of time with both the applications running in tandem. Users will be able to use either system and the challenge is to be able to keep their databases in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Techniques for adding Achievements to business class software I was thinking of adding some Achievements to our internal bug-tracking and time logging system. It's connected to an SQL Server back-end.
At first I thought that the system could be run on the database, using triggers to, for example, know when:
*
*yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Sharepoint selectors in Central Administration don't work in IE 6 on the server VM (MOSS 2007) Sharepoint Central Administration site uses the selector control I'm talking about a lot (for selecting site collections and web applications primarily)
I have MOSS 2007 installed on a VM. When I open Central Administrati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I "decompile" Java class files? What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?
On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "556"
} |
Q: Does authentication/authorization stop Jquery from calling a page method? I have the following JQuery code that worked perfect in C#/Asp.net 2.0 to call a page method in the default.aspx page. Now I am trying to call a shared page method in VB.Net and the page method is not firing, I believe because of security or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Direct3D over Remote Desktop How can I get Direct3D to work over a Remote Desktop connection? I am using Windows XP Professional.
A: 3D acceleration does not work on Remote Desktop or in Virtual PC/Server.
Software-rendered OpenGL works on both Remote Desktop and Virtual PC/Server.
A: Actually you can use D3D9 o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is it possible to disable AJAX without disabling JavaScript completely? Is it possible to disable AJAX without disabling JavaScript completely?
A: You can replace the browser tool to make AJAX (XMLHttpRequest object) with your own that does nothing.
XMLHttpRequest = function(){}
XMLHttpRequest.prototype = {
op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I create a cool looking photo gallery How can I achieve a cool looking photo gallery page? I don't know Flash, but can learn, and thought about a random collage that 'pulls out' a photo that you hover over.
It's for a photographer, so no thumbnails, grids, etc.
A: If you're looking for a tool that's pretty ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to find the user's Documents directory on an iPhone? I'm reading Erica Sadun's iPhone Developer's Cookbook, and ran into a question.
She says in the book that the way to find the user's Documents directory is with the code:
[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
but tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Battery status API in macOS? How can I read the status of the battery on my MacBookPro from my own application?
Googling has so far only revealed APIs for device drivers to handle power events - there's nothing about user-land processes accessing this information.
thanks.
A: If you're looking for a quick way to que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: What are some resources for optimizing ActionScript (flash) for speed and size I'm especially interested in memory profiling, reducing the size of a compiled .swf, measuring network latency, etc. Also, I'm focussed entirely on AS3.
A: The latest Flex Builder Professional includes both memory and performance profil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I rewrite Adobe Photoshop plugins for Adobe Lightroom? Are Adobe's plugin architectures for Photoshop and Lightroom related in any way? If I have source code for a plugin, that works with PS 3.0-CS3 as well as PS Elements 6.0 can I use it with Lightroom directly? If not, what would I have to modify?
A: No.. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Running Delphi builds under TFS MSBuild Wanting to build and test a bunch of Borland Delphi 6 projects that are integrated with ASP.NET services. Had been using WANT and CruiseControl for building Delphi. With TFS Build agent we can tie all together and do some testing. I am looking for guidance and direction.
O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a better way to determine the right size for a UITableViewCell? I have a UITableView cell that is going to have a variable size depending on it's content (potentially several lines of text).
SInce it appears that heightForRowAtIndexPath is called before I layout the cell, I just guess the correct height by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: NullReferenceException when hosting WPF in a System.AddIn We are developing a WPF application that uses the System.AddIn framework to host add-ins that display additional WPF content. Everything seems to be working fine, but overnight, the application threw the following NullReferenceException:
Message: Error : Ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use a child object field as part of the compound key in another child in NHibernate I need to create a new Many-To-One relationship on my User entity which joins against another entity. The problem is the other entity has a compound key of which 1 field is a field in the User entity and the other is a field i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to precompute array of values? Is there a way to pre-compute an array of values based on templates? In the following example I would like the 'powers_of_2' array to have 256 values computed at compile-time if that is possible without having to type all of the values.
#include <iostream>
using namespace std;
te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to modify properties of a Matlab Object I've created a MATLAB class, something like:
classdef myclass
properties
x_array = [];
end
methods
function increment(obj,value)
obj.x_array = [obj.x_array ; value);
end
end
end
The problem is, the property x_array is never modified when I i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How can I properly hide a list of XSL processed XML elements using javascript Good morning. I have an XML file which contains lists of warning and errors from a build output. I have successfully been able to write XSL to iterate over the separate lists of warnings and errors to have them display in my browser. Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF javascript proxy not found when endpoint address is not blank I am trying to setup a WCF service with multiple endpoints with one of the endpoints using the enableWebScript endpoint behavior so that a Javascript proxy will be created on the client (jsdebug/js).
When adding the Service Reference to my AJAX Script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Moving ssrs ad hoc reports We have a reporting server which has a bunch of reports and some ad hoc user reports created by users using report builder. Now we need to move all these to a different server. The new server already has some reports in it. I need to move all the reports from the older server to a folder i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to move documents from SharePoint 2003 to SharePoint 2007 with versioning? I'm desperately searching for a tool allowing me to copy documents with their old versions from a SharePoint 2003 to a SharePoint 2007 site.
Do you know about any simple (and preferably free) tool which does this?
A: This may be too late... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: undeclared identifier SO_EXCLUSIVEADDRUSE when building Apache Axis2/C I'm attempting to build Apache Axis2/C (actually I'm building the WSO2 WSF/C++ wrapper for it) and it keeps giving me an error when it comes across the symbol SO_EXCLUSIVEADDRUSE. It's a socket option, and MSDN says it should be available. I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add spaces before Capital Letters Given the string "ThisStringHasNoSpacesButItDoesHaveCapitals" what is the best way to add spaces before the capital letters. So the end string would be "This String Has No Spaces But It Does Have Capitals"
Here is my attempt with a RegEx
System.Text.RegularExpressions.Regex.Replace(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: Open/Close Icons I'm doing some shennanigans with jQuery to put little plus/minus icons next to my expanders. Its similar to the windows file trees, or firebugs code expanders.
It works, but its not specific enough.
Hopefully this makes sense...
$('div.toggle').hide();//hide all divs that are part of the expand/c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can struts logic tag evaluate a variable's contents? Below is what I'm trying to achieve. The problem is "errors" is not defined. If I remove my match logic, the errors are displayed on the web page. Is there anyway of evaluating the text the error contains?
<logic:messagesPresent>
<tr>
<td class="errorc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Custom datatable with metadata used for binding to a Gridview? I'm binding a datatable to a gridview control, and when I format each column I need to format the data based on whether that column has a particular custom attribute. In this case, a column can represent:
*
*a text box (in which case I just display th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I hide a method so it's not called by programmers but still usable in code? I have a class called Ship and a class called Lifeboat
Lifeboat inherits from Ship.
Ship contains a method called Validate() which is called before save and it has an abstract method called FurtherValidate() which it calls from Valida... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java O/R layer for SQL server? I've got a java server (not web based, more like a big, many-threaded standalone application) that needs to talk to a MS SQL Server database.
I just worked on a different project that ported a home-grown O/R layer from oracle to SQL Server, and it ran into significant problems because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Do you load png resource image in Silverlight? I am trying to add a png image resource in a specific Silverlight project folder. I would like to refer to this image with in my tag? I only seem to get this working when the xaml file containing the image tag is located in the same directory as the png file.
Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Do I have to learn Objective-C for professional Mac Development? Do I really have to learn Objective-C to develop solid Mac Apps?
As Mac users tend to use only applications that have a nice (native) GUI, i don't think that Mono and GTK+ or any Java GUI (Swing) will fit their needs.
There are projects like Cocoa#, Py... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Speed up sql JOIN First of all, some background.
We have an order processing system, where staff enter billing data about orders in an app that stores it in a sql server 2000 database. This database isn't the real billing system: it's just a holding location so that the records can be run into a mainframe system vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .Net Remoting Return values Discriminating between calls from different threads I have inherited a middle tier system with some multi-Threading issues.
Two different threads, running in the same method of the same instance of a class, are making the same calls to a .Net Remoting server...
Does the proxy on the cli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is a data structure kind of like a hash table, but infrequently-used keys are deleted? I am looking for a data structure that operates similar to a hash table, but where the table has a size limit. When the number of items in the hash reaches the size limit, a culling function should be called to get rid of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Printing only a textarea I would like to print only the contents of a textarea element from a website page. In particular, I would like to ensure that nothing gets clipped by the boundary of the textarea as the contents will be quite large.
What is the best strategy for tackling this?
A: Make a print stylesheet wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using full-text search with PDF files in SQL Server 2005 I've got a strange problem with indexing PDF files in SQL Server 2005, and hope someone can help. My database has a table called MediaFile with the following fields - MediaFileId int identity pk, FileContent image, and FileExtension varchar(5). I've got my we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Binlog MySQL Replication is a "Bag of Hurt". Are there any good alternatives? I've honestly tried this left and right and still find that my mirror server, set up as a replication slave still lags behind. My app's user base keeps growing and now Ive reached the point where I can't keep "shutting down" to "resync" da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you change the colours used in the annotate bar in Visual Studio 2008? I am using a custom colour scheme in Visual Studio 2008. The annotate bar (that shows who checked each block of code in and when) is rendering in some illegible colours. I can't identify which colours these are within the relevant Options ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting the manufacturer in a VS 2008 Setup Project I have a windows setup project that installs a service. All works well except for one thing: The default directory offered to the user during install is of the form "C:\Program Files\Microsoft\ProgramName". I am trying to modify this so that instead of "Microsoft" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to maintain an object for two nHibernate sessions? I am building a multithreaded system that works like this:
While there are entities:
*
*Gets an entity from nHibernate (using the current session)
*Starts a new thread that will work with this entity*
When I start this new thread, it is required to have a ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to promote a paperless environment? One problem I have with a modern office is that people still tend to create physical copies of digital media (such as program manuals and specifications). I understand that for somethings it is prudent to create a physical copy but many of these physical copie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Stored Procedure failing on a specific user I have a Stored Procedure that is constantly failing with the error message "Timeout expired," on a specific user.
All other users are able to invoke the sp just fine, and even I am able to invoke the sp normally using the Query Analyzer--it finishes in just 10 seconds. H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Server Profiler - How to filter trace to only display events from one database? How do I limit a SQL Server Profiler trace to a specific database? I can't see how to filter the trace to not see events for all databases on the instance I connect to.
A: By experiment I was able to observe this:
When SQL Profiler ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "420"
} |
Q: Pulling in Dynamiclly Generated (not a static file) CSS in FF? Is there any way of pulling in a CSS stylesheet into FireFox 2 or 3 that is not a static file?
Bellow is the code we are using to pull in a stylesheet dynamically generated by a CGI script.
<link rel="stylesheet" href="/cgi-bin/Xebra?ShowIt&s=LH4X6I2l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Kill a blocked Boost::Thread I am writing an application which blocks on input from two istreams.
Reading from either istream is a synchronous (blocking) call, so, I decided to create two Boost::threads to do the reading.
Either one of these threads can get to the "end" (based on some input received), and once the "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: On Windows is there a **light-weight** IDE that can be used both with C and Perl? When I asked this previously I should have mentioned that it's particularly a light-weight IDE that I'm after, so I’m having to ask again as a different question.
Something that is not just a text editor, is light-weight and versatile,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Migrating content from OpenWiki to ScrewTurn Wiki We have a large OpenWiki powered wiki. OpenWiki appears to be a dead project, and ScrewTurn the next best option.
Is anyone aware of a data migration route to move our content from the OpenWiki SQL Server format to the ScrewTurn wiki SQL Server format?
We may end up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the quickest path to writing a lightweight GUI program on Windows? I want a small (< 30MB) standalone Windows executable (a single file) that creates a window which asks the user for the location of a directory and then launches a different program in that directory.
This executable has to run on XP, Vista... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: HOWTO - Set delegated Active Directory privileges I've created a c# webservice that allows our front end support teams to view and update a few selected Active Directory values using system.directoryservices
Fields that I want to update are [job] title, department, telephone and employeeid.
I can use a service accou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does the brand name matter for a SSL EV certificate? Do end users really care if a SSL EV certificate is from VeriSign, Thwate, DigiCert, or etc.? A certificate from VeriSign can cost up to 3x the cost from DigiCert for the same basic features. VeriSign is probably the most recognizable brand name though.
I've had m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Ticketing/tracking system with Subversion integration? My company uses StarTeam for source control and CR management, but I would really like to switch to Subversion for source control. For those of you that know ClearQuest and ClearCase, StarTeam has the ability to create tickets, which can later be associated wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/272776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.