text stringlengths 8 267k | meta dict |
|---|---|
Q: Asp:TextBox and VNI-Times, Vietnamese Text Problem I need to be able to allow a user to enter Vietnamese text into a text box.
I have been instructed to use VNI-Times and provided a sample word document with Vietnamese text.
When I paste the text from the sample document into the textbox it is encoded incorrectly. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you statically compile a cygwin application? Does cygwin allow a statically compiled binary? This would prevent the need for cygwin1.dll being on the PATH of target machines.
A: Nope, it's currently not possible to statically link against cygwin1.dll; if your application does not use unix emulation (i.e. pure w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Clearcase Multi-file rename I have a large number of files in a ClearCase directory structure, and I need to go through and change all "makefile" to "Makefile". I'm thinking some combination of the find . -name makefile command with an exec flag, but I'm having a hard time coming up with the exec command. The cleart... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET jQuery - Bound Controls I want to use jQuery with a GridView which contains textboxes, but I'm stuck on how to get event listeners registered for every textbox on the selected row. I was thinking I could do something with a StingBuilder in the Unload event of the GridView but I can't get it working.
A: Why ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Other uses of version control than for code? Seeing this: http://www.suckless.org/wiki.html. A wiki based on Mercurial. Are there any other non-code related use to version control? Is there any other projects that uses version control tools inside instead of programming their own specific solution?
A: A couple that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Setting unicode characters in java frames How to display unicode characters (e.g. japanese) in the title of a JFrame in java swing in a Windows XP m/c without the Japanese language pack? It looks like setting the title text to Japanese unicode characters and the font to MS Mincho is not enough. While this is all you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VS2005 Code Analysis: CA1063 (call dispose(true) and supress finalize) - with logging I'm trying to adhere to the VS2005 code analysis rules for a new project. I have this method:
public void Dispose()
{
Console.WriteLine("Dispose() called");
Dispose( true );
GC.SuppressFinalize(this);
}
(The console c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cool or Stupid? Catch(Exception[NamingException, CreateException] e) I was writing some code, and I notice a pattern in the exception handling that got me thinking:
try{
// do stuff... throws JMS, Create and NamingException
} catch (NamingException e) {
log1(e);
rollback();
doSomething... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Parsing XML with XPath in Java I have a XML with a structure similar to this:
<category>
<subCategoryList>
<category>
</category>
<category>
<!--and so on -->
</category>
</subCategoryList>
</category>
I have a Category class that has a subcategory list (List<Category>). I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to delegate a method call to another thread? I have the following problem: Multithreaded WPF application, Model View Presenter Implementation. Presenters and Views that belong together are created on a separate thread and get a separate Dispatcher. Now someone calls from another thread a method on the Presenter.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I troubleshoot "Unable to load DLL..."? I deployed an update to my ASP.NET application and started seeing this error on my page that used foo.dll:
Unable to load foo.dll. The specified
module could not be found. (Exception
from HRESULT: 0x8007007E)
foo.dll is in my system32 and application bin directory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Team System 2008 and VS 2005 code Our company is transitioning code from VS 2005. I know they won't be able to use VS 2008 to access it, but we have the patch to enable web access for TFS 2008 applied to our TFS server. This means they can access the source code via the web, but do the work in VS 2005.
The code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Sending Keyboard Input How can I send keyboard input messages to either the currently selected window or the previously selected window?
I have a program which I use to type some characters which are not present on my keyboard and I would like it if I could just send the input directly rather than me having to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Java Cipher - AES Padding Problem I am using a AES cipher with a 16 byte block size.
If I try and encrypt a 16 byte string I have no problems, but any other length not a multiple of 16 is throwing an exception.
I know with 3-DES you can specify a padding type as part of the algorithm and it's handled with no extra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Convert text from English characters to Hebrew characters Using C#, when a user types a text in a normal textbox, how can you see the Hebrew equivalent of that text?
I want to use this feature on a data entry form, when the secretary puts in the customer name using English characters to have it converted automatical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best practice for running a number of tasks (threads) with a single timeout (run for a max of 30 seconds across all threads)? I came up with a solution, but I wanted to see if anyone had a better way or more standard way of doing this.
The main method demonstrates how I would use this class.
In a product... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to MOQ an Indexed property I am attempting to mock a call to an indexed property. I.e. I would like to moq the following:
object result = myDictionaryCollection["SomeKeyValue"];
and also the setter value
myDictionaryCollection["SomeKeyValue"] = myNewValue;
I am doing this because I need to mock the functionali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "102"
} |
Q: Null Pointer when populating Grails Domain object with Oracle 10g long field We are trying to populate a domain object from an oracle 10g database. The field in question is defined as a string in the domain object with the following constraints.
zdata(blank:false,maxSize:3000000)
The size of the data is approximate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set different code styles depending on the file type in Eclipse? We are using CMake to manage our builds and have a rather large project consisting of pretty much everything that is needed to build the software base for our embedded platforms save for the toolchain. When building a CDT project with CMake it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I invoke the `Inherited` ancestor method in overridden virtual functions? This works:
constructor TMyObj.Create;
begin
inherited;
end;
Why this is not working also?
function TMyObjEx.Import(CONST FileName: string; CONST x, y, z: Integer): string;
begin
result:= inherited; // Import(FileName, x, y, z); <-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Dictionary methods return views in Python 3.0 - why?
dict methods dict.keys(), dict.items() and dict.values()
return “views” instead of lists.
Source
First of all, how is a view different from an iterator? Secondly, what is the benefit of this change? Is it just for performance reasons?
It doesn't seem intuitive... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Looking for a good source for learning ASP.NET MVC I've been working with ASP.NET MVC for the last few weeks, learning as I go, from tutorials and mostly trial and error.
I'm sorta groping in the dark, since I have no other experience with MVC frameworks and I'm just moving ahead blindly trying to figure things ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: powershell exchange : how do you setup a scheduled task to run exchange2007 powershell? I'm having trouble setting up a scheduled task (now called Task Scheduler) under the actions tab to run on windows 2007 server. It also has exchange server 2007.
I've tried setting
Program/script : C:\Windows\System32\WindowsPo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I detect if the user is on a pc or mobile phone I am working on a site and working on a component that will take users using wap or xhtml-mp and redirect them to sites specifically setup for those devices. Is there a good standard way of detecting which of these the user is using?
A: Because no matter what y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Navigation in django I've just done my first little webapp in django and I love it. I'm about to start on converting an old production PHP site into django and as part its template, there is a navigation bar.
In PHP, I check each nav option's URL against the current URL, in the template code and apply a CSS class if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: What do you use (free) to format C# code? Are there any VS.NET plugins that will format a selection of code for printing or emailing and is also free?
A: Have you checked the inbuilt formatting provided by VS? Select code and enter key chord Ctrl+K, Ctrl+F.
Or goto (menu)Edit->Advanced->FormatSelection or Edit->Adv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Caching with ASP.NET I have form that displays several keywords (standard set of choice lists that changes rarely). There are about 4 such fields and each have about 20 choices or so.
I'm thinking if caching the keywords will be helpful for performance / best practice? Is there a strategy for determining when to cac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interesting uses of M? I know M is a new language from Microsoft that's targeted as a modeling solution but I'm still a bit fuzzy on usage / rationale / advantages. That's why I'm looking for interesting things that people have done with M, so I can understand it better.
A: Well it's new, as you said, so you'll hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unit Testing in web applications that use databases I am building a web application that uses the database for Users, Security/roles, and to store content.
It seems a little daunting to me to begin on the road of unit testing because I have to make sure my database has been initialized properly for my tests to run.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Any good tool or library for recursive convert ANY files to tiff / images? We have to convert EVERYTHING to images for archiving purpose. DOC, HTML, email, ZIP, PDF, TXT and any document you can read/view on computer. In addition, it must recursive convent on all embed attachment and files in zip.
I know ImgMaker o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Multi-dimensional Arrays on the Heap How would I go about dynamically allocating a multi-dimensional array?
A: See this:
C++ FAQ by Marshall Cline
See "How do I allocate multidimensional arrays using new?" and "But the previous FAQ’s code is SOOOO tricky and error prone! Isn’t there a simpler way?" sections.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Export data from SQL2005 stored procedure to CSV I want to find a way to allow our reporting guy to export data returned from a stored procedure into a CSV file. The procedure will need a (date) parameter passing to it.
Is there a data export wizard I can get him to use, or some other user friendly way in SQL2005 t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What Error Handling Options Do I Have In ASP.NET MVC? What options do I have for error handling in ASP.NET MVC?
Do I call GetLastError on the error page and send out the email or log it?
A: Why not an error handling filter?
A: In your Global.asax you can implement something like the following:
protected void Appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how could I share workspace between ubuntu and windows xp? I am using ubuntu 8.04 and windows xp. I mount the fat32 disk which contains eclipse workspace to ubuntu. but I find I could not use the workspace, maybe I have no right to use it.
the fat32 disk I mounted has the 755 right,I try to use chmod to change it to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Radio dial type functionality as seen on Where To? App Straight forward question. I'm trying to understand UI design more and how to make it work with code. In particular there used to be an app that went through several design sessions, named Where To? by Tap Tap Tap. They had a table which they turned into a radio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to manage a DNS server remotely? I whant to make a web interface on a server that will manage a few dns servers on another servers.
How can i remotely manage a bind dns server programmaticly ?
*
*I would like to add/edit/delete zones.
*I see that there is rndc but that only allows reloading of zones and not a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What features of Python 3.0 will change your everyday coding? Py3k just came out and has gobs of neat new stuff! I'm curious, what are SO pythonistas most excited about? What features are going to affect the way you write code on a daily basis, or have you been looking forward to?
A: I hope that exception chainin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Supply Demand Modeling I thought I would ask the SO community on helping me with a project that I am currently working on. I need to model the price for a widget in a market situation. The price for the widget should be a result from the current supply and demand. Users will be able to buy and sell the widget at the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Send a JPanel to the printer Is it possible to just send a JPanel or any other component to the printer? Or do I have to implement all the drawing to the graphics object by hand?
I have tried to use the Print* functions of the JPanel to print to the graphics object but the page that gets printed is blank.
A: Check ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Switching an image using jQuery Is there a better, more jQuery-ish way of handling this image substitution?
var image = $(obj).children("img");
if ($(image).attr("src") == "Images/TreeCollapse.gif")
$(image).attr("src", "Images/TreeExpand.gif");
else
$(image).attr("src", "Images/TreeCollapse.gif");
A: More j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Allowing access to specific pages with ASP-MVC and Forms Authentication Here is a simple overview of my directory layout for my views:
Project
*
*Page 1
*Page 2
*RSS
Issues
*
*Page 1
*Page 2
*RSS
I am using forms authentication to deny access to all unauthenticated users, that works fine. However, I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Elisp performance on Windows and Linux I have the following dead simple elisp functions; the first removes the fill breaks from the current paragraph, and the second loops through the current document applying the first to each paragraph in turn, in effect removing all single line-breaks from the document. It runs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Error #2099: The loading object is not sufficiently loaded to provide this information I have a Flash app made up of AS3 components that I am trying to run in Flex.
In Flash, after the main component is added to the stage, the loader object (loaderInfo.loader) is null which is fine and I handle that.
In Flex, on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MFC CFindReplaceDialog destruction How can I destroy a pointer to CFindReplaceDialog object properly?
For example I have class:
class CjumpView : public CRichEditView
{
CFindReplceDialog *m_pFRDlg;
// ...
};
CjumpView::CjumpView()
: m_pFRDlg(NULL)
{
}
CjumpView::~CjumpView()
{
if(m_pFRDlg !=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: constantPoolClass in Java heap? I have inherited a Java applet (an actual <APPLET>) which throws an OutOfMemory exception after about 4 days of runtime. The nature of the applet is such that people really will leave it open for long periods of time.
After almost two days running, jmap -histo shows the top heap consu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Insert characters into existing cells I need to update a group of cells by inserting the same two characters into all of them, but I'm just drawing a blank on how to do this. Could someone point me in the right direction?
Old Cells
HI.1
HI.2
HII.1
New Cells
H08I.1
H08I.2
H08II.1
A: UPDATE Cells SET Cell = LEFT(Ce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/340998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to handle coexistence of the "int enum" pattern with java enums as an API evolves? Suppose you're maintaining an API that was originally released years ago (before java gained enum support) and it defines a class with enumeration values as ints:
public class VitaminType {
public static final int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: FxCop Custom Rule - Inspecting winform control properties I am looking for an example of a FxCop Rule that inspects the properties of controls created.
Has anyone seen one? Or know how to respond to a property set in the FxCop SDK?
Rich.
A: This is definitely not difficult. Just filter for types that inherit fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WinForms - DataGridView - no cell selected Is there a way to make a DataGridView have no cell selected? I notice even when it loses focus() it has a at least one active cell. Is there another mode that allows this? or some other trick?
A: I found that the DataGridView.CurrentCell = null didn't work for me when try... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: JSP: Creating Graph What would be the simplest way to create some graphical representations of the usage of electricity by month?
A: The best way is to use JFreeChart to produce an image from your data, and then display the image in the jsp.
A: Easy solution for me was outputting numerical arrays in the backend a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to retrieve values after # in a URL using c# I am trying to implement ajax back/forward button support and therefore writing variables after a # in my url. I would also like the user to be able to copy the url and then link back to it. Does anyone know how can I parse the url and grab my "querystrings" even thou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DefinitionInvalidException from Microsoft Report Viewer 2008 My app (winforms .net 2.0 / vs2008) works fine on my dev machine but on one of test machines i'm getting this exception.
Has anybody encountered something similar?
************** Exception Text **************
Microsoft.Reporting.WinForms.LocalProcessingEx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CORBA from .NET - (dis)recommended libraries? I am working on a .NET-based server component that talks to a set of destinations (equity options exchanges, to be specific) using a variety of destination-specific protocols. The next destination we plan to add uses CORBA, so I am researching .NET libraries that can spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: "does not contain" in CAML? In CAML I can query SharePoint Listitems using the "Contains"-element, but there is no "does not contain"-element I could use.
So what is the best way to get the items that do not contain a string? Is there a better way than to loop through each and every item?
A: The same restriction ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Database design - Should a Date be used as part of a primary key What are the pros/cons for including a date field as a part of a primary key?
A: Consider a table of parts inventory -- if you want to store the inventory level at the end of each day then a composite primary key on part_id and date_of_day would be fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: wcf service to service communication & data contract i have recently been involved in developing a WCF service which acts as a kind of multicast relay (i.e. accepts some incoming data, does some processing and then sends it off to multiple other external services). this service (which i will refer to as "my service"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which is the better method? Allowing the thread to sleep for a while or deleting it and recreating it later? We have a process that needs to run every two hours. It's a process that needs to run on it's own thread so as to not interrupt normal processing.
When it runs, it will download 100k records and verify them ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there any way to have MS Access 2003 generate a set of DDL, DML, and DCL files for an existing design and dataset? I have an existing database that has some testing data into and I'm interested in turning it into a set of DDL, DML, and DCL files so that I could run it against other database systems and create the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: urlencode with only built-in functions Without using plpgsql, I'm trying to urlencode a given text within a pgsql SELECT statement.
The problem with this approach:
select regexp_replace('héllo there','([^A-Za-z0-9])','%' || encode(E'\\1','hex'),'g')
...is that the encode function is not passed the regexp parameter,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET DropDownList AutoPostback Not Working - What Am I Missing? I am attempting to get a DropDownList to AutoPostBack via an UpdatePanel when the selected item is changed. I'm going a little stir-crazy as to why this isn't working.
Does anyone have any quick ideas?
ASPX page:
<asp:UpdatePanel ID="UpdatePanel1" ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MySQL subselect performance question? I need advice regarding subselect performance in MySQL. For a reason that I can't change, I am not able to use JOIN to create quesry filter, I can only add another AND clause in WHERE.
What is the peformance of:
select tasks.*
from tasks
where
some criteria
and task.project... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# to VB.Net: Why does this fail to compile when converted to VB? I have this C# extension method that will extend any dictionary where the Value type is an IList. When I write the equivalent code in VB.Net I get the following compile error:
"Extension method 'Add' has some type constraints that can never be satis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: HttpContext.Cache vs Reflection: Which is more efficient? I'm using reflection to get the Authorize Attributes from controllers and methods.
Since I will need to get this information over and over I'm wondering if it is faster to cache it or to simply continue to use reflection to get it.
Any thoughts?
A: In genera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling a javascript file (.js) via Excel VBA? How to call a javascript file (.js) via Excel VBA?
So as i am opposed to the same kind of problem i'll try to submit you guys my case.
I am trying to automate datas extraction from valeo's catalogue using excel vba macro.
I have a list of références attached to valeo's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Non persistent data in a Rails app I'm working on an "analytics" page for a rails app. The analytics page does not persist any data of its own (it's very primitive at this point) but does utilize metrics that I'm grabbing from the DB (via the aggregate expressions built into ActiveRecord). Aside from gathering and p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Display Outlook icon in notification area for messages, not in inbox I have rules set to move some email messages into different folders. I would like this to still show the envelope in the notification area but there is no option in the rules wizard to do this. It looks like I would either have to have the rule "ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to reference an indexer member of a class in C# comments In order to reference a member of a class in XML comments/documentation, you have to use the following tag:
<see cref="member"/>
It is better explained here.
How do you reference an indexer?
I mean, a member like this one:
internal object this[ int index ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Hide Comments in Code in Unix Environment I work in a Unix environment with the typical Unix tools (emacs, vim, gvim, sunstudio, etc)
My project has huge gross boilerplate comments on every method. It makes the files thousands of lines long, with a couple hundred lines of actual code. I may be exagerrating a bit but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I reboot a Windows XP64 Machine in a Python Script? How can I reboot a Windows XP64 Machine in a Python Script? This machine does not have the "shutdown" or "restart" executables available.
A: found it
win32api.InitiateSystemShutdown("localhost", "Maintenance Reboot", 60, 1, 1)
A: You can use win32api mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can Rails Routing Helpers (i.e. mymodel_path(model)) be Used in Models? Say I have a Rails Model called Thing. Thing has a url attribute that can optionally be set to a URL somewhere on the Internet. In view code, I need logic that does the following:
<% if thing.url.blank? %>
<%= link_to('Text', thing_path(thing)) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "397"
} |
Q: Hook object load event in Entity Framework? Is there an EF equivalent to LINQ to SQL's OnCreated partial?
Several of my objects have XML fields that I would like to parse whenever the object is loaded from the db - I'd like to put the XML data into more friendly strongly-typed collections. I've already marked the X... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I remove a digital signature from a DLL? My installer build "signs" a DLL using a Code Signing certificate during the build process.
I've noticed that if I try to build twice in succession, the second build fails because the DLL is already signed so signcode chokes. Obviously I can fix this by signing a copy of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: datetime.parse and making it work with a specific format I have a datetime coming back from an XML file in the format:
20080916 11:02
as in
yyyymm hh:ss
How can I get the datetime.parse function to pick up on this? Ie parse it without erroring?
A: DateTime.ParseExact(input,"yyyyMMdd HH:mm",null);
assuming you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "163"
} |
Q: How can I merge in a new folder structure to SVN? We have a project where a vendor produces some custom code for us and we produce the backend content. Every time they ship us a new version, we manually merge that whole folder structure into our repository. This is easy for added and modified files (just copy/paste)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I install Python 3.x and 2.x on the same Windows computer? I'm running Windows and the shell/OS automatically runs Python based on the registry settings when you run a program on the command line. Will this break if I install a 2.x and 3.x version of Python on the same machine?
I want to play with Python 3 while... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "184"
} |
Q: How do I fix a .NET Webservice timeout causing a UnsupportedMediaException in a Java client? I currently have a .net SOAP web service with a timeout on the request that I set using
Server.ScriptTimeout = TIME_OUT;
I then have java client calling said web service. However when the timeout is reached I get this excep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set up Visual Studio 2008 to program in Perl? My company gave me VS2008 for web development in C#/ASP.NET. I do a lot of Perl programming too and I'd like to start using VS for that so I can have a consistent work environment... but am having real trouble figuring out how to do so.
VS has a lot of nice fea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Segmentation fault using SDL with C++, trying to Blit images OK - I have an interesting one here. I'm working on a tetris clone (basically to "level-up" my skills). I was trying to refactor my code to get it abstracted the way I wanted it. While it was working just fine before, now I get a segmentation fault befo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server 2008 - Editing Tables: Bit columns require 'True' or 'False' Not so much a question as an observation...
I'm just upgrading to SQL Server 2008 on my development machine in anticipation of upgrading my live applications. I didn't anticipate any problems since [I think] I generally use standard T-SQL, and p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: I need a hidden field in an .NET Repeater control. The catch is this is a .NET 1.0 project and there is no hidden field control...
So this is out of the question:
<asp HiddenField Runat="server" ID="hdn" />
I vaguely remember some type of HtmlHiddenInput class that allowed similar functionality...does anybody kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Excel VBA or VSTO - How do you loop over Fields on a PivotTable? Here is some sample VBA code:
Sub Macro1()
Dim pt As PivotTable
Set pt = ActiveSheet.PivotTables("SomePivotTable")
'Set colOfFields = pt.PivotFields
End Sub
The third line is incomplete/broken. What is the correct way to get access to co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I stream Live Video I'm looking for solutions that will allow me to have a Live Video feed setup at one location and, via the internet, watch the video stream at a remote location.
The goal is to have a live high quality video training session that remote users can watch from their own locations.
Any technolo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: running a registry file on to remote server for running it in local system , i use
REGEDIT.EXE /S "test.reg"
how to run a registry file to remote registry.
by the same command or by any other means, let me know that.
A: you could use psexec to get a remote command prompt to execute the reg script:
http://techne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "FindAll" feature in Lucene.net I have two fields on my web page ie: BookAuthor and BookDescription.On submit,the page searches against lucene index using the given search criteria.
If the user does not type in anything in the two fields and submits the page, how do make Lucene.Net return all the books from my index... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server functional equivalent to PostgreSQL "in" In postgres you can do a comparison against multiple items like so:
SELECT 'test' IN ('not','in','here');
Which is the same as doing:
SELECT ('test' = 'not' OR 'test' = 'in' OR 'test' = 'here');
Is there a functional equivalent for SQL Server ?
A: It is suppo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Getting cursor position in a Textarea I am trying to implement Autocomplete in a text area (similar to http://www.pengoworks.com/workshop/jquery/autocomplete.htm).
What I am trying to do is when a user enters a specific set of characters (say insert:) they will get an AJAX filled div with possible selectable matches... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can I create "Solution" level items in a Visual Studio Project Template? There's a lot of great information on MSDN dealing with creating Visual Studio templates. I've been specifically working through a Multi-Project Solution (http://msdn.microsoft.com/en-us/library/ms185308(VS.80,printer).aspx)
I have everything ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: C# Lambda expressions and NHibernate I'm a newbie in the great world of NHibernate. I'm using version 2.0.1.GA. Here's my question. I have a table Cars with column Manufacturer(nvarchar(50)) and a primary key ID(int). My .NET class is:
public class Car
{
public virtual int ID { get; set; }
public virtual str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I find the amount of video Ram installed through a WMI call? Does anyone know how to get the Video Ram of a PC from a WMI call?
I've seen calls to the Win32_VideoController management object's AdapterRAM property, but that only gives the system memory, and is not representative of the video RAM at all.
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BizTalk 2006 and BizTalk 2006 R2 How do I tell the 2 versions apart by looking only at their installations?
A: You can look in the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BizTalk Server\3.0
and look for the ProductCode_R2 key
Going by the name, I would suspect that is a keykey specific to R2.
A: If you open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PNG image won't show in IE7 or Firefox but works in Opera I got a webservice which creates a PNG-file and returns a link to it.
Then this graphic is used by a website (ASP.NET).
IE7 & Firefox 3 can't show this image but in Opera 9.5 it works fine.
Did anyone run across the same problem before?
Edit:
Content-type is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How has unit testing made your life better? Ok let me be honest, I haven't written more than 10 unit tests in my life probably.
I am embarking on a new project, and being the sole programmer means I should be scared ... very scared.
The idea that I can pseudo guarantee that my software works brings about a sense o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to resize a tableHeaderView of a UITableView? I'm having trouble resizing a tableHeaderView. It simple doesn't work.
1) Create a UITableView and UIView (100 x 320 px);
2) Set the UIView as tableHeaderView of the UITableView;
3) Build and Go. Everything is ok.
Now, I want to resizing the tableHeaderView, so I add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: Write a formula in an Excel Cell using VBA I'm trying to use VBA to write a formula into a cell in Excel.
My problem is that when I use a semicolon (;) in my formula, I get an error:
Run-time error 1004
My macro is the following :
Sub Jours_ouvres()
Dim Feuille_Document As String
Feuille_Document = "DOCUM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Max or Default? What is the best way to get the Max value from a LINQ query that may return no rows? If I just do
Dim x = (From y In context.MyTable _
Where y.MyField = value _
Select y.MyCounter).Max
I get an error when the query returns no rows. I could do
Dim x = (From y In context.MyTable _
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "201"
} |
Q: Should application users be database users? My previous job involved maintenance and programming for a very large database with massive amounts of data. Users viewed this data primarily through an intranet web interface. Instead of having a table of user accounts, each user account was a real first-class account i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What does character set and collation mean exactly? I can read the MySQL documentation and it's pretty clear. But, how does one decide which character set to use? On what data does collation have an effect?
I'm asking for an explanation of the two and how to choose them.
A: From MySQL docs:
A character set is a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "339"
} |
Q: JDBC java drivers sql server 2005 We are upgrading our servers to SQL Server 2005 from SQL Server 2000. We currently use the jtds drivers.
I'm interested to know what peoples opinions are of the different jdbc drivers available (in particular the latest Microsoft driver), how they perform with SQL Server 2005 and an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Passing a dynamic array in to functions in C I'm trying to create a function which takes an array as an argument, adds values to it (increasing its size if necessary) and returns the count of items.
So far I have:
int main(int argc, char** argv) {
int mSize = 10;
ent a[mSize];
int n;
n = addValues(a,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why are banking passwords so weak? Out of interest and because it infuriates me, I was wondering if SOmebody here might happen to work for a bank or otherwise know the answer to this.
I've used a few online banking sites (UK and N.America) and they universally enforce a password pattern of /[\w\d]{6,8}/ Sometimes, m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/341290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.