text stringlengths 8 267k | meta dict |
|---|---|
Q: Programmatically navigating to the Windows Mobile home screen We have an application that downloads some files in the background. Our application pops up when an Internet connection is made, and after prompting the user to accept the downloads, we'd like to switch back to the home screen while we do our stuff.
We ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extract Expression Tree From Action I'm just starting out playing around with Linq Expressions and I've hit a wall. I need to create an Expression Tree from an Action. Unfortunetly I can't get the Action as an Expression, this is basically what I've got to work with:
public void Something(Action action){}
I need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simulating connection problems for .NET HttpWebRequest Are there ways to programmatically simulate connection problems (slow connection, response does not complete, connection gets dropped, etc.) when using the HttpWebRequest class?
Thanks
EDIT: To elaborate more, I need this for debugging but would want to turn it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Modifying the HTML of a page before it is sent to the client I need to catch the HTML of a ASP.NET just before it is being sent to the client in order to do last minute string manipulations on it, and then send the modified version to the client.
e.g.
The Page is loaded
Every control has been rendered correctly
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: RIA Server Architecture .NET I'm using WebORB as a remote gateway for Flex projects. I was wondering what would be the best architecture to use on the Server .NET side. At this moment we are using SubSonic to generate a Data Access Layer. Besides that each call from Flex uses a little bit a transaction script patter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I disable the WPF WebBrowser control's click noise? I've got a simple little WPF app with a TextBox and a WebBrowser control. As I type into the TextBox the WebBrowser updates with its content.
But on each keystroke, when the WebBrowser updates, it makes a click sound. How can I disable the WebBrowser contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the string concatenation operator in Oracle? What is the string concatenation operator in Oracle SQL?
Are there any "interesting" features I should be careful of?
(This seems obvious, but I couldn't find a previous question asking it).
A: There's also concat, but it doesn't get used much
select concat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "194"
} |
Q: View the change history of a file using Git versioning How do I view the history of an individual file with complete details of what has changed?
git log -- [filename] shows me the commit history of a file, but how do I see the file content that changed?
A: If you want to see the whole history of a file, including ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3698"
} |
Q: Why do various Linux distros use different package managers? Why do Linux distros have different package managers?
I find this very strange because other software such as text editors, desktop environments and graphics software (Inkscape, Blender, GIMP) are shared among distributions. Why not have a common setup too... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: LINQ to XML optional element query I'm working with an existing XML document which has a structure (in part) like so:
<Group>
<Entry>
<Name> Bob </Name>
<ID> 1 </ID>
</Entry>
<Entry>
<Name> Larry </Name>
</Entry>
</Group>
I'm using LINQ to XML to query the XDocument to retrie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Which tools or methods would you suggest for creating large amounts of SQL test data? I'd like to stress test some of my SQL queries and find out about bad query plans and bottlenecks. I plan to fill some tables with random test data.
Are there tools or a set of scripts available for this purpose, preferably for SQL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keep window on top and steal focus in WinForms I realize that this would be COMPLETELY bad practice in normal situations, but this is just for a test app that needs to be taking input from a bar code scanner (emulating a keyboard). The problem is that I need to start up some scripts while scanning, so I need the wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Enumerating all strings in resx We would like to enumerate all strings in a resource file in .NET (resx file). We want this to generate a javascript object containing all these key-value pairs. We do this now for satellite assemblies with code like this (this is VB.NET, but any example code is fine):
Dim rm As Resou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it possible to rewind a PDO result? I'm trying to write an iterator for results from a PDO statement but I can't find any way of rewinding to the first row. I would like to avoid the overhead of calling fetchAll and storing all the result data.
// first loop works fine
foreach($statement as $result) {
// do s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to implement CEditListCtrl How to implement CEditListCtrl?. List control with edit capabality (Report/Grid view).
I have a list view in Report View. It has some values. I need to extend this to edit the values present in the list view.
I declared a class which inherits from CListCtrl. And I have handled the two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Partial sharing of git repositories I am new to git. I am wondering whether the following scenario is supported, and if so how (i.e. git commands for setup and update).
A repository is available from three different places: 'local', 'mirror' and 'github'. 'mirror' mirrors 'local' completely and 'github' mirrors 'loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Add a picture to an excel sheet with Delphi 6 I've created an excel sheet with Delphi 6. Now I have to add a picture to my sheet. Anybody knows how to do that?
A: You could try it like this :
procedure InsertPicture(ActiveSheet: OleVariant; ImageFilePath: string: ImageHeight, PictureTop: Integer);
var
Picture:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to guarantee files that are decrypted during run time are cleaned up? Using C or C++, After I decrypt a file to disk- how can I guarantee it is deleted if the application crashes or the system powers off and can't clean it up properly? Using C or C++, on Windows and Linux?
A: Unfortunately, there's no 100% foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rewrite this code: clickable divs I'd like to change this:
<a href='foo'>
<div> Moo </div>
</a>
to be standards compliant (you're not supposed to have block elements in inline elements). Wiring javascript to the divs just for navigation seems like a hack and degrades accessibility.. In this case, my requiremen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I specify a set of base parameters for a Linq-to-sql DataContext? I have a LINQ-to-SQL DataContext that represents a parent-child relationship of Products to Prices. I'm iterating through a list of products and retrieving the prices for each one. The problem is that the tables behind both the Products and Price... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Cannot build website, Visual Studio 2008 errors on build (temp files) All of the errors are on auto-generated files, not within the files that were created by me. Here are a few of them:
'Context' is not a member of 'auth_cookies'
'ProcessRequest' cannot be declared 'Overrides' because it does not override a sub in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DropDownList with LinqDataSource and an empty option Is there some elegant way to add an empty option to a DropDownList bound with a LinqDataSource?
A: Here's how to add a value at the top of the list. It can be an empty string, or some text.
<asp:DropDownList ID="categories" runat="server" AppendDataBoundItems="Tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tool for exploring Windows Vista Audio device chain (tree?) The new Vista Audio subsystem is set up to be a chain of devices starting with the inputs, going through all the various controls (like mixers and volumen controls) and then ending up at various endpoints (like speakers or headphones).
My question is: Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to capture and display output from a task via Windows CMD I've got a PHP script which I'm running from a command line (windows) that performs a variety of tasks, and the only output it gives is via 'print' statements which output direct to screen.
What I want to do is capture this to a log file as well.
I know I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to automate report delivery in SSRS I have a report in SQL Server Reporting Services (SSRS) that I'd like to schedule to run automatically as an email. I'd like the report to be attached as Excel file.
According to the Microsoft overview this should be possible.
Report delivery. SQL Server Reporting Services s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is the best way to stop a user from resizing the top-level window of an application written in WPF? What is the best way to stop a user from resizing the top-level window of an application written in WPF?
A: You will want to use the ResizeMode.NoResize on the window.
<Window x:Class="WpfApplication5.Window1"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: OLE DB Provider and openrecordset With SQL Server 2005 using SSMS, when I run this:
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=C:\TestIDs.xls', 'SELECT * FROM [Sheet1$]')
And get this:
The OLE DB provider "Microsoft.Jet.OLEDB.4.0" has not been registered.
Is it referring to the server or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java applet/Firefox incompatibility problem I've written a Java applet. A user reports that he tried to run it in Firefox 3.0.3 on OS X 10.5.5 but no go. It wants him to download a plug-in, but when he tells it to install missing plug-ins it can't find the appropriate installer...
What is going wrong here?
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to get and how to install (or migrate) missing assemblies for ASP.NET server? I am migrating web apps to new hosting servers, but when I try to access them to test on the new server, I get all these assemblies not found errors like:
Configuration Error
Description: An error occurred during the processing of a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sql Server CE 3.5 Merge Replication Synchronise is Hanging I am using SQL Server 2005 CE framework 3.5 and attempting to use merge replication between my hand held and my SQL Server. When I run the code to synchronise it just seems to sit forever, and when I put a breakpoint in my code it never gets past the call t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the technical considerations for running MSSQL and MySQL off the same Windows server? Our application runs off MySQL, but a client has another application that requires SQL. We want to run them both on the same box. What are some technical considerations for this configuration... is this really just a matte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using RSpec for iPhone Controllers I'm finally getting the hang of RSpec after spending a couple of hours over the weekend. Now I'm stuck trying to figure out how to assert that parameters are indeed passed into the controller. I'm following the Bowled over by Ruby/Cocoa example and adapting it for the iPhone SDK. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Visual Studio Tools for Office (VSTO 2005) newbie deployment question I have Visual Studio setup with a VSTO word project, and when I hit run it runs fine.
But, how do I setup a word document to use my code without having Visual Studio running?
A: You can do it using a Windows Installer project; starting point here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tag cloud control for WinForms .NET 2.0+ How would you render a tag cloud within a .NET 2.0+ WinForm application?
One solution that I am thinking of would be using the WebBrowser control and generating to some ad-hoc HTML, but that seems to be a pretty heavy solution.
Am I missing something more simple?
A: How abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "A duplicate insert block exists for class xx in the source files" In Embedded Visual Studio 4, I'm attempting to add a class though the class wizard.
Since, the file existed already, the first attempt failed. So I deleted the file and attempted to add the class again.
Now I get the error message
"A duplicate ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP5: calling external functions, and logging errors I'm painfully new to PHP, and was trying to set up phpBB on my local site. I have a stock debian install of apache2 and php5. The phpBB installer ran fine, connected to the database and created all its tables with no problem. But when I tried to open the login ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio 2005: File->New->Project vs File->New->Web Site? Say I want to create vb.net application in Visual studio 2005.
What is the difference between File->New->Project vs File->New->Web Site?
EDIT
I am aware that when using New->Project there are many more options available but if one wants to create just .n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server Backup Database over ODBC I'm trying to write a program that is able to import and export a specific database, plus users and logins, from a Microsoft SQL Server database. I have an abstraction layer between my code and ODBC that much of our other software uses. The abstraction layer normally runs with au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Incorrect syntax near stored procedure error I'm updating a long list of records. In my code, everything run as predicted until it execute the query. I get an
Incorrect syntax near 'TempUpdatePhysicalCityStateZip'
(my stored procedure name). I've tested it with SQL Server Management Studio and it runs fine. So, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C# What is the easiest way to disable a control after 10 seconds? Timer or stopwatch? C# What is the easiest way to disable a control after 10 seconds? Using a Timer or a stopwatch? I'm new to both so thanks for the help.
A: Windows forms has a Timer control (here's WPF's version).
The reason why you use these is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ string manipulation My lack of C++ experience, or rather my early learning in garbage collected languages is really stinging me at the moment and I have a problem working with strings in C++.
To make it very clear, using std::string or equlivents is not an option - this is char* 's all the way.
So: what I need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Most efficient way to move an image from a C program to Java and shown on the screen? Background
I am capturing video using the video4linux 2 spec. It is captured using a C program in real-time. I also have a Java frontend that can run both locally and remotely. The remote side was easy, I just compress the image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is possible having two COM STA instances of the same component? I had a problem discovered on another thread here, I need to access a COM component that is STA. I'll run it on a dual-core computer, a process using this component only reaches 50% of CPU. Unfortunately, the owners said they can't change the component ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you override ToString in a static class? I have a public static class in which I would like to have a ToString() method.
I have defined it as public static string ToString(), but get the following warning:
'Class.ToString()' hides inherited member 'object.ToString()'. To make the current member override... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Should I use the CASCADE DELETE rule?
Duplicate of: When/Why to use Cascading in SQL Server?
I've always been too scared to use DELETE CASCADE, but as I get more confident (lazy :D), I'm thinking how bad can it be, is it best practise to use it or should I avoid it and clean up my foreign keys etc the old fashione... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Going backwards in a bash prompt I'd like to have a blank line after my bash prompt and before the output on my Mac. It should look like this would:
echo; ls
Can I add a newline to my bash prompt and then go back up one line to wait for user input? Is there something obvious I'm missing?
A: To my knowledge this is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: VS2008 XAML design view chokes on namespaced C++ assembly I have a C++ assembly with both managed and umanaged code compiled to
a DLL. It is correctly imported into the project references as I can
see all my classes and their members with the Object Browser.
The problem is with the XAML Design view. In my XAML code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Incorrect syntax near @[parameter name] when using parameterised Alter Database command I'm trying to drop a SQL Server database using the following code:
SqlCommand command = new SqlCommand("USE MASTER; ALTER DATABASE @database SET SINGLE_USER WITH ROLLBACK IMMEDIATE; DROP DATABASE @Database", connection);
command.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What could cause a dynamic_cast to crash? I have a piece of code looking like this :
TAxis *axis = 0;
if (dynamic_cast<MonitorObjectH1C*>(obj))
axis = (dynamic_cast<MonitorObjectH1C*>(obj))->GetXaxis();
Sometimes it crashes :
Thread 1 (Thread -1208658240 (LWP 11400)):
#0 0x0019e7a2 in _dl_sysinfo_int80 () fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: wsdl2java Error: Emitter failure. Invalid endpoint address in port I am trying to run the wsdl2java command on a WSDL file that was given to me from another group in my company. I know wsdl2java works because I can run the examples but when I try it on the wsdl given to me it fails. The one big difference is that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating a temporary directory in Windows? What's the best way to get a temp directory name in Windows? I see that I can use GetTempPath and GetTempFileName to create a temporary file, but is there any equivalent to the Linux / BSD mkdtemp function for creating a temporary directory?
A: I like to use GetTempPath()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "154"
} |
Q: Perform a modulus in a huge number? I need to do a modulus operation on very large integers. The biggest integer supported by my platform (edit: .NET 2.0) is a 64 bit integer, which aren't big enough for the numbers I'm working with.
How can I do a modulus on really big integers, like 126548756321264248753873216574... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Eclipse: Add Command-Line Args to an OS X .app Directory Is it possible to add custom command-line arguments to an Eclipse .app folder? In my particular case, I'm working with ZendStudio. I'm assuming the base Eclipse release would behave the same way.
I've found what looks like two different places that could work,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Throwing multiple exceptions in .Net/C# In an application I work on, any business logic error causes an exception to be thrown, and the calling code handles the exception. This pattern is used throughout the application and works well.
I have a situation where I will be attempting to execute a number of business ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Should I use Cocoa bindings for my latest project? I'm starting a project which I think would benefit from bindings (I've got a source list table, several browser views, etc), but I think it would also be quite doable, and perhaps more understandable, without them. From my limited experience I've found bindings to b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: The application sorts strings differently than the database I am trying to sort a list of products by their name in a .Net application written in C#, to obtain the same list that I would get from an SQL Server database through an order by:
select * from Products order by ProductName
Unfortunately, the application so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VBA animation of Visio objects I'm trying to animate Visio objects with a loop, such as:
For reposition = 2 To 6
xpos = reposition
ypos = reposition
sh1.SetCenter xpos, ypos
Sleep 1000
Next reposition
While this DOES move the object from the starting position to the ending, the intermediate steps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is Inheritance really needed? I must confess I'm somewhat of an OOP skeptic. Bad pedagogical and laboral experiences with object orientation didn't help. So I converted into a fervent believer in Visual Basic (the classic one!).
Then one day I found out C++ had changed and now had the STL and templates. I really lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: ms office file extensions I made a discovery some time back. Just follow these steps:
Create a .doc/.xls/.ppt file in office 2003. Keep some test data in there and close the file. Now rename the file to change it's file extension to a random string, taking care that it is unassociated, like test.asdfghjkl etc.
Doubl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Find the most common entry in an array You are given a 32-bit unsigned integer array with length up to 232, with the property that more than half of the entries in the array are equal to N, for some 32-bit unsigned integer N. Find N looking at each number in the array only once and using at most 2 kB of memory.
You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: What are the benefits of an XML data model over the DataSet model? At my current job we have a CMS system that is .NET/SQL Server based. While customizing a couple of the modules for some internal use, I was a little surprised to see that instead of having APIs that returned data via your typical result set that was... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using DataAdapter .Update to insert/upd rows in dataset (not based on DBs PK) problem I have a batch process that reads data from multiple tables into a dataset based on a common key. I then build a second dataset of the destination data querying on the same key.
At this point I have two Datasets that are structur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reading the MSMQ transactional dead letter queue I'm trying to read the transactional deal letter queue in MSMQ using C#.NET and am getting:
A workgroup installation computer does not support the operation
For 10 Stack Overflow points, what am I doing wrong?
A: Try this formatname instead and see if it works:
@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL CE Merge Replication: Error 28532: A read operation from the transport returned no data I am using sql server 2005 and ce framework 3.5 and attempting to use merge replication between my hand held and my sql server. I am getting the following error:
Error 28532 : A read operation from the transport returned no ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Applying Transforms to 3D models - Normals pb I'm trying to apply a transform to a 3D object in a STL File (without creating a structured mesh object). Here is how I proceed: I read the normals and faces information one by one in the STL file, apply my transform to each vertex and to the face normal and write back t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the main differences between search engines that should influence the decision as to which to use to search proprietary data? What are the main differences between search engines (DtSearch , Lucene.net, Sphinx, Google etc) that should influence the decision as to which to use to search proprietary data?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to terminate or stop a PowerShell pipeline from within a filter I have written a simple PowerShell filter that pushes the current object down the pipeline if its date is between the specified begin and end date. The objects coming down the pipeline are always in ascending date order so as soon as the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Best process for auto-zipping of multiple MP3s I've got a project which requires a fairly complicated process and I want to make sure I know the best way to do this. I'm using ASP.net C# with Adobe Flex 3. The app server is Mosso (cloud server) and the file storage server is Amazon S3. The existing site can be viewe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reload the page without submitting it back to the server the problem I have is that I have two sets of values in a drop down list. If type 'A' is selected I want a text box to be populated with a value from the database and be read only. If Type 'B' is selected the box is to be empty and editable.
My original code i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to update a git repo containing a submodule? After some time I wanted to update my git repo, and then something went wrong. What is the proper way out of this situation?
mblsha@siruba:~/src/psi/ $ git status
iris: needs merge
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: A tidy way to clean your URL variables? I'm wondering if there is a quick and easy function to clean get variables in my url, before I work with them.( or $_POST come to think of it... )
I suppose I could use a regex to replace non-permitted characters, but I'm interested to hear what people use for this sort of thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is SSRS ignoring data from certain columns returned by a web method? I'm using the XML data source feature in Reporting Services 2005 but having some issues with missing data. When there is no value for the first column in a row, it appears that the entire column is ignored by SSRS!
The web method request is ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: List of dependency jar files in Maven Using Maven 2, is there a way I can list out the jar dependencies as just the file names?
mvn dependency:build-classpath
can list the jar files, but that will include the full path to their location in my local repository. What I need is essentially just a list of the file nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "109"
} |
Q: Implementing a WebControl factory in ASP.NET I need to implement the classic Factory Method pattern in ASP.NET to create server controls dynamically.
The only way I've found to create .ascx controls is to use the LoadControl method of the Page/UserControl classes. I find it messy however to link my factory with a pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby code to extract host from URL string I'm looking for a method to reliably extract the host name from a URL string in Ruby.
e.g.
http://www.mglenn.com/directory = www.mglenn.com
OR
http://www.mglenn.com?param=x = www.mglenn.com
A: You could try something like this:
require 'uri'
myUri = URI.parse( 'http://www... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Why won't my Website Project adapt to .NET 3.5? We've converted our solution from .NET 2.0 to .NET 3.5. All projects converted just fine except for the Website Project, which still doesn't understand what I mean when using 'var' and the like.
I've looked in the property pages for the web project, and the Target Fram... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I keep the variable value in a MySQL stored procedure from changing when records are updated? I must be overlooking something simple. I'm setting a variable from a query result in a MySQL stored procedure like this:
SELECT @myName := username FROM User WHERE ID=1;
So, @myName is storing the username of useri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to create dynamic and safe queries A "static" query is one that remains the same at all times. For example, the "Tags" button on Stackoverflow, or the "7 days" button on Digg. In short, they always map to a specific database query, so you can create them at design time.
But I am trying to figure out how to do "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I call a stored procedure exposed as an Entity Framework Function Import through ADO.NET Data Services (Astoria)? I've created an Entity Data Model and imported several stored procedures as Function Imports. I'm exposing the EDM through ADO.NET Data Services (ANDS). Does ANDS automatically expose the functi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linq to XML: XElement.Save to file what is the right way of using XElement.Save(filepath)? Do I need to call this in a try/catch block all the time? How does it deal with concurrency?
A: Exceptions: the normal policy - catch anything you can sensibly deal with (which is relatively rare) and let anything else bubbl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Are there any known HTA file Security Issues? Are there any known security issues related to running a web application via a .hta file. I am especially interested in the drag & drop issues related to .hta files and frames
see: http://sqlblogcasts.com/blogs/jonsayce/archive/2008/01/10/drag-and-drop-problems-in-hta-f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting started with Websphere portal 6.1 Okay, my company is a bank. The upper management is dead set on a websphere IBM portal. Apparently IBM is tossing them a bone they can't refuse. We're also a very big IBM shop anyhow with A LOT of LotusNotes applications.
In my experience with IBM, they generally make you g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When should I use a ellipsis in a Menu Item When should I put ... at the end of a menu item? I seem to remember reading some rules but can't for the life of me find them.
For context - I'm adding a properties option to a right click menu and am wondering if it is appropriate to add them.
A: It means that there wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is it possible to make an ASP.NET MVC route based on a subdomain? Is it possible to have an ASP.NET MVC route that uses subdomain information to determine its route? For example:
*
*user1.domain.example goes to one place
*user2.domain.example goes to another?
Or, can I make it so both of these go to the same con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "243"
} |
Q: Dot Net and Java Culture Codes I've been tasked with the awesome job of generating a look-up table for our application culture information. The columns I need to generate data for are:
*
*Dot Net Code
*Version
*Culture Name
*Country Name
*Language Name
*Java Country Code
*Java Language Code
*Iso Country C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set the default location of the FCKEditor file browser? I'm working the the image upload piece of the FCKEditor and I've got the uploading working properly but am stuck with the server file browser.
You can see in the dialog above has a Browse Server button which pops up the following dialog
The problem is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create an expression tree to represent 'String.Contains("term")' in C#? I am just getting started with expression trees so I hope this makes sense. I am trying to create an expression tree to represent:
t => t.SomeProperty.Contains("stringValue");
So far I have got:
private static Expression.Lambda<Fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Versioning RESTful services? I have a RESTful web service deployed at http://example.com/v1/SomeResource. One day, a new protocol version (that is not backwards compatible) is deployed to http://example.com/v2/SomeResource. From the client of view, this upgrade could occur at any time between two HTTP requests.
How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Does the List Clear() method destroy children [C#.NET]? If I create a recursive list of of lists:
class myList
{
List<myList> childLists;
List<string> things;
//...
}
List<myList> tempList = new List<myList>();
And then later call tempList.Clear(), will it destroy all the childLists in memory, or should I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I join lines in a CSV file when one of the fields has a newline? If I have a comma separated file like the following:
foo,bar,n
,a,bc,d
one,two,three
,a,bc,d
And I want to join the \n, to produce this:
foo,bar,n,a,bc,d
one,two,three,a,bc,d
What is the regex trick? I thought that an if (/\n,/) would catch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unique ways to use the null coalescing operator I know the standard way of using the null coalescing operator in C# is to set default values.
string nobody = null;
string somebody = "Bob Saget";
string anybody = "";
anybody = nobody ?? "Mr. T"; // Returns Mr. T
anybody = somebody ?? "Mr. T"; // Returns "Bob Saget... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "172"
} |
Q: Allowing the tag to override CSS? I have some user generated content I'm trying to render on my site. The rich text box editor I'm using renders font changes using <font /> tags, which are overridden by CSS on the page.
Does anyone know if there is a way to allow rules defined using the <font /> tag to show through... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getElementsByName in IE7 I have some code doing this :
var changes = document.getElementsByName(from);
for (var c=0; c<changes.length; c++) {
var ch = changes[c];
var current = new String(ch.innerHTML);
etc.
}
This works fine in FF and Chrome but not in IE7. Presumably because getElementsByName isn't wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: NHibernate - Populate a single property from a stored procedure Currently have the following mapping file:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
namespace="NHibernateHelpers"
assembly="App_Code.NHibernateHelpers">
<class name="NHibernateHelpers.Fixtu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best way to represent image nodes in a product (item) XML schema? I have an XML schema that represents a product in a DB, and I am trying to figure out the best way to store the product image references as XML nodes. There will be a primary image, and then alternate images, each of them with sequences (d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What problem does XHTML strict solve? I really don't understand the fascination with XHTML strict. Inline JavaScript typically requires a rats nest of escapes to make it compatible with XHTML and semi-backwards compatible with MSIE 5 & 6. Then there is the issue of not being OCD enough on user input to make sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: The use of config file is it equivalent to use of globals? I've read many times and agree with avoiding the use of globals to keep code orthogonal. Does the use of the config file to keep read only information that your program uses similar to using Globals?
A: If you're using config files in place of globals, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's the best way to store a title in a database to allow sorting without the leading "The", "A" I run (and am presently completely overhauling) a website that deals with theater (njtheater.com if you're interested).
When I query a list of plays from the database, I'd like "The Merchant of Venice" to sort under th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a .NET Framework method for converting file URIs to paths with drive letters? I was looking for something like Server.MapPath in the ASP.NET realm to convert the output of Assembly.GetExecutingAssembly().CodeBase into a file path with drive letter.
The following code works for the test cases I've tried:
pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to detect a truncated file in C# If I'm reading a text file in shared access mode and another process truncates it, what is the easiest way to detect that? (I'm excluding the obvious choice of refreshing a FileInfo object periodically to check its size) Is there some convenient way to capture an event? (Filew... | {
"language": "en",
"url": "https://stackoverflow.com/questions/278768",
"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.