text stringlengths 8 267k | meta dict |
|---|---|
Q: sudo echo "something" >> /etc/privilegedFile doesn't work This is a pretty simple question, at least it seems like it should be, about sudo permissions in Linux.
There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both > and >> are not al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "694"
} |
Q: JMS (esp Tibco EMS) can I have an environment with in a message broker I have a message broker with some topics, and some set of applications running on it. Now I want to run a new set of the same applications (say for QA environment) on the same topics (on the same broker, if I could). What is the best way to do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JDEdwards XMLInterop Wondering if anybody out there has any success in using the JDEdwards XMLInterop functionality. I've been using it for a while (with a simple PInvoke, will post code later). I'm looking to see if there's a better and/or more robust way.
Thanks.
A: As promised, here is the code for integrating w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the easiest or fastest way to make CSS render the same in all browsers Making a web page display correctly im all major browsers today is a very time consuming task.
Is there a easy way to make a CSS style that looks identical in every browser?
Or at least do you have some tips to make this work easier?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: RIghtFax Esoteric error message in .NET 1.1 I have a problem with RightFax component Interop.RFCOMAPILib.dll version 1.0.0.0 , using VB .NET 1.1.
It works in several environments, but not in Production.
It returns this message in the exception - "?" - .
How can I solve it? I couldn't find any solution in manuals or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get the full path to a Perl script that is executing? I have Perl script and need to determine the full path and filename of the script during execution. I discovered that depending on how you call the script $0 varies and sometimes contains the fullpath+filename and sometimes just filename. Because the wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "181"
} |
Q: How do you disable a SharePoint webpart temporarily? Can this be done by setting a property?
I'd prefer that approach then to remove all security before re-adding it.
(As this may have other consequences.)
Another option I can think of is to replace the particular webpart dll with a temporary one, and restart the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio Intellisense, c#, no code behind If I open a file in Design View (web form), I get intellisense for my display code, but not my script code.. If I open with source code editor I, occasionally, get intellisense within the script tags.
Anyone know how to get intellisense working all of the time for all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Array Formulas in Conditional Formatting of Excel XML Spreadsheet files? Excel usually treats Conditional Formatting formulas as if they are array formulas, except when loading them from an Excel 2002/2003 XML Spreadsheet file.
This is only an issue with the Excel 2002/2003 XML Spreadsheet format... the native Excel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resending invitation/action emails I've got a web app that sends out emails in response to a user-initaited action. These emails prompt the recipient for a response (an URL is included related to the specific action.)
I've got some users asking for a "resend" feature to push that email again.
My objection is that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using P4Package (Java) from Java app to validate Perforce directory In a web-app I'm writing, the user is supposed to enter the path in the Perforce repository for the node they're entering. The application is supposed to validate that the entered directory exists in the repo.
I've got the P4Package (p4.jar) lib, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change default port when registering a new SQL 2000 server I'm trying to register an externally hosted SQL 2000 server through Enterprise Manager which isn't on the default port and I can't see anywhere to change it within Enterprise Manager.
So, the question is, how do I connect to the database if:
I.P. Address is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stream a PDF file as binary to the browser using .NET 2.0 I'm looking for a way to stream a PDF file from my server to the browser using .NET 2.0 (in binary).
I'm trying to grab an existing PDF file from a server path and push that up as binary to the browser.
A: Here you go: How To Write Binary Files to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/84995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Oracle ORDImage processing in PL/SQL: Getting IMG-00710 and ORA-01031 I have loaded image into a new, initialized Oracle ORDImage object and am processing it by PL/SQL. I can read its properties, but cannot process it with the process() method.
vLocalImage ORDImage := ORDImage.init();
...
vLocalImage.source.localda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Object Oriented Update Approach I've been tasked with maintaining an application originally written in VB6. It has since been imported into VB .Net and to say the least the code is anything but Object Oriented. The code is riddled with classes which contain nothing more than Public Shared attributes(variables) and m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can you make a web page send to the printer something different than what's in the browser window? Google Maps used to do this bit where when you hit the "Print" link, what would be sent to the printer wasn't exactly what you had on the screen, but rather a differently-formatted version of mostly the same inform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Converting std::vector<>::iterator to .NET interface in C++/CLI I am wrapping a native C++ class, which has the following methods:
class Native
{
public:
class Local
{
std::string m_Str;
int m_Int;
};
typedef std::vector<Local> LocalVec;
typedef LocalVec::iterator LocalIter;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SqlServer create table with MySql like auto_increment primary key I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below)
create table foo
(
user_id int not null auto_increment,
na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I quickly identify most recently modified stored procedures in SQL Server I need to manually migrate modified stored procedures from a DEV SQL Server 2005 database instance to a TEST instance. Except for the changes I'm migrating, the databases have the same schemas. How can I quickly identify which stored... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Editable JTable Tutorial Are there any good books or website that go over creating a JTable? I want to make one column editable. I would like to actually put a inherited JCheckBox component (that we created here) into one of the table columns instead of just having the table put JCheckBox in based on it being an ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Git over Email? Assuming network access is sporadic with no central server, what would be the best way to use git to keep three or more branches in sync? Is there a way to extract just my deltas, email those, and merge them on the other end?
A: See the main pages for git-format-patch and git-am. This is one of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Why do we need other JVM languages I see here that there are a load of languages aside from Java that run on the JVM. I'm a bit confused about the whole concept of other languages running in the JVM. So:
What is the advantage in having other languages for the JVM?
What is required (in high level terms) to write a la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do I implement an A* pathfinding algorithm, with movement costs for every programming language? Can we get people to post code of simple, optimized implementations of the A* pathfinding algorithm, in every single language?
This is mostly for fun and to play with what stackoverflow itself is capable of... althoug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: .NET Remoting Server Only processes One request I am using .NET Remoting. My server/hoster is a Windows Service. It will sometimes work just fine and other times it will process one request and then it does not process any more (until I restart it). It is running as a Windows service Here is the code from the Windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pass by reference not returning in RMI for ArrayList I've got an RMI call defined as:
public void remoteGetCustomerNameNumbers(ArrayList<String> customerNumberList, ArrayList<String> customerNameList) throws java.rmi.RemoteException;
The function does a database lookup and populates the two ArrayLists. The calling... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error BC30002 - Type XXX is not defined OK, this begins to drive me crazy. I have an asp.net webapp. Pretty straightforward, most of the code in the .aspx.vb, and a few classes in App_Code.
The problem, which has begun to occur only today (even though most of the code was already written), is that once in a while, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you structure a development sprint? So I have a backlog of features and we are about to get started on a sizable project. I am working on defining the structure of our sprints and I'm interested in the communities feedback.
What I'm thinking is:
*
*One day sprint planning
*
*Fill the backlog and figure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Display date/time in user's locale format and time offset I want the server to always serve dates in UTC in the HTML, and have JavaScript on the client site convert it to the user's local timezone.
Bonus if I can output in the user's locale date format.
A: Once you have your date object constructed, here's a snippe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "202"
} |
Q: Running multiple sites from a single Python web framework I know you can do redirection based on the domain or path to rewrite the URI to point at a site-specific location and I've also seen some brutish if and elif statements for every site as shown in the following code, which I would like to avoid.
if site == 'si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to make thread sleep less than a millisecond on Windows On Windows I have a problem I never encountered on Unix. That is how to get a thread to sleep for less than one millisecond. On Unix you typically have a number of choices (sleep, usleep and nanosleep) to fit your needs. On Windows, however, there is only S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Best way to set up CruiseControl for IIS 5.1 dev box and IIS6 server Can anyone point me in the right direction on this. From reading the FAQs at cruisecontrol, it appears that you should develop in the same environment as you produce.
But i have Windows XP (which only runs IIS 5.1) on my dev machine and the server ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add an event to a class Say I have a class named Frog, it looks like:
public class Frog
{
public int Location { get; set; }
public int JumpCount { get; set; }
public void OnJump()
{
JumpCount++;
}
}
I need help with 2 things:
*
*I want to create an event named Jump in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: C# Code Formatter for Linux and/or MonoDevelop MonoDevelop 1.0 doesn't appear to have a code-formatter like Eclipse does for Java. Is there a preferred shell script (or MonoDevelop add-in?) that you've found to work well?
A: At the moment, source code formatting in MonoDevelop is marked as a future enhancement:
ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: FormsAuthentication selective to url Is there a way to implement forms authentication, but only for a specific URL. For example, I would want the formsAuthentication to protect the site on staging.mydomain.com but not hinder access to www.mydomain.com if the web.config accidentally got moved over to the production ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best resource for learning .NET generics? I've never used any of the .NET generics in my work, but I understand that they are fairly popular. Does anyone have any good links or book suggestions for learning them? As a bonus; I only vaguely understand what .NET generic collections are and what they do...does anyone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: A sample for jQuery based WYSIWYG Editor demonstrate OOP javascript Want a WYSIWYG jQuery Editor as an example to illustrate how to use jQuery to built OOP javascript component.
P.S.
It is so good stackoverflow can use markdown... Would be a heaven if users would love such thing too
A: jHtmlArea - WYSIWYG HTML Edi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Time Parsing in Flex Is there any way to parse a string in the format HH:MM into a Date (or other) object using the standard libraries?
I know that I can parse something like "9/17/2008 10:30" into a Date object using
var date:Date = new Date(Date.parse("9/17/2008 10:30");
But I want to parse just 10:30 by itself. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fix argument handling in SQL Server 2005 Mgmt Studio custom Keyboard Accelerator shortcuts? I've long been a fan of Stored Procedure Keyboard Accelerators, as described in this article. When we moved from SQL 2000 to 2005, though, and from Query Analyzer to Management Studio, the handling of the arguments changed. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I traced a Stored Procedure as shown in the SQL Server 2005 Profiler. It's not found but works. Why? This is pretty weird.
I have my Profiler open and it obviously shows that a stored procedure is called. I open the database and the SP list, but the SP doesn't exist. However, there's another SP whose name is the sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windsor Container: How to force dispose of an object? I have an object that implements IDisposable that is registered with the Windsor Container and I would like to dispose of it so it's Dispose method is called and next time Resolve is called it fetches a new instance.
Does
container.Release(obj);
automatically ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: mysqldump equivalent for SQL Server Is there an equivalent schema & data export/dumping tool for SQL Server as there is for MySQL with mysqldump. Trying to relocate a legacy ASP site and I am way out of happy place with working on a windows server.
Note: The DTS export utility own seems to export data, without ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How does the Java 'for each' loop work? Consider:
List<String> someList = new ArrayList<String>();
// add "monkey", "donkey", "skeleton key" to someList
for (String item : someList) {
System.out.println(item);
}
What would the equivalent for loop look like without using the for each syntax?
A: It adds beauty ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1701"
} |
Q: Best way to version control T-SQL?
Possible Duplicate:
Stored procedures/DB schema in source control
What's the best way to version control my tables, views, sprocs, etc? Preferably automated or at least semi-automated :)
Thanks
A: I asked this one yesterday and got some nice responses:
Stored procedures/DB sche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Linking .Net Assemblies This is all hypothetical, so please bear with me.
Say I'm writing a tool in C# called Foo. The output is foo.exe. I've found some really great library that I like to use called Bar, which I can reference as bar.dll in my project. When I build my project, I have foo.exe and bar.dll in my ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to manually parse a floating point number from a string Of course most languages have library functions for this, but suppose I want to do it myself.
Suppose that the float is given like in a C or Java program (except for the 'f' or 'd' suffix), for example "4.2e1", ".42e2" or simply "42". In general, we have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Which language is useful to create a report for a valid C program Can anyone suggest me a helpful programming language which can be used to create a tool which will analyse the given C program and generate a txt report or html report containing information about the given program (function list, variable list etc).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JConsole Config in JBoss' run.bat, add:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -
Dcom.sun.management.jmxremote.port=9987 -
Dcom.sun.management.jmxremote.ssl=false -
Dcom.sun.management.jmxremote.authenticate=false
To start jconsole:
JDK/bin>jconsole localhost:9987
A: Yes, that should work. If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you know when to use design patterns? Anyone can read the GoF book to learn what design patterns are and how to use them, but what is the process for figuring out when a design pattern solves a problem? Does the knowledge of the pattern drive the design, or is there a way to figure out how a pattern can be us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: How do I derive a Voronoi diagram given its point set and its Delaunay triangulation? I'm working on a game where I create a random map of provinces (a la Risk or Diplomacy). To create that map, I'm first generating a series of semi-random points, then figuring the Delaunay triangulations of those points.
With th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I enable more than 8-bit colors in Terminal.app? In the Vim and Emacs terminal apps, the color schemes look horrid. How do I enable the colors to be as vibrant as the GUI version (or more than 8 colors for that matter)?
Should I just give up, and move over to their respective GUI applications? And if so, whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the value of an anonymous unattached block in C#? In C# you can make a block inside of a method that is not attached to any other statement.
public void TestMethod()
{
{
string x = "test";
string y = x;
{
int z = 42;
int zz ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to avoid garbage collection in real time .NET application? I'm writting a financial C# application which receive messages from the network, translate them into different object according to the message type and finaly apply the application business logic on them.
The point is that after the business logic is app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Handling and storing elapsed time I'm having problems deciding on what is the best way is to handle and store time measurements.
I have an app that has a textbox that allows the users to input time in either hh:mm:ss or mm:ss format.
So I was planning on parsing this string, tokenizing it on the colons and creating... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Customizing Search Results Display in Sharepoint Services 3.0 Wiki I'm looking at using a Windows SharePoint Services 3.0 wiki as a metadata repository. We basically want a community-driven dictionary and for various reasons we're using Sharepoint instead of say MediaWiki.
What can I do to customize or completely r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best general SVN Ignore Pattern? What is the best (or as good as possible) general SVN ignore pattern to use?
There are a number of different IDE, editor, compiler, plug-in, platform, etc. specific files and some file types that "overlap" (i.e. desirable for some types projects and not for others).
There are howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "179"
} |
Q: Most common cause of "java.lang.NullPointerException" when dealing with XMLs? My strongest lead is that the code who deals with the incoming XMLs is actually receiving an invalid/incomplete file hence failing the DOM parsing. Any suggestions?
A: Incomplete file is definitely the place to start looking. I'd print o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Floor a date in SQL server In SQL Server, how do I "floor" a DATETIME to the second/minute/hour/day/year?
Let's say that I have a date of 2008-09-17 12:56:53.430, then the output of flooring should be:
*
*Year: 2008-01-01 00:00:00.000
*Month: 2008-09-01 00:00:00.000
*Day: 2008-09-17 00:00:00.000
*Hour: 2008-0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: World's First Computer Programming _Language_? OK -- a bit of an undefined question (is the pattern of plugs in an Eniac plugboard a language ??) but contenders include:
*
*Konrad Zuse's PlanKalkül (1940s) -
never implemented (generally
accepted as the first).
*Whatever Ada Lovelace (1840s) programmed in (not
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SharePoint - How do insert new items using the list web service? I have a list with 2 text fields, and a choice field. How do I use the Lists.asmx web service to insert a new item? I can make a web reference to the lists.asmx service, so you can assume that this is known.
I would like a complete example including co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how to change default delete date in lotus notes for emails? I am using Lotus Notes as my email client, and how to change the defailt email delete date to something new so my older emails don't get deleted after pre-defined date?
A: go to TOOLS -> Change Delete Date , you can put any number of days to change the de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating a PDF document based on a Microsoft Word Template I need to take a Word document that is a template of sorts...collect user input to populate specific fields in that template..then generate a PDF file that includes the completed template as well as a few other document types. Does anyone have a good sugge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you port a virtual machine from VMWare to VirtualBox? I've been using VMWare for a while and am very happy with it, but I would like to compare it with VirtualBox. Apparently the disk images are compatible, and I have successfully booted my Fedora based VM created by VMWare in VirtualBox... but the network i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rich Edit Control in raw Win32 Is the documentation for Rich Edit Controls really as bad (wrong?) as it seems to be? Right now I'm manually calling LoadLibrary("riched20.dll") in order to get a Rich Edit Control to show up. The documentation for Rich Edit poorly demonstrates this in the first code sample for using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Code Outlining, Classic ASP and Visual Studio 2005 Is there a way to enable code outlining for Classic ASP in Visual Studio 2005? It outlines the HTML code pretty well and I get a big outline between <% and %>, but nothing for the code itself.
A: Visual Studio 2008 SP1 has re-added support for classic ASP, but I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sharepoint Item Level Access & performance i have created a workflow activity that do give the item creater of a specific list full control on the item and set everyone else to read only access (permission)
someone told me that doing it this way (if i have a lot of users) the performance will go down dramatically
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server 2005 Linked Server to DB2 Performance issue I have a SQL Server 2005 machine with a JDE DB2 set up as a linked server.
For some reason the performance of any queries from this box to the db2 box are horrible.
For example. The following takes 7 mins to run from Management Studio
SELECT *
FROM F42... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python's time.clock() vs. time.time() accuracy? Which is better to use for timing in Python? time.clock() or time.time()? Which one provides more accuracy?
for example:
start = time.clock()
... do something
elapsed = (time.clock() - start)
vs.
start = time.time()
... do something
elapsed = (time.time() - start)
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "451"
} |
Q: Limiting results of System.Data.Linq.Table I am trying to inherit from my generated datacontext in LinqToSQL - something like this
public class myContext : dbDataContext {
public System.Data.Linq.Table<User>() Users {
return (from x in base.Users() where x.DeletedOn.HasValue == false select x);
}
}
But my Linq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to combine a series of PDFs into one using Ruby? I have a series of PDFs named sequentially like so:
*
*01_foo.pdf
*02_bar.pdf
*03_baz.pdf
*etc.
Using Ruby, is it possible to combine these into one big PDF while keeping them in sequence? I don't mind installing any necessary gems to do the job... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: MVC C# custom MvcRouteHandler - How to? Does anyone have experiences in providing a custom MvcRouteHandler? In my application I'd like to implement a globalization-pattern like http://mydomain/en/about or http://mydomain/de/about.
As for persistance, I'd like to have a cookie read as soon as a request arrives and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# Unsafe/Fixed Code Can someone give an example of a good time to actually use "unsafe" and "fixed" in C# code? I've played with it before, but never actually found a good use for it.
Consider this code...
fixed (byte* pSrc = src, pDst = dst) {
//Code that copies the bytes in a loop
}
compared to simply using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How can I return the content of an XML field as a recordset? Say I've got this table (SQL Server 2005):
Id => integer
MyField => XML
Id MyField
1 < Object>< Type>AAA< /Type>< Value>10< /Value>< /Object>< Object>< Type>BBB< /Type><Value>20< /Value>< /Object>
2 < Object>< Type>AAA< /Type>< Value>15< /Value>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding a SVN repository in Eclipse I'm trying to add an SVN repository to Eclipse.
I've installed Subclipse, and it seems to be working fine. But, when I try to "add a new SVN repository", I input this, for example:
http://svn.python.org/projects/peps/trunk
I get this:
Error validating location: "org.tigris.subver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Reverse DNS lookup in perl How do I perform a reverse DNS lookup, that is how do I resolve an IP address to its DNS hostname in Perl?
A: perl -MSocket -E 'say scalar gethostbyaddr(inet_aton("69.89.27.250"), AF_INET)'
Returns: Can't find string terminator "'" anywhere before EOF at -e line 1.
perl -MSocket -E "say ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: AJAX - How to Pass value back to server First time working with UpdatePanels in .NET.
I have an updatepanel with a trigger pointed to an event on a FormView control. The UpdatePanel holds a ListView with related data from a separate database.
When the UpdatePanel refreshes, it needs values from the FormView control... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What does the option "convert to web application" do if I select it in visual studio? What does the option “convert to web application” do if I select it in visual studio? If I do convert my site to a web application what are the advantages? Can I go back?
A: Also Answered Here so go vote that answer up, not this o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: TileBrush for SIlverlight 2? As you may know, Silverlight does not have the TileBrush found in WPF. Is there a workaround to do tiling?
A: According to contributor at Silverlight forum
TileBrush in Silverlight (2 and 3) is only a placeholder class ready for future expansion and for WPF compatibility
A PixelShade... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: PHP DOMDocument stripping HTML tags I'm working on a small templating engine, and I'm using DOMDocument to parse the pages. My test page so far looks like this:
<block name="content">
<?php echo 'this is some rendered PHP! <br />' ?>
<p>Main column of <span>content</span></p>
</block>
And part of my class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Migrating from MySQL to arbitrary standards-compliant SQL2003 server Is there an incantation of mysqldump or a similar tool that will produce a piece of SQL2003 code to create and fill the same databases in an arbitrary SQL2003 compliant RDBMS?
(The one I'm trying right now is MonetDB)
A: DDL statements are inhere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Faces Servlet threw exception java.lang.StackOverflowError Ok, I've run across my first StackOverflowError since joining this site, I figured this is a must post :-). My environment is Seam 2.0.1.GA, JBoss 4.2.2.GA and I'm using JSF. I am in the process of converting from a facelets view to JSP to take advantage o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to make Swing scroll with "ensureIndexIsVisible"? When I run this code the selected item is not visible. I've already tried to run it in a separate thread with no luck.
import javax.swing.JFrame;
import java.awt.Container;
import javax.swing.JList;
import javax.swing.ListSelectionModel;
import javax.swing.JScro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When should I use a struct instead of a class? MSDN says that you should use structs when you need lightweight objects. Are there any other scenarios when a struct is preferable over a class?
Some people might have forgotten that:
*
*structs can have methods.
*structs cannot be inherited.
I understand the tech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "334"
} |
Q: VB.NET 2005 problems with Designer not being able to process a code line I have a problem in my project with the .designer which as everyone know is autogenerated and I ahvent changed at all. One day I was working fine, I did a back up and next day boom! the project suddenly stops working and sends a message that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .Net (dotNet) wrappers for OpenCV? I've seen there are a few of them. opencvdotnet, SharperCV, EmguCV, One on Code Project.
Does anyone have any experience with any of these? I played around with the one on Code Project for a bit, but as soon as I tried to do anything complicated I got some nasty uncatchable exc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Search for host with MAC-address using Python I'd like to search for a given MAC address on my network, all from within a Python script. I already have a map of all the active IP addresses in the network but I cannot figure out how to glean the MAC address. Any ideas?
A: You need ARP. Python's standard library do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: FindControl() method throws ArithmeticException? I have a line of C# in my ASP.NET code behind that looks like this:
DropDownList ddlStates = (DropDownList)fvAccountSummary.FindControl("ddlStates");
The DropDownList control is explicitly declared in the markup on the page, not dynamically created. It is inside of a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flush disk write cache from Windows CLI Does anyone know how to flush the disk write cache data from the cache manager for the current directory (or any given file or directory, for that matter), from a Windows command line?
A: I found the SysInternals Sync worked well for me - although it flushes ALL cache, not ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I install modperl under OS X Leopard's default Apache 2? My attempts to install modperl under the default vanilla Leopard Apache 2 have failed and all I can find online are variations on this:
I would like if possible not to rely on MacPorts or Fink, though if they can be made to work with the default Apache ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compile Cairo for Visual C++ 2008 (Express edition) Most precompiled Windows binaries are made with the MSYS+gcc toolchain. It uses MSVCRT runtime, which is incompatible with Visual C++ 2005/2008.
So, how to go about and compile Cairo 1.6.4 (or later) for Visual C++ only. Including dependencies (png,zlib,pixm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Component to view and annotate PDF documents Can anyone recommend a good Windows form component for displaying PDF documents and allowing users to add real annotation (by which I mean identical to that created by Adobe Reader).
Update: I've tried the AxAcroPDF component which Abobe installs alongside Reader, but th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Safely remove a USB drive using the Win32 API? How do I remove a USB drive using the Win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a USB stick and insert it into the target hardware.
Since I mostly work on the console I don't like to use the mouse and click on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How do I compare two CLOB values in Oracle I have two tables I would like to complare. One of the columns is type CLOB. I would like to do something like this:
select key, clob_value source_table
minus
select key, clob_value target_table
Unfortunately, Oracle can't perform minus operations on clobs. How can I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What's the best way to model recurring events in a calendar application? I'm building a group calendar application that needs to support recurring events, but all the solutions I've come up with to handle these events seem like a hack. I can limit how far ahead one can look, and then generate all the events at once.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "248"
} |
Q: Best way to extract TimeZone object from a String? I have a database field that contains a raw date field (stored as character data), such as
Friday, September 26, 2008 8:30 PM Eastern Daylight Time
I can parse this as a Date easily, with SimpleDateFormat
DateFormat dbFormatter = new SimpleDateFormat("EEEE, MMMM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I make a ComboBox non-editable in .NET? I want to have a "select-only" ComboBox that provides a list of items for the user to select from. Typing should be disabled in the text portion of the ComboBox control.
My initial googling of this turned up an overly complex, misguided suggestion to capture the KeyPre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "227"
} |
Q: Monitoring group membership in Active Directory more efficiently (C# .NET) I've got an Active Directory synchronization tool (.NET 2.0 / C#) written as a Windows Service that I've been working on for a while and have recently been tasked with adding the ability to drive events based on changes in group membership. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting floating point exceptions into C++ exceptions Is it possible to convert floating point exceptions (signals) into C++ exceptions on x86 Linux?
This is for debugging purposes, so nonportability and imperfection is okay (e.g., if it isn't 100% guaranteed that all destructors are called).
A: If your C++ stan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you switch on a string in XQuery? I have an external variable coming in as a string and I would like to do a switch/case on it. How do I do that in xquery?
A: Just use a series of if expressions:
if ($room eq "bathroom") then "loo"
else if ($room eq "kitchen") then "scullery"
else "just a room"
Using a typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to sort an array by keys in an ascending direction? here is the input i am getting from my flash file
process.php?Q2=898&Aa=Grade1&Tim=0%3A0%3A12&Q1=908&Bb=lkj&Q4=jhj&Q3=08&Cc=North%20America&Q0=1
and in php i use this code
foreach ($_GET as $field => $label)
{
$datarray[]=$_GET[$field];
echo "$field :";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How should I write code with unique sections for different versions of .NET My source code needs to support both .NET version 1.1 and 2.0 ... how do I test for the different versions & what is the best way to deal with this situation.
I'm wondering if I should have the two sections of code inline, in separate classe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/85773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.