text stringlengths 8 267k | meta dict |
|---|---|
Q: Xcode: 'Generics are not supported in -source 1.3' compiler error? just a quick question:
I am a CS undergrad and have only had experience with the Eclipse, and Net Beans IDEs. I have recently acquired a Macbook and was wanting to recompile a recent school project in Xcode just to test it out. Right after the line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/109948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How should I organize my ASP.Net themes and common CSS files I am currently working on a project where a programmer who fancied themselves a graphic designer attempted their hand at ASP.Net themes. The CSS is pretty bad, but that is another question altogether.
What I really need help with is the best way to organiz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/109970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why should I use RSpec or shoulda with Rails? I am setting up a rails app and I just finished making some unit tests and my friend said that apparently fixtures are no longer cool and people are now using RSpec or shoulda. I was wondering what the actual benefits are to use these other toolkits. Any information at... | {
"language": "en",
"url": "https://stackoverflow.com/questions/109976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How can I get a hardware-based screen capture? In the past, some of my projects have required me to create a movie version of a fullscreen Flash application. The easiest way to do this has been to get a screen capture. However, capturing anything over 1024x768 has resulted in choppy video, which is unacceptable. I u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/109993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you protect your software from illegal distribution? I am curious about how do you protect your software against cracking, hacking etc.
Do you employ some kind of serial number check? Hardware keys?
Do you use any third-party solutions?
How do you go about solving licensing issues? (e.g. managing floating li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/109997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: Windows Licensing Question This is slightly off topic of programming but still has to do with my programming project. I'm writing an app that uses a custom proxy server. I would like to write the server in C# since it would be easier to write and maintain, but I am concerned about the licensing cost of Windows Ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not getting event arguments in IHTMLElement event handler I've added a callback to an IHTMLElement instance but when the IDispatch::Invoke is called for the event, there are never any arguments (i.e. the pDispParams->cArgs and pDispParams->cNamedArgs are always 0). For example, I add a callback for an onmouseup even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Multiple column sort in JTable I know that JTable can sort by a single column. But is it possible to allow for multiple column sort or do I need to write the code myself?
A: You should be able to set the TableRowSorter and the Comparator associated with it.
Example:
TableModel myModel = createMyTableModel();
JTable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way to stamp an image with another image to create a watermark in ASP.NET? Anyone know? Want to be able to on the fly stamp an image with another image as a watermark, also to do large batches. Any type of existing library or a technique you know of would be great.
A: I have had good luck with ImageMagick. It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: VisualStudio using BootCamp/VMWare on OS X Just bought a 2.4GHz Intel Core 2 Duo iMac with 2GB of memory and a 320GB hard drive. I plan on doing some .net development on it using a BootCamp/VMWare combo since VMWare grants access to the bootcamp partition.
What is a recommended size for a BootCamp partition and how ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is XSLT a functional programming language? Several questions about functional programming languages have got me thinking about whether XSLT is a functional programming language. If not, what features are missing? Has XSLT 2.0 shortened or closed the gap?
A: I am sure you guys have found this link by now :-) http://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Star-Schema Design Is a Star-Schema design essential to a data warehouse? Or can you do data warehousing with another design pattern?
A: Using star schemas for a data warehouse system gets you several benefits and in most cases it is appropriate to use them for the top layer. You may also have an operational data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: How do I determine if I should install Drupal 5.x or 6.x? I'm planning to install Drupal. Is there any reason not to install the latest 6.x version as opposed to the 5.x branch? Are there any really good modules that are 5.x only?
A: Unless you have a 5.x module that you can't do without, and that you know is being... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the best way to store app specific configuration in rails? I need to store app specific configuration in rails. But it has to be:
*
*reachable in any file (model, view, helpers and controllers
*environment specified (or not), that means each environment can overwrite the configs specified in environment.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: LinearGradientBrush Artifact Workaround? The LinearGradientBrush in .net (or even in GDI+ as a whole?) seems to have a severe bug: Sometimes, it introduces artifacts. (See here or here - essentially, the first line of a linear gradient is drawn in the endcolor, i.e. a gradient from White to Black will start with a B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Which loop has better performance? Why? String s = "";
for(i=0;i<....){
s = some Assignment;
}
or
for(i=0;i<..){
String s = some Assignment;
}
I don't need to use 's' outside the loop ever again.
The first option is perhaps better since a new String is not initialized each time. The second however would r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Is there set division in SQL? I'm fully aware that set division can be accomplished through a series of other operations, so my question is:
Is there a command for set division in SQL?
A: http://vadimtropashko.files.wordpress.com/2007/02/ch3.pdf
From Page 32:
Relational Division is not a fundamental operator. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Logic and its application to Collections.Generic and inheritance Everything inherits from object. It's the basis of inheritance. Everything can be implicitly cast up the inheritance tree, ie.
object me = new Person();
Therefore, following this through to its logical conclusion, a group of People would also be a gro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you allow the usage of an while preventing XSS? I'm using ASP.NET Web Forms for blog style comments.
Edit 1: This looks way more complicated then I first thought. How do you filter the src?
I would prefer to still use real html tags but if things get too complicated that way, I might go a custom route. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tips for getting started with SQL? I've never had much need for programming with databases. Since their use is so widespread it seems like a good thing for me to learn. SQL seems like the place to start, possibly SQLite and maybe the Python bindings. What would you recommend for someone new to this? Libraries, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to retrieve all keys (or values) from a std::map and put them into a vector? This is one of the possible ways I come out:
struct RetrieveKey
{
template <typename T>
typename T::first_type operator()(T keyValuePair) const
{
return keyValuePair.first;
}
};
map<int, int> m;
vector<int> keys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "328"
} |
Q: How do I save a model with this dynamically generated field? I have a rails model that looks something like this:
class Recipe < ActiveRecord::Base
has_many :ingredients
attr_accessor :ingredients_string
attr_accessible :title, :directions, :ingredients, :ingredients_string
before_save :set_ingredients
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to access the current Subversion build number? How can you automatically import the latest build/revision number in subversion?
The goal would be to have that number visible on your webpage footer like SO does.
A: If you have tortoise SVN you can use SubWCRev.exe
Create a file called:
RevisionInfo.tmpl
SvnRevi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Feedback on using Google App Engine? Looking to do a very small, quick 'n dirty side project. I like the fact that the Google App Engine is running on Python with Django built right in - gives me an excuse to try that platform... but my question is this:
Has anyone made use of the app engine for anything other than ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Want to download a Git repository, what do I need (windows machine)? I want to download this open source application, and they are using Git. What do I need to download the code base?
Update
How do I change the working directory when I am using Git Bash? (I want to download the repo at a certain directory, using p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Is "int?" somehow a reference type? What is the behind-the-scenes difference between int? and int data types?
Is int? somehow a reference type?
A: In addition to "int?" being a shortcut for "Nullable", there was also infrastructure put into the CLR in order to implicitly and silently convert between "int?" and "int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: CakePHP multi-model view I am creating a website in CakePHP and I am kind of new on it. I couldn't find good resources on this matter, so there you go:
I have a three table structure for registering users: Users, Addresses and Contacts. I have to build a view with info of all three tables like:
Full Name: [... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Building and deploying dll on windows: SxS, manifests and all that jazz Since VS 2005, I see that it is not possible to simply build a dll against MS runtime and deploy them together (http://www.ddj.com/windows/184406482). I am deeply confused by manifest, SxS and co: MSDN documentation is really poor, with circular... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which Python memory profiler is recommended? I want to know the memory usage of my Python application and specifically want to know what code blocks/portions or objects are consuming most memory.
Google search shows a commercial one is Python Memory Validator (Windows only).
And open source ones are PySizer and Heap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "750"
} |
Q: how do i add project references to swcs in FlashDevelop I am trying to add a project reference or swc to papervision in FlashDevelop but intellisense isn't picking it up. I've done it before but i forgot how.
Thanks.
A: In the menus:
Project -> Properties -> Compiler Options -> SWC Libraries
(and then add the pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is using Dexter's character sprite okay, or do I have to .
Inspiration -- Southpark game
(very popular if you see download count on download.com ,,, did he ask for permission ??)
I am making a 2d game based on dexter's lab theme. I've got the sprite of dexter from GSA. basically I'm not an artist, so I have to de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VMware ESX vs. VMware Workstation I'm using VMware Workstation 6.0 for simulation of tight clusters of "blades" in a "chassis". Both the host and target OSs are Linux. Each "chassis" uses a vmnet switch as a virtual backplane, to which the virtual blades connect. Other vmnet switches are used to mediate point-to-poi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you find media resources for game-dev? I've been wondering, as a lone game developer,
or to say a part of team which has only got programmers and people who like to play games...
How do I manage the void created by lack of artists (sprites/tiles/animations) in such a situation???
What do you do in that case?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How is style inherited How can I make a style have all of the properties of the style defined in .a .b .c except for background-color (or some other property)? This does not seem to work.
.a .b .c
{
background-color: #0000FF;
color: #ffffff;
border: 1px solid #c0c0c0;
margin-top: 4px;
padding: 3p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Internet Explorer ol numbers appear at bottom of li instead of top as expected I'm working on a page has an ol with nested p's, div's, and li's. Internet Explorer 6 and 7 both render the numbers for the ol tag after the p element at the end (at the very, very bottom of the li tag) rather than at the top of the outer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make sure my git repo code is safe? If our organisation were to switch from a central-server VCS like subversion to a distributed VCS like git, how do I make sure that all my code is safe from hardware failure?
With a central-server VCS I just need to backup the repository every day. If we were using a DVCS t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: LINQ to entities - Building where clauses to test collections within a many to many relationship So, I am using the Linq entity framework. I have 2 entities: Content and Tag. They are in a many-to-many relationship with one another. Content can have many Tags and Tag can have many Contents. So I am trying to write a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Get millions of records from fixed-width flat file to SQL 2000 Obviously I can use BCP but here is the issue. If one of the records in a Batch have an invalid date I want to redirect that to a separate table/file/whatever, but keep the batch processing running. I don't think SSIS can be installed on the server which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How much business logic should Value objects contain? One mentor I respect suggests that a simple bean is a waste of time - that value objects 'MUST' contain some business logic to be useful.
Another says such code is difficult to maintain and that all business logic must be externalized.
I realize this question i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: filtering NSArray into a new NSArray in Objective-C I have an NSArray and I'd like to create a new NSArray with objects from the original array that meet certain criteria. The criteria is decided by a function that returns a BOOL.
I can create an NSMutableArray, iterate through the source array and copy over the obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: Closing a minimized/iconized process from C# Here's my issue: I need to close a process, already running, from a C# program.
The problem is that the process now runs as an icon (minimized to taskbar), and unless the user opens it at least once (which will never happen on unattended machines), it'll never
have a mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TCP handshake with SOCK_RAW socket Ok, I realize this situation is somewhat unusual, but I need to establish a TCP connection (the 3-way handshake) using only raw sockets (in C, in linux) -- i.e. I need to construct the IP headers and TCP headers myself. I'm writing a server (so I have to first respond to the incom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Algorithm to calculate the number of divisors of a given number What would be the most optimal algorithm (performance-wise) to calculate the number of divisors of a given number?
It'll be great if you could provide pseudocode or a link to some example.
EDIT: All the answers have been very helpful, thank you. I'm imp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "182"
} |
Q: Can an element's CSS class be set via JavaScript? I want to do this:
e.className = t;
Where t is the name of a style I have defined in a stylesheet.
A: Yes, that works (with the class name as a string, as jonah mentioned). Also, you can set style attributes directly on an object, using the DOM Level 2 Style interf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I find the current OS in Python? As the title says, how can I find the current operating system in python?
A: import os
print(os.name)
This gives you the essential information you will usually need. To distinguish between, say, different editions of Windows, you will have to use a platform-specific method.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "328"
} |
Q: Change the width of form elements created with ModelForm in Django How can I change the width of a textarea form element if I used ModelForm to create it?
Here is my product class:
class ProductForm(ModelForm):
long_desc = forms.CharField(widget=forms.Textarea)
short_desc = forms.CharField(widget=forms.Texta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Setting result for IAuthorizationFilter I am looking to set the result action from a failed IAuthorizationFilter. However I am unsure how to create an ActionResult from inside the Filter. The controller doesn't seem to be accible from inside the filter so my usual View("SomeView") isn't working. Is there a way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Limiting a group of checkboxes to a certain amount of checks I have a group of checkboxes that I only want to allow a set amount to be checked at any one time. If the newly checked checkbox pushes the count over the limit, I'd like the oldest checkbox to be automatically unchecked. The group of checkboxes all use th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TinyXML: Save document to char * or string I'm attempting to use TinyXML to read and save from memory, instead of only reading and saving files to disk.
It seems that the documnent's parse function can load a char *. But then I need to save the document to a char * when I'm done with it. Does anyone know about this?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How to serve files from IIS 6 on Windows Server 2003? I have files with extensions like ".dae" , ".gtc" , etc. When I try to hit these files over http, the server returns a 404, but they are in the directories. However I can serve readily known file extensions; if i just rename them to say, xml, they are accessible.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How many unit tests should I write per function/method? Do you write one test per function/method, with multiple checks in the test, or a test for each check?
A: I have a test per capability the function is offering. Each test may have several assertions, however.
The name of the testcase indicates the capability ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Advice on mixing legacy ASP site with .NET 2.0 We've just been tasked with updating an e-commerce application to use PayPal's PayFlow product. The site was originally written in classic ASP except for the credit card processing portion which was a COM component.
Our plan is to replace the COM component with a .NET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any Common Lisp implementations for .Net? Are there any Common Lisp implementations for .Net?
A: L Sharp .NET
A: Full common lisp for .NET http://code.google.com/p/uabcl/
A: I haven't looked at it recently, but at least in the past there were some problems with fully implementing common lisp on the CLR,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Cleaning up Legacy Code "header spaghetti" Any recommended practices for cleaning up "header spaghetti" which is causing extremely
slow compilation times (Linux/Unix)?
Is there any equvalent to "#pragma once" with GCC?
(found conflicting messages regarding this)
Thanks.
A: Assuming you're familiar with "include gu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to add WCF templates to Visual Studio Express? I am working through the book Learning WCF by Michele Bustamante, and trying to do it using Visual Studio C# Express 2008. The instructions say to use WCF project and item templates, which are not included with VS C# Express. There are templates for these types in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What percentage of my time will be spent in user input verfication during web development? I'm new to developing things on the web. So far, I'm spending a lot of time (50% or so) to try and prevent bad people from putting things like sql injection into my input forms and validating it server side. Is this normal? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Anyone know of any (free / open source) VI integration for Visual Studio? vi is for cool kids.
A: *
*ViEmu - Not Free but great Vim emulation.
*Visual_Studio.vim - Allows you to manage visual studio from Vim.
*Using GVim as the Visual Studio Editor
http://vim.wikia.com/wiki/Integrate_gvim_with_Visual_Studio
a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: What is the best way to collect/report unexpected errors in .NET Window Applications? I am looking for a better solution than what we currently have to deal with unexpected production errors, without reinventing the wheel.
A larger number of our products are WinForm and WPF applications that are installed at remote ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there an easy way to request a URL in python and NOT follow redirects? Looking at the source of urllib2 it looks like the easiest way to do it would be to subclass HTTPRedirectHandler and then use build_opener to override the default HTTPRedirectHandler, but this seems like a lot of (relatively complicated) work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: Mod_rails and mongrel running on the same server? I'm currently running mongrel clusters with monit watching over them for 8 Rails applications on one server.
I'd like to move 7 of these applications to mod_rails, with one remaining on mongrel. The 7 smaller applications are low-volume, while the one I'd like to rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are jQuery's limitations? Joel always said to be careful when using 3rd party libraries. From my initial impressions, jQuery is great. What should I beware of when using it? What are the limitations? What headaches will I run into later on as I use it more?
A: I've used it extensively and I have to admit, I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Prevent .NET from "lifting" local variables I have the following code:
string prefix = "OLD:";
Func<string, string> prependAction = (x => prefix + x);
prefix = "NEW:";
Console.WriteLine(prependAction("brownie"));
Because the compiler replaces the prefix variable with a closure "NEW:brownie" is printed to the consol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Anyone familiar with a good "sticky windows" library for Winforms? I want to recreate the stickiness and snapping of windows, like it is implemented in Winamp.
The basic premise is, when you drag a window and it comes close to another one, it will snap to it and will stick. When you move it the two will move togethe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you recommend a good FLEX online resource or book? Are there any favorite online references or good introductory and intermediate/advanced books on this topic that you could recommend to me?
I'm a java developer, so I'm looking for something which would be familiar as possible as to me.
A: Essential ActionScrip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to pass a generic property as a parameter to a function? I need to write a function that receives a property as a parameter and execute its getter.
If I needed to pass a function/delegate I would have used:
delegate RET FunctionDelegate<T, RET>(T t);
void func<T, RET>(FunctionDelegate function, T param, ...)
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does anybody know of a tabbed FTP client? Am I the only person who has the need to view multiple directories at once (usually on the same remote server, but sometimes other ones too)? Disconnecting and reconnecting is driving me crazy.
Preferably a free tool, but I'm getting to the stage where I'll try anything!
Can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do htmlspecialchars and mysql_real_escape_string keep my PHP code safe from injection? Earlier today a question was asked regarding input validation strategies in web apps.
The top answer, at time of writing, suggests in PHP just using htmlspecialchars and mysql_real_escape_string.
My question is: Is this always en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: How to allow different content types in different folders of the same document library in WSS 3.0? I have a document library with about 50 available content types. This document library is divided into several folders. When a user cliks the "New" button in a folder, all available content types are offered. I need t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL - How do you compare a CLOB in a DB2 trigger, I need to compare the value of a CLOB field.
Something like:
IF OLD_ROW.CLOB_FIELD != UPDATED_ROW.CLOB_FIELD
but "!=" does not work for comparing CLOBs.
What is the way to compare it?
Edited to add:
My trigger needs to do some action if the Clob field was changed d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: User Defined Fields with NHibernate I need to add a user defined fields feature to an asp.net c# application that uses NHibernate.
The user must be able to add and remove fields from several objects in the system "on the fly", preferably without any system downtime.
One important constraint is that the database sche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to unit test a DAO that is extending SqlMapClientDaoSupport Spring DA helps in writing DAOs. When using iBATIS as the persistence framework, and extending SqlMapClientDaoSupport, a SqlMapClient mock should be set for the DAO, but I can't do it. SqlMapClientTemplate is not an interface and EasyMock cannot creates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you change the http header information sent in IIS 6 Currently IIS sends an expires http header of yesterday minus 1 hour on ASP.NET pages. How do I change this to 60 seconds in the further instead?
A: You can also add a content-expires page directive to your ASP.NET page (for different expire schedules):
@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any OS X equivalents to `hcitool`? I'd like to write some quick scripts to play with bluetooth devices (scan etc…), for the Mac. Under linux I'd probably use hcitool, or the python bluez library.
What tools are there for the Mac?
A: hcitool is a command that comes with BlueZ, which is specific to the Lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: GCC optimization flags for Intel Atom I'm developing a performance critical application for Intel Atom processor.
What are the best gcc optimization flags for this CPU?
A: Well, the Gentoo wiki states for the prescott:
http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel#Atom_N270
CHOST="i686-pc-linux-gnu"
CFLAGS="-mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: USRP2: Number of A/D Converters Why are there two A/D converters on the USRP2 board if you can only use one RX
daughtercard?
A: Most of the daughterboards do quadrature downconversion and produce
analog I & Q. For those daughterboards we use 1 A/D for I and another
one for Q.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/110680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What coding techniques do you use for optimising C programs? Some years ago I was on a panel that was interviewing candidates for a relatively senior embedded C programmer position.
One of the standard questions that I asked was about optimisation techniques. I was quite surprised that some of the candidates didn't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Bandwith USRP2 What is the maximum bandwith I can handle with an USRP2?
A: USRP2 A/D samples at 100MS/s I & Q is decimated to 25MS/s complex. We use 16-bit I & Q.
That works out to ~800Mbit/s on the gigabit ethernet, which the USRP2
can sustain, no problem.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/110692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which Continuous Integration library to use? I've worked with Cruise Control as the CI framework in my last project.
Any recommendations on some other tools?
(Not that i found CruiseControl lacking, just wanted to know if someone did some comparisons)
A: JetBrain's TeamCity is pretty cool.
A: We use Bamboo.
For a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What are some good microcontroller development boards to learn the .Net micro framework? Excluding the Micro Framework Emulator ;)
A: A well known one is Tahoe. Others are
*
*http://www.sjjmicro.com/EDK.html
*http://www.ghielectronics.com/details.php?id=107&sid=108
A: I recommend http://www.netduino.com It is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Regular expression to convert mark down to HTML How would you write a regular expression to convert mark down into HTML? For example, you would type in the following:
This would be *italicized* text and this would be **bold** text
This would then need to be converted to:
This would be <em>italicized</em> text and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Report generation I am writing a web app using TurboGears, and in that app the users must be able to generate different reports.
The data the reports need is stored in a database (MySQL).
The reports must be returned either as a easily printable html document, or a pdf file.
I have previously used jasper and iReport... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to convert from Decimal to T? I've built a wrapper over NumbericUpDown control.
The wrapper is generic and can support int? and double?
I would like to write a method that will do the following.
public partial class NullableNumericUpDown<T> : UserControl where T : struct
{
private NumbericUpDown numericUpDown;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to reduce the bandwith with very high sample frequency on USRP I am using USRP with DBSRX daughter board.
I need a very high sample frequency. Currently, the USRP can give me
maximum sample frequency of 64M/8 in I and Q, and the data type is
short, which takes 2 bytes.
So can I decrease the length of the output... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Re-ordering entries in a model using drag-and-drop Say I have a blogging app in Django. How can i re-order the posts using a draggable table in the default admin?
It would be best if i didn't have to add any extra fields to the model, but if i really have to i can.
A: For working code to do this, check out snippet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to do Channel measurements in Gnuradio? What is the best way to measure the channel for use in space-time
coding schemes using an RFX2400 board?
As far as I know you can only get the I and Q streams out of the USRP,
and I'm not sure how you would get a set of channel coefficients.
I am planning on using the conj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I install ExtUtils::PkgConfig in Perl on Windows? I've tried cpan and cpanp shell and I keep getting:
ExtUtils::PkgConfig requires the pkg-config utility, but it doesn't
seem to be in your PATH. Is it correctly installed?
What is the pkg-config utility and how do I install it?
Updates:
*
*OS: Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Dirty fields in django In my app i need to save changed values (old and new) when model gets saved. Any examples or working code?
I need this for premoderation of content. For example, if user changes something in model, then administrator can see all changes in separate table and then decide to apply them or not.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Integrating gyro and accelerometer readings
Possible Duplicate:
Combine Gyroscope and Accelerometer Data
I have read a number of papers on Kalman filters, but there seem to be few good publically accessible worked examples of getting from mathematical paper to actual working code.
I have a system containing a thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Best graphic library for .NET/Mono I am looking for a high-performance graphic library for .NET and Mono. I have taken a look at Tao framework and, while it is very complete, it's quite lacking in terms of usability. It should be cross-platform compatible.
What other alternatives worked for you?
A: There is a more ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Firefox status bar is 3/4" above the bottom border Somehow my FireFox 2 got corrupted, and the status bar is about 3/4" above the bottom window border.
Anyone have an idea on how to get it back to being flush with the bottom window border?
A: Not sure it is programming-related... but:
firefox -safe-mode
Reset toolb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Saving information in "sub" model in CakePHP I've got a simple CakePHP site (1.2). I've got a page where you can edit and save a Person. So I have a Person model and controller.
Each Person has none or more comments, in the comment table. So I have a Comment model, and I have a hasMany association on my Person model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamically importing a C++ class from a DLL What is the correct way to import a C++ class from a DLL? We're using Visual C++.
There's the dllexport/exports.def+LoadLibrary+GetProcAddress trifecta, but it doesn't work on C++ classes, only C functions. Is this due to C++ name-mangling? How do I make this work?
A: F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Never do anything until you ready to use it, in software too? [Toyota principle] I was listening to a podcast. Where they talked about principles Toyota was using:
Never do anything until you are ready to use it.
I think this tells us to look in other places, to learn what other practices have been known for years... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In need for a site that explains how to use PHPUnit I am searching for a tutorial (optimally with Zend Framework) on how to use PHPUnit.
I have found a couple on google but have not quiet understood it yet.
A: For information about PHPUnit, be sure to read the documentation. It does not look too bad IMO. There is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Debugging Designer processing in VS 2008 I have a public property set in my form of type ListE<T> where:
public class ListE<T> : IList<T>, ICollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable
Yeah, it's a mouthful, but that's what the Designer requires for it to show up as an editable collection in the P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Never produce to an unknown pathway, in software too? [Toyota principle] In Toyota manufacturing lines they always know what path a part have traveled. Just so they can be sure they can fix it of something goes wrong. Is this applicable in software too?
All error messages should tell me exactly what path they travel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Always do it with the same method every time, is this usable in Software projects? I was out running.. listening to a podcast about Toyota.. anyway.
This principle I think does not come to use in the software projects. (maybe project management). The art is still to young. We don't know what we are doing, at the mom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Does Microsoft Robotics Developer Studio work on CE 6? I have a DSS service I created (For Microsoft Robotics Studio). I then followed the documentation to make it a compact framework service and created a deployment package. I then deploy it to a CE 6 device...
Does a MSRS service work on CE 6? The documentation ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP parse configuration ini files Is there a way to read a module's configuration ini file?
For example I installed php-eaccelerator (http://eaccelerator.net) and it put a eaccelerator.ini file in /etc/php.d. My PHP installation wont read this .ini file because the --with-config-file-scan-dir option wasn't used whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MySQL transaction with thousands of Inserts - how many "round trips" does it take? I've got C# code that accesses MySQL through ODBC.
It creates a transaction, does a few thousand insert commands, and then commits.
Now my question is how many "round trips", so to speak, happen against the DB server? I mean, does it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/110894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.