text string | meta dict |
|---|---|
Q: DocumentViewer toolbar and context menu How to hide the default toolbar and to disallow the default context menu of the DocumentViewer control?
A: You can hide (or change) the toolbar by creating a control template for DocumentViewer without the toolbar.
start with the sample template from https://msdn.microsoft.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can you get a ComboBox child of a DataGridView to process all keys, including "."? I have the same problem as described in the posts listed below. That is, certain keys don't work at all when I type them into my combobox until I first hit the spacebar. One of the keys is ".", but another is the letter "Q", an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Primary key from inserted row jdbc? Is there a cross database platform way to get the primary key of the record you have just inserted?
I noted that this answer says that you can get it by Calling SELECT LAST_INSERT_ID() and I think that you can call SELECT @@IDENTITY AS 'Identity'; is there a common way to do this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Spring initialization order Suppose I have a couple of spring beans:
<beans>
<bean name="A" ... />
<bean name="B" ... />
</beans>
"B" exposes a remote service that doesn't need "A". Assume that "A" takes a non-negligble time to load. What this means is that during a restart cycle, the application hangs the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance I'm working to set up Panda on an Amazon EC2 instance.
I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I'm not being allowed permission into Panda's EC2 in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "246"
} |
Q: Is there a class or method in Java that will check if a string is a SQL Server keyword? I want something that can check if a string is "SELECT", "INSERT", etc. I'm just curious if this exists.
A: Easy enough to add :
HashSet<String> sqlKeywords =
new HashSet<String>(Arrays.asList(
new String[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When does a Windows process run out of memory? Under Windows Server 2003, Enterprise Edition, SP2 (/3GB switch not enabled)
As I understand it, and I may be wrong, the maximum addressable memory for a process is 4GB.
Is that 2GB of private bytes and 2GB of virtual bytes?
Do you get "out of memory" errors when the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to prevent Visual Studio 2008 from checking references in .aspx files? There was a registry fix for Visual Studio 2005 to prevent it from checking references in .aspx files, but it does not seem to work for 2008. With variable renames, finding all references in an ASP.NET project is extremely slow. Is there a wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What might cause ThreadAbortException when using HttpWebRequest.GetResponse() I'm living in nightmares because of this situation, I have a HttpWebRequest.GetResponse that keeps on giving me a ThreadAbortException, that causes the whole app to go down.
How can I avoid that, or at least handle it, would using Thread.R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using server-side XML Parser to generate HTML content Is it possible using a server side XML parser to have it create an HTML blob that is then included in an existing HTML page?
A: Is the existing HTML page already being served by the same server? If so, then yes - arguably that's a rough description of what almos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is calling a web service slower from a web page? We have a DLL used as the middle layer between our website front end and our back end ticketing system. The method of insertion into the ticketing system is a bit complicated to explain, but the short version is that it's slow. The best case scenario I've gotten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to know which files an application is trying to access? How do I know which files and registry keys an application is trying to access?
A: Process Monitor is your lord and savior. Or FileMon & RegMon if you're running an older windows OS.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/201936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: can realloc Array, then Why use pointers? This was an job placement interview I faced. They asked whether we can realloc Array, I told yes. Then They asked - then why we need pointers as most of the people give reason that it wastes memory space. I could not able to give satisfactory answer. If any body can give any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to replace the click event with a mouseover in a Silverlight 2.0 Combobox? I have a combo box that in Silverlight 2.0 that I want it to open when a user mouses over the toggle button and then close when they mouse away. The default behavior is a click.
Here is my style code (sorry it is so long):
<Style x:Key="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IS it OK to use an int for the key in a KeyedCollection Often times I need a collection of non-sequential objects with numeric identifiers. I like using the KeyedCollection for this, but I think there's a serious drawback. If you use an int for the key, you can no longer access members of the collection by their ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to perform a deep copy of an object not marked as serializable (in C#)? I am attempting to create a Clipboard stack in C#. Clipboard data is stored in System.Windows.Forms.DataObject objects. I wanted to store each clipboard entry (IDataObject) directly in a Generic list. Due to the way Bitmaps (seem to be) sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Limits on number of Rows in a SQL Server Table Are there any hard limits on the number of rows in a table in a sql server table? I am under the impression the only limit is based around physical storage.
At what point does performance significantly degrade, if at all, on tables with and without an index. Are there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Setting QTMovie attributes I'm trying to create a QTVR movie via QTKit, and I've got all the frames in the movie. However, setting the attributes necessary doesn't seem to be having any effect. For example:
NSNumber *val = [NSNumber numberWithBool:YES];
[fMovie setAttribute:val forKey:QTMovieIsInteractiveAttribute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Explore containing folder instead of open containing folder I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame showing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Communication with the underlying transaction manager has failed" error message A client of our has recently upgraded a ASP.NET 1.1 web application to ASP.NET that uses COM+ transaction processing and received the following exception while trying to process a transaction:
Exception Type:
System.Transactions.Tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I determine the last time any record changed in a specific Sql Server 2000 database? I have a SQL Server 2000 database instance that is rarely updated. I also have a database table which has no columns holding each row's created date or modified date.
Is there any way that I can determine the last time an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read until EOF from cin in C++ I am coding a program that reads data directly from user input and was wondering how could I (without loops) read all data until EOF from standard input. I was considering using cin.get( input, '\0' ) but '\0' is not really the EOF character, that just reads until EOF or '\0', w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: How would you make an RSS-feeds entries available longer than they're accessible from the source? My computer at home is set up to automatically download some stuff from RSS feeds (mostly torrents and podcasts). However, I don't always keep this computer on. The sites I subscribe to have a relatively large throughpu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Complete list of Google Gears enabled sites Is there a complete list of Google Gears enabled sites? I'm aware of rememberthemilk.com, google docs and google calendar
A: MySpace's message system is one of the biggest outside of Google. At least so I thought according to this article.
Other sites are:
*
*Wordpress... | {
"language": "en",
"url": "https://stackoverflow.com/questions/201994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I open a file in C# and change its properties? I need to open a Microsoft Word 2003 file and change its file properties. Such as changing the Subject in the Summary Tab.
A: Microsoft provides a very useful little assembly called DSOFile. With a reference to it in your project, you can modify Office docume... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I fix "http_client.c(227) Error creating a socket" error, which probably results from the OS I am in the process of setting up the wso2 php web services framework on my ubuntu 8.04 development server.
However my webservice is failing. Looking into the wsf_client.log (custom log for the framework) file gives m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating Docking Panes in CView instead of CMainFrame When creating an MDI Application with "Visual Studio" style using the AppWizard of VS2008 (plus Feature Pack), the CMainFrame class gets a method CreateDockingWindows().
Since I don't want all panes to be always visible but display them depending on the type of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to detect the language version of Windows Required is the true language version of the OS, not the user interface language or the current locale settings.
Use case: software installation which has to apply security settings and user account creation. The scripts have to know certain system properties like user g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Encrypt and decrypt a string in C#? How can I encrypt and decrypt a string in C#?
A: The following example demonstrates how to encrypt and decrypt sample data:
// This constant is used to determine the keysize of the encryption algorithm in bits.
// We divide this by 8 within the code below to get the equiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "745"
} |
Q: ClickOnce and IsolatedStorage The Winform application is release with ClickOnce in our Intranet. We store personal preference for the GUI in the Isolated Storage. All works pretty fine :)
The problem is when we have a new version of the application, we publish... all preferences are lost! User need to setup their pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Using SHFileOperation within a Windows service It's possible, but is it appropriate to use SHFileOperation within a Windows service? All those SHxxx API functions in shell32.dll seem to have been written with user level programs in mind. Can I be certain SHFileOperation won't display GUI ever?
A: According to the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can you set a conditional uninstall in Wix? The installer sets up a default DB (if one doesn't already exist) and I want to exclude that from the uninstall process (Or have the user option to remove it or not, once I take the time to figure out customizing the GUI)
Seems like best practice would be to just create th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Formatting XSD scheme for peer review I designed a data model which is represented by an XSD scheme.
The data model also provides the types that are being used as web service parameters in a WSDL descriptor.
I would like to send the XSD scheme around and ask the people involved to peer review the data model.
What to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I set up a timer to prevent overlapping ajax calls? I have a page where search resuts are shown both in a grid and on a map (using KML generated on the fly, overlaid on an embedded Google map). I've wired this up to work as the user types; here's the skeleton of my code, which works:
$(function() {
// Wir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mod_rewrite Rule to Cover All Domains Is there a way to have a RewriteRule fire on any domain that is requested on a box? For example, I have 5 VirtualHosts that would have the exact same RewriteRule applied to them and currently each VirtualHost directive has the rule, but can I put this somewhere 'global' so that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Force ASP.NET textbox to display currency with $ sign Is there a way to get an ASP.NET textbox to accept only currency values, and when the control is validated, insert a $ sign beforehand?
Examples:
10.23 becomes $10.23
$1.45 stays $1.45
10.a raises error due to not being a valid number
I have a RegularExpressi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to configure server for small hosting company for django-powered flash sites? I'm looking at setting up a small company that hosts flash-based websites for artist portfolios. The customer control panel would be django-powered, and would provide the interface for uploading their images, managing galleries, selli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.Net and GetType() I want to get a type of a "BasePage" object that I am creating. Every Page object is based off BasePage. For instance, I have a Login.aspx and in my code-behind and a class that has a method Display:
Display(BasePage page) {
ResourceManager manager = new ResourceManager(page.GetType());
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WPF versus Windows Forms
Possible Duplicate:
When creating a new GUI, is WPF the preferred choice over Windows Forms?
*
*What are the advantages and disadvantages between using WPF (Windows Presentation Foundation) over Windows Forms?
*What are the considerations that need to be made when choosing between t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: How to change cell's ComboBox style in DataGridViewComboBoxColumn Cells in DataGridViewComboBoxColumn have ComboBoxStyle DropDownList. It means the user can only select values from the dropdown. The underlying control is ComboBox, so it can have style DropDown. How do I change the style of the underlying combo box i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Good Examples of Hungarian Notation? This question is to seek out good examples of Hungarian Notation, so we can bring together a collection of these.
Edit: I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, like Joel giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to stop worrying about using the best materials and just start learning .Net? For the past few years whenever I learn something I tend to spend way too much time researching on the best materials for the subject than actually studying it. What should I do to get over this mentality? I am stuck. How to stop worry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How Do You Programmatically Set the Hardware Clock on Linux? Linux provides the stime(2) call to set the system time. However, while this will update the system's time, it does not set the BIOS hardware clock to match the new system time.
Linux systems typically sync the hardware clock with the system time at shutd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: getter for boolean properties with JAXB I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge:
Generate getXXX() rather than/additionally to the isXXX() Me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Run a XNA compiled game from DVD or CD on XBOX 360? Is it possible to run a XNA game compiled for XBOX 360 from a DVD or CD, or does it have to be copied onto the HD?
Is it possible to include a library which is not a part of the .net compact framework in a XBOX 360 project?
A: XNA games must be copied to the 360 u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Generate JavaScript objects out of Django Models I am performing a lot of JavaScript work in the browser and would like to have some of that backend functionality in the front-end. Specifically, it would be nice to have the functions get(), save(), all() and count() available to the client. Additionally, it would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: c# (more specifically xna) how can i request a xml file via http? Doesnt need to support xbox So im working on a game in XNA and i need it to get a server list off our site.
so i just need to do a http request to http://play.feedthezombie.com/?want=servers&enc=xml
and get the contest as either a string or xml obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to search a string based key/value collection fast Hello fellow stackoverflowers!
I have a word list of 200.000 string entries, average string length is around 30 characters. This list of words are the key and to each key i have a domain object. I would like to find the domain objects in this collection by only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you reset a password in AD using LDP.exe? I can connect with a user who has permissions to set passwords. I'm able to change attributes, but I can't set the password.
Found some instructions to set the attribute unicodePwd to \UNC:"*password*", but it says:
Error: Modify: Unwilling To Perform. <53>
Setting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merge code changes without true source control We have a few developers working on the same VS2005 solution, but our source control is very bad. (Our company uses Harvest, which we give a vote of no confidence).
Right now, we're all just working off of the files on a shared lan drive. Obviously, this causes some p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Start another application from a Compact .Net 1.0 app Is there a way to start another application from within Compact .Net framework 1.0 similar to
System.Diagnostics.Process.Start
on the Windows side?
I need to start a CAB file for installation.
A: Take a look at
http://www.pinvoke.net/default.aspx/coredll/Creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace first line of a text file in Java I have a text file where I want to change only the first line of the file. The file could be millions of rows long, so I'd rather not have to loop over everything, so I'm wondering if there is another way to do this.
I'd also like to apply some rules to the first line so th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Flex/AIR: automatically absorb unassigned/disabled key shortcuts I have an AIR app with an <mx:HTML> component, which renders a page that includes an HTML/Javascript based WYSIWYG/rich-text editor. Various keyboard shortcuts are assigned for formatting and what have you, but if I type a shortcut which isn't assigned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to easily print the pages from an ASP.NET site? My PM just stopped by and he wanted a copy of all of our pages... Is there a way to do this for all pages without having to go to each one?
A: Free/Open Source application to crawl you're own site:
http://www.httrack.com/
Then send the resulting local... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How does a game engine that models objects as "collections of components" work at runtime? I'm writing a lightweight game engine and while doing some research for it I've come across a number of compelling articles advocating the implementation of Game Objects through a "collection of components" model rather than a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: .NET components for real-time shipping quotes When developing custom ecommerce solutions, which "off the shelf" .NET based shipping components have you had luck with?
It absolutely must give real-time shipping quotes and be easily integrated into a ASP.NET website. Ideally I'd like it to support most of the commo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to manage concurrency for inserting in C#? Many optimistic concurrency examples refer to updates by using a database timestamp or flag.
However, I want to handle optimistic concurrency for INSERTS
To illustrate here is a fake scenario:
Multiple users can insert a journal entry at the same time, but allow only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I start distributing my systems as Wine ready? I have tested all my systems developed in Delphi (in Windows XP) on Wine (OpenSuse Linux) and they work perfectly. My question is: should I start distributing my systems (on a local basis that I can support) as Wine ready or are there other issues I should take i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to use sftp from within an MS Access database module? I have a requirement to create a simple database in Access to collect some user data that will be loaded into another database for further reporting. There will be a module in the Access db that when invoked by the user (probably by clicking a button) will o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the best manner of implementing a social activity stream? I'm interested in hearing your opinions in which is the best way of implementing a social activity stream (Facebook is the most famous example). Problems/challenges involved are:
*
*Different types of activities (posting, commenting ..)
*Different ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "271"
} |
Q: How to make MySQL handle UTF-8 properly One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?
A: The charset is a property of the database (default) and the table.
You can have a look (MySQL commands):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "118"
} |
Q: What optimistic locking scheme would you recommend for SQL Server? I am building an enterprise application with .Net 1.1 and SQL Server 2000. I use the read committed isolation level . However changes in non-functional requirements have made it necessary to take measures against non-repeatable reads and phantoms. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Outlook VSTO not firing on NewMailEx event? I've created a VSTO in C# that is supposed to hook Outlook 2007's NewMailEx event. However, it doesn't fire sometimes when I do a manual send/receive, or when there is only 1 unread mail in the inbox. It almost seems as if it fires on the inbox BEFORE the message actually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programming a user interface for a small device I'm looking for ideas/elements of a user interface for a device I'm making. Full description (and video of development setup) here.
In short:
*
*It's essentially a direction finder, so I'm starting off thinking, "Compass" but wondering what other design patterns wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: dotnet compact framework 3.5 sp1 detect device resolution I need to detect the device resolution automatically, right now I have a global var & hardwire the resolution:
Public gDeviceRes As String = "640"
'Public gDeviceRes As String = "320"
then recompile for each device, does anyone have a quick snippit of code f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Command Line limit for Solaris I have an app that executes commands on a Linux server via SSH just fine. When I connect to a Solaris server, things don't work. It seems that the Solaris command line is limited to 267 characters.
Is there a way to change this?
Update: As was pointed out before, this is a limit to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom Date/Time formatting in SQL Server I am trying to write a stored procedure which selects columns from a table and adds 2 extra columns to the ResultSet. These 2 extra columns are the result of conversions on a field in the table which is a Datetime field.
The Datetime format field has the following format 'YY... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Pure-SQL Technique for Auto-Numbering Rows in Result Set I'm looking for a way to sequentially number rows in a result set (not a table). In essence, I'm starting with a query like the following:
SELECT id, name FROM people WHERE name = 'Spiewak'
The ids are obviously not a true sequence (e.g. 1, 2, 3, 4). What I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using Nant, uncomment a block of xml in a file I need to uncomment a portion of xml in a file that I am working with in NAnt. Heres a sample of the xml:
<navigation>
<!-- Navigation Section
<something name="" />
<something name="" />
-->
</navigation>
What I want to do is take the --> portion and move it ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery table header sort Anybody know of a plugin, or a built in function to make the columns in a table sortable? i.e. I click on the column header and it sorts the rows by that column?
A: http://www.flexigrid.info/
Flexigrid is a very popular, and easy table manager/sorter to use.
A: http://tablesorter.com/docs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Eclipse & Tomcat: How to specify which folder is served from the project? I'm using Eclipse 3.4 and Tomcat 5.5 and I have a Dynamic Web Project set up. I can access it from http://127.0.0.1:8080/project/ but by default it serves files from WebContent folder. The real files, that I want to serve, can be found under f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why is this code invalid in C#? The following code will not compile:
string foo = "bar";
Object o = foo == null ? DBNull.Value : foo;
I get: Error 1 Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DBNull' and 'string'
To fix this, I must do something like ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Resolve a filename from another file I can currently to the following:
class SubClass extends SuperClass {
function __construct() {
parent::__construct();
}
}
class SuperClass {
function __construct() {
// this echoes "I'm SubClass and I'm extending SuperClass"
echo 'I\'m '.get_class($this).' and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trigger a keypress with jQuery...and specify which key was pressed I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin input, so for example:
The user types "ma2" into an input element. The keydown ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to build the DOM using javascript and templates? I am building an application where most of the HTML is built using javascript. The DOM structure is built using some JSON data structures that are sent from the server, and then the client-side code builds a UI for that data.
My current approach is to walk the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to store year in Rails app I want to just store the year in one of my models. At the moment I just have a database field called year of type date, but it seems to want to take a whole date (yyyy-mm-dd) rather than just a year.
What's the best way to store this? In a date field but using some way of just getting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Any way to export/import sql server reporting services subscriptions? I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio.
Anybody know if this is possible?
A: You can write your own stuff using the SSRS web services. The biggest agro wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Logging to a file on the iPhone What would be the best way to write log statements to a file or database in an iPhone application?
Ideally, NSLog() output could be redirected to a file using freopen(), but I've seen several reports that it doesn't work. Does anyone have this going already or have any ideas how this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Rounding to an arbitrary number of significant digits How can you round any number (not just integers > 0) to N significant digits?
For example, if I want to round to three significant digits, I'm looking for a formula that could take:
1,239,451 and return 1,240,000
12.1257 and return 12.1
.0681 and return .0681
5 a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Create PHP DOM xml file and create a save file link/prompt without writing the file to the server when headers already sent I've created a PHP DOM xml piece and saved it to a string like this:
<?php
// create a new XML document
$doc = new DomDocument('1.0');
...
...
...
$xmldata = $doc->saveXML();
?>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I AutoIncrement the assembly (build) number in Visual Studio? How can I AutoIncrement the assembly (build) number in Visual Studio?
Duplicate:
/questions/650/automatically-update-version-number
A: You can just use a wildcard in the AssemblyVersionAttribute:
[assembly: AssemblyVersion("1.0.*")]
This will ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I print a Word document in JSP page without opening it? I have a J2EE based web application, in which on clicking a button I need to create a word file from Java. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: StackOverflow atom feed to use with VS2008 Start Page Is there a URL for StackOverflow that I can use on the VS startpage in place of the never updated MS page? The URL that VS uses can be set on the Tools->Options::Startup dialog.
I've tried https://stackoverflow.com/feeds VS complaints with the following error:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Querying machine specs What are some ways that I can query the local machine's specifications (a range of things from CPU specs, OS version, graphics card specs and drivers, etc.) through a programmatic interface? We're writing a simple app in C# to test compatibility of our main app and want to have it dump out so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's a nice way of building a wParam or lParam in C#? (Something friendlier than shift operators?) When the WIN32 docs says something like:
wParam
The low-order word specifies the edit control identifier.
The high-order word specifies the notification message.
What's a nice way of building that wParam?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best MATLAB toolbox that implements Support Vector Regression? In this Wikipedia article about SVM there are a number of links to different implementations of MATLAB toolboxes for Support Vector Machines. Could anyone suggest which of these is best in terms of speed, ease of use, etc.?
A: I've used libSVM. It is pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is there a convenient way to wrap std::pair as a new type? Often times I find myself using std::pair to define logical groupings of two related quantities as function arguments/return values. Some examples: row/col, tag/value, etc.
Often times I should really be rolling my own class instead of just using std::pair. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can I get statistics on RSS readership? Is there any way to get numbers on how many people are reading an RSS feed? My understanding of the way feed readers work (e.g. Google Reader) is that they check the feed periodically, cache it, and serve the cached copy to whoever asks for it until it's refreshed - which woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Automatic Java Error Reporting Systems Does anyone know of a system for automatic error reporting in java? We have a server product that is installed on client servers. The idea is that our server would phone home with the details of an error to one of our servers, which then enters a bug in our bug tracker. Prefera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there anyway to put html "inside" a Silverlight control? I know you can do a trick of putting an HTML element on top of a Silverlight app, but that will not work full screen. Is there anyway to show an html page inside a Silverlight application?
A: http://www.componentone.com/SuperProducts/HtmlHostSilverlight/
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is your best resource about generics and their interfaces? I have found many pieces of documentations and recommendations about IEnumerator, IEnumerable, ICollection, IList and their generic counterparts. Sadly, I didn't find yet a tutorial or book which explains the whole hierarchy of interfaces, generic imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I force input to uppercase in an ASP.NET textbox? I'm writing an ASP.NET application. I have a textbox on a webform, and I want to force whatever the user types to upper case. I'd like to do this on the front end. You should also note that there is a validation control on this textbox, so I want to make sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: How can I use both PHP 4 and 5 with the same apache install? I am trying to make this feature available, maybe in an apache .htaccess file.
A: I used the virtual server config to setup several folders with PHP5 and some with PHP4 on my PC to test code. I also set them up with different hostnames (also in the window... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I build two different apps from one Visual C# project? I have a source base that, depending on defined flags at build time, creates two different apps. I can build both of these apps using a Makefile by specifying two different targets, one that compiles with a flag and one that compiles without, and having a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Diagnosing application hang in a production .NET desktop program I have trouble. One of the users of an application I'm developing is occasionally, but regularly, experiencing an application hang.
When this happens, we find an entry with a source of "Application Hang" in the machine's Event Log, with the informativ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: enter key sometimes not recognized in windows apps under cygwin At work, I use Cygwin a lot because it offers me a small oasis in the vast desert of Windows. I inevitably end up running some non-Cygwin programs through the bash shell, such as build scripts (batch files created in-house) and the Subversion CLI binar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Regular expression that calls string "a?c" invalid? In my user model, I have an attribute called "nickname" and validates as such:
validates_format_of :nickname, :with => /[a-zA-Z0-9]$/, :allow_nil => true
However, it is currently letting this string pass as valid:
a?c
I only want to accept alphanumeric strings - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sql Server SHRINKDATABASE command When I shrink a sql server database using the GUI (All Tasks->Shrink Database->Accept all defaults, click OK), it finishes quickly.
But if I run this command, it takes a very very long time.
DBCC SHRINKDATABASE('my_database')
What am I missing?
This is in SQL Server 2000.
A: If I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC Preview 5 on Mono Does anyone have any information about getting the current versions of ASP.NET MVC (Preview 5) working on Mono 2.0? There was info on the old versions (Preview 2, maybe Preview 3), but I've seen no details about making Preview 5 actually work.
The Mono Project Roadmap indicates ASP.NET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to best capture and log scp output? I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar.
screen output:
Copying
/user2/cdb/builds/tmp/uat/myfiles/* to
server /users/myfiles as cdb
cdb@serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/202432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |