text stringlengths 8 267k | meta dict |
|---|---|
Q: ASP.Net MVC HandleError throwing 500 Internal Server Error I have the following HandleError filter on my controller:
[HandleError(ExceptionType = typeof(ArgumentException), View = "DestinationError")]
I've set-up the Web.Config so that customErrors are on. The problem I'm having is that the HandleError filter is wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I emulate "classes" in JavaScript? (with or without a third-party library) How can I emulate classes (and namespaces) in JavaScript?
I need to create a JavaScript library and have limited experience with the language. I always thought that it had native support for classes, but it is less related to Java tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: JavaScript function not responsive I have the following code, which is the core part of my small AJAX application. I am not getting any errors, it is just that nothing happens. I am guessing there is a more efficient way to do what I am trying to do.
Here is the code:
var xmlHttp
var layername
function update(laye... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine two LINQ queries? I think I am having a mental block but can someone please enlighten me on how to combine these two LINQ statements into one?
/// <summary>
/// Returns an array of Types that implement the supplied generic interface in the
/// current AppDomain.
/// </summary>
/// <param name="interfaceType... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Resolving compiler error CS1519: Invalid token ',' in class, struct, or interface member declaration I'm working on an ASP .NET 2.0 site which uses a Web Application project file, and therefore compiles to a dll rather than deploying the source code as you do with the older style Web Site projects.
The site works fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SQL Reporting Services Express: datasource to external server Using SSRS 2008 Express Edition, is it possible to create a datasource that connects to an external SQL server, or is it artificially limited to same SQL Server and instance of that Reporting Services engine?
A: I figured out myself. You can not define... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php and mysql searching and passing variables problem I have the following code:
http://www.nomorepasting.com/getpaste.php?pasteid=22615
Which is called by the javascript mentioned in this question:
My problem is that I do not seem to be able to pass $query, as in nothing seemingly happens when I call this file by i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIS6 serving unregistered MIME Types I have an IIS6 web server (on Win2003) is having a strange behavior which I guess is some undocumented "feature" ...
It serves SVG files (extension .svg) without having it registered on the IIS metabase. It does not have the * mime type either.
For this request:
GET /basic/file1.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL and PHP unicode problems I have the following UTF-8 file exported from a microsoft access file
http://www.yousendit.com/download/TTZtT214SU84Q1FLSkE9PQ
I have ensured my mysql database is utf8 with the status; command for both client and server. I insert the above file into my database with the following comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating singleton factory String fullName = PATH + "." + name;
Class cl= Class.forName(fullName);
if(name.equalsIgnoreCase("MobileSearch")){
if(msearchType==null){
msearchType=(SearchInterface)cl.newInstance();
}
return msearchType;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIS6 - How do I redirect users to another site for every page with a few exceptions? I have a website setup in IIS 6, let's say it's called http://www.this.com.
I have setup a redirection for this website to http://www.that.com which maintains the directory structure and query parameters as follows:
http://www.that.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I speed up the opening of a WPF window in a VS add-in? I have a Visual Studio add-in which opens a modal WPF window.
My problem is that the first time round, it takes 4 seconds for the window to appear which is a clear disservice to the client. So I'm wondering if there is a way to optimize this away?
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I repeat an edit on multiple lines in Vim? I'm aware that in Vim I can often repeat a command by simply adding a number in front of it. For example, one can delete 5 lines by:
5dd
It's also often possible to specify a range of lines to apply a command to, for example
:10,20s:hello:goodbye:gc
How can I perfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "158"
} |
Q: How to design a good "progress panel" For tasks that will take more than a few seconds, a good user interface, in my opinion, should provide a progress bar along with appropriate information on the progress of the operation. (Microsoft kindly provide User Interface Guidelines on this topic, but I want a status panel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing very large XML documents (and a bit more) in java (All of the following is to be written in Java)
I have to build an application that will take as input XML documents that are, potentially, very large. The document is encrypted -- not with XMLsec, but with my client's preexisting encryption algorithm -- wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What strategy should I take now that MS will no longer support LINQ to SQL? Please if you have used NHibernate and Entity Frameworks, please contrast your experiences.
A: You might also consider looking at Castle ActiveRecord, which is a layer on top of NHibernate. It makes the whole ORM thing sparkle, in my opini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: log4net does not log when my web app is packaged deployed I have a web app that uses log4net to log errors to a log file.
It works well when I publish my website via xcopy but when I build a package installer, log4net does not appear to work when remote users access my site.
I use impersonate=true in my web.config a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is Microsoft OSLO? Is it a DSL generation tool or natural query language?
A: ”Oslo” is the codename for Microsoft’s forthcoming modeling platform. Modeling is used across a wide range of domains and allows more people to participate in application design and allows developers to write applications at a much hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Global member vs. passing parameters I have a ASP.NET project, in which I have a method with 10 local variables. This method calls about 10 other methods. 3 of the called methods need all the variables. Is it considered good practice to turn all those variables into global members, and then they don't have to passe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Determine who/what reserved 5.5 GB of virtual memory in w3wp.exe On my machine (XP, 64) the ASP.net worker process (w3wp.exe) always launches with 5.5GB of Virtual Memory reserved. This happens regardless of the web application it's hosting (it can be anything, even an empty web page in aspx).
This big old chunk of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Filtering Sphinx search results by date range I have Widget.title, Widget.publish_ at, and Widget.unpublish_ at. It's a rails app with thinking_sphinx running, indexing once a night. I want to find all Widgets that have 'foo' in the title, and are published (publish _at < Time.now, unpublish _at > Time.now).
To get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Show all compile errors in FlexBuilder? Is it possible to make FlexBuilder show all compile errors in all files? FlexBuilder does not show errors in Action Script files, that are not referenced. Also very often I fix a problem just to see new problems pop up after compiling the whole project although these errors ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to setup compatible code environment between VxWorks 5.5 and 6.x? We have an existing VxWorks 5.5 project and want to port it to VxWorks 6.6.
VxWorks 6.x has a bunch of new capabilities (MMU, RTPs, etc...) which we don't want to use at this point since it would complicate the porting effort.
How do we specify th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linker error after porting C++ application from VC6 to VS2005 I am getting an error while porting my application from VC6 to Visual Studio 2005.
Does anyone have any idea what this means?
mfcs80.lib(dllmodul.obj) : error
LNK2005: _DllMain@12 already defined
in MSVCRT.lib(dllmain.obj)
A: From http://support.mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find the most occurring number in a List Is there a quick and nice way using linq?
A: How about:
var most = list.GroupBy(i=>i).OrderByDescending(grp=>grp.Count())
.Select(grp=>grp.Key).First();
or in query syntax:
var most = (from i in list
group i by i into grp
orderby grp.Count() de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: create own plugin for Thunderbird or Zarafa? I want to enhance my thunderbird (or zarafa), so that i can rightclick on a mail, and get a dialog, where i can fill in some information (like an article reference, an issue number or an invoice) and press "send", and this information alongside with the email and (logged-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I display Arabic data in Crystal Reports? I am using Crystal Reports 10. The reports are obtaining data from an Oracle 10G database. We have some data in Arabic. When I try to display the Arabic data it is showing as ?.
Any ideas on what I can do to display this correctly?
A: I've never used crystal reports... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: XML Commenting tips for C# programming Good morning, afternoon, evening or night (depending on your timezone).
This is just a general question about XML commenting within C#. I have never been very big into commenting my programs, I've always been more of a verbose variable/property/method namer and letting the code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to detect deadlock whith Asio library? i have little problem with boost::asio library. My app receive and process data asynchronously, it create threads and run io_service.run() on each of them.
boost::asio::io_service io;
boost::thread_group thread_pool;
...
int cpu_cnt = get_cpu_count();
for (int i = 0; i < cp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I get the current editor in visual studio 2008 using C# I'm writing an addin for VS 2008 in C# and I want to know what kind of editor/designer "scope" is open (for example VS Editor/VB Editor"). Can I catch the event where the scope changes?
A: I can not try it right now, so take with a grain of salt:
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use MSVC intrinsics to get the equivalent of this GCC code? The following code calls the builtin functions for clz/ctz in GCC and, on other systems, has C versions. Obviously, the C versions are a bit suboptimal if the system has a builtin clz/ctz instruction, like x86 and ARM.
#ifdef __GNUC__
#define clz(x)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How does 'LOAD DATA INFILE' work in statement-based replication? In MySQL, using statement based replication I assume that every SQL statement gets executed on the slave exactly the same way as on the master. However, when I run the statement:
LOAD DATA INFILE 'filename' INTO SomeTable;
I'm not sure if the file nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a way to run a view inside a partial I know this is odd. but I can't figure other ways to do what I need.
I have a controller: report and a view: report.
Also I have a view that acts as a dashboard where I can see several zones (partials).
I need to add this report view to my dashboard but don't know how.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF Memory Usage Issue when using using session beans I am working on an application that has a navigation tree which is a session bean.
Every time I invoke the page that contain this bean, my memory usage will increase. However, after few hours of inactivity, the memory still isn't freed. Are there any ideas why th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: tool analyzing log4net logs Is there a tool which can be used to analyze log4net logs.
Particulary I would like to extract two method calls by thread id and analyze the duration between the two, to create some statistics of call duration.
Plus this over multiple (100x10Mb) files.
I suppose grep would also do it.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF Docking Manager with Databinding support Does anyone know about a Docking Control like Visual Studio for WPF, where Databinding for the Panes is supported?
I tried the DockManager from Infragistics and from Actipro, but they lack this support.
For example, the Panes for the content need to be bound through Datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how do I pass null to int column in linq How do we assign null value to int column in LINQ.
eg.
SQLDBDataContext sqlD = new SQLDBDataContext();
var result = from p in sqlD.loadsRadius(Convert.ToInt32(Request["radius"]), .....
here if Request["radius"] is null gives an error.
I could pass 0 via this but I need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I deal with quote characters when using cmd.exe I'm trying to do this:
cmd.exe /C "C:\Program Files\Somewhere\SomeProgram.exe" > "C:\temp\Folder Containing Spaces\SomeProgram.out"
However, I have problems which are down to the way cmd.exe works. If you read the help for it, it handles " characters in a speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: How is Domain Driven Design different from just using a specification? I read that Domain Driven Design is about concentrating on the problem domain instead of concentrating on the software. They say that it is easier to solve the complexities of the problem domain than the complexities of the software, because afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Merge 2 GetText files I have two medium-sized web applications that I'm merging into one. They are both localized with GetText and have large amout of common strings, so merging them manually would be extremely annoying. What is the fastest way to merge the two PO files?
A: I'm sure msgmerge can be coerced into doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/355994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you test for the existence of a user in SQL Server? I'd like to drop a user in a SQL Server script but I'll need to test for existence first or I'll get script errors. When dropping tables or stored procs, I check the sysobjects table like so:
IF EXISTS (
SELECT *
FROM sysobjects
WHERE id = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to erase elements from boost::ptr_vector So I'm trying to get rid of my std::vector's by using boost::ptr_vector. Now I'm trying to remove an element from one, and have the removed element deleted as well. The most obvious thing to me was to do:
class A
{ int m; };
boost::ptr_vector<A> vec;
A* a = new A;
vec.pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Singleton Factory method Is it possible to have a singleton in a factory method? I have many domains using the factory method. How do I work around with this. Please help me with an example.
A: In this example, I believe you would want to synchronize your getInstance() method to ensure two threads do not simultaneo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Have ReSharper keep 'using System;' when optimizing usings I was wondering if there is some option to keep ReSharper from removing just the using System; directive? Perhaps this is configurable somewhere?
Also, is there a way to have ReSharper sort the remaining directives just as Visual Studio 2008 does it (alphabe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: iPhone - Getting Started I have found the "Getting Started" documents for developing apps on iPhone.
*
*I wanted the community's opinion on what I should know/learn (in terms of languages or concepts)?
*How long would it take for a moderate programmer to learn and build an app that manages a list, connects to ce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Algorithm for detecting "clusters" of dots I have a 2D area with "dots" distributed on this area. I now am trying to detect "clusters" of dots, that is, areas with a certain high density of dots.
Any thoughts on (or links to articles with thoughts on) how to elegantly detect these areas?
A: How about a morphology a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Element-in-List testing For a stylesheet I'm writing (actually for a set of them, each generating a different output format), I have the need to evaluate whether a certain value is present in a list of values. In this case, the value being tested is taken from an element's attribute. The list it is to be tested agai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to find out the TabSelection I have using the following code for developing tabs.
$(document).ready(function() {
$('#container-1').tabs();
}
....
<div id="container-1">
<ul>
<li><a href="#fragment-1"><span>Home</span></a></li>
<li><a href="#fragment-2"><span>Contact</span></a></li>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Viability of C#/.NET as the new standard game dev platform? For a long time now C++ has been the dominate game development language. Many AAA quality 3D engines are available to fit any budget.
My question is, with the rise of XNA, has C# and the .NET framework been positioned well enough to take over as the new st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Is it possible to have an animation appear on WPF NavigationWindow? I have a NavigationWindow which hosts a series of Pages. For design reasons the Pages are fixed at 780x580 but the NavigationWindow can be set to maximize, leaving a lot of black background around my Pages.
I would like to show a fairly simple, u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Deploying Flex Projects Leveraging Imported Web Services I'm sure there's a simple explanation for this, but I haven't had much luck at finding the answer yet, so I figured I'd put the word out to my colleagues, as I'm sure some of you've run into this one before.
In my (simple) dev environment, I'm working with a h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to compute the nth root of a very big integer I need a way to compute the nth root of a long integer in Python.
I tried pow(m, 1.0/n), but it doesn't work:
OverflowError: long int too large to convert to float
Any ideas?
By long integer I mean REALLY long integers like:
11968003966030964356885611480383408833... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: linq to xml: how to select the value from elements I need return a list of the element <AssetText>. My query below only returns back the first AssetText. Any thoughts much appreciated.
var q = from c in xDoc.Descendants("Product")
where (int) c.Element("ProductView").Element("ViewId") == 44
select (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to wait in bash for several subprocesses to finish, and return exit code !=0 when any subprocess ends with code !=0? How to wait in a bash script for several subprocesses spawned from that script to finish, and then return exit code !=0 when any of the subprocesses ends with code !=0?
Simple script:
#!/bin/bash
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "727"
} |
Q: What is the best approach to deploy an ASP.NET web app on multiple servers in a clustered environment I have 6 servers that i need to deploy my ASP.NET web application to. While deploying enhancements, I usually remove 3 from the cluster, deploy the app, put them back in rotation, and remove the other 3 and do the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MOSS Domain Configuration We are having some issues getting SharePoint to work as we want it to.
We have an enterprise MOSS configuration on our domain and have the entry http://intranet pointing to it on port 80.
We also have another site collection and have pointed an internet domain name http:/nww.oursector.nhs.u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactor nested IF statement for clarity I want to refactor this mumbo jumbo of a method to make it more readible, it has way to many nested IF's for my liking.
How would you refactor this?
public static void HandleUploadedFile(string filename)
{
try
{
if(IsValidFileFormat(filename)
{
int folderID ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Assembly binding problems in .NET I am writing a .NET library that for various reasons cannot be registered in the GAC.
This dll (let's call it SDK.dll) depends on other DLLs in order to be loaded.
When writing a program that uses this SDK.dll, I noticed that my program failed loading the dll with a FileNotFoundExce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can you automatically remove trailing whitespace in vim I am getting 'trailing whitespace' errors trying to commit some files in Git.
I want to remove these trailing whitespace characters automatically right before I save Python files.
Can you configure Vim to do this? If so, how?
A: Copied and pasted from http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "219"
} |
Q: Can I extend a class using more than 1 class in PHP? If I have several classes with functions that I need but want to store separately for organisation, can I extend a class to have both?
i.e. class a extends b extends c
edit: I know how to extend classes one at a time, but I'm looking for a method to instantly exte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "178"
} |
Q: Python FastCGI under IIS - stdout writing problems I'm having a very peculiar problem in my Python FastCGI code - sys.stdout has a file descriptor of '-1', so I can't write to it.
I'm checking this at the first line of my program, so I know it's not any of my code changing it.
I've tried sys.stdout = os.fdopen(1, 'w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: target search in MS Access In MS Excel there is a tool for an iterative calculation of one cell given a condition in an other connected cell (target search is my obvisoly very poor translation from Swedish). I now want to do this whatever-it-is-called in MS Access. Any hint or at least a correct English term would b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF GridView with a dynamic definition I want to use the GridView mode of a ListView to display a set of data that my program will be receiving from an external source. The data will consist of two arrays, one of column names and one of strings values to populate the control.
I don't see how to create a suitable cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Python coding standards/best practices In python do you generally use PEP 8 -- Style Guide for Python Code as your coding standards/guidelines? Are there any other formalized standards that you prefer?
A: I stick to PEP-8 very closely.
There are three specific things that I can't be bothered to change to PEP-8.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: OutputCache and recording unique views? Image i have a view that is cached with the OutputCache attribute but i still need to increment a counter that records that the page has been viewed, how could i do it?
I thought about creating my own Custom ActionFilterAttribute, and using Action Filter Order of Execution to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: create asp.net a-z list I could do this myself given time but does anyone have a nice asp.net implementation of an a-z list coming from a sql query. I would like it to come in the form:
A
aardvark
anagram
apple
B
barry
brown....
That is with each entry being a link.
A: Whatever your sql is, just add Upper(Substring... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: booleans with PHP Dup of Some Basic PHP Questions
Hello,
I have a heap of tinyint fields in a mysql database I need to show with PHP. At the moment I am doing something like this:
if ($row['PAYPAL_ACCEPT'] == "1"){
$paypal = "Yes";
else
$paypal = "No";
}
For each field, which is tedious and seems like there sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to write a unix filter that outputs only a line every N lines Suppose to feed the filter standard input with these line:
line 1
line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10
It would be nicer if someone tell me how to write a script that prints only every 4 lines, in the case of the example ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Designing Address validation for app I am planning to design an address validation for users registering in my app. Possibly validating by zipcode and state.
Any idea how to handle addresses from around the globe?
Do i need to insert all the zipcodes in the database and then validate the address. Any possible sugges... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataTrigger where value is NOT null? I know that I can make a setter that checks to see if a value is NULL and do something. Example:
<TextBlock>
<TextBlock.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding SomeField}" Value="{x:Null}">
<Setter Property="TextBlock.Text" Val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "185"
} |
Q: Which approach produces the shorter tour in the TSP problem: nearest neighbour or genetic algorithms? Over the last few days I have noted a few web sites that demonstrated TS solution using genetic algorithms.
Which is approach produces the shorter tour in the TSP problem: nearest neighbour or genetic algorithms?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Should I use `!IsGood` or `IsGood == false`? I keep seeing code that does checks like this
if (IsGood == false)
{
DoSomething();
}
or this
if (IsGood == true)
{
DoSomething();
}
I hate this syntax, and always use the following syntax.
if (IsGood)
{
DoSomething();
}
or
if (!IsGood)
{
DoSomething();
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Moore’s Law Problem Suppose you need to run a program on the world’s fastest supercomputer which will take 10 years to complete. You could:
*
*Spend $250M now
*Program for 9 years, Moore’s law speedup (4,000x faster), spend $1M in 10years, complete in 2 weeks.
What is the optimum strategy?
Question from "Long ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: simple music or tunes via HTML? I'm looking for a simple way to put up musical "tunes" on a website.
So here's an analogy to explain my question:
Let's say I want to put up a couple of big triangles as a picture on my web page. I can either draw a bitmap and save as GIF/JPG/PNG, put it up somewhere on the internet, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Form with Hidden Tags to cybercart- bring it up on the same page? What I want to do is basically this: on ONE page, my customers can click a VIEW CART link and the contents of their cart shows below on that same page. Here is my basic link form:
<FORM METHOD=post ACTION="http://www.123websiteservices.com/cgi-bin/cy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to return status flag and message from a method in Java I have a deceptively simple scenario, and I want a simple solution, but it's not obvious which is "most correct" or "most Java".
Let's say I have a small authenticate(Client client) method in some class. The authentication could fail for a number of re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Remote performance monitor Fails to retrieve GC heap Hi*,I am using the .NET Compact framework Remote Performance Monitor from the .net 3.5 compact framework powertoys.It is able to run an applications and get statistics from it, but after a while it fails to vieuw the GC heap on the platform with this exception:htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Have we given up on the idea of code reuse? A couple of years ago the media was rife with all sorts of articles on
how the idea of code reuse was a simple way to improve productivity
and code quality.
From the blogs and sites I check on a regular basis it seems as though
the idea of "code reuse" has gone out of fash... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is partial class template specialization the answer to this design problem? Say you have a class who's job it is to connect to a remote server. I want to abstract this class to provide two versions, one that connects through UDP and the other through TCP. I want to build the leanest runtime code possible and instead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: BlackBerry threading model I've read a lot of comments mention in passing that the BlackBerry threading model deviates from the Java standard and can cause issues, but no amount of googling has enlightened me on what this means exactly.
I've been developing a fairly large business application for the BlackBerry and,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: GWT - GXT - How to get Radio Button Value? I am using GWT (Google Web Toolkit) 1.5.3 et GXT (ExtJS) 1.2
I just want to create a simple form with some radio buttons generated after a RPC call, to get some values
Code:
final FormPanel simple = new FormPanel();
simple.setFrame(true);
simple.setWidth(350... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: scripted files download under Windows I'm about to be forced to write a script to download some number of files under Windows XP. The machines the script will be run at are all behind a proxy, and the proxy settings are entered into the IE configuration.
What came to my mind was either to somehow call IE from the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can't add all files to git due to permissions I want to add all the files in the current directory to git:
git add .
error: open(".mysql_history"): Permission denied
fatal: unable to index file .mysql_history
That's fine. That file happens to be in this directory and owned by root. I want to add all other files. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: OpenCL: does it play well with OpenMP, can I connect other languages to it, etc The 1.0 spec for OpenCL just came out a few days ago (Spec is here) and I've just started to read through it. I want to know if it plays well with other high performance multiprocessing APIs like OpenMP (spec) and I want to know what I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Build dependency tree from csproj files I'm currently using msbuild for a solution of over 600 projects.
Imagine I change the code for 1 library that is used by 10 projects. Instead of providing all 600 projects to msbuild and let it compile all of them and figure out the dependencys. I was wondering if there wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problems storing numeric data in text columns - SELECT...BETWEEN A few years ago I worked on a system where a numeric primary key was stored in a [SQL Server] varchar column, so I quickly came unstuck when querying with a BETWEEN operator:
SELECT ID FROM MyTable WHERE ID BETWEEN 100 AND 110;
Results:
100
102
103
10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I override hard-coded configuration in my Perl program? I have a Perl script that sets up variables near the top for directories and files that it will use. It also requires a few variables to be set as command-line arguments.
Example:
use Getopt::Long;
my ($mount_point, $sub_dir, $database_name, $database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular Expression to Extract HTML Body Content I am looking for a regex statement that will let me extract the HTML content from just between the body tags from a XHTML document.
The XHTML that I need to parse will be very simple files, I do not have to worry about JavaScript content or <![CDATA[ tags, for example.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Find all unused variable Normally it's easy to see unused variables in Netbeans, just a grey squiggly line.
But how would I find all of these unused variables in my project or of a single class?
Reason: I'm debugging a code base which had lots of copy and paste, but it wasn't done carefully. There's many bug of no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: JavaScript/Greasemonkey: Avoiding FireFox Security Warning when Submitting a Form from a Secure Page I'm writing a Greasemonkey script to connect two company-internal webpages. One is SSL, and the other is insecure and can only be accessed via a POST request. If I create a hidden form on the secure page and submit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: yahoo autocomplete I'm kind of like stuck trying to implement YUI autocomplete textbox. here's the code:
<div id="myAutoComplete">
<input id="myInput" type="text" />
<div id="myContainer"></div>
</div>
<script type="text/javascript">
YAHOO.example.BasicRemote = function() {
oDS = new YAHOO.util.XHRDataSource("../... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Excel Interop - Efficiency and performance I was wondering what I could do to improve the performance of Excel automation, as it can be quite slow if you have a lot going on in the worksheet...
Here's a few I found myself:
*
*ExcelApp.ScreenUpdating = false -- turn off the redrawing of the screen
*ExcelApp.Calcu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How to return an nvarchar(max) in a CLR UDF? Assuming following definition:
/// <summary>
/// Replaces each occurrence of sPattern in sInput with sReplace. This is done
/// with the CLR:
/// new RegEx(sPattern, RegexOptions.Multiline).Replace(sInput, sReplace).
/// The result of the replacement is the return valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Unnecessary action pane items in my MMC snap-in I am developing a MMC 3.0 snap-in. I have custom actions to be displayed in the right had side MMC action pane, which I have done using
ParentFormView.SelectionData.ActionsPaneItems.Add(CustomAction)
Things are working fine so far.
My problem is - Windows by default... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delphi Menu Merging problem I'm trying to merge two main menus together, but am having problems getting the right result with sub-items. I'm using the GroupIndex property on my MenuItems to control the merging/insertion.
Menu1 (with groupindices) is like this
*
*File=10
*
*Open=11
*Close=12
*Edit=20
*
*C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the preferred URL to add an entity that is not an aggregate root? Example: an Order object (aggregate root) has a collection of OrderLine objects (child entities). What's the URL add an OrderLine to an Order? Take into consideration the difference between using the aggregate roots' controller and having a sep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Positioning, want to make content's width fixed when window is resized. I have a div with two nested divs inside, the (float:left) one is the menu bar, and the right (float:right) should display whatever content the page has, it works fine when the window is at a maximum, but when i resize it the content is coll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: debugging a windows service, adding db logging to catch cluase a bad idea? I have a windows service I am trying to debug.
Is it a bad idea to add error logging in the Catch() clause?
My logging is using a database to log the errors btw.
A: I'm not 100% clear and what you're trying to do as you mention both debuggin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you add a scroll bar to an expander panel? I have a stack panel inside of an expander panel that I programaticaly adds check boxes to. Currently the exanpander stops at the bottom of the form, but the stack panel keeps growing. I would like the stack panel to be bounded by the expander and scroll to display... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find SPID of a executing SqlAgent job using SMO With SMO objects using Server.JobServer.jobs to get a list of jobs, I can find the status of each job. For those that are currently executing I would like to find the SPID it is executing on. I can also get a list of the server's processes using Server.EnumProc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/356418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.