text string | meta dict |
|---|---|
Q: How can I unit test an MVC UserViewControl? I've been trying for a while now to write a unit test for a UserViewControl in ASP.NET MVC. I'd like to get to code that looks something like this:
[TestMethod]
public void HaveControlToDisplayThings()
{
var listControl = new ControlUnderTest();
var viewData = new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: os.walk without digging into directories below How do I limit os.walk to only return files in the directory I provide it?
def _dir_list(self, dir_name, whitelist):
outputList = []
for root, dirs, files in os.walk(dir_name):
for f in files:
if os.path.splitext(f)[1] in whitelist:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: Unsupported protocol: jndi with Websphere 6.1 when trying to access a file as a resource I have the problem, that getting a ressource from my archive failed with a MalformedURLException: unknown protocol: jndi
The archive is a war file and is deployed into Websphere successfully.
When I try to access some files insi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there ssh and scp tasks available for phing? I would like to do remote deployment from my build machine onto a server. The remoting can be done via ssh commands from a script, but I would rather use phing and a deploy.xml file that would do the automation.
What alternatives do I have to do ssh (and also scp) tas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I cleanly extract MySQL enum values in Perl? I have some code which needs to ensure some data is in a mysql enum prior to insertion in the database. The cleanest way I've found of doing this is the following code:
sub enum_values {
my ( $self, $schema, $table, $column ) = @_;
# don't eval to let the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which is fastest? Data retrieval Is it quicker to make one trip to the database and bring back 3000+ plus rows, then manipulate them in .net & LINQ or quicker to make 6 calls bringing back a couple of 100 rows at a time?
A: It will entirely depend on the speed of the database, the network bandwidth and latency, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Do you always use a second-level cache in Hibernate? Do you always use a second-level cache in Hibernate or do you first try it without and only use it when the performance goes down?
A: Make it work first, then make it fast. If you don't need caching, don't implement it.
A: In the applications where I've been, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Session in Asp.net When we add a variable to ASP.NET Session, where are those variables actually stored on the client side?
A: The client is given a cookie to identify it (ASP.NET_SessionId) but all the values are stored on the server.
If you use Firebug or Fiddler you can see this being set. You can see what the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: dbmetal visual metal error:"magma string must not be empty" I am just trying to generate the classes for linq to mysql with dbmetal / visual metal and keep running into the error:
"magma string must not be empty"...
I've googled, I've recompiled locally, checked the references etc. And I don't really want to star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do MOD_Rewrite rewrites invoke a second run through the rewrite rules? When a RewriteRule is executed by MOD_Rewrite will all the MOD_Rewrite rules be executed again for the newly generated request? Specifically in the following example, will this cause a loop?
RewriteCond Host: (?:www\.)?mysite\.com
RewriteRule ^(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disadvantages of automating a business process? What would be the disadvantages (if any) of automating business process for a Enterprise/organization?
A: *
*Loosing discretionary error checking, i.e. numbers that look out of line;
*Potentially, knowledge of how a process is operated could be lost if it is automat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Humble dialog vs MVC Why should I choose to use one instead of the other and in which cases?
I mainly focus on desktop applications and personally speaking I do find the humble dialog box more easy and natural to use.
A: In MVC, you would still use your "humble" dialog. Except all the business logic for it would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Microsoft.SqlServer.Management.Smo and its brothers works on SQL2000? As title, I need that to run an import script generated by SQL Server DB Publishing Tool. Would that work on Sql2000 server too? Also I have seen ppl reporting missing library issues related to GAC, which libraries I precisely need to include if I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help getting info across a UI thread and another thread in C# I have a server application that receives information over a network and processes it.
The server is multi-threaded and handles multiple sockets at time, and threads are created without my control through BeginInvoke and EndInvoke style methods, whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: View Code / Designer Missing in VS 2008 Very often when working on an ASP.NET web site, the options View Code and View Designer will be missing from the content menu in the code window, as well as missing from the View menu. They are only available in the context menu in Solution Explorer.
This happens when debuggi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why is _POST sometimes empty when a textarea is posted in PHP PHP 4.4 and PHP 5.2.3 under Apache 2.2.4 on ubuntu.
I am running Moodle 1.5.3 and have recently had a problem when updating a course. The $_POST variable is empty but only if a lot of text was entered into the textarea on the form. If only a short text is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Centre Text Relative to Available Space in CSS <div style="width: 300px">
<div id="one" style="float: left">saved</div><input type="submit" id="two" style="float: right" value="Submit" />
</div>
I would like div#one to be centred in the space between the left edge of the parent div and the left edge of the submit b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to ignore whitespace while reading a file to produce an XML DOM I'm trying to read a file to produce a DOM Document, but the file has whitespace and newlines and I'm trying to ignore them, but I couldn't:
DocumentBuilderFactory docfactory=DocumentBuilderFactory.newInstance();
docfactory.setIgnoringElementContent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Mac/Windows Switching About 2 years ago I dropped windows from my home PC and switched 100% to linux (fedora, then ubuntu) - The missus wasn't too happy but she got used to it and learned a thing or two. Then about 6 months ago I got myself a shiny new Macbook and since moving to OSX have never looked back; Unfortun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JBoss/EJB vs Symmetric DS I'm working on a project which is just about to start, and since I was busy with another one my colleagues went ahead and started working on the specs to the new one. When I came in, they had just chosen to do persistence with plain SQL (promptly accepted my suggestion to add Hibernate, tho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GWT Unit Testing TDD and Tooling I m just starting using gwt and so far so good, however after reading some sample code I wonder is it necesary to have a high level of test coverage? (I can see that most code is declarative and then add some attributes I can see the sense in checking so me particular attributes are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's the 'static void Main' equivalent in Flash? I am trying the FDT editor on a project that previously ran successfully in Flash CS3.
FDT builds and runs it successfully but the SWF is blank (white). I've tried a few viewers on the output file and it is actually blank.
One difference is that now my project does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why should I never use an unsafe block to modify a string? I have a String which I would like to modify in some way. For example: reverse it or upcase it.
I have discovered that the fastest way to do this is by using a unsafe block and pointers.
For example:
unsafe
{
fixed (char* str ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python Find Question I am using Python to extract the filename from a link using rfind like below:
url = "http://www.google.com/test.php"
print url[url.rfind("/") +1 : ]
This works ok with links without a / at the end of them and returns "test.php". I have encountered links with / at the end like so "http://www.g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ViewData.Model in partial is null In my main page (call it index.aspx) I call
<%Html.RenderPartial("_PowerSearch", ViewData.Model);%>
Here the viewdata.model != null
When I arrive at my partial:
<%=ViewData.Model%>
Says viewdata.model == null
What gives?!
A: Have you tried just passing in ViewData instead of Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way in Perl to copy files into a yet-to-be-created directory tree? What is the best way in Perl to copy files to a yet-to-be-created destination directory tree?
Something like
copy("test.txt","tardir/dest1/dest2/text.txt");
won't work since the directory tardir/dest1/dest2 does not yet exist. What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Protected Memory Violation calling FORTRAN DLL from C# I am trying to call out to a legacy dll compiled from FORTRAN code. I am new to Interop, but I've read some articles on it and it seems like my case should be fairly straightforward.
The method I really want to call has a complex method signature, but I can't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to not sign a ClickOnce manifest I have an Office 2007 (specifically Outlook 2007) add in created in Visual Studio 2008.
When I uncheck the "Sign the ClickOnce manifests" option, and then publish, it rechecks that option automatically.
I have a regular Windows Forms project in the same solution that allows me to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Hotkeys for Previous and Next call stack frames in Visual Studio Visual Studio gives many navigation hotkeys:
F8 for next item in current panel (search results, errors ...),
Control+K, N for bookmarks,
Alt+- for going back and more.
There is one hotkey that I can't find, and I can't even find the menu-command for it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Working without stored procedures or triggers We have been working on a complex database and client interface for the last 18 months. We are regularly adding new functionnalities to this application, and it is now used by tens of users on a daily basis in all our offices, including sites and overseas. This is just t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to load a large array of strings in to an MFC combobox control fast as possible? I have an array of 1000 strings to load into a combo box. What is the fastest way to load the array of strings into the combo box?
Is there some way other than iterating over the list of strings, putting each string into the combo b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Merging files in Sourcesafe All,
I currently have two projects that are under SourceSafe that I am unable to migrate to our SVN server for a number of reasons.
However I am currently in the process of trying to merge fixes from one project into the other.
I know Sourcesafe isn't the best at this but the process I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ignored columns using vb6 to extract from excel I am trying to extract a table of values from an excel (2003) spreadsheet using vb6, the result of which needs to be stored in a (adodb) recordset. The table looks like this:
Name Option.1 Option.2 Option.3 Option.4 Option.5 Option.6
------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery - Ajax - How do I load an ascx into the DIV, when the user changes the selected index in the DropDownList In A.ascx I have one DropDownList and one DIV. The DropDownList is populated dynamically.
How do I load B.ascx into the DIV, when the user changes the selected index in the DropDownList. This should be do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Protocol conversion / normalization: Biztalk, alternatives? We have a need to take dozens of different protocols from systems such as security systems, fire alarms, camera systems etc.. and integrate them into a single common protocol.
I would like this to be a messaging server that many systems could subscribe to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .NET DataTable skips rows on Load(DataReader) I'm trying to populate a DataTable, to build a LocalReport, using the following:
MySqlCommand cmd = new MySqlCommand();
cmd.Connection = new MySqlConnection(Properties.Settings.Default.dbConnectionString);
cmd.CommandType = CommandType.Text;
cmd.CommandText = "SELECT ...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Geographical position from Java mobile application? Is there a way of programmatically determining a rough geographical position of a mobile phone using J2ME application, for example determining the current cell? This question especially applies to non-GPS enabled devices.
I am not looking for a set of geographical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MS Dynamics AX / AXAPTA - Where is the code that prevents reprint of payment advices of unposted cheques? We want to reprint a payment advice, even before it is posted. The report
BankPaymAdviceCheque should be able to do this but only prints advices for
already posted cheques. The report's dialog, however, allows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to refactor: split a class into two which communicate via an interface I am just embarking on my first large-scale refactor, and need to split an (unfortunately large) class into two, which then communicate only via an interface. (My Presenter has turned out to be a Controller, and needs to split GUI logic from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to access a file with the least amount of locking in my application (c# 3.5) there are various processes accessing a single xml file (read and write) very frequently. the code accessing the file is placed in an assembly referenced by quite a couple of other applications. for example a windows service might insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I prevent a DataGridView from sharing rows? I've made a custom DataGridViewCell that displays a custom control instead of the cell; but if the DataGridView uses shared rows, then the custom control instance is also shared, so you get strange behaviour (for example, hovering over buttons highlights all the but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add exif data to an image? On our site, we get a large amount of photos uploaded from various sources.
In order to keep the file sizes down, we strip all exif data from the source using mogrify:
mogrify -strip image.jpg
What we'd like to be able to do is to insert some basic exif data (Copyright Initrode,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How To Create A 'Two-Sided' Unique Index On Two Fields? How can I efficiently create a unique index on two fields in a table like this:
create table t (a integer, b integer);
where any unique combination of two different numbers cannot appear more than once on the same row in the table.
In order words if a row exist... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Creating multi-platform CDs for software distribution This is not strictly programming related, but I hope still relevant.
I'm working on a project which is written in Java and intended for use on PCs and Macs. It will be distributed on CD (and perhaps DVD, eventually). Our intended audience is decidedly non-techn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SpringSecurity : always redirect logged in users to a page Spring security has a nice feature, it remembers the url of request resource and redirect users to that resource after authentication is successful. But I want users always redirected to some other page, just after user logs in. How is it done?
A: In your ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Correct order for control structure logic (true/false, false/true)? I am new to programming, and am wondering if there is a correct way to order your control structure logic.
It seems more natural to check for the most likely case first, but I have the feeling that some control structures won't work unless they chec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is software development at your company really like (methodologies, tools, ...)? Since I've started my first job as a professional software developer about two years ago, I've read many articles about commonly accepted methodologies (e.g. Scrum, XP), technologies (e.g. EJB, Spring), techniques (e.g. TDD, code r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: expose RMI server in JBoss? I need to access RMI methods from a client front end.
For different reasons, I have JBoss running on the server side. This makes me thinking of using JBoss to expose the RMI server methods.
I'm kinda new to JBoss, so my question would be: What steps are required in order to make the RMI s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Replacing array in foreach loop with array modified in same loop foreach($arrayOne as $value){
do function
}
In the above example, I'd like to pass $arrayOne into a loop, have a function operate that removes some elements of $arrayOne and then have the loop pass over the reduced $arrayOne on the elements that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Invoke() and BeginInvoke() behaving differently when executing an overridable method via a delegate Can anyone tell me why this code behaves the way it does? See comments embedded in the code...
Am I missing something really obvious here?
using System;
namespace ConsoleApplication3
{
public class Program
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: IIS7 writing to a share over a network I am developing an application from windows vista machine. The web application is hosted in IIS. From that application i try to write to a network share on another vista machine but i keep getting the access denied error. On the share i gave everyone, guest, network, anonymous ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine active monitor of the current cursor location I currently have an application which needs to have an awareness of which monitor the cursor is located when running in a multi-monitor configuration.
A: Don't forget Screen.MonitorFromPoint and Mouse.CursorPos - these WinAPI functions are encapsulate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Migrate table from MS SQL Server to MySQL I have to migrate a table from MSSQL Server to MySql. The problem is that the table is quite big (65 millions records) and the whole process takes too much time. Does anyone have any idea how to speed things up ? Any useful tools that could improve this?
A: Need to do it on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if a string contains a substring in Bash I have a string in Bash:
string="My string"
How can I test if it contains another string?
if [ $string ?? 'foo' ]; then
echo "It's there!"
fi
Where ?? is my unknown operator. Do I use echo and grep?
if echo "$string" | grep 'foo'; then
echo "It's there!"
fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3368"
} |
Q: What's the difference between Invoke() and BeginInvoke() Just wondering what the difference between BeginInvoke() and Invoke() are?
Mainly what each one would be used for.
EDIT: What is the difference between creating a threading object and calling invoke on that and just calling BeginInvoke() on a delegate? or are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "440"
} |
Q: What is a good pattern for using a Global Mutex in C#? The Mutex class is very misunderstood, and Global mutexes even more so.
What is good, safe pattern to use when creating Global mutexes?
One that will work
*
*Regardless of the locale my machine is in
*Is guaranteed to release the mutex properly
*Optionally ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "405"
} |
Q: Security plan for business critical information and service accessibility I'm involved in creating a web based business solution. The idea is that the customers will use it, get their business processes and information into one place and also receive added business value by inter-system communication. In short they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Replacing multiple lines of text with Ant I have an xml file where I need to comment out a whole piece of text with Ant.
There's this Ant task
<replace file="${src.dir}/Version.as"
token="@revisionPrana" value="${revision}"/>
that I use to replace words, but in my case I need to replace a whole block like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to refresh Internet Explorer using SendMessage? does anybody know how to refresh the Internet Explorer (like by pressingthe F5 key) but using some "backdoor" like PostMessage or SendMessage? The internet Explorer Window is not active so I can't use the keyboard.
Thanks
(Language doesnt matter)
A: I think I unde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How many international languages does the iPhone Simulator support? How many international languages does the iPhone Simulator support?
Choose: Settings/General/International/Language
Mine only has English listed, but I fear I may have inadvertently stripped out the localisations?
iPhone/Settings/General/Internation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229594",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a single resource on the web that lists all ASP.Net security issues (XSS, etc) with preventative measures? With so many ways to attack a site, it would be useful if there is a single guide, or resource, listing all known vunerabilties with possible preventative measures. Does anyone know of any?
Also, is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: RE: Using themes with ASP.Net MVC I have an ASP.NET MVC (Beta 1) website that I'm using themes with. When I start my site (I'm still running using the ASP.Net Development Web Server) the default page gives me this error:
Server Error in '/' Application.
Using themed css files requires a header control on the page. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Applying Unit Of Work pattern I have read in Patterns of Enterprise Application Architecture that a Unit Of Work should only be used in a single Session. So each session should have its only Unit Of Work. Can anybody tell me why I could not use one Unit Of Work for the whole application (in my case ASP.NET).
A: Hal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Working with optional stored procedure parameters I am working on a stored procedure with several optional parameters. Some of these parameters are single values and it's easy enough to use a WHERE clause like:
WHERE (@parameter IS NULL OR column = @parameter)
However, in some instances, the WHERE condition is mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: CSS Buttons (w/ Background but need bevel) <input type="submit"/>
<style>
input {
background: url(tick.png) bottom left no-repeat;
padding-left: 18px;
}
</style>
But the bevel goes away, how can I add an icon to submit button and keep the bevel?
Edit: I want it to look like the browser default.
A: Using <.inp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Secure iframe on unsecure page in a different domain Our company is looking into allowing third party sites to use our online checkout system.
A client has stated that they would like to be able to use a lightbox style popup to display the checkout. And they would like this to be available on every page of the site,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Entity classes decoupled from LINQ to SQL provider for implementing the Repository pattern. How? I have looked over the Repository pattern and I recognized some ideas that I was using in the past which made me feel well.
However now I would like to write an application that would use this pattern BUT I WOULD LIKE TO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Delphi Multi-Threading Message Loop My application has several threads:
1) Main Thread
2) 2 Sub-Main Threads (each with Message Loop, as shown below), used by TFQM
3) n Worker Threads (simple loop, containing Sleep())
My problem is, when I close my application, the Worker Threads manage to exit properly, but 1 of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: In **portable C**, how to launch a command connecting the command's stdin to the launcher's stdout? In a C program (p1), how to launch a dynamically constructed command (and its arguments) that reads its standard input from p1's standard output?
Note that:
*
*A method other than this stdout -->
stdin piping is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to globally map AltGr key to Alt key? I want my AltGr key to behave exactly like left Alt.
Usually, I do this kind of stuff with Autohotkey, but I'm open to different solutions.
I tried this:
LControl & RAlt::Alt
And Autohotkey displayed error about Alt not being recognized action.
Then I tried the following ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: How do I overcome the "The symbolic link cannot be followed because its type is disabled." error when getting the target of a symbolic link? Following on from a previous question, I am creating a symbolic link on a Server 2008 from a Vista machine using UNC paths. I can create the link just fine. I can go to the Ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: VS.NET "watched" objects and recursive depth In VS.NET, when you add an item to the watch, why is the base property often (always??) endlessly recursive?
A: Do you still see this behavior in Visual Studio 2010? I remember seeing it on occasion in 2k8 and 2k5, but a cursory glance at my 2k10 projects show no such re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it wrong to cast an enumerator of a child class to an enumerator of a parent class? I've got an error in my build which says:
Error 12 Cannot implicitly convert
type
'System.Collections.Generic.IEnumerator< BaseClass>'
to
'System.Collections.Generic.IEnumerator< IParentClass>'.
An explicit conversion ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET 3.5 Back-Button Control / Refresh Control (never found a working solution) Hello and thanks for your time.
I've spent quite a bit of time searching for an answer to the old question of preventing duplicate posts when the user navigates back, forward, or refreshes the page. I've seen quite a few solutions pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Native VC++ using external (not project) dll reference how to specify path to dll I have a native VC++ project that uses a dll (which is not in a project). Now, I must to put the dll in one the "Search Path Used by Windows to Locate a DLL"
link
but I don't want the dll to sit in the exectuable or current or windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Entity Relationship Diagram for MS Access I've worked with MySQL and MSSQL for some time and have used a variety of CASE and UML tools when designing some of my more complex projects.
I was recently asked by a colleague if I could provide an Access database for his department. The application itself isn't too compli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C for loop implemented differently than other languages? I read the following in a review of Knuth's "The Art of Computer Programming":
"The very 'practicality' means that the would-be CS major has to learn Kernighan's mistakes in designing C, notably the infamous fact that a for loop evaluates the for condition rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Feeding an Excel QueryTable object from memory Greetings,
The VBA code below will create an Excel QueryTable object and display it starting on Range("D2"). The specific address of this target range is immaterial.
My question is -- is it possible to manually feed in values to an in-memory Recordset, and then have th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I create a "Hello World" application in java for an iphone? I'd like to create a basic "Hello World" style application for the IPhone using Java - can anyone tell me how?
A: Might want to check Alchemo for iphone never used it myself yet. It convert your CLDC 1.1 MIPD 2.0 code into native iPhone code. It eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: CSS not working with IIS7 I have a rails application that I am running with Vista,IIS7 and SQL 2005. For some reason the CSS is not being rendered. The CSS works fine when I use Webrick.
Any ideas how to get CSS working correctly with IIS7. I have uninstalled and reinstalled windows components "Common Http Features"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is BindingHelperExtensions.updatefrom / Controller.UpdateModel insecure? I've been reading about UpdateFrom, used to update a business object from the request. Is it massively susceptible to XSS code and extra form parameters being posted?
A: UpdateFrom was removed in one of the older MVC previews. The replacement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: need PropertyGrid with drill-down, similar to QuickWatch I am trying to display object data members in a generic way. I started by using PropertyGrid, which satisfies my needs as far as simple properties are concerned. However, it doesn't let the user drill-down into data members. It allows browsing into collecti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using JavaScript within a JSP tag I've seen this question regading the importing of js-files related to the tag content itself. I have a similar problem, here I have a jsp tag that generates some HTML and has a generic js-implementation that handles the behavior of this HTML. Furthermore I need to write some initial... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why is the PopupControlExtender generating a full postback inside an UpdatePanel? I have a button inside an updatepanel. I have a PopupControlExtender linked to the button so when the button is clicked a panel pops up. It works fine except it does a full postback and I can't figure out why. The button and the PopupC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python - Library Problems I'm relatively new to Python and am having problems programming with Scapy, the Python network manipulation tool. However, I can't tell if it's as much a Scapy problem as it is a being-a-Python-newbie problem. On the scapy site, they give a sample program which I'm not able to run on my own... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Abstract Java Grid I'm looking for an abstract representation of a grid in Java (grid as in that thing with columns and rows of data). Do such things exist? I want to be able to sort, filter, keep track of rows, set column properties etc. I'll then be realising the grid on the web.
To be clear: I've already decid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Timeouts WCF Services How do the timeouts work in WCF? I know for example that you can configure sendTimeout and receiveTimeout for a clients binding. But how do they work?
MSDN describes sendTimeout as:
A TimeSpan value that specifies the interval of time provided for a
send operation to complete. This value sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: How to improve Netbeans performance? Is there a real way to get Netbeans to load and work faster?
It is too slow and gets worse when you have been coding for some time. It eats all my RAM.
I am on a Windows machine, specifically Windows Server 2008 Datacenter Edition x64,
4Gb of RAM, 3Ghz Core 2 Duo processor, etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: TRIGGERs that cause INSERTs to fail? Possible? In cleaning up this answer I learnt a bit about TRIGGERs and stored procedures in MySQL, but was stunned that, while BEFORE INSERT and BEFORE UPDATE triggers could modify data, they seemingly couldn't cause the insert/update to fail (ie. validation). In this particular ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: VS Design Time User Control CSS Duplication I want to avoid the duplication of stylesheet link tags in the output html when a user control is dropped onto an aspx page. However if you omit the stylesheet link tag you don't get design time support for the stylesheet.
Anybody know a way around this problem?
A: I sug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why exactly would I want to use a WSDL to describe a Web service? I'm having trouble understanding why a WSDL would be so beneficial, when the truth is that the service definition is not that human-readable, and most developers will use automated tools to consume it to generate objects in the application. Why isn't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: TSQL Email Validation (without regex) Ok, there are a million regexes out there for validating an email address, but how about some basic email validation that can be integrated into a TSQL query for Sql Server 2005?
I don't want to use a CLR procedure or function. Just straight TSQL.
Has anybody tackled this alrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to add scrollbars to my HTML that disappear if the content is smaller than the limit I'm trying to create a form that has an expandable widget. The problem is that when the widget is open, The form extends outside the limit in the content box, and it looks bad.
I tried using overflow:scroll but it creates 2 ugly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Double-metaphone errors I'm using Lawrence Philips Double-Metaphone algorithm with great success, but I have found the odd "unexpected result" for some combinations.
Does anyone else have additions or changes to the algorithm for other parts of it they wouldn't mind sharing, or just the combinations that they've fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a string table resource for Visual C# 2005? As a developer who spent many years working within Visual C++ 6, I'm used to working with the String Table resource to store unicode strings for localization. Is there a resource within Visual Studio 2005 that provides the same? Are there any third party libraries... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Overcoming "It is being used by another person or program." Is there a way to unlock Windows files without downloading a utility?
I have a few files on my Windows XP C: drive that are very old and very useless. When I try to delete these files I get the following message:
Cannot delete FILENAME.zip: It is being us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Ways to save enums in database What is the best way to save enums into a database?
I know Java provides name() and valueOf() methods to convert enum values into a String and back. But are there any other (flexible) options to store these values?
Is there a smart way to make enums into unique numbers (ordinal() is no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "144"
} |
Q: Changing highlighted text to a different color I have some simple .doc files I made in Word 2007 where I changed the text color and used highlights to compare some similar texts. What I'd like to do is change any instances of green text or gray highlighting to different respective colors for each.
I'm sure there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to compile legacy VB6 code We have inherited VB6 dll which we need to make changes to. We have the code but don't have VB6 compiler. How can we rebuild the dll? Where can we download the VB6 environment/compiler from?
Thanks in advance.
A: VB6 is still available as a part of the MSDN subscription.
A: Looks lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: gridview dynamic image change in imagebutton I have a gridview containing some data from db, and after a check I want to see a small cross/tick image in each row, due to the result of the check.How can I change the image url dynamically?
A: You could either use inline statement like
<%#Eval("check").ToString() ==... | {
"language": "en",
"url": "https://stackoverflow.com/questions/229870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |