text stringlengths 8 267k | meta dict |
|---|---|
Q: How to change default database in SQL Server without using MS SQL Server Management Studio? I dropped a database from SQL Server, however it turns out that my login was set to use the dropped database as its default. I can connect to SQL Server Management Studio by using the 'options' button in the connection dialog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "182"
} |
Q: Split a 'Decimal' in VB.NET I am sure this is a very simple problem, but I am new to VB.NET, so I am having an issue with it.
I have a Decimal variable, and I need to split it into two separate variables, one containing the integer part, and one containing the fractional part.
For example, for x = 12.34 you would e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to write macro for Notepad++? I would like to write a macro for Notepad++ which should replace char1, char2, char3 with char4, char5, char6, respectively.
A: I recorded a macro and I found it in %APPDATA%\Notepad++\shortcuts.xml. It looks like posted in the first post of this thread.
I use NPP Ver. 5.9.6.2 with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Relative path to a stylesheet in Visual studio not working in preview I'm assuming this is an easy question, but I'll be darned if I can find the answer.
I have a website in Visual Studio 2008. The paths to the stylesheets (and images) are in the following format /css/stylesheetname.css
At the root of the web projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Abstract class with all concrete methods Are there some practical programming situations for someone to declare a class abstract when all the methods in it are concrete?
A: An abstract class is a class that is declared abstract - it may or may not include abstract methods. They cannot be instantiated so if you have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Why would HMAC SHA-1 return a different digest with the same input? I am trying to build a working encrypted signature for the Amazon S3 web service, writing a connection library using Objective C.
I have run into HMAC SHA-1 digest problems with the ObjC code, so I'm putting that to the side and looking at existing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I include SessionID in log files using log4net in ASP.NET? I'm new to log4net, so hopefully this is a really easy question for someone?!
I've got log4net working with the RollingLogFileAppender for my web application. I'm using logging to try and find where some performance issues are coming from. In order... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to do 301 redirects in asp.net from old Apache mod_rewrite style urls when moving a site from php to asp.net? I have an existing site in php running on Apache using the mod_rewrite plug-in. In other words, I currently have urls like www.example.com/section/subsection/ which Google and others have indexed.
Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to upload files to password protected HTTPS site using CURL? How can I upload files to a HTTPS site using CURL?
The site is also password protected.
What's the command line used to upload for that particular site?
A: Yes, you can,
$ curl --user login:password --upload-file your.file.txt https://the.url/where/th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Adding Constant where clasue to Linq to SQL mapping Is is possible to put a constant where clause to a Linq to SQl mapping.
I really don't want to do this at the query level or in my Data Access Object as these are currently completely generic and would like to keep it that way to make life for the other developers ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Serializing a Python object to/from a S60 phone I'm looking for a way to serialize generic Python objects between a CherryPy-based server and a Python client running on a Symbian phone.. Since pyS60 doesn't implement the pickle module, how would you do it?
I know about Cerealizer but it requires you to register clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I prepare my code for future changes? Should I prepare my code for possible/predicted future changes so that it's easier to make these changes even if I don't really know if these changes will be required anytime?
A: yagni.
http://en.wikipedia.org/wiki/YAGNI (*inserted by friendly editor :-) *)
fix the bugs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I add a guard ring to a matrix in NumPy? Using NumPy, a matrix A has n rows and m columns, and I want add a guard ring to matrix A. That guard ring is all zero.
What should I do? Use Reshape? But the element is not enough to make a n+1 m+1 matrix.
Or etc.?
Thanks in advance
I mean an extra ring of cells that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Updating from Java 1.4.2 to Java 6 (both Sun VMs) results in slower performance I've just upgraded some old Java source which has been running on a Sun Java 1.4.2 VM to Sun Java (JRE) 6 VM. More or less the only thing I had to change was to add explicit datatypes for some abstract objects (Hashmap's, Vector's and so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I remove the text before and after a particular character? I have been trying to remove the text before and after a particular character in each line of a text. It would be very hard to do manually since it contain 5000 lines and I need to remove text before that keyword in each line. Any software that could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: DataGridView, BindingList, DataGridViewComboBoxColumn So, I have a DataGridView using as datasource a BindingList
DataGridView.DataSource = new BindingList<Car>{...}
Where
public class Car
{
public ColorName Color { get; set;}
}
with
public class ColorName
{
public int Id {get; set;}
public string N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I return the current action in an ASP.NET MVC view? I wanted to set a CSS class in my master page, which depends on the current controller and action. I can get to the current controller via ViewContext.Controller.GetType().Name, but how do I get the current action (e.g. Index, Show etc.)?
A: Use the ViewCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "297"
} |
Q: How to ignore Unexpected element situation in JAXB? How can one ignore Unexpected element situation in JAXB ans still get all other kind of javax.xml.bind.UnmarshalException?
obj = unmler.unmarshal(new StringReader(xml))
Notice i still want to get the obj result of the xml parsing.
A: Also, JAXB 2.0 automatically ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Switching from python-mode.el to python.el I recently tried switching from using python-mode.el to python.el for editing python files in emacs, found the experience a little alien and unproductive, and scurried back. I've been using python-mode.el for something like ten years, so perhaps I'm a little set in my ways... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to create a mock object based on an interface and set a read-only property? I'm new to TDD. So any help would be appreciated. I'm using NUnit and Rhino mocks.
How can I set the ID value to 1 in my mock object?
I had a look at this: http://www.iamnotmyself.com/2008/06/26/RhinoMocksAndReadOnlyPropertyInjectionPart... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scaling exercises to practice I was trying to find online some exercises to practice scaling techniques (memchached, SQL Optimization, sharding dbs), but I could only find descriptions of these techniques, not any project on which to try them.
This link with slides on scaling techniques, is an interesting one, as it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: asp.net best practice string concatenation I am trying to find the best practice for generating and outputting html which would require a database query first to obtain the info. Currently in the aspx page I have a div with runat server:
<div runat="server" id="leaflet"></div>
Now just as a start to do a bit of tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what is the easiest way to retain values of fields while switching from page to page I am using Multiview. And I am switching between views. Each view contains lots of fields. I am going to another view from the current view to add some data. And after adding data from the new view, I am returning to the previous vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SubString function in vb.net throwing Exception FromIp contains "192.168.1.1". I want to get the last number, but I can't figure out what's wrong here:
Dim str As String
str = FromIP.Text.Substring(FromIP.Text.LastIndexOf("."), FromIP.Text.Length).ToString()
MessageBox.Show(FromIP.Text.Length)
A: Edua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: oracle left outer joins not showing right null values i'm having an issue with creating a query in oracle which doesnt seem to want to join on missing values
the table i have is this:
table myTable(refnum, contid, type)
values are:
1, 10, 90000
2, 20, 90000
3, 30, 90000
4, 20, 10000
5, 30, 10000
6, 10, 20000
7, 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I detect the DLLs required by an application? In a nutshell: I want to do the same thing "Dependency Walker" does.
Is there any Win32 API function which can enumerate the dependencies of a EXE and/or DLL file?
And is there any safe way to detect dependencies on ActiveX classes? (I doubt it is possible, but wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Carbide / Symbian C++ - Change Application Icon I am using Carbide (just upgraded to 2.0) to develop an S60 3rd Edition application.
I would like to know the easiest way to change the icon (both the application icon on the device menu and the icon at the top left of the main view) because I have the need to skin my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is it valid to expect a Java Portal Server to host 'standard' Java WebApps? It's been suggested that this might be a reasonable approach, in order to minimize changes to an existing server configurations, but is it actually valid/supported? I've not been able to find anything specific either way.
In practice, with a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I display default text if a Data View Web Part in Sharepoint has no data? I am trying to use the Data View Web Part in Sharepoint. There are many articles on the web related to populating it with data. My question is, what if the data source is empty? Is there a way to display a default message in this scenar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set a disabled TextBox's ForeColor to be the same as its BackColor in C# How do I set a disabled TextBox's current text color to be the same as its current background color in C#?
Simply doing txtLala.ForeColor = txtLala.BackColor does not seems to work.
A: This works:
txtLala.Text = "Red";
txtLala.BackColor = Syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ReSharper configuration in VS solution Anyone have experience with adding a ReSharper profile to the VS2008 solution and share between developers - would like to mimmick the behavior of CodeStyle Enforcer and how it 'follows' the solution.
Any thoughts?
Thanks
/Jasper
A: Look in Options / Languages / Common / Code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Calling onclick on a radiobutton list using javascript How do I call onclick on a radiobutton list using javascript?
A: The problem here is that the rendering of a RadioButtonList wraps the individual radio buttons (ListItems) in span tags and even when you assign a client-side event handler to the list item direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Proper use of HTTP status codes in a "validation" server Among the data my application sends to a third-party SOA server are complex XMLs. The server owner does provide the XML schemas (.xsd) and, since the server rejects invalid XMLs with a meaningless message, I need to validate them locally before sending.
I coul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do you manage external dependencies for your application? There are many types of external dependencies. Interfacing with external applications, components or services (e.g. Outlook to send emails, TWAIN or WIA for scanning, ActiveX objects and Web services for various purposes, and so on).
What is your strategy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I pass the same input to all the sql files only once at the start? I am calling 4-5 scripts from a file at once.
But I need to give only one input to the file in the first sql that I am calling.
That input will be the input for all the other sql files I have called after the first one.
Is there any way to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do static classes cause performance issues on multi-core systems? the other day a colleague of mine stated that using static classes can cause performance issues on multi-core systems, because the static instance cannot be shared between the processor caches. Is that right? Are there some benchmarks around proofing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: adding oracle's timestamp to query results yesterday you had taught me to query record history within a time range here.
What more I need is to add oracle's (historical) timestamp to the results as a column. Is it possible?
Thanks in advance.
A: Yes, in fact the answer to your previous question shows how:
SQL> sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make 'Reason' field always enabled in TFS I'm using Visual Studio Team System 2008 and I want to be able to have the 'Reason' field always enabled for work items. Currently, the 'Reason' drop down is only enabled when changing the 'State'. Once you perform a 'Save' the 'Reason' drop down becomes disabled.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Outlook XML View Definition Is there any complete Outlook XML View Definition, beside http://msdn.microsoft.com/en-us/library/aa140157(office.10).aspx, which is not complete and describes only Outlook 2002?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/362664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Security of Tomcat versus WebSphere versus WebLogic The company I work for sells a J2EE application that runs on Tomcat, WebSphere, or WebLogic. We have a customer that is trying to decide between Tomcat and WebSphere. They're leaning towards WebSphere because they're concerned that Tomcat has more security holes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I get an ListView item from the (X,Y) position? I am dropping something in a ListView in WPF. I need to know the item in the (X,Y) position I am dropping. How can I do this?
The WPF ListView doesn't have GetItemAt. I return to my original problem.
A: Done! Thanks to this article
http://www.codeproject.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does TDD apply well when developing an UI? What are your opinions and experiences regarding using TDD when developing an user interface?
I have been pondering about this question for some time now and just can't reach a final decision. We are about to start a Silverlight project, and I checked out the Microsoft Silv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to extract element id attribute values from HTML I am trying to work out the overhead of the ASP.NET auto-naming of server controls. I have a page which contains 7,000 lines of HTML rendered from hundreds of nested ASP.NET controls, many of which have id / name attributes that are hundreds of characters in lengt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL import wizard drops leading zero I've read all the posts about prefixing the numbers with ', and setting IMEX=1 in the connection string; nothing seems to do the trick for me.
Here's the setup: Excel column with mixed data - 99% numbers (some start with 0) 1% text.
PROGRAMATICALLY mporting into SQL Server 2005 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp.net CheckBox.Enabled = false problem Why on earth asp.net CheckBox doesn't render to a client-html if you set the Enabled property to False on the server-side ?
Purpose of having Enabled=false is simple - you don't want user to change the CheckBox sometimes. Thx for your help !
A: You want READONLY.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/362691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Nested structures/arrays initialization I have a structure that contains an arrays of another structure, it looks something like this:
typedef struct bla Bla;
typedef struct point Point;
struct point
{
int x, y;
};
struct bla
{
int another_var;
Point *foo;
};
I now want to initialize them in the glob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: c# using setters or getters from base class Is it recommended to set member variables of a base class to protected, so that subclasses can access these variables? Or is it more recommended to set the member variables to private and let the subclasses get or set the varible by getters and setters?
And if it is recomm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get gdb to ignore my shell window's size? This is part of our unit test flow. I run gdb with the --command option to have it execute commands from a text file. The output of gdb is then directed into a file, and that file is compared to a reference file. But the problem is, gdb uses the current shell window... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Building a keyboard-accessible web application How do you go about building a complete keyboard-accessible web application? Assuming that this for a controlled deployment environment (for use within an org) where access is restricted (not open to public).
Update: Forgot to mention that this is aimed at improving da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Are iframes considered 'bad practice'? Somewhere along the line I picked up the notion that using iframes is 'bad practice'.
Is this true? What are the pros/cons of using them?
A: They're not bad practice, they're just another tool and they add flexibility.
For use as a standard page element... they're good, becau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "310"
} |
Q: Java data object for bidirectional I/O I am developing an interface that takes as input an encrypted byte stream -- probably a very large one -- that generates output of more or less the same format.
The input format is this:
{N byte envelope}
- encryption key IDs &c.
{X byte encrypted body}
The output format i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IIS6.0 Application Pool Is there anyway how to check which website is being used with that pool without browsing each website and checks its assigned pool?
I have approximately 35 websites and I can't afford browsing the websites one by one....
Thanks
A: In the IIS Manager MMC, you can see the application pools nod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java memory model - can someone explain it? For years and years, I've tried to understand the part of Java specification that deals with memory model and concurrency. I have to admit that I've failed miserably. Yes' I understand about locks and "synchronized" and wait() and notify(). And I can use them just fine, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do you structure an infinitely scalable form using Javascript? I have a product registration form that allows the user to add additional product fields by clicking "add product". When the user clicks add product, Javascript creates new product field in an existing div.
I currently allow up to 10 products to be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do realloc and memcpy work? I have two questions.
*
*Do realloc() and memcpy() copy the entries in an array to another in a way faster than just iterating on each element O(N) ? If the answer is yes then what do you think is its complexity ?
*If the size allocated is smaller than the original size, does real... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: VS2008: Launching the executable for a project that isn't the active project in a solution In VS2008, Is it possible to launch the executable for a project that is not the active project in the solution? (i.e. its name is not in bold).
Not debugging it - just launching it. As far as I can see, you just have to drop ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS2008 Error After installing TFS Powertools I'm getting a weird error occassionally in VS2008. A colleague gets a similar error, we both noticed it after installing TFS PowerToys so I'm wondering if it's related.
Anyway the error is:
Team Foundation Error
Retrieving the COM class factory for component with CLSID{GU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should an interface that is inherited from base-class be implemented explicitly in subclass? My question is, if an interface that is implemented implicitly by extending a class that already implements it, should be explicitly implemented by the class, if the class wants to advertise the fact, that it fulfills the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Can you send dynamic data to a processing applet? I have an ajax page which pulls data from a database. I'd like to add a processing applet to visualize the data but i can't figure out how to update the visualization as the data changes. The idea is to be able to push new data into the visualization.
I'm not tied to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Subclipse and Tortoise SVN together Can these two SVN clients collaborate? I have my projects checked out with Tortoise, but now I would like to be able to use the SVN functionality (mostly updating and committing) from inside Eclipse. But the Subcipse doesn't see the SVN status of the files checked out by Tortoise.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Surface a .NET method as a UDF in Excel 2007, using a VSTO 2008 Add-in We have an existing add-in that we publish to users via click once. We would now like to use this as a vehicle to publish some of our existing C# methods directly into Excel so that the users can call them as a UDF.
For example - I have an assemb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to determine application root directory? I need to get all dlls in my application root directory. What is the best way to do that?
string root = Application.StartupPath;
Or,
string root = new FileInfo(Assembly.GetExecutingAssembly().Location).FullName;
And after that,
Directory.GetFiles(root, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Starting process from Web Application I am actually trying to start a process for winzip and zip a folder. This i am doing using the below code in vb.
Dim startInfo As New System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
Dim tempFileName As String
Try
startInfo = New System.Diagno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regexp that matches valid regexps Is there a regular expression that matches valid regular expressions?
(I know there are several flavors of regexps. One would do.)
A: As already said, you cannot describe regular expressions with a regular expression due to their recursive nature. You'll need a context free gramma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Force.com IDE - Eclipse Plugin doesn't work? I'm new to Apex and have just downloaded Eclipse to get to work
Eclipse SDK 3.3.2
I've followed the instructions on
http://wiki.apexdevnet.com/index.php/Force.com_IDE_Installation_for_Eclipse_3.3.x
and have added the Remote site:
http://www.adnsandbox.com/tools/ide/instal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: django is very slow on my machine I have a fresh install of django 1.0 and a simple page served from it takes 5 secs to load. On my colleague's computer it takes almost no time.
I start the server using
python manage.py testserver
I can see each GET request (PNGs and style sheets) take about half a second.
Anothe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: MFC AfxParseURL reverse function? Is there reverse function to MFC AfxParseURL (which creates URL from service type, port and so on)?
A: AfxParseURL is a wrapper around the InternetCrackUrl function in <wininet.h>. The reverse function is InternetCreateUrl, but MFC does not provide a wrapper for this.
You could ei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I export templated classes from a dll without explicit specification? I have a dll that contains a templated class. Is there a way to export it without explicit specification?
A: Are you looking into exporting an instantiation of a template class through a dll? A class along the lines:
typedef std::vector<in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: circular dependencies between dlls with visual studio I have a circular dependency between two functions. I would like each of these functions to reside in its own dll. Is it possible to build this with visual studio?
foo(int i)
{
if (i > 0)
bar(i -i);
}
-> should compile into foo.dll
bar(int i)
{
if (i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: CATIA-CAA CATNavigBox Resize Is it possible to change the size of the treeview window after it has been visualized?
My code looks like this:
_p2DNavViewer = NULL;
_p2DNavViewer = new CATNavigation2DViewer(this, "", CATDlgFraNoTitle | CATDlgWndNoDecoration |CATDlgWndChildMDI |CATDlgFraNoFrame, _width, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MYSQL and RDBMS I'm having difficulties to answer this question. Can someone help me?
Discuss the benefits of MYSQL and explain why it is gaining acceptance as the RDBMS of choice for many organizations worldwide.
A: Because it's free (or historically has been free) and gained critical mass on the on the open sourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How long before the line of business app in F# becomes the norm? With the recent news about F# being included with Visual Studio 2010, I got to thinking ... how soon before I see functional programming take hold in the usual "line of business app" space?
A: I would add the subjective tag to that one ;)
Personally, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What values to return for S_OK or E_FAIL from c# .net code? I'm implementing a COM interface that should return int values either S_OK or E_FAIL. I'm ok returning S_OK as I get that back from another call (Marshal.QueryInterface), but if I want to return a failure value what actual value do I use for E_FAIL?
(It's s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: nHibernate Share References? I'm getting the following exception when saving an object:
Found shared references to a collection
Does anyone know what this means?
A: In theory it means that you have 2 records which contain the same reference to another object. At the database level this is most likely a weak entit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.NET Session State Migration I was hoping someone could validate my assumptions before I recommend that my client upgrade from a 30/mo to a 80/mo hosting package.
Site: the site is a custom ASP.NET ecommerce site. the shopping carts are stored in the inproc session.
Problem during busy seasons like we are havin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get rid of blank pages in PDF exported from SSRS I have a two-page SSRS report. When I exported it to PDF it was taking 4 pages due to its width, where the 2nd and 4th pages were displaying one of my fields from the table. I tried to set the layout size in report properties as width=18in and height =8.5in.
It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "217"
} |
Q: Is Roles.IsUserInRole behaving as expected in the following simple scenario? In a custom role provider (inheriting from RoleProvider) in .NET 2.0, the IsUserInRole method has been hard-coded to always return true:
public override bool IsUserInRole(string username, string roleName) { return true; }
In an ASP.NET app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to get a lazy IEnumerable from an NHibernate query using ICriteria? I'm working with NHibernate and need to retrieve and process up to 2 million rows. Ideally, I could process each row - one at a time - without NHibernate loading all 2 million in memory at once (because, you know, that hurts).
I'd ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Circular Reference I'm looking for a good pattern to resolve the following circular reference in a Windows Form application:
*
*Assembly 1 contains a Windows Form with an Infragistics menu item ".Show"ing a Form in Assembly 2
*Assembly 2 contains a Windows Form with an Infragistics menu item ".Show"ing a Form in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Creating a child applet window from a parent applet How do I create an applet window outside the web browser from within an applet running in that browser?
A: You can open a new window with AppletContext.showDocument(). You'll need to have a page on the server with the HTML and all. You get the context from your ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open source C++ library for vector mathematics I would need some basic vector mathematics constructs in an application. Dot product, cross product. Finding the intersection of lines, that kind of stuff.
I can do this by myself (in fact, have already) but isn't there a "standard" to use so bugs and possible optimizat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Is there a Perl ORM with database reverse engineering? I’m looking for a Perl ORM library that has support for reverse engineering of the database schema. All I’ve found so far is
http://perlorm.sourceforge.net/
and it appears to have no reverse engineering support.
A: DBIx::Class has DBIx::Class::Schema::Loader wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP file being caught by .NET isapi I need to serve up a few .asp pages from within my ASP.NET site.
This ASP.NET site has a handler that allows us to serve up pages out of the database instead of finding them on disk (where the .asp files are located).
The problem appears to be that the .NET isapi (C:\WINDOWS\Micro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xpath query to select node when attribute does not exist? I want to select nodes for which a specific attribute does not exist. I've tried the Not() function, but it doesn't work. Is there a way for this?
Example:
The following Xpath query:
group/msg[not(@owner)]
Should retrieve the first node but not the 2nd one. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: how to use X509 certificates (to sign a file w/ simple verification, + other questions) I spent several hours yesterday trying to digitally sign a short file using an X509 certificate (one of the "freemail" certificates from thawte). I finally got openssl to sign it as an SMIME message, but I can't successfully veri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are uses of the C++ construct "placement new"? I just learned about the C++ construct called "placement new". It allows you to exactly control where a pointer points to in memory. It looks like this:
#include <new> // Must #include this to use "placement new"
#include "Fred.h" // Declaration of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Is it a good idea to have a factory class using generics to instantiate objects? Is it a good idea to have a factory class using generics to instantiate objects?
Let's say I have a class Animal and some subclasses (Cat, Dog, etc):
abstract class Animal
{
public abstract void MakeSound();
}
class Cat : Animal
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What database does Google use? Is it Oracle or MySQL or something they have built themselves?
A: And it's maybe also handy to know that BigTable is not a relational database (like MySQL) but a huge (distributed) hash table which has very different characteristics. You can play around with (a limited version) of Big... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "389"
} |
Q: In Java, what happens if you use Double.NaN in an operation? I have compiled code that erroneously tries to add a number and Double.NaN. I'm wondering if it's throwing an exception that's not getting caught? Does anyone know how that situation is handled?
Thanks.
A: Adding a number to NaN gives NaN. It isn't expe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Improving a Web Login Screen I'm trying to get some ideas about how to develop a web login screen. I'm using DynamicData Webforms, so most of powerful frameworks offers a lot of options, but I'll be very grateful to read your suggestions.
Thanks in advance
Edited:
beyond the functionality, I'll want to read your vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: image uploading in grails I am new to grails.I am doing web application that uploads the image from client side and it stores that in server.
My Gsp code is:
<g:uploadForm action="saveImage">
<input type="file" name="image">
<input type="submit" value="Submit">
</g:uploadForm>
My saveImage action in controller is:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Grouping rows of a datatable in VB asp.net 2.0 As the name suggests I am trying to group rows in a datatable. To go into further detail this table has identical rows except for one field(column). Basically what I am trying to do is put all the different fields of the identical rows and put them in single field whils... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Normalizing a list of items in MSBuild I am trying to get a list of all unit test assemblies under the root of my project. I can do this as follows:
<CreateItem Include="**\bin\**\*.UnitTest.*.dll">
<Output TaskParameter="Include" ItemName="Items"/>
</CreateItem>
However, this will find the same DLLs multiple ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Capture the Screen into a Bitmap I want to capture the screen in my code to get an image - like using the 'print screen' button on the keyboard .
Does anyone have an idea how to do this? I have no starting point.
A: // Use this version to capture the full extended desktop (i.e. multiple screens)
Bitmap screenshot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: WPF Template Binding in ToggleButton UserControl I'm developing a basic dip-switch user control as a personal learning exercise. Originally I had it set up where you could declare some custom color properties on the user control, and they would be used on elements inside the control.
However, I recenly discovered To... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to organize the folders containing the SQLAlchemy models I use SQLAlchemy at work and it does the job really fine. Now I am thinking about best practices.
For now, I create a module holding all the SQLA stuff :
my_model
|__ __init__.py
|__ _config.py <<<<< contains LOGIN, HOST, and a Meta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Filter IDictionary(Of TK, TV) to an IDictionary(Of TK, TV) with linq Something very basic seems to be escaping me.
Dim foo As New Dictionary(Of String, String)
foo.Add("key", Nothing)
foo.Add("key2", "something")
I wish to get a IDictiorany(Of String, String) back, with only elements that have a non empty value. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/362999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I'd like to have a clear report of non-updated files (because of conflicts) during a perforce update When I do an update and zillions of files are updated, I often miss the one that aren't merged because of conflicts. The only way I have is to go through all my changelists and look at file icons.
Isn't there a nicer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/363006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to reposition/resize the resource on the screen? I want to embed the native camera application into custom form.
The RECT r properties where I want to embed the camera are the following:
r.top = 26;
r.bottom = 220;
r.left = 0;
r.right = 320;
and this is the method which runs the native camera application:
HRESU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/363007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating large amount of mailboxes on Exchange 2003 I've got around 750+ users that I'm going to create mailboxes for. Should I sleep for a bit between creates to not overload the exchange server or does it not matter? I've read that the actual mailbox is not created until the user accesses it or they get mail. I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/363012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.