text stringlengths 8 267k | meta dict |
|---|---|
Q: SQL Server Management Studio 2005 - Change Default Directory for Backup Location Using MS SQL Server Management Studio 2005 - To Restore a Database:
*
*Restore Database
*(*) From Device:
*Click "..." Button
*Backup media: File
*Click "Add" Button
*Popup Window: "Locate Backup File"
That window Defaults ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Are ruby command line switches -rubygems & -r incompatible? I recently converted a ruby library to a gem, which seemed to break the command line usability
Worked fine as a library
$ ruby -r foobar -e 'p FooBar.question' # => "answer"
And as a gem, irb knows how to require a gem from command-line switches
$ irb ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is MEF a replacement for System.Addin?
Possible Duplicate:
Choosing between MEF and MAF (System.AddIn)
Is the Managed Extensibility Framework a replacement for System.Addin? Or are they complementary?
A: .. just two links for further reference:
*
*SO question: Choosing between MEF and MAF (System.AddIn)
*Ken... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What do you put in your webservice? I have a website (ASP.NET) and some winforms(.Net 2.0) for a project (written in C#). I use the webservice (IIS6) for task that both require like sending email inside the business.
I think Webservice is nice but I would like from your experience what should and what should not be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server 2005 vs. ASP.net datetime format confusion I've found a similar question on stack overflow, but it didn't really answer the question I have. I need to make sure that my asp.net application is formatting the date dd/mm/yyyy the same as my SQL Server 2005.
How do I verify the date culture (if that's what it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php String Concatenation, Performance In languages like Java and C#, strings are immutable and it can be computationally expensive to build a string one character at a time. In said languages, there are library classes to reduce this cost such as C# System.Text.StringBuilder and Java java.lang.StringBuilder.
Does p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: What do these abbreviations in network hostnames mean? When I use traceroute, I often see abbreviations in the hostnames along the route, such as "ge", "so", "ic", "gw", "bb" etc. I can guess "bb" means backbone.
Does anyone know what any these strings abbreviate, or know any other common abbreviations?
A: The exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I quickly slice and dice large data files? I'd like to slice and dice large datafiles, up to a gig, in a fairly quick and efficient manner. If I use something like UNIX's "CUT", it's extremely fast, even in a CYGWIN environment.
I've tried developing and benchmarking various Ruby scripts to process these fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the best way to implement clean UI functionality in WinForms while maintaining a decent decoupled architecture? I tend to implement UI functionality using fairly self-documenting void doSomething() methods, i.e. if the user presses this button then perform this action then enable this list box, disable that b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Passing around urls between applications in the same project I am trying to mock-up an API and am using separate apps within Django to represent different web services. I would like App A to take in a link that corresponds to App B and parse the json response.
Is there a way to dynamically construct the url to App ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET + Copying large amounts of memory tricks Back in the olden days, there were tricks used (often for blitting offscreen framebuffers), to copy large chunks of memory from one location to another.
Now that I'm working in C#, I've found the need to move an array of bytes (roughly 32k in size) from one memory locati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IIS 6.0 on Enterprise Server - Memory Limit We want to switch a web server from Windows 2003 to Windows 2003 Enterprise (64 bits) to use 8GB of RAM. Will IIS 6.0 and an ASPNET 1.1 application be able to benefit from the change?
A: Since ASP.Net 1.1 has no x64 support, you are limited to running IIS 6 using 32 bit w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create Excel 2003 UDF with a C# Excel add-in using VSTO 2005 SE I saw an article on creating Excel UDFs in VSTO managed code, using VBA: http://blogs.msdn.com/pstubbs/archive/2004/12/31/344964.aspx.
However I want to get this working in a C# Excel add-in using VSTO 2005 SE, can any one help?
I tried the tech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving the child nodes of an XML node upwards Imagine I have the folling XML file:
<a>before<b>middle</b>after</a>
I want to convert it into something like this:
<a>beforemiddleafter</a>
In other words I want to get all the child nodes of a certain node, and move them to the parent node in order. This is like doing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why are Exceptions not Checked in .NET? I know Googling I can find an appropriate answer, but I prefer listening to your personal (and maybe technical) opinions.
What is the main reason of the difference between Java and C# in throwing exceptions?
In Java the signature of a method that throws an exception has to use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Should I never use primitive types again? Mixing the use of primitive data types and their respective wrapper classes, in Java, can lead to a lot of bugs. The following example illustrates the issue:
int i = 4;
...
if (i == 10)
doStuff();
Later on you figure that you want the variable i to be either defined or un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Make a div fade away nicely after a given amount of time What is the best way to make a <div> fade away after a given amount of time (without using some of the JavaScript libraries available).
I'm looking for a very lightweight solution not requiring a huge JavaScript library to be sent to the browser.
A: Here's so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Bash variable scope Please explain to me why the very last echo statement is blank? I expect that XCODE is incremented in the while loop to a value of 1:
#!/bin/bash
OUTPUT="name1 ip ip status" # normally output of another command with multi line output
if [ -z "$OUTPUT" ]
then
echo "Status WARN: No message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: A Delphi/FreePascal lib or function that emulates the PHP's function parse_url I'm doing a sitemap producer in Object Pascal and need a good function or lib to emulate the parse_url function on PHP.
Does anyone know of any good ones?
A: I am not familiar with the parse_url function on PHP, but you might try the TId... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comparison of Python and Perl solutions to Wide Finder challenge I'd be very grateful if you could compare the winning O’Rourke's Perl solution to Lundh's Python solution, as I don't know Perl good enough to understand what's going on there. More specifically I'd like to know what gave Perl version 3x advantage: alg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I do the equivalent of "SHOW TABLES" in T-SQL? I would like to do a lookup of tables in my SQL Server 2005 Express database based on table name. In MySQL I would use SHOW TABLES LIKE "Datasheet%", but in T-SQL this throws an error (it tries to look for a SHOW stored procedure and fails).
Is this possible, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: HTML Help Workshop Crashes on Compiling a CHM Trying to build a CHM using Microsoft HTML Help Workshop. A soon as I click Compile, HTML Help Workshop states:
An internal error has occurred. An error record has been saved to c:\os.err.
The only contents of the file are:
((Today's Date & Time))
Microsoft HTML Hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IMAP: "immediate" delete, without going through Trash folder? I currently filter some message from my inbox with these steps:
select inbox
pick messages
set \Deleted tag
and then repeat the process after selecting Trash.
Is there a more direct way of disposing of these messages? Or is it just the feature of the Ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Practices of Test Driven Development Using C# and RhinoMocks In order to help my team write testable code, I came up with this simple list of best practices for making our C# code base more testable. (Some of the points refer to limitations of Rhino Mocks, a mocking framework for C#, but the rules may apply mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: What are the advantages and disadvantages of GPGPU (general-purpose GPU) development? I am wondering what is the key thing that helps you in GPGPU development and of course what is the constraints that you find unacceptable.
Comes to mind for me:
*
*Key advantage: the raw power of these things
*Key constraint: t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does Git work in Windows? I work on Linux all the time and I'm clueless about Windows, not even having a Windows box. Is Git nowadays working on Windows? Or am I making problems for my Windows pals by using it?
A: I have had no problems, even with the gui tools (gitk and git gui), using git from Cygwin. The Cygwin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What's the best way to manage a large number of tables in MS SQL Server? This question is related to another:
Will having multiple filegroups help speed up my database?
The software we're developing is an analytical tool that uses MS SQL Server 2005 to store relational data. Initial analysis can be slow (since we'r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Mysql results in PHP - arrays or objects? Been using PHP/MySQL for a little while now, and I'm wondering if there are any specific advantages (performance or otherwise) to using mysql_fetch_object() vs mysql_fetch_assoc() / mysql_fetch_array().
A: Something to keep in mind: arrays can easily be added to a memory ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Do standard asp.net validators work with Ajax and update panel? I am having issues with validators not firing (No expected error messages showing) when using Page.Validate() from code behind. The validators are placed inside an Ajax updatepanel.
It seems there are downloadable Ajax versions of the validators. I am n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to do a rolling restart of a cluster of mongrels Anybody know a nice way to restart a mongrel cluster via capistrano in a "rolling" style, eg, one mongrel at a time. Would be great to have a bit of wait time in there as well for each, to let the mongrel load the rails app up as well.
I've done some searching, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Visual Studio 2008 Documentation I've installed the MSDN Library for Visual Studio 2008 SP1, however, dynamic help in Visual Studio still spawns the RTM Document Explorer. Anyone know how to change it to the SP1 version?
A: Sometimes you see someone else struggling with the same things and that quickly reminds you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How would you allow users to edit attachments in a web application? We have created a web application, using ASP.NET, that allows users to upload documents and attach them to business entities, like customers, contacts and so on.
The application runs on the intranet and all files are uploaded through the web applic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Sort Object in PHP What is an elegant way to sort objects in PHP? I would love to accomplish something similar to this.
$sortedObjectArary = sort($unsortedObjectArray, $Object->weight);
Basically specify the array I want to sort as well as the field I want to sort on. I looked into multidimensional array sorting an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Simplest SOAP example What is the simplest SOAP example using Javascript?
To be as useful as possible, the answer should:
*
*Be functional (in other words actually work)
*Send at least one parameter that can be set elsewhere in the code
*Process at least one result value that can be read elsewhere in the code
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "261"
} |
Q: Does anyone know of any cross platform GUI log viewers for Ruby On Rails? I'm tired of using:
tail -f development.log
To keep track of my rails logs. Instead I would like something that displays the info in a grid and allows my to sort, filter and look at stack traces per log message.
Does anyone know of a GUI too... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there any way to use XmlSiteMapProvider within WinForm/Console/VSTest application? I wonder whether there is a workaround for using the standard XmlSiteMapProvider within a non asp.net application, like WinForm/Console or, in my case, VS Unit Test one.
The following code fails, because it cannot create a path to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Intra-process coordination in mod_perl under the worker MPM I need to do some simple timezone calculation in mod_perl. DateTime isn't an option. What I need to do is easily accomplished by setting $ENV{TZ} and using localtime and POSIX::mktime, but under a threaded MPM, I'd need to make sure only one thread at a t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I deploy a managed stored procedure without using Visual Studio? Everything I have read says that when making a managed stored procedure, to right click in Visual Studio and choose deploy. That works fine, but what if I want to deploy it outside of Visual Studio to a number of different locations? I tried cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Widget Data Across Multiple Controllers Let's say that I have a widget that displays summary information about how many posts or comments that I have on a site.
What's the cleanest way to persist this information across controllers?
Including the instance variables in the application controller seems like a bad ide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to manage Time in a Java application? So I'm using hibernate and working with an application that manages time.
What is the best way to deal with times in a 24 hour clock?
I do not need to worry about TimeZone issues at the beginning of this application but it would be best to ensure that this f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Removing the "Categories" field from an Issue Tracking list in SharePoint When I create an Issue Tracking list in SharePoint, I am unable to remove the Categories choice field that it adds by default as part of the Issue content type. I looked in the list definition but I can't find anything explicit about not allo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Handling undelivered emails in webapp We have a typical business web app that allows our users to send e-mails with offerings to their clients. We set user e-mail in FROM field so the client can reply directly to the user. The problem is that because of SMTP protocol, undelivered e-mail notification is returned to o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: IsolationLevel.RepeatableRead to prevent duplicates I'm working on an application that is supposed to create products (like shipping insurance policies) when PayPal Instant Payment Notifications are received. Unfortunately, PayPal sometimes sends duplicate notifications. Furthermore, there is another third-party t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: To Update blindly or to Update Where? I have a table that holds information about cities in a game, you can build one building each turn and this is recorded with the value "usedBuilding".
Each turn I will run a script that alters usedBuilding to 0, the question is, which of the following two ways is faster and does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it worth it to use Wap to have cellular webpage? Is it worth it to develop WAP webpage for cellular since now cellular have browser that is really better than before?
I have a PHP website and I would like to increase the use of portable device to use it. Is it worth it to implement.
A: Frankly, no. I've written ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: game programming What libraries can i use for motion and blending in game programming in c++? I need libraries regarding sound, image, expansion algorithm like 2xsai and super eagle. I need libraries like fblend and also for motion . How to compile functions of fblend in devcpp? 2d gaming... and the library should b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET Generic Method Question I'm trying to grasp the concept of .NET Generics and actually use them in my own code but I keep running into a problem.
Can someone try to explain to me why the following setup does not compile?
public class ClassA
{
ClassB b = new ClassB();
public void MethodA<T>(IRepo<T> repo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to convert an "object" into a function in JavaScript? JavaScript allows functions to be treated as objects--if you first define a variable as a function, you can subsequently add properties to that function. How do you do the reverse, and add a function to an "object"?
This works:
var foo = function() { return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: C++ handling very large integers I am using the RSA Algorithm for encryption/decryption, and in order to decrypt the files you have to deal with some pretty big values. More specifically, things like
P = C^d % n
= 62^65 % 133
Now that is really the only calculations that ill be doing. I have tried using Matt McC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: A way of casting a base type to a derived type I'm not sure if this is a strange thing to do or not, or if it is some how code smell...but I was wondering if there was a way (some sort of oop pattern would be nice) to "cast" a base type to a form of its derived type. I know this makes little sense as the derived typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: How do I publish multiple web site projects in the same solution to one folder? I want to keep multiple web site projects in one solution and I want to publish them all together in one folder. What are the steps to do that? Can I publish the whole solution? I am guessing the solution is only a container that is hold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reuse MVC arhitecture; Have two layers of UI : ASP.NET MVC and .NET Winforms Although my question might seem abstract I hope it's not. Suppose I develop an application, an ASP.NET MVC site and later I am tasked to build an Winforms client for this application how much and how can I reuse from the existing applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the best way to run asynchronous jobs in a Rails application? I know there are several plugins that do asynchronous processing. Which one is the best one and why?
The ones I know about are:
*
*BackgrounDRb
A: I'll add DJ (Delayed Job) to the list - http://blog.leetsoft.com/2008/2/17/delayed-job-dj
The g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: AD locks my account I had developed an application in visual Studio 2005. whenever i run that application active directory locks domain my account. I really cant understand what am i doing wrong.
A: I can't tell you exactly what's causing it, but here are some tips for troubleshooting. Install the Account Lockout ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Shell script to recursively browse a directory and replace a string I need to recursively search directories and replace a string (say http://development:port/URI) with another (say http://production:port/URI) in all the files where ever it's found. Can anyone help?
It would be much better if that script can print o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Editing Embedded PowerPoint from Excel VBA I have an embedded PowerPoint presentation in an Excel workbook. How can I edit this (open, copy slides, add data to slides, close) using VBA?
A: 1. Add a reference to the PowerPoint Object Model to your VBA application
From the VBA window, choose Tools | References
Look f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How would you generate default user profile pictures? I've been admiring StackOverflow's default quilt-like profile pictures (which I notice are also on the Fail Blog) and am curious what program both are using to generate them.
But what I really want to know is: If you were to design the system to create default pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to share host VPN connection with VM instances in Hyper-V? I'm running my workstation on Server 2008 and a few servers in Hyper-V VM's on that server. I connect to my corporate LAN using VPN from the main OS (the host) but my VM's aren't seeing the servers in the corporate LAN. Internet and local access to my ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Connection Interrupted. The connection to the server was reset while the page was loading I am calling a PHP-Script belonging to a MySQL/PHP web application using FF3. I run XAMPP on localhost. All I get is this:
Connection Interrupted
The connection to the server was reset while the page was loading.
The netwo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When do transactions start when using (restful) rails Is it the case that the entire restful verb is under a single all encompassing transaction? That is to say, if I raise a Error in the validation or callbacks at any point in the handling of a UPDATE, DELETE, or CREATE operation, is every database operation that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to get GCC to use more than two SIMD registers when using intrinsics? I am writing some code and trying to speed it up using SIMD intrinsics SSE2/3. My code is of such nature that I need to load some data into an XMM register and act on it many times. When I'm looking at the assembler code generated, it seems t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Using .Net, how can I determine if a type is a Numeric ValueType? But here's an example:
Dim desiredType as Type
if IsNumeric(desiredType) then ...
EDIT: I only know the Type, not the Value as a string.
Ok, so unfortunately I have to cycle through the TypeCode.
But this is a nice way to do it:
if ((desiredType.IsA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Is there a Max function in SQL Server that takes two values like Math.Max in .NET? I want to write a query like this:
SELECT o.OrderId, MAX(o.NegotiatedPrice, o.SuggestedPrice)
FROM Order o
But this isn't how the MAX function works, right? It is an aggregate function so it expects a single parameter and then retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "609"
} |
Q: Why does Hibernate seem to be designed for short lived sessions? I know this is a subjective question, but why does Hibernate seem to be designed for short lived sessions? Generally in my apps I create DAOs to abstract my data layer, but since I can't predict how the entity objects are going to be used some of its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you pre-size an array in Lua? I've got a Lua program that seems to be slower than it ought to be. I suspect the issue is that I'm adding values to an associative array one at a time and the table has to allocate new memory each time.
There did seem to be a table.setn function, but it fails under Lua 5.1.3:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: .net - How do you Register a startup script? I have limited experience with .net. My app throws an error this.dateTimeFormat is undefined which I tracked down to a known ajax bug. The workaround posted said to:
"Register the following as a startup script:"
Sys.CultureInfo.prototype._getAbbrMonthIndex = function(va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to make HTTP requests in PHP and not wait on the response Is there a way in PHP to make HTTP calls and not wait for a response? I don't care about the response, I just want to do something like file_get_contents(), but not wait for the request to finish before executing the rest of my code. This would be super u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "245"
} |
Q: What are some great online database modeling tools? What's your favorite open source database design/modeling tool?
I'm looking for one that supports several databases, especially Firebird SQL but I can't find one on Google.
A: Do you mean design as in 'graphic representation of tables' or just plain old 'engineeri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: SQL Server Adapter for Rails Trying to find the sqlserver adapter for rails on windows.
I have tried getting it from (without luck):
gem install activerecord-sqlserver-adapter --source=http://gems.rubyonrails.org
Where else can I get this gem?
UPDATE:
Make sure to run the command prompt as the administrator. Right c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# HttpWebRequest command to get directory listing I need a short code snippet to get a directory listing from an HTTP server.
Thanks
A: Basic understanding:
Directory listings are just HTML pages generated by a web server.
Each web server generates these HTML pages in its own way because there is no standard way f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: .net COM+ object that returns IDataReader I've created a .net class derived from ServicedComponent and registered it with COM+. The interface that this component implements has a method that returns an IDataReader. When I call the serviced component from my client application everything works I can call the method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Diagramming Library What free or open source WPF diagramming libraries have you used before? I'm working on my thesis and have no money to pay for the commercial alternatives.
Valid answers should support undo/redo, exporting to XML and hopefully good documentation.
I'm building an open source UML / database dia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What exactly are DLL files, and how do they work? How exactly do DLL files work? There seems to be an awful lot of them, but I don't know what they are or how they work.
So, what's the deal with them?
A: http://support.microsoft.com/kb/815065
A DLL is a library that contains code
and data that can be used by mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "303"
} |
Q: Grails with YUI table example Does anyone have an example using the table object in YUI library. More specifically, I'd like to dynamically load it from JSON or SQL?
http://www.grails.org/YUI+Plugin
A: I just found this example. Will be trying it out this weekend. Looks like exactly what I was looking for.
http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java equals(): to reflect or not to reflect This question is specifically related to overriding the equals() method for objects with a large number of fields. First off, let me say that this large object cannot be broken down into multiple components without violating OO principles, so telling me "no class should h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: compression library for c and php To save network traffic I'd like to compress my data. The only trick is that I the client is a c application and the server is php. I'm looking for an open source compression library that's available for both c and php.
I guess I could write an external c application to decompress m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I know Perl 5. What are the advantages of learning Perl 6, rather than moving to Python? Coming from a Perl 5 background, what are the advantages of moving to Perl 6 or Python?
A: Perl is generally better than python for quick one liners, especially involve text/regular expressions
http://novosial.org/perl/one-line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: "SELECT * FROM users WHERE id IN ( )" == FAIL I have a function that I use called sqlf(), it emulates prepared statements. For instance I can do things like:
$sql = sqlf("SELECT * FROM Users WHERE name= :1 AND email= :2",'Big "John"','bj@example.com') ;
For various reasons, I cannot use prepared statements, but I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: iterate over classes ie. beans for asp.net Lets say I have a class that stores user information complete with getters and setters, and it is populated with data from an XML file. How would I iterate over all of the instances of that class like you would do with java beans and tag libraries?
A: For outputting forma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Computing pseudo-inverse of a matrix in C++ I'm looking to compute the Moore-Penrose pseudo-inverse of a matrix in C++, can someone point me to a library implementation or a numerical recipe?
Thanks!
A: You need 'Single Value Decomposition', from which you can find a C implementation here from Numerical Recipes in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Turn an array of pixels into an Image object with Java's ImageIO? I'm currently turning an array of pixel values (originally created with a java.awt.image.PixelGrabber object) into an Image object using the following code:
public Image getImageFromArray(int[] pixels, int width, int height) {
MemoryImageSource mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Checking IP Port State Remotely I found an article on getting active tcp/udp connections on a machine.
http://www.codeproject.com/KB/IP/iphlpapi.aspx
My issue however is I need to be able to determine active connections remotely - to see if a particular port is running or listening without tampering with the machine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I generate an array of pairwise distances in Ruby? Say I have an array that represents a set of points:
x = [2, 5, 8, 33, 58]
How do I generate an array of all the pairwise distances?
A: x = [2, 5, 8, 33, 58]
print x.collect {|n| x.collect {|i| (n-i).abs}}.flatten
I think that would do it.
A: If you real... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How Do I Give a Textbox Focus in Silverlight? In my Silverlight application, I can't seem to bring focus to a TextBox control. On the recommendation of various posts, I've set the IsTabStop property to True and I'm using TextBox.Focus(). Though the UserControl_Loaded event is firing, the TextBox control isn't gett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Have you integrated Mantis and Subversion? I do mostly Windows development. We use Mantis and Subversion for our development but they aren't integrated together, in fact they are on different servers.
I did a little googling about integrating the two together and came across this post. It looked interesting.
I was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Learning how to use Subversion This is probably a really stupid newbie-sounding question to you developer type people, but I'm at a loss :( I've been trying to learn how to use Subversion for keeping the history of my code, but I'm finding it pretty confusing. I read the 'book' that comes with Subversion, but I didn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Picking a random element from a set How do I pick a random element from a set?
I'm particularly interested in picking a random element from a
HashSet or a LinkedHashSet, in Java.
Solutions for other languages are also welcome.
A: In Java:
Set<Integer> set = new LinkedHashSet<Integer>(3);
set.add(1);
set.add(2);
se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "211"
} |
Q: How can you find available ldap servers from a computer in the same network, but different domain? My company has code that integrates with activedirectory/LDAP for centralized userid/password login. Currently, the configuration page can only show the LDAP server linked to the Exchange domain the current computer i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you have custom client-side javascript Validation for standard ASP.NET Web Form Validators? Can you have custom client-side javascript Validation for standard ASP.NET Web Form Validators?
For instance use a asp:RequiredFieldValidator leave the server side code alone but implement your own client notification usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to map a Servlet to get extra path information with getPathInfo() I am having an issue where Tomcat is treating extra path information as part of the servlet name. This is breaking a bunch of RESTFul functionality in our webapp (we use extra path info rather than ?name=value pairs for crawler friendly links).
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the intended use of the DEFAULT section in config files used by ConfigParser? I've used ConfigParser for quite a while for simple configs. One thing that's bugged me for a long time is the DEFAULT section. I'm not really sure what's an appropriate use. I've read the documentation, but I would really like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Web Services or Custom Protocol? I have no experience with web services. Historically I've built client-server systems using proprietary communication protocols (even they happen to be XML). I just spent a few hours looking over Axis2 and it sent a shudder down my spine. The learning curve of WS scares me, and seein... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Query to retrieve names of group nodes If I had some XML such as this loaded into an XDocument object:
<Root>
<GroupA>
<Item attrib1="aaa" attrib2="000" />
</GroupA>
<GroupB>
<Item attrib1="bbb" attrib2="111" />
<Item attrib1="ccc" attrib2="222" />
<Item attrib1="ddd" attr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Breaking event cycles in GUIs When writing GUIs, I've frequently come over the following problem: Assume you have a model and a controller. The controller has a widget W that is used to show a property X of the model.
Because the model might be changed from outside the controller (there might be other controllers us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Max length of send() data param on XMLHttpRequest Post Is there a documented max to the length of the string data you can use in the send method of an XMLHttpRequest for the major browser implementations?
I am running into an issue with a JavaScript XMLHttpRequest Post failing in FireFox 3 when the data is over appr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Sniffing network traffic for signs of viruses/spyware How can I connect a system to a network and sniff for virus/spyware related traffic? I'd like to plug in a network cable, fire up an appropriate tool sand have it scan the data for any signs of problems. I don't expect this to find everything, and this is not t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Are Mutexes needed in javascript? I have seen this link: Implementing Mutual Exclusion in JavaScript.
On the other hand, I have read that there are no threads in javascript, but what exactly does that mean?
When events occur, where in the code can they interrupt?
And if there are no threads in JS, do I need to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "117"
} |
Q: What do you use to deploy your Web Applications? We're looking to automate our deployment of Web Applications, particularly when going from local development to a remote server.
Our current stack is LAMP remotely, MAMP locally, but I'm interested in general what people are using for this task regardless of their env... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: GetPrivateProfileString Oddity I was just tinkering around with calling GetPrivateProfileString and GetPrivateProfileSection in kernel32 from .NET and came across something odd I don't understand.
Let's start with this encantation:
Private Declare Unicode Function GetPrivateProfileString Lib "kernel32" Alias "Ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Source Code Control for Consultants? Can anyone recommend a good Source Code control (SCC) that works for the mostly disconnected consultant? I'd prefer something that allows one to save into a local repository and then once connected 'syncs' to the server however I've never seen such a feature. Suggestions? [Window... | {
"language": "en",
"url": "https://stackoverflow.com/questions/124809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.