text stringlengths 8 267k | meta dict |
|---|---|
Q: How to set a property in SVN for a single revision of a single file I've got a Subversion repository, and there are a number of users checking things in and out. However, I also need to frequently check in work for other people. I need to track the original author of the work.
I was considering creating a property... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Need for troubleshooting in UNIX w/ shell script program and IF..THEN command Since you guys are having lots of questions or not enough info to work with, below is proprietary information and as such be careful as you can. The question – (please refer to if [$7 -eq "AAA"]...then statement - in bold ) has a problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the name of file in PHP How can I get the name of a file in in PHP? What I want to do is have a function take a string of a filename and then do some stuff if it's actually on the page.
function onThisPageFunction(fileNameFromFunction)
{
if(onThisPage == fileNameFromFunction)
{
do stuff
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Huge Transaction Log - Is This Normal? I have a 5GB database and a 20GB transaction log (SQL Server 2005). Not sure why it is so large or what happened to make it that large, it used to be around 1/2 the size of the DB. DB grows about 1GB/month.
Are there any guidelines to how how big your transaction log should be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Fluent NHibernate - how to map a subclass one-to-one? Suppose I have three classes. It is valid to instantiate A, but there are also special cases B and D which subclass A, adding additional information.
How would I do the mapping files for this in (fluent) NHibernate?
public class A
{
public int ID { get; set;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Converting Days into Human Readable Duration Text Given an amount of days, say 25, convert it into a duration text such as "3 Weeks, 4 Days"
C# and F# solutions would both be great if the F# variation offers any improvement over C#.
Edit: The solution should expand past weeks to include months and years. Bonus point... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Remote connections into sql08 Does someone have a link where I can read on how to access my remote server's sql server '08 installation?
update
I want to access sql server 2008 from management studio on a remote server.
Remote access is disabled by default!
A: badbadboy's link would be a good start
*
*Enable rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Line Break in TextBox or Html Area What is the way of separating Line-Breaks and Space in MultiLine Textbox or HTML Text area while inserting database (Asp.Net). For example what should I do if I want to insert
Hello
World
to database with line breaks? And also While displaying what should I do? I don't want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Animated "glow" in owner-drawn Progress Bar (ListView/DataGridView) I've noticed that the bog-standard ProgressBar in .NET 2.0 (Winforms) does show up as the fancy animated glowing bar in Vista; however, using the ProgressBarRenderer (as one generally has to when trying to draw a progress bar in an owner-drawn list ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Test if an object is defined in ActionScript In ActionScript, how can you test if an object is defined, that is, not null?
A: For ActionScript 3.0, if all you want is a generic test for nothingness, then it's very easy:
var a;
var b;
var c;
var d;
a = undefined;
b = null;
c = 5;
if (a)
trace(a);
if (b)
tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Simple Workflow Management with Java EE I have an application that allows different users to update some data that is then published to a website. The application uses JPA as a persistence layer. I now want to add a bit of workflow management to this scenario so that when users with junior roles update data, it is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set relative path to current folder? Lets say I am currently at:
http://example.com/folder/page.html
Is it possible to create a relative link on this page that points to http://example.com/folder/ without specifying folder anywhere? (And using only HTML.)
UPDATE:
As it turned out ./ works only in non-strict d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Configure merge_block_size in sphinx search engine I am powering a web search using Sphinx, and am getting the following error message while building the indexes:
WARNING: sort_hits: merge_block_size=76 kb too low, increasing mem_limit may improve performance
The problem is I can't find any documentation on where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to create two-row Header for ASP.NET GridView My data is such that I want to display values for the Employee and the Supervisor for a particular record. Instead of describing it, I'll show you a rough example:
<table><tr>
<th colspan="3">Employee</th>
<th colspan="3">Supervisor</th>
</tr><tr>
<th>Name</th>
<th>L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Log table access using SQL Server Profiler Is there a way to use Profiler to determine whether a table is being accessed by queries?
I saw an event named Object:Opened (Indicates when an object has been accessed, such as for SELECT, INSERT, or DELETE statements) and Object:Closed, but these do not seem to work.
In p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is transactional behaviour ever needed outside of databases? I wouldn't dare do anything complex in a database without transactions. There is nearly always a simple to use in-built command. But when you start working with other persistent data you just don't get this simple to use transaction support. Some example a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What's the Windows equivalent of a UNIX shell script? I want to have an executable file that will call some other programs. The way I would do this in Linux is with a simple bash script that looks like this:
#!/bin/bash
echo "running some-program"
/home/murat/some-program arg1 arg2
What's the best way to do this ki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to return a reference to a string in c#? I am looking to write a function like
ref String TestIt( int index )
{
return this.TestArray[index];
};
so that I could write code like:
MyClass.TestIt(0) = "Hello World";
My goal is to mimic this c++ declaration
CString& MyClass::Data( UINT index);
By Reference I am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where is the copy local option? I'm trying to add dll references to an ASP.NET 3.5 project(Web Forms not MVC), and all of the references I'm adding keep showing up as auto updating. I right clicked on the dll in the bin folder to specify copy local, but the option isn't there.
I went back to one of 2.0 projects, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET DateTime.Now returns incorrect time when time zone is changed This problem occurred during daylight saving time change. After the change occurred, we've noticed that our server application started writing into the log incorrect time - one hour ahead which means that .NET caches time zone offset. We had to resta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How do you get the current time of day? How do you get the current time (not date AND time)?
Example: 5:42:12 PM
A: Get the current date and time, then just use the time portion of it. Look at the possibilities for formatting a date time string in the MSDN docs.
A: This can be a possible solution:
DateTime now = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "310"
} |
Q: Mips calculation for embedded software I have been recently (and repeatedly) asked by customers about MIPS needed to run our software. Usually we was able to get rid of this questions by explaining the customer that this is really depend on the cpu/os/hw (our software is highly portable) and/or use case (i.e. how ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java Floating License Server API? Short of rolling your own. There has to be something out there. FlexLM/FlexNet is overpriced, and does not work for a company like ours. The same goes for RLM. There was one product I had hope in called LUM, but IBM no longer licenses the API. So what else is available? Or do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I best fill the gaps of my mathematics knowledge? Every so often I get the impression that my knowledge of mathematics (as it pertains to the field of software development) has some gaps. I'm an educated person. I have a college degree. I've always enjoyed learning, which is why I would like to try to fill i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How show hide image in paperclip when no image present How can I prevent the image tag that calls the associated image from displaying if no image is associated with the record?
<%= image_tag @agent.avatar.url %>
...gives me the text "Missing" if there is no image associated with that agent. I want to test to see ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: What does shift() do in Perl? What could the following line possibly mean?
my $x = shift;
A: shift() is a built in Perl subroutine that takes an array as an argument, then returns and deletes the first item in that array. It is common practice to obtain all parameters passed into a subroutine with shift calls. F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Animation End Callback for CALayer? I'm wondering where the callbacks are (or if there are anything) for animations in a CALayer. Specifically, for implied animations like altering the frame, position, etc. In a UIView, you could do something like this:
[UIView beginAnimations:@"SlideOut" context:nil];
[UIView setAn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Automatically stashing The section Last links in the chain: Stashing and the reflog in http://ftp.newartisans.com/pub/git.from.bottom.up.pdf recommends stashing often to take snapshots of your work in progress. The author goes as far as recommending that you can use a cron job to stash your work regularly, without... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SQL to LINQ Tool Is there a tool out there which can convert SQL syntax to LINQ syntax?
I just want to rewrite basic queries with join, etc., to LINQ. It would save me a lot of time.
A: Edit 7/17/2020: I cannot delete this accepted answer. It used to be good, but now it isn't. Beware really old posts, guys. I'm re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "207"
} |
Q: How do I tell git-svn about a remote branch created after I fetched the repo? I'm using git-svn to work against my company's central Subversion repository. We've recently created a new feature branch in the central repo.
How do I tell Git about it? When I run git branch -r I can only see the branches that existed w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "201"
} |
Q: When is it better to use String.Format vs string concatenation? I've got a small piece of code that is parsing an index value to determine a cell input into Excel. It's got me thinking...
What's the difference between
xlsSheet.Write("C" + rowIndex.ToString(), null, title);
and
xlsSheet.Write(string.Format("C{0}",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "125"
} |
Q: Build a regular expression to find id in an href Could someone show me a regular expression that would look through this document and select the href value of every href that has RELATION_ID on the end of it?
Then if it does, I have to get the Id that is before the question mark (example href="dctm://ISDOFSDdev/3700... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GLib v APR pros and cons of each I have a couple of hobby C programming projects that I would like to start. I am looking for an open source library that has a liberal license (I want credit, but pretty much anybody can use). The library needs to have strings better than the C standard library and some portable th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Smartphone-style ComboBox behavior on PocketPC platform? I develop applications for the PocketPC platform (.NET Compact Framework 2.0 and higher), and one of the problems I constantly run in to is the drop-down width for ComboBox controls is not wide enough to show very long string values.
I've run across P/Invoke m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the gold standard for website APIs? Twitter, Flickr, Facebook, etc Seems like there are two categories of APIs for websites today.
*
*APIs which allow the functionality of the site to be extended like Facebook, Myspace, etc. These APIs seem to be very diverse.
*APIs which allow interaction with the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Partial Keyword Searching (MS SQL 2005) Current, I've got a stored procedure that has a main goal of doing a full text search through a database table of films and tv shows. In order to get it to do partial-keyword searching, I added some code in SQL to split up the search query by spaces, and output a statement li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Read a file from database I have stored a txt file as string in a database column. Now on one of my aspx page I have a link...I want to open a txt file when the user clicks on this link. How can i read a file from database. I know how to do this using streamreader for a file stored on the disk.
Thanks
A: If you rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MFC, c++ When showing and hiding ctrls on the screen can I disable paint for a bit I have a screen with say 20 controls on it.
I want to show all twenty, then hide only the ones that don't relate to what I'm working on.
psudoCode.
for each element
show element
for each element in hide list
hide element.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get file name and revision number as a list? How to get file name and revision number as a list starting from a designated folder?
A: You can use cvs status at the base folder of your project and grep for the appropriate line:
> cvs status | grep Repository\ revision\:
Repository revision: 1.16 /cvsroot/m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which framework is better CXF or Spring-WS? I am in the process of researching/comparing CXF and Spring-WS for web services? I need to function both as a provider and a consumer of WS. In a nutshell, I have been told that Spring-WS is more configurable, but CXF is easier to get up and running. This question is subje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Why are Perl 5's function prototypes bad? In another Stack Overflow question Leon Timmermans asserted:
I would advice you not to use prototypes. They have their uses, but not for most cases and definitely not in this one.
Why might this be true (or otherwise)? I almost always supply prototypes for my Perl function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: Sorting algorithm for a non-comparison based sort problem? I am currently faced with a difficult sorting problem. I have a collection of events that need to be sorted against each other (a comparison sort) and against their relative position in the list.
In the simplest terms I have list of events that each have a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Backing up a huge MySQL table using PHP and a cronjob I'm working on developing a regular dump of our database. I'm using this script to create the backup and then feeding it through a regular cron job. In the end we end up with a text file as well as an email archive of everything.
The problem we've encountered is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to determine if a user has viewed data What is the best method to determine if a user has viewed a piece of data, ie like an update to a comment. The two solutions I have thought about are these....
*
*Use a separate table that has a row for each user and the data id that is being viewed and inserting in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert Class[] to generics? I'm still trying to get my head around using Java's generics. I have no problems at all with using typed collections, but much of the rest of it just seems to escape me.
Right now I'm trying to use the JUnit "PrivateAccessor", which requires a Class[] argument with a list of all the arg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using a WPF toolkit DatePicker as a parameter to an ObjectDataProvider used as an itemssource This one has me beat;
I have a WPF window with two (important for this case) controls, both from the WPF toolkit available at CodePlex; A DatePicker and a DataGrid.
The DataContext of this window is set to a CLR object that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to use workflow parameters with workflows hosted by WorkflowServiceHost? Normally, the method of passing workflow parameters to the workflow happens in the call to RunWorkflow. However, with the WorkflowServiceHost, there is no such method call involved. You simply call the Open() method on the inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate sound effects in Java? I'm looking for Java code that can be used to generate sound at runtime - NOT playback of existing sound files.
For example, what's the best code for generating a sawtooth waveform at 440 Hz for a duration of 2 milliseconds? Source code appreciated!
I remember my Commodore 128 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: RegisterClientScriptBlock within AJAX method call I am trying to RegisterClientScriptBlock in a method that is only called via an AJAX call. It doesn't appear to actually register the script on the page and I'm guessing this is because it's not actually reloading the entire page. Is there any way to register javas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Team Build now Painfully Slow We're running into performance issues with our implementation of Team Foundation Build Server and I'm running out of ideas on how to speed things up. We've already added a few PropertyGroup elements to increase the performance on several steps (SkipClean, SkipLabel, SkipInitializeWorksp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a graphical test runner for "Google Test" ( gtest ) for windows? Seems a great C++ unit testing framework. I'm just wanting something a bit more sophisticated than the console output for running the test, also something that makes it really easy to run specific tests (since gtest supports all kinds of tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Best way to implement deletion in ASP.NET MVC "gridview"? Given an ASP.NET MVC view that generates a table of entries using a "for" loop, what is the best way to add a "delete" link for each of the table rows? My first intuition would be to use jQuery to make an AJAX call to delete the row, then refresh the table. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error handling in Core Data A few weeks ago I started using Core Data for the first time in a non-trivial application. One of the things that surprised and confused me was how error handling works. To give an example, one of the first things I tried was setting my data file as "locked" in Finder, to order to make su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: example of using ServletUnit to test JSP's Can anyone point me to an example of how to use ServletUnit to test JSP's? Do I need I need to call registerServlet()? If so, what class name do I pass?
A: You do not need to registerServlet if you are going use the default Jasper compiler. However, I needed Jasper jars ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how do i use python libraries in C++? I want to use the nltk libraries in c++.
Is there a glue language/mechanism I can use to do this?
Reason:
I havent done any serious programming in c++ for a while and want to revise NLP concepts at the same time.
Thanks
A: Pyrex can be cleanly used for this purpose. There's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Best OO practice to adapt one type to another? I have a collection of domain objects that I need to convert into another type for use by the .NET framework. What is the best practice for doing such a transformation?
Specifically, I have a type called ContentEntry and I need to convert it into a SyndicationItem for u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to make the cleanest code when reporting progress to a user? I've struggled for the last couple of months to come up with some clean code to report progress to a user. Everything always seems to boil down to:
ReportProgress("Starting Task 1");
doTask1();
ReportProgress("Task 1 is done");
ReportProgress("Starti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Separate configuration file for MS Enterprise Library I have a section on my ASP.net web.config for the Enterprise library logging block. Is it possible to separate the logging configuration into another configuration file? How do I do that?
A: Yes, it is possible -- in fact, separate config files for each app bloc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What should I keep in mind when porting from C to C++ What should I keep in mind when converting my projects from C to C++? Is there any reason to use C at all? The only thing in my mind now is to make sure it's friendly to DLLs so I can create a C interface if I need it.
Note: I know C++ just fine. Templates, parti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Way to tell SQL Server to only cache certain types of adhoc queries Is there a way to tell SQL Server to not cache certain types of plans? For example, if you have a large number of users queries coming from SQL Server Management Studio, is there a way to tell these to not be cached in the plan cache, thus taking u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: unknown folder delete within a directory using .BAT files I have a folder "FolderA" which contains three sub-folders: foldera1 foldera2 and foldera3
I need to write a batch file which resides inside "FolderA". It should delete all the folders under "FolderA" as a cleanup activity. I don't know the folder names. rmdi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Dealing with passwords in NAnt build script Is there a way to prompt the user for input during a NAnt build? I want to execute a command that takes a password, but I don't want to put the password into the build script.
A: I'm using a script for now, but I'd love to hear if there's a prebuilt method already availab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to make a wizard with ASP.Net MVC Our site has multiple "wizards" where various data is collected over several pages, and cannot be committed to the database until the last step.
What is the best/correct way to make a wizard like this with ASP.Net MVC
edit: My boss is now saying "no javascript" - any thoughts on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Strange ld error about duplicate symbol I have a project consisting of two files, main.c and logoff.c. When I try to compile them I get this error:
gcc -c -g -Wall main.c
gcc -c -g -Wall logoff.c
gcc -o main -g -Wall main.o logoff.o
ld: duplicate symbol _logoff in logoff.o and main.o
I have a function named logoff ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AS/400 ODBC Drivers We have been using the Client Access ODBC drivers when accessing AS/400 data from our .net applications and SQL DTS/SSIS packages. Are there third party drivers that provide better performance or functionality?
A: Our company is using the same Client Access drivers. As far as we know there are n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update script for updating a table field in SQL Server from NULL to non-NULL I have a field (say, foo) in a table in a SQL Server database that was originally defined as nullable, but new requirements indicate that this field must be non-null.
What's the best way of updating this field to non-null via an update scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Refresh table info using jQuery and ASP.NET MVC I have a simple page that displays a user's email addresses in a table. I also have a textbox underneath the table and an "add" button. Currently, I am using a simple form post that is handled by a controller that will add the e-mail address to the database and reloa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Need Block-Oriented Error Correcting Scheme I'm storing many files of various lengths into a block-oriented medium (fixed-size e.g. 1024 bytes). When reading back the file, each block will either be missing or correct (no bit errors or the like). The missing blocks are random, and there's not necessarily any seque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Translate a column index into an Excel Column Name Given a columns' index, how can you get an Excel column name?
The problem is trickier than it sounds because it's not just base-26. The columns don't wrap over like normal digits would. Even the Microsoft Support Example doesn't scale beyond ZZZ.
Disclaimer: This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: LoC (lines of code) metrics for .NET 2.0 c# projects Please suggest some free tools which will help me to get Lines-of-Code metrics for C# projects using the command line.
A:
I was searching for a similar tool.
Found Microsoft Line of Code (LOC) Counter
Its pretty good.
Feature list from code.msdn page
Features:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ASP.NET C#, need to press a button twice to make something happen I got a web application, the problem is that the text in the label will not update on the first click, I need to click the button twice, I debugged to code, and I found out that the label does not recive the data until after the second click,
Here is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: gpu, old hardware, 3d acceleration and a lib i am writing a 2d lib which will have 3d acceleration but i'd like to do it in a way that it will efficiently run on older HW. Possibly typedefs to hide options/functions that your targeted mode does not support. (also there may be emulation func turned on)
What are some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to place text in the clipboard so that it pastes as a table in Word? Using VBA in MS Office, how do I add text to the Windows clipboard so that it will paste into Word as a table?
A: The Windows clipboard supports multiple formats. When you want to place things in the clipboard, you make one or more calls to R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Natural language automation? I remember reading about an automation program for windows that would accept a list of commands like this:
press the ok button
put "hello world" into the text control
press the add button
etc etc. Can anyone name this program? A thousand thankyous.
A: Take a look at watin. http://watin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: "Stop running this script?" error I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser.
I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you repopulate a form in ASP.NET MVC that contains a DropDownList? How do you repopulate a form in ASP.NET MVC that contains a DropDownList?
A: I believe you are asking how to maintain the value for a dropdown list after a form is submitted and re-displayed. If so, please see below for a VERY SIMPLE example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why doesn't xpath work when processing an XHTML document with lxml (in python)? I am testing against the following test document:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: jQuery slider tutorials? Does anyone know of some good tutorials that explain how to use the JQuery Slider.
I've found a few, but none of them really present what I need in clear terms. What I really need to figure out how to do is make the slider go from 1.0 - 5.0 (including all tenths) and when it changes set a h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using OpenID how do you handle 2 accounts with the same nick If I want to provide OpenID as the only registration method available AND want to do something meaningful with the nick name, how can I handle 2 users with the same Jon Smith nickname?
Actually, when I looked at StackOverflow's URL schema I was surprised t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: HTML CSS LI Wrapping I have a vertical menu in my system which is basically made of HTML ul/li with CSS styling (see image below). However I don't want the li items which are wider than the menu to wrap, I would prefer them to overflow with a horizontal scroll bar at the bottom of the menu. How can I do this in CSS?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Is there a simple alternative to GetModelAttemptedValue in HtmlHelpers? I'm trying to create some HtmlHelper extensions and ran into a bit of a roadblock trying to get my extension methods to use attempted values defined by the ViewData.ModelState. The HtmlHelper.GetModelAttemptedValue() method is marked internal an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tool to find out why an SQL select does not return any data Is there a tool which tells you (or gives you a hint) why a particular select statement dose not return any rows given the current data in your database.
eg if you had the following 4 table join
select *
from a, b, c, d
where a.b_id = b.id
and b.c_id = c.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Long Datatype Overflow I am trying to do some prime factorisation with my VBA excel and I am hitting the limit of the long data type -
Runtime Error 6 Overflow
Is there any way to get around this and still stay within VBA? I am aware that the obvious one would be to use another more appropriate programming langu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The best way to use a DB table as a job queue (a.k.a batch queue or message queue) I have a databases table with ~50K rows in it, each row represents a job that need to be done. I have a program that extracts a job from the DB, does the job and puts the result back in the db. (this system is running right now)
Now I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Integrating command-line generated python .coverage files with PyDev My build environment is configured to compile, run and create coverage file at the command line (using Ned Batchelder coverage.py tool).
I'm using Eclipse with PyDev as my editor, but for practical reasons, it's not possible/convenient for me to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UIButton in a UITableView header ignores most touches I've got a button that I'm adding as a subview of a table view's tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most part, though, it's unresponsive. I've tried adding it as a subview of the table itself; the ef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to change the default browser to debug with in Visual Studio 2008? When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008?
Update 1
I have looked for the 'Browse with' option and not found it.
Visual Studio opens the default browser instead of Internet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Get the Enum value Description I have my enumHelper class that contains these:
public static IList<T> GetValues()
{
IList<T> list = new List<T>();
foreach (object value in Enum.GetValues(typeof(T)))
{
list.Add((T)value);
}
return list;
}
and
public static string Description(Enum value)
{
Attribute D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PrintWriter and PrintStream never throw IOExceptions Some days ago I realized that PrintWriter (as well as PrintStream) never throw an IOException when writing, flushing or closing.
Instead it sets an internal flag (trouble=true) when an error occurs.
It's not possible to get the exact exception, but only if there w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Manipulating the hash/anchor part of the URL in Actionscript How can you get and set the hash or anchor part of an URL in pure Actionscript? When googling for a solution I've found explainations for doing it using JavaScript, but is it possible to get it without using JavaScript? (I'm using Actionscript 2, I may con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any advantage to using C++/CLI over either standard C++ or C#? I'm not seeing any real advantages, other than the fact that you have a C++ syntax, and with it, things like pointers and destructors.
A: I think you're referring to C++/CLI and comparing it to C#. C++/CLI isn't a 'flavor' of C++. It's an en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to use reflection to create a "reflection machine" OK so that title sucks a little but I could not think of anything better (maybe someone else can?).
So I have a few questions around a subject here. What I want to do is create a program that can take an object and use reflection to list all its properties, meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: CodeDOM & .Net Modules How do I programmatically embed a .Net module to the assembly generated by CodeDOM?
A: on VB
dim param as CompilerParameteres
param.EmbeddedResources.Add("dynamiclinklibrary")
| {
"language": "en",
"url": "https://stackoverflow.com/questions/297330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Enumerate .Net control's items generically (MenuStrip, ToolStrip, StatusStrip) I've got some code that will generically get all Controls in a form and put them in a list. Here's some of the code:
private List<Control> GetControlList(Form parentForm)
{
List<Control> controlList = new List<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create a zip file from a generator in Python? I've got a large amount of data (a couple gigs) I need to write to a zip file in Python. I can't load it all into memory at once to pass to the .writestr method of ZipFile, and I really don't want to feed it all out to disk using temporary files and then read it back.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How can I set a custom width on my Google search iframe? I am trying to use google search for my site:
http://www.houseofhawkins.com/search.php
It is not playing nice with some screen resolutions. Here is the code given from google:
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to Consume JSON Web Services from a Windows Client Is it possible to consume a JSON enabled WCF Web Service from a standard Proxy Client (i.e. not JavaScript)?
Basically I want to minimize the payload size between 2 web services.
A: Yes, it is, if the service interface definition on the client side is setup c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: SQL Server 2000 Page size and the NTFS page size In the Oracle world, it's been gospel to build your database block size to be even multiples of the File system's block size. I assume this is still true but I'm not adverse to being told why technology has made this irrelevant.
But I've been told some SQL Server DBA'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stress testing a web service method with Powershell I want to stress test a web service method by calling it several thousand times in quick succession. The method has a single string parameter that I will vary on each call.
I'm planning on writing a Powershell script to loop and call this method a number of times.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Installing a ASP.NET application Ok, this has got to be a super simple problem. I just can't seem to find the answer anywhere. First - I'm not a web developer of any kind, I'm an old school c programmer - so don't flame me for what's probably something quite trivial :)
I need to write a small proof-of-concept web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/297380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.