text stringlengths 8 267k | meta dict |
|---|---|
Q: Is There Any Advantage in Passing a UI wrapper to a view Most of the MVC samples I have seen pass an instance of the view to the controller like this
public class View
{
Controller controller = new Controller(this);
}
Is there any advantage to passing a class which provides access to just the the properties ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I represent features v. tasks in FogBugz 6? In FogBugz 6, how do I represent the concepts of a "feature" versus a "task"? As defined by Joel Spolsky, the owner of Fog Creek Software (which makes FogBugz), a feature is essentially a user-visible capability. To estimate the time to implement a feature, the de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: KVM/QEMU network TAP problems with libvirt I'm trying to use libvirt with virsh to manage my kvm/qemu vms. The problem I have is with getting it to work with public IPs. The server is running ubuntu 8.04.
libvirt keeps trying to run it as:
/usr/bin/kvm -M pc -m 256 -smp 3 -monitor pty -no-acpi \
-drive file=/opt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a plugin in Eclipse for applying tags to files? I have searched for such a plugin but haven't found any. I need a facility to "tag" my java files. Similar to tagging on stackoverflow.
I want to be able to group my files based on projects/tasks I wam working on. Mylyn helps a little but it dynamically change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to do a "where in values" in LINQ-to-Entities 3.5 Does anybody know how to apply a "where in values" type condition using LINQ-to-Entities? I've tried the following but it doesn't work:
var values = new[] { "String1", "String2" }; // some string values
var foo = model.entitySet.Where(e => values.Contains(e.Na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Trying to load files from github through a firewall is impossibly slow. Any suggestions for workarounds? I'm a little hesitant to post this, as I'm not completely sure what I'm doing. Any help would be wonderful.
I'm on a computer with a firewall/filter on it. I can download files without any difficulty. When I try ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Can Adobe AIR display SVG? I see that Adobe AIR uses WebKit as its render and I see that WebKit (at least the most current build) has some SVG support. Does this mean (and has anyone specifically tried) that an Adobe AIR application could render SVG on an HTML page?
A: On the offchance that it's helpful (and that y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tell if a Javascript function is defined by looking at self[name] - is this a good way? This is a follow up question to This Question.
I like (and understand) the solution there. However, in the code I am working in, another way to solve the same problem is used:
function exist(sFN) {
if(self[sFN]) return true;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting a DrawingContext for a wpf WriteableBitmap Is there a way to get a DrawingContext (or something similar) for a WriteableBitmap? I.e. something to allow you to call simple DrawLine/DrawRectangle/etc kinds of methods, rather than manipulate the raw pixels directly.
A: I'm wondering the same thing, as current... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: When is a browser considered "dead"? Keep in mind that I'm not looking for a list of current browsers to support, I'm looking for logical ways to make that list, backed by some kind of hard statistics.
Since it's been a while since my last web job, I decided to do this latest site up from scratch. Now I have to dec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Throwing exceptions in ASP.NET C# Is there a difference between just saying throw; and throw ex; assuming ex is the exception you're catching?
A: throw ex; will erase your stacktrace. Don't do this unless you mean to clear the stacktrace. Just use throw;
A: You have two options throw; or throw the orginal exceptio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to replace $*=1 with an alternative now $* is no longer supported I'm a complete perl novice, am running a perl script using perl 5.10 and getting this warning:
$* is no longer supported at migrate.pl line 380.
Can anyone describe what $* did and what the recommended replacement of it is now?
Alternatively if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best way to convert a decimal value to a currency string for display in HTML I wanting to show prices for my products in my online store.
I'm currently doing:
<span class="ourprice">
<%=GetPrice().ToString("C")%>
</span>
Where GetPrice() returns a decimal. So this currently returns a value e.g. "£12.00"
I thin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Business Objects, Validation And Exceptions I’ve been reading a few questions and answers regarding exceptions and their use. Seems to be a strong opinion that exceptions should be raised only for exception, unhandled cases. So that lead me to wondering how validation works with business objects.
Lets say I have a b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Perl: why is the if statement slower than "and"? In Perl, a conditional can be expressed either as
if (condition) { do something }
or as
(condition) and do { do something }
Interestingly, the second way seems to be about 10% faster. Does anyone know why?
A: How many tests did you do before you averaged? Very, ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Python, how do you take tokenized input such as with the C++? In C++, I can have take input like this:
cin >> a >> b >> c;
And a can be int, b can be float, and c can be whatever... How do I do the same in python?
input() and raw_input(), the way I'm using them, don't seem to be giving me the desired results.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ Derived Class problems I am making a game in C++ and am having problems with my derived class. I have a base class called GameScreen which has a vitrual void draw() function with no statements. I also have a derived class called MenuScreen which also has a virtual void draw() function and a derived class from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a node from a cron job in drupal? In a custom module for drupal 4.7 I hacked together a node object and passed it to node_save($node) to create nodes. This hack appears to no longer work in drupal 6. While I'm sure this hack could be fixed I'm curious if there is a standard solution to create nodes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can regex capture and substitution be used with an Apache DirectoryMatch directive? Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive? I'd like to do something like the following:
<DirectoryMatch ^/home/www/(.*)>
AuthType Basic
AuthName $1
AuthUserFile /etc/a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Any problems running SharpDevelop 3.0 and Visual Studio 2008 side by side? I have been asked to lend a hand on a hobby project that a couple friends are working on, they are using SharpDevelop 3.0 (Beta 2 I think, but it might be Beta 1) is there any hassle for me to install and use this IDE given that I have Visual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I use an exception specifier in C++? In C++, you can specify that a function may or may not throw an exception by using an exception specifier. For example:
void foo() throw(); // guaranteed not to throw an exception
void bar() throw(int); // may throw an exception of type int
void baz() throw(...); // may th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: Structure of a PDF file? For a small project I have to parse pdf files and take a specific part of them (a simple chain of characters). I'd like to use python to do this and I've found several libraries that are capable of doing what I want in some ways.
But now after a few researches, I'm wondering what is the real... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: How do I split a string containing a math expression into a list? How do I tokenize the string:
"2+24*48/32"
Into a list:
['2', '+', '24', '*', '48', '/', '32']
A: This is a parsing problem, so neither regex not split() are the "good" solution. Use a parser generator instead.
I would look closely at pyparsing. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: What algorithm can you use to find duplicate phrases in a string? Given an arbitrary string, what is an efficient method of finding duplicate phrases? We can say that phrases must be longer than a certain length to be included.
Ideally, you would end up with the number of occurrences for each phrase.
A: In theory
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you include a JavaScript file from within a SharePoint WebPart? We have a medium sized .js file that we include in our web framework that I am porting over to SharePoint. However, I'm not sure how to go about this or what the best practice is. This is for a framework solution that will be used by other client... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best platform for learning embedded programming? I'm looking to learn about embedded programming (in C mainly, but I hope to brush up on my ASM as well) and I was wondering what the best platform would be. I have some experience in using Atmel AVR's and programming them with the stk500 and found that to be relativel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How do you do performance testing in Ruby webapps? I've been looking at ways people test their apps in order decide where to do caching or apply some extra engineering effort, and so far httperf and a simple sesslog have been quite helpful.
What tools and tricks did you apply on your projects?
A: I use httperf for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Kerberos Delegation for Clients Ouside the Firewall I am trying to run a SQL Server Reporting Services where the data for the report is on a SQL Server database that's on a different server. Integrated Authentication is turned on for both the Report Server and the report. I have confirmed that Kerberos delegation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way of getting notifications in SQL Server Reporting Services using Notification Services Is it possible to get notifications using SQL Server Reporting Services? Say for example I have a report that I want by mail if has for example suddenly shows more than 10 rows or if a specific value drop below 100 000. Do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the best way to serialize a HashTable for SOAP/XML? What's the best way to serialize a HashTable (or a data best navigated through a string indexer) with SOAP/XML?
Let's say I have a Foo that has an property Bar[] Bars. A Bar object has a key and a value. By default, this serializes to the following XML:
<Foo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what's the best app to draw UI wireframes on the mac? (And why) I want to draw user interfaces for web and desktop applications.
I need something less print-oriented than omnigraffle. think pixels!
Also, need good building blocks (aka stencils). Form elements, tableviews, etc.
A: I've been playing around with Balsa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How Does Relational Theory Apply in Ways I can Care About while Learning it? So I'm taking the Discrete Math course from MIT's OpenCourseWare and I'm wondering... I see the connection between relations and graphs but not enough to "own" it. I've implemented a simple state machine in SQL as well so I grok graphs pret... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reporting Services Deployment I need to create a repeatable process for deploying SQL Server Reporting Services reports. I am not in favor of using Visual Studio and or Business Development Studio to do this. The rs.exe method of scripting deployments also seems rather clunky. Does anyone have a very elegant way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to concatenate icons into a single image with ImageMagick? I want to use CSS sprites on a web site instead of separate image files, for a large collection of small icons that are all the same size. How can I concatenate (tile) them into one big image using ImageMagick?
A: convert works much better than montage.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Loading DLLs into a separate AppDomain I want to load one or more DLLs dynamically so that they run with a different security or basepath than my main application. How do I load these DLLs into a separate AppDomain and instantiate objects from them?
A: If you're targeting 3.5, you can take advantage of the new man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: CPAN/gem-like repository for Objective-C and Cocoa? Is there any centralized repository of useful Objective-C / Cocoa libraries as there is for Perl, Ruby, Python, etc.?
In building my first iPhone app, I'm finding myself implementing some very basic functions that would be just a quick "gem install" away in Ruby.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Using jmockit expectations with matchers and primitive types I'm using jmockit for unit testing (with TestNG), and I'm having trouble using the Expectations class to mock out a method that takes a primitive type (boolean) as a parameter, using a matcher. Here's some sample code that illustrates the problem.
/******... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What Is ASP.Net MVC? When I first heard about StackOverflow, and heard that it was being built in ASP.Net MVC, I was a little confused. I thought ASP.Net was always an example of an MVC architecture. You have the .aspx page that provides the view, the .aspx.vb page that provides the controller, and you can create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Flatten XML to HTML table There must be a generic way to transform some hierachical XML such as:
<element1 A="AValue" B="BValue">
<element2 C="DValue" D="CValue">
<element3 E="EValue1" F="FValue1"/>
<element3 E="EValue2" F="FValue2"/>
</element2>
...
</element1>
into the flattened XML (html) pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Disable (Politely) a website when the sql server is offline I work at a college and have been developing an ASP.NET site with many, many reports about students, attendance stats... The basis for the data is an MSSQL server DB which is the back end to our student management system. This has a regular maintenance peri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do you think ASP.NET MVC will compete with ASP.NET Webforms? Do you think ASP.NET MVC will ever have a significant share of the Microsoft web development market? Or will it be more like 10-15% of the market?
A: MVC is great but won't become a real contender as a replacement for Web Forms until it includes it's own ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What do you think of using properties as object initializers in C#; I was wondering what people thought of using properties as object initializers in C#. For some reason it seems to break the fundamentals of what constructors are used for.
An example...
public class Person
{
string firstName;
string lastName... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VS2008 Crashing on Project Load I am unable to load any existing projects after starting VS2008. When I try to open an existing project VS2008 will crash. It looks like it is crashing when trying to load a floating window in VS but I cant tell which one.
When I launch the debugger on the crashed instance I get the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I restore from a drop database command using a mysql binary log? How can I restore a mysql database that was dropped using a "drop database" command? I have access to binary logs which should make this type of rollback possible.
A: Documentation Sucks. It alludes to DROP DATABASE being recoverable, but only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Code in PHP for the ceiling function Anyone has ever programmed a PHP (or Perl) function to get the ceiling value Excel style?
A: This should be the answer, from php.net comments:
// MS Excel function: Ceiling( number, significance )
// duplicates m$ excel's ceiling function
if( !function_exists('ceiling') )
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the advantages and disadvantages of the Session Façade Core J2EE Pattern? What are the advantages and disadvantages of the Session Façade Core J2EE Pattern?
What are the assumptions behind it?
Are these assumptions valid in a particular environment?
A: Session Facade is a fantastic pattern - it is reall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: PDF Imposition in PHP I'm looking for a PHP library that will allow me to create a print-ready PDF. The imposition should include 1-up, 4-up, 24-up, etc. layouts, and crop marks.
FPDF, TCPDF and PHP's included PDF libraries allow me to create an image and plop it on a PDF, but the more advanced layouts and crop mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert Strings to and from UTF8 byte arrays in Java In Java, I have a String and I want to encode it as a byte array (in UTF8, or some other encoding). Alternately, I have a byte array (in some known encoding) and I want to convert it into a Java String. How do I do these conversions?
A: As an alternative, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "290"
} |
Q: Polynomial time algorithm for finding a Hamiltonian walk in a graph Is there a polynomial time algorithm for finding a Hamiltonian walk in a graph?
My algorithm is N factorial and is really slow.
A: It's NP complete. But if you do manage to find a good method, let me know and I'll show you how to get rich.
A: In g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does the Java VM move objects in memory, and if so - how? Does the Java virtual machine ever move objects in memory, and if so, how does it handle updating references to the moved object?
I ask because I'm exploring an idea of storing objects in a distributed fashion (ie. across multiple servers), but I need the abi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Maven Jdepend report contains no data I'm running the jdepend maven plugin on my project and whether I run "mvn site:site" or "mvn jdepend:generate" the report that gets generated says "There are no package used." There are no errors in the maven output. Other plugins (cobertura, findbugs, etc.) run fine. My pom is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: YUI Autocomplete renders under other page elements in IE7 I'm working now on a page that has a column of boxes styled with sexy shadows and corners and whatnot using the example here. I have to admit, I don't fully understand how that CSS works, but it looks great.
Inside the topmost box is a text-type input used f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Error Creating Window Handle" We're working on a very large .NET WinForms composite application - not CAB, but a similar home grown framework. We're running in a Citrix and RDP environment running on Windows Server 2003.
We're starting to run into random and difficult to reproduct "Error creating window handle" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Zend Framework - ErrorHandler does not seem to be working as expected This is my first experience using the Zend Framework. I am attempting to follow the Quick Start tutorial. Everything was working as expected until I reached the section on the Error Controller and View. When I navigate to a page that does not exis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is a heuristic fencepost? And why does gdb seem to "hit" it?
A: According to this page, GDB is searching backward in the object code to find the beginning of a function, and it is hitting an imposed limit. If you can set the fence post limit to 0 or increase it, you might avoid the error, but it will take long... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using git to grep through a file's previous versions? Is there a command that would allow me to check if the string "xyz" was ever in file foo.c in the repository and print which revisions they were found in?
A: This will print any commits where the diff contains xyz. Note the -- separating the filename from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: lining up function parameter lists with vim When defining or calling functions with enough arguments to span multiple lines, I want vim to line them up. For example,
def myfunction(arg1, arg2, arg, ...
argsN-1, argN)
The idea is for argsN-1 to have its 'a' lined up with args1.
Does anyone have a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why does PEP-8 specify a maximum line length of 79 characters? Why in this millennium should Python PEP-8 specify a maximum line length of 79 characters?
Pretty much every code editor under the sun can handle longer lines. What to do with wrapping should be the choice of the content consumer, not the responsibility... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "306"
} |
Q: Is there any reason to not ship the pdb's with your application? Since you can use reflector to reverse-engineer a .Net app, is there any reason to NOT ship the pdb files with the app? If you do ship them with it, then your stack trace will include the line number with the problem, which is useful if it crashes.
Ple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What does {0} mean when initializing an object? When {0} is used to initialize an object, what does it mean? I can't find any references to {0} anywhere, and because of the curly braces Google searches are not helpful.
Example code:
SHELLEXECUTEINFO sexi = {0}; // what does this do?
sexi.cbSize = sizeof(SHELLEXECUTE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "261"
} |
Q: Preventing bad data input Is it good practice to delegate data validation entirely to the database engine constraints?
Validating data from the application doesn't prevent invalid insertion from another software (possibly written in another language by another team). Using database constraints you reduce the points ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Asynchronous file IO in .Net I'm building a toy database in C# to learn more about compiler, optimizer, and indexing technology.
I want to maintain maximum parallelism between (at least read) requests for bringing pages into the buffer pool, but I am confused about how best to accomplish this in .NET.
Here are some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Produce conditional compile time error in Java I do not mean the compile errors because I made a syntax mistake or whatever. In C++ we can create compile time errors based on conditions as in the following example:
template<int> struct CompileTimeError;
template<> struct CompileTimeError<true> {};
#define STATIC_CH... | {
"language": "en",
"url": "https://stackoverflow.com/questions/88991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copyright and Fair Use in Distributable Software At what length of text and/or length of audio snippet does a piece of commercially distributable software pass the threshold of fair use and violate the included work's copyright? Does attribution absolve the developer from infringement? An example would be a quote ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Place To get EULA and Other Legalese For Software? I was curious if anyone out there has experience getting the necessary legal documents (user agreements, privacy policies, disclaimers, etc.) for a small software business. For example if you just want to have a software 'company' that sells a few piece of software... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Queuing actions (not effects) to execute after an amount of time. What I'd like to know is if there is a nice way to queue jQuery functions to execute after a set amount of time. This wouldn't pause the execution of other functions, just the ones following in the chain. Perhaps an example of what I'd envisage it wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you read C declarations? I have heard of some methods, but none of them have stuck. Personally I try to avoid complex types in C and try to break them into component typedef.
I'm now faced with maintaining some legacy code from a so called 'three star programmer', and I'm having a hard time reading some of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: What happens to your time slice if you get pre-empted in vxWorks? If you have round robin enabled in Vxworks and your task gets preempted by a higher priority task, what happens to the remaining time slice?
A: Your task will resume execution and finish the remainder of the time slice.
Note that you will have some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is Microsoft SharePoint? I have heard that Microsoft SharePoint was used by many companies. Could someone tell me briefly what is SharePoint and why is it popular?
A: Previous answers describe what sharepoint is, but don't do a good job describing why it's popular. Yes, it gives you all that neat doc-manageme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Diagnosing Deadlocks in Win32 Program What are the steps and techniques to debug an apparent hang due to a deadlock in a Win32 production process. I heard that WinDbg can be used for this purpose but could you please provide clear hints on how this can be accomplished?
A: This post should get you started on the var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Apache gives me 403 Access Forbidden when DocumentRoot points to two different drives I am getting an 403 access forbidden when attempting to open a page under a vhost where the document root is sitting on a different drive than where apache is sitting. I installed using the apachefriends release. This is my httpd-v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: C#: Why does Settings PropertyValues have 0 items? Assuming there are 5 items in the settings file (MySetting1 to MySetting5), why does PropertyValues have 0 items while Properties has the correct number?
Console.WriteLine( Properties.Settings.Default.PropertyValues.Count); // Displays 0
Console.WriteLine( Properti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Benefits of using short-circuit evaluation boolean a = false, b = true;
if ( a && b ) { ... };
In most languages, b will not get evaluated because a is false so a && b cannot be true. My question is, wouldn't short circuiting be slower in terms of architecture? In a pipeline, do you just stall while waiting to get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Autocomplete Textbox on Gridview editing How do you implement autocomplete on ASP.Net Gridview? Can anyone point me where to go to achieve this? I'm willing to use non-.Net ajax controls if that what it takes.
A: You will need to utilise an AJAX framework (JQuery is one i often recommend) which will provide the fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In Python, what is the fastest algorithm for removing duplicates from a list so that all elements are unique *while preserving order*? For example:
>>> x = [1, 1, 2, 'a', 'a', 3]
>>> unique(x)
[1, 2, 'a', 3]
Assume list elements are hashable.
Clarification: The result should keep the first duplicate in the list. Fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: CVS Checkout to a directory How do i check out a specific directory from CVS and omit the tree leading up to that directory?
EX.
Id like to checkout to this directory
C:/WebHost/MyWebApp/www
My CVS Project directory structure is
MyWebApp/Trunk/www
How do i omit the Trunk and MyWebApp directories?
A: CVS is 'tied' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Get Flex app's position on a web page? Is it possible to get the x,y coordinates of a Flex app within an HTML page? I know you can use ExternalInterface.ObjecID to get the "id attribute of the object tag in Internet Explorer, or the name attribute of the embed tag in Netscape" but I can't seem to get past that step... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does LINQ-to-SQL Support Composable Queries? Speaking as a non-C# savvy programmer, I'm curious as to the evaluation semantics of LINQ queries like the following:
var people = from p in Person
where p.age < 18
select p
var otherPeople = from p in people
where p.firstName ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Difference between Convert.ToDecimal(string) & Decimal.Parse(string) What is the difference in C# between Convert.ToDecimal(string) and Decimal.Parse(string)?
In what scenarios would you use one over the other?
What impact does it have on performance?
What other factors should I be taking into consideration when cho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Functional Programming Architecture I'm familiar with object-oriented architecture, including use of design patterns and class diagrams for visualization, and I know of service-oriented architecture with its contracts and protocol bindings, but is there anything characteristic about a software architecture for a sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Working with .qr2 reports in .NET? We use an ERP that has a bunch of reports in QuickReport format (.qr2). From what I could search, Quickreports has an interface for Delphi but not for .NET.
Anyone know if there's a (preferably free/OSS) solution for converting .qr2 reports to something I could work with in C#? Or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a tool to convert a .vim colour definition file to use in VS.NET 2008 If you go to a site such as:
http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/index-c.html
It has a bunch of example colour themes for VI.
Does anyone know of a tool that would take those files and convert them into .vssettings files to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I execute a program or call a system command? How do I call an external command within Python as if I had typed it in a shell or command prompt?
A: There are a lot of different ways to run external commands in Python,
and all of them have their own plus sides and drawbacks.
My colleagues and me have been wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5919"
} |
Q: How to hide complete volume? Using Windows Server 2003 in a multi-user environment (via Remote Desktop, using it as an application server), how to mount a (preferably encrypted) volume in a way, that won't show up on any other user's desktop?
Tried, and failed approaches:
*
*tweaking user rights -display of mount... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you manage .NET app.config files for large applications? Suppose a large composite application built on several foundation components packaged in their own assemblies: (database reading, protocol handlers, etc.). For some deployments, this can include over 20 assemblies. Each of these assemblies has settin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: naming columns in excel with Complex sql I’m trying to run this SQL using get external.
It works, but when I try to rename the sub-queries or anything for that matter it remove it.
I tried as, as and the name in '', as then the name in "",
and the same with space. What is the right way to do that?
Relevant SQL:
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perl: variable scope issue with CGI & DBI modules I've run into what appears to be a variable scope issue I haven't encountered before. I'm using Perl's CGI module and a call to DBI's do() method. Here's the code structure, simplified a bit:
use DBI;
use CGI qw(:cgi-lib);
&ReadParse;
my $dbh = DBI->connect(............ | {
"language": "en",
"url": "https://stackoverflow.com/questions/89257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to implement closures without gc? I'm designing a language. First, I want to decide what code to generate. The language will have lexical closures and prototype based inheritance similar to javascript. But I'm not a fan of gc and try to avoid as much as possible. So the question: Is there an elegant way to imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Best C++ IDE or Editor for Windows What is the best C++ IDE or editor for using on Windows? I use Notepad++, but am missing IntelliSense from Visual Studio.
A: I think the debugger in Visual Studio (Express) is the killer thing that prevents me from using another IDE.
A: Visual Studio + Visual Assist X (http://www... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Whats a good way to trim the GUI of a ASP.NET website? I've been trimming the UI of our website by doing the following in the onload event of that control:
btnDelete.isVisible = user.IsInRole("can delete");
This has become very tedious because there are so many controls to check again and again. As soon as I get i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Two Phase Commit/Shared Transaction The scenario is this
We have two applications A and B, both which are running in separate database (Oracle 9i ) transactions
Application A - inserts some data into the database, then calls Application B
Application B - inserts some data into the database, related (via foreign keys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I recover a dropped stash in Git? I frequently use git stash and git stash pop to save and restore changes in my working tree. Yesterday, I had some changes in my working tree that I had stashed and popped, and then I made more changes to my working tree. I'd like to go back and review yesterday's stashed cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2345"
} |
Q: Is it possible to store and retrieve a boolean value in a varchar field using Java JDBC? quick question: my customer has a situation where he has his database with a varchar field and the corresponding jdbc code is storing/retrieving a boolean.
I guess that the boolean values false and true are going to be translate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Windows workflow Can anyone explain what is windows workflow and how can we use in the work organization.
A: Windows Workflow Foundation is a fascinating concept. It allows you to create powerful applications (or just parts of them) using a combination of flowchart-like concepts and normal code.
The deeper value o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to import variable record length CSV file using SSIS? Has anyone been able to get a variable record length text file (CSV) into SQL Server via SSIS?
I have tried time and again to get a CSV file into a SQL Server table, using SSIS, where the input file has varying record lengths. For this question, the two diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using Merb for Facebook Application Since Rails is not multithreaded (yet), it seems like a threaded web framework would be a better choice for a Facebook application. (reason being is cuz each Rails process can only handle one request at a time, and facebook actions tend to be slow, because there is a lot of netwo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Help with algorithm for merging vectors I need a very fast algorithm for the following task. I have already implemented several algorithms that complete it, but they're all too slow for the performance I need. It should be fast enough that the algorithm can be run at least 100,000 times a second on a modern CPU. It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Reference app relative virtual paths in .css file Assume I have an "images" folder directory under the root of my application. How can I, from within a .css file, reference an image in this directory using an ASP.NET app relative path.
Example:
When in development, the path of ~/Images/Test.gif might resolve to /... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Bypass GeneratedValue in Hibernate Is it possible to bypass @GeneratedValue for an ID in Hibernate, we have a case where, most of the time we want the ID to be set using GeneratedValue, but in certain cases would like to set the ID manually.
Is this possible to do?
A: I know you can do this in the JPA spec, so you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I get my Visual Studio Test Suite web test to iterate over my data source? I have Visual Studio web test attached nicely to a data source, but I need to be able to iterate over each entry in the data source. How should I do this?
A: The trick is to select "Run test(pause before starting)"
Then when the test ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/89441",
"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.