text stringlengths 8 267k | meta dict |
|---|---|
Q: When is it best to sanitize user input? User equals untrustworthy. Never trust untrustworthy user's input. I get that. However, I am wondering when the best time to sanitize input is. For example, do you blindly store user input and then sanitize it whenever it is accessed/used, or do you sanitize the input immediat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: C# Linq Grouping I'm experimenting with Linq and am having trouble figuring out grouping. I've gone through several tutorials but for some reason can't figure this out.
As an example, say I have a table (SiteStats) with multiple website IDs that stores a count of how many visitors by type have accessed each site in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How do you use XML::Parser with Style => 'Objects' The manual page for XML::Parser::Style::Objects is horrible. A simple hello world style program would really be helpful.
I really wanted to do something like this: (not real code of course)
use XML::Parser;
my $p = XML::Parser->new(Style => 'Objects', Pkg => 'MyNod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Scaffolding in pylons Is there anything similar to rails' scaffolding for pylons? I've been poking around google, but only found this thing called dbsprockets, which is fine, although probably way too much for my needs. What I really need is a basic CRUD that is based on the SQLAlchemy model.
A: The question is sup... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I lock a file in Perl? What is the best way to create a lock on a file in Perl?
Is it best to flock on the file or to create a lock file to place a lock on and check for a lock on the lock file?
A: CPAN to the rescue: IO::LockedFile.
A: Ryan P wrote:
In this case the file is actually unlocked for a short ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: 3.1 or 5.1 audio in Flash Is it possible to do 3.1 or 5.1 audio using Flash? We're starting a project here for an interactive kiosk, and we've been told to use Flash. However, we also have a requirement to support either 3.1 or 5.1 audio (where 5.1 is the most wanted feature).
I haven't done any high-tech audio ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XmlSerializer changes in .NET 3.5 SP1 I've seen quite a few posts on changes in .NET 3.5 SP1, but stumbled into one that I've yet to see documentation for yesterday. I had code working just fine on my machine, from VS, msbuild command line, everything, but it failed on the build server (running .NET 3.5 RTM).
[XmlR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Strip HTML from string in SSRS 2005 (VB.NET) my SSRS DataSet returns a field with HTML, e.g.
<b>blah blah </b><i> blah </i>.
how do i strip all the HTML tags? has to be done with inline VB.NET
Changing the data in the table is not an option.
Solution found ... = System.Text.RegularExpressions.Regex.Replace(StringWi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: if statement condition optimisation I have an if statement with two conditions (separated by an OR operator), one of the conditions covers +70% of situations and takes far less time to process/execute than the second condition, so in the interests of speed I only want the second condition to be processed if the firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best practices for debugging linking errors When building projects in C++, I've found debugging linking errors to be tricky, especially when picking up other people's code. What strategies do people use for debugging and fixing linking errors?
A: One of the common linking errors I've run into is when a function is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Tools for finding memory corruption in managed C++ code I have a .NET application, which is using an open source C++ compression library for compressing images. We are accessing the C++ library via managed C++. I'm seeing heap corruption during compression. A call to _CrtIsValidHeapPointer is finding an error on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Branching Strategies The company I work for is starting to have issues with their current branching model and I was wondering what different kinds of branching strategies the community has been exposed to?
Are there any good ones for different situations? What does your company use? What are the advantages and dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: Byte level length description I have a protocol that requires a length field up to 32-bits, and it must be
generated at runtime to describe how many bytes are in a given packet.
The code below is kind of ugly but I am wondering if this can be refactored to
be slightly more efficient or easily understandable. The pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scrum: Resistance is (not) futile I'm the second dev and a recent hire here at a PHP/MySQL shop. I was hired mostly due to my experience in wrangling some sort of process out of a chaotic mess. At least, that's what I did at my last company. ;)
Since I've been here (a few months now), I've brought on board my boss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to declare an array of strings in C++? I am trying to iterate over all the elements of a static array of strings in the best possible way. I want to be able to declare it on one line and easily add/remove elements from it without having to keep track of the number. Sounds really simple, doesn't it?
Possible non-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: How to transform a WebService call that is using behaviours? We have some really old code that calls WebServices using behaviours (webservice.htc), and we are having some strange problems... since they've been deprecated a long time ago, I want to change the call.
What's the correct way of doing it? It's ASP.NET 1.1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Does C# have a way of giving me an immutable Dictionary? Is there anything built into the core C# libraries that can give me an immutable Dictionary?
Something along the lines of Java's:
Collections.unmodifiableMap(myMap);
And just to clarify, I am not looking to stop the keys / values themselves from being change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: How to expose a collection property? Every time I create an object that has a collection property I go back and forth on the best way to do it?
*
*public property with a getter that
returns a reference to private variable
*explicit get_ObjList and set_ObjList
methods that return and create new or cloned
objects ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Register Multiple Assemblies to the GAC in Vista I've got a whole directory of dll's I need to register to the GAC. I'd like to avoid registering each file explicitly- but it appears that gacutil has no "register directory" option. Anyone have a fast/simple solution?
A: GACUTIL doesn't register DLLs -- not in the "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: File database suggestion with support for multiple concurrent users I need a database that could be stored network drive and would allow multiple users (up to 20) to use it without any server software.
I'm considering MS Access or Berkeley DB.
Can you share your experience with file databases?
Which one did you use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL Server, convert a named instance to default instance? I need to convert a named instance of SQL server 2005, to a default instance.
Is there a way to do this without a reinstall?
The problem is, 2 out of 6 of the developers, installed with a named instance. So its becoming a pain changing connection strings for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: How to convert complex filename into HTML link? I have a directory with PDF files that I need to create an index for. It is a PHP page with a list of links:
<A HREF="path to file">filename</A>
The filenames can be complicated:
LVD 2-1133 - Γndring av dumpningslina (1984-11-20).pdf
What is the correct way to link t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migrating database changes from development to live Perhaps the biggest risk in pushing new functionality to live lies with the database modifications required by the new code. In Rails, I believe they have 'migrations', in which you can programmatically make changes to your development host, and then make the same ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: custom action dll in managed code How can I call a custom action dll written in managed code (.net) from an installer without using an unmanaged intermediary?
A: The answer to your question depends on how your are authoring your installer.
For Visual Studio setup projects, create an installer class in one of your d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Comparison of Javascript libraries After the suggestion to use a library for my ajax needs I am going to use one, the problem is that there are so many and I've no idea how to even begin telling them apart.
Thus, can anybody
A) Give a rundown of the differences or
B) Point me (and others like me) somewhere that ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: programmatically merge .reg file into win32 registry What's the best way to programmatically merge a .reg file into the registry? This is for unit testing; the .reg file is a test artifact which will be added then removed at the start and end of testing.
Or, if there's a better way to unit test against the registry.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Strategy for identifying unused tables in SQL Server 2000? I'm working with a SQL Server 2000 database that likely has a few dozen tables that are no longer accessed. I'd like to clear out the data that we no longer need to be maintaining, but I'm not sure how to identify which tables to remove.
The database is sha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the role of the buried-buffer-list frame parameter in Emacs In emacs, I've read the following code snippet in simple.el:
(frame-parameter frame 'buried-buffer-list)
What is the exact meaning of the 'buried-buffer-list parameter?
What it is used for?
A: The result of M-x describe function RET frame-paramet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I store information in my executable in .Net I'd like to bind a configuration file to my executable. I'd like to do this by storing an MD5 hash of the file inside the executable. This should keep anyone but the executable from modifying the file.
Essentially if someone modifies this file outside of the progra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a built in way in .Net AJAX to manually serialize an object to a JSON string? I've found ScriptingJsonSerializationSection but I'm not sure how to use it. I could write a function to convert the object to a JSON string manually, but since .Net can do it on the fly with the <System.Web.Services.WebMethod()> ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Image processing in Silverlight 2 Is it possible to do image processing in silverlight 2.0?
What I want to do is take an image, crop it, and then send the new cropped image up to the server. I know I can fake it by clipping the image, but that only effects the rendering of the image. I want to create a new image.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Prevent SWT ScrolledComposite from eating part of it's children What did I do wrong?
Here is an excerpt from my code:
public void createPartControl(Composite parent) {
parent.setLayout(new FillLayout());
ScrolledComposite scrollBox = new ScrolledComposite(parent, SWT.V_SCROLL);
scrollBox.setExpandHorizontal(tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is there a way to perform a circular bit shift in C#? I know that the following is true
int i = 17; //binary 10001
int j = i << 1; //decimal 34, binary 100010
But, if you shift too far, the bits fall off the end. Where this happens is a matter of the size of integer you are working with.
Is there a way to perform ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Verilog automatic task What does it mean if a task is declared with the automatic keyword in Verilog?
task automatic do_things;
input [31:0] number_of_things;
reg [31:0] tmp_thing;
begin
// ...
end
endtask;
Note: This question is mostly because I'm curious if there are any hardware programmers on the si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Regex to replace Boolean with bool I am working on a C++ code base that was recently moved from X/Motif to Qt. I am trying to write a Perl script that will replace all occurrences of Boolean (from X) with bool. The script just does a simple replacement.
s/\bBoolean\b/bool/g
There are a few conditions.
1) We ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Finding a single number in a list What would be the best algorithm for finding a number that occurs only once in a list which has all other numbers occurring exactly twice.
So, in the list of integers (lets take it as an array) each integer repeats exactly twice, except one. To find that one, what is the best algori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How do I fix a NoSuchMethodError? I'm getting a NoSuchMethodError error when running my Java program. What's wrong and how do I fix it?
A: Note that in the case of reflection, you get an NoSuchMethodException, while with non-reflective code, you get NoSuchMethodError. I tend to go looking in very different places ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "228"
} |
Q: Error using Team Foundation Server merge function When merging two code branches in Team Foundation Server I get the following error:
The given key was not present in the dictionary.
Some files are checked out and show up in "Pending Changes", but no changes are actually made.
I have a workaround:
*
*Attempt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Working in Visual Studio (2005 or 2008) on a networked drive Have you guys had any experiences (positive or negative) by placing your source code/solution on a network drive for Visual Studio 2005 or 2008? Please note I am not referring to placing your actual source control system on that drive, but rather your wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: requiredfield validator is preventing another form from submitting I have a page with many forms in panels and usercontrols, and a requiredfield validator I just added to one form is preventing all of my other forms from submitting. what's the rule that I'm not following?
A: Are you using ValidationGroups? Try ass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Identify an event via a Linq Expression tree The compiler usually chokes when an event doesn't appear beside a += or a -=, so I'm not sure if this is possible.
I want to be able to identify an event by using an Expression tree, so I can create an event watcher for a test. The syntax would look something like this:
u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Optimizing/Customizing Sharepoint Search Crawling With SharePoint Server 2007, there is also a Search Feature and a Crawler. However, the Crawler is somewhat limited in that it only supports Basic Auth when crawling external sites and that there is no way to tell it to ignore no-index,no-follow attributes.
Now, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Flex ComboBox, default value and dataproviders I have a Flex ComboBox that gets populated by a dataprovider all is well...
I would now like to add a default " -- select a item --" option at the 0 index, how can I do this and still use a dataprovider? I have not seen any examples of such, but I can't imagine this bei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Would building an application using a Sql Server Database File (mdf) be a terrible idea? I'm working on a side project that would be a simple web application to maintain a list of classes and their upcoming schedules.
I would really like to use Linq to SQL for this project, but unfortunately the server environment I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rewrite or repair? I'm sure you have all been there, you take on a project where there is a creaky old code base which is barely fit for purpose and you have to make the decision to either re-write it from scratch or repair what already exists.
Conventional wisdom tends to suggest that you should never attempt a r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Retrieving HTTP status code from loaded iframe with Javascript I used the jQuery Form plugin for asynchronous form submission. For forms that contain files, it copies the form to a hidden iframe, submits it, and copies back the iframe's contents. The problem is that I can't figure out how to find what HTTP status co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Large File Download Internet Explorer has a file download limit of 4GB (2 GB on IE6). Firefox does not have this problem (haven't tested safari yet)
(More info here: http://support.microsoft.com/kb/298618)
I am working on a site that will allow the user to download very large files (up to and exceeding 100GB)
What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Managing multiple identical databases efficiently? How, if you have a database per client of a web application instead of one database used by all clients, do you go about providing updates and enhancements to all databases efficiently?
How do you roll out changes to schema and code in such a scenario?
A: It's kind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I restore files to previous states in git? Given the following interaction:
$ git add foo
$ git commit -m "Initial import of 'foo'"
$ rm foo # This could be any destructive action on foo, like editing it.
How do I restore 'foo' in my working copy? I'm looking for something like:
$ git <magic> foo
Restored f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: DOS filename escaping for use with *nix commands I want to escape a DOS filename so I can use it with sed. I have a DOS batch file something like this:
set FILENAME=%~f1
sed 's/Some Pattern/%FILENAME%/' inputfile
(Note: %~f1 - expands %1 to a Fully qualified path name - C:\utils\MyFile.txt)
I found that the backsl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Log files in massively distributed systems I do a lot of work in the grid and HPC space and one of the biggest challenges we have with a system distributed across hundreds (or in some case thousands) of servers is analysing the log files.
Currently log files are written locally to the disk on each blade but we cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the difference between the | and || or operators? I have always used || (two pipes) in OR expressions, both in C# and PHP. Occasionally I see a single pipe used: |. What is the difference between those two usages? Are there any caveats when using one over the other or are they interchangeable?
A: || is the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "368"
} |
Q: FlexUnit component testing patterns: use addAsync or manually initialize? We've been using Flex for about 6 months here at work, and I found that my first batches of FlexUnit tests involving custom components would tend to follow this sort of pattern:
import mx.core.Application;
import mx.events.FlexEvent;
import fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you combine multiple result sets in SSRS? What's the best way to combine results sets from disparate data sources in SSRS?
In my particular example, I need to write a report that pulls data from SQL Server and combines it with another set of data that comes from a DB2 database. In the end, I need to join the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Why does Vista complain about a dead process when I use Cygwin X11 ssh and how do I get it to shut up? When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly. Once I dismiss the box, everything is fine. So I really don't care if some proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you get the last record generated in a recursive CTE? In the code below I am using a recursive CTE(Common Table Expression) in SQL Server 2005 to try and find the top level parent of a basic hierarchical structure. The rule of this hierarchy is that every CustID has a ParentID and if the CustID has no parent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Bypass Forms Authentication auto redirect to login, How to? I'm writing an app using asp.net-mvc deploying to iis6. I'm using forms authentication. Usually when a user tries to access a resource without proper authorization I want them to be redirected to a login page. FormsAuth does this for me easy enough.
Problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Compiler Error C2143 when using a struct I'm compiling a simple .c in visual c++ with Compile as C Code (/TC)
and i get this compiler error
error C2143: syntax error : missing ';' before 'type'
on a line that calls for a simple struct
struct foo test;
same goes for using the typedef of the struct.
error C2275... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Russell's Paradox Let X be the set of all sets that do not contain themselves. Is X a member of X?
A: The question is ill-posed in the standard ZFC (Zermelo-Fraenkel + axiom of Choice) set theory because the object thus defined is not a set.
Since (again, assuming standard ZFC) your class {x : x\not\in x} is not a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Debug visualizer - the visualizer dll can't be loaded I am learning to write a debug visualizer in vs2008 C#. But keep getting the error saying that MyDebugVisualizer dll can't be loaded when I am in debug mode and click the magnifying glass icon.
My app project is referencing the visualizer project. Before the type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Minimalistic Database Administration I am a developer. An architect on good days. Somehow I find myself also being the DBA for my small company. My background is fair in the DB arts but I have never been a full fledged DBA. My question is what do I have to do to ensure a realiable and reasonably functional datab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the main performance differences between varchar and nvarchar SQL Server data types? I'm working on a database for a small web app at my school using SQL Server 2005.
I see a couple of schools of thought on the issue of varchar vs nvarchar:
*
*Use varchar unless you deal with a lot of internationalized d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "247"
} |
Q: How can I change the way my Drupal theme displays the front page I am trying to build an website for my college's magazine. I used the "views" module to show a block of static content I created on the front page.
My question is: how can I edit the theme's css so it changes the way that block of static content is dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best practices for signing .NET assemblies? I have a solution consisting of five projects, each of which compile to separate assemblies. Right now I'm code-signing them, but I'm pretty sure I'm doing it wrong. What's the best practice here?
*
*Sign each with a different key; make sure the passwords are different
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Internet Access in Ubuntu on VirtualBox I recently installed Ubuntu on a VirtualBox VM it installed just fine (much easier than on VirtualPC). However I'm unable to get internet access from the guest OS (ie. Ubuntu). Can anyone give me any pointers on how I might enable this?
The Host OS is Windows Vista and the h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Print Odd-Even numbers using signals I need to to print natural nos. 1,2,...n such that the parent process prints all odd numbers and the child process prints all even numbers, and all of this needs to be done using POSIX signals. How would I go about accomplishing this?
The output should be:
Parent : 1
Child : 2
P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Encapsulate multiple properties at once using Resharper 4.0 When using Resharper to encapsulate a class's properties, is there a way to get it to do more than one property at a time?
A: You might or might not already know this (R# does suffer from a lack of discoverability, unless you get the one-page key-shortcut ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Trouble with parallel make not always starting another job when one finishes I'm working on a system with four logical CPS (two dual-core CPUs if it matters). I'm using make to parallelize twelve trivially parallelizable tasks and doing it from cron.
The invocation looks like:
make -k -j 4 -l 3.99 -C [dir] [12 targ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I oversee my MySQL replication server? I've had a tough time setting up my replication server. Is there any program (OS X, Windows, Linux, or PHP no problem) that lets me monitor and resolve replication issues? (btw, for those following, I've been on this issue here, here, here and here)
My production databas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: nmake, visualstudio, and .mak files I was given a C++ project that was compiled using MS Visual Studio .net 2003 C++ compiler, and a .mak file that was used to compile it. I am able to build it from the command line using nmake project.mak, but the compiler complains that afxres.h was not found. I did a little sea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I point Visual Studio 2008 to a new path for projects? I didn't see the option to point the workspace (or it's VS equivalent, I'm still learning the terminology for Visual Studio, but it is called a workspace in Eclipse) to My Documents/Programming instead of -- well -- wherever it is now.
A: What Craig sai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to divide two 64-bit numbers in Linux Kernel? Some code that rounds up the division to demonstrate (C-syntax):
#define SINT64 long long int
#define SINT32 long int
SINT64 divRound(SINT64 dividend, SINT64 divisor)
{
SINT32 quotient1 = dividend / divisor;
SINT32 modResult = dividend % divisor;
SINT32 multR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Exception in Web Service locks DLL and prevents publishing. Workaround? I'm using a native DLL (FastImage.dll) in a C# ASP.NET Web Service that sometimes locks (can't delete it---says access denied); this requires stopping IIS to delete the DLL. The inability to delete this DLL in the bin folder of my published Web ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I clear Class::DBI's internal cache? I'm currently working on a large implementation of Class::DBI for an existing database structure, and am running into a problem with clearing the cache from Class::DBI. This is a mod_perl implementation, so an instance of a class can be quite old between times that it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linux: What is the best way to estimate the code & static data size of program? I want to be able to get an estimate of how much code & static data is used by my C++ program?
Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime?
Will objdump & readel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fluid rounded corners with jQuery What is the best way to create fluid width/height rounded corners with jQuery?
That plugin doesn't keep the height the same. I have a 10px high div that I want to round the corners on, when I use that script it adds about 10px onto whats there.
A: I use: Jquery-roundcorners-canva... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Spread vs MPI vs zeromq? In one of the answers to Broadcast like UDP with the Reliability of TCP, a user mentions the Spread messaging API. I've also run across one called ΓMQ. I also have some familiarity with MPI.
So, my main question is: why would I choose one over the other? More specifically, why would I c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Mac OS X: What is the best way to estimate the code & static data size of program? I want to be able to get an estimate of how much code & static data is used by my C++ program?
Is there a way to find this out by looking at the executable or object files? Or perhaps something I can do at runtime?
Will otool help?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there anyway to run Ruby on Rails applications on a Windows box? I'm looking to run Redmine, a Ruby on Rails app, on a VPS windows box. The only thing I can really think of is running a virtual Linux machine and hosting it from there. If that is my only option, am I going to run into problems running a virtual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Chat application AJAX polling In the project I am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to support emotic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Changing default file structure in a Java Struts App I have been working with Struts for some time, but for a project I am finishing I was asked to separate Templates (velocity .vm files), configs (struts.xml, persistence.xml) from main WAR file.
I have all in default structure like:
application
|-- META-I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: looping and average in c++ Programming Student here...trying to work on a project but I'm stuck.
The project is trying to find the miles per gallon per trip then at the end outputting total miles and total gallons used and averaging miles per gallon
How do I loop back up to the first question after the first set of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: canonical problems list Does anyone known of a a good reference for canonical CS problems?
I'm thinking of things like "the sorting problem", "the bin packing problem", "the travailing salesman problem" and what not.
edit: websites preferred
A: You can probably find the best in an algorithms textbook like Introduct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What Are High-Pass and Low-Pass Filters? Graphics and audio editing and processing software often contain functions called "High-Pass Filter" and "Low-Pass Filter". Exactly what do these do, and what are the algorithms for implementing them?
A: Here is a super simple example of a low pass filter in C++ that proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Zoom for a windows form in C# Is there an easy way to set the zoom level for a windows form in C#? In VBA there was a zoom property of the form.
A: You can get some kind of zoom by assigning different Font to the Form, all the controls will be zoomed accordingly if AutoScaleMode set to Font. Also settings AutoSize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Validate (X)HTML in Python What's the best way to go about validating that a document follows some version of HTML (prefereably that I can specify)? I'd like to be able to know where the failures occur, as in a web-based validator, except in a native Python app.
A: The html5lib module can be used to validate an HTM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Are there any good programs for actionscript/flex that'll count lines of code, number of functions, files, packages,etc Doug McCune had created something that was exactly what I needed (http://dougmccune.com/blog/2007/05/10/analyze-your-actionscript-code-with-this-apollo-app/) but alas - it was for AIR beta 2. I ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Make source with two targets I use this tool called Lazy C++ which breaks a single C++ .lzz file into a .h and .cpp file. I want Makepp to expect both of these files to exist after my rule for building .lzz files, but I'm not sure how to put two targets into a single build line.
A: I've never used Makepp personally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Excluding Code Analysis rule in source In a project I'm working on FxCop shows me lots of (and I mean more than 400) errors on the InitializeComponent() methods generated by the Windows Forms designer. Most of those errors are just the assignment of the Text property of labels.
I'd like to suppress those methods in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How far does SQL Server Express Edition scale? Wikipedia says SQL Server Express Edition is limited to "one processor, 1 GB memory and 4 GB database files". Does anyone have practical experience with how well this scales?
A: It's a regular sql server, it just has a limit. SharePoint by default uses the sql server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lazy Loading with a WCF Service Domain Model? I'm looking to push my domain model into a WCF Service API and wanted to get some thoughts on lazy loading techniques with this type of setup.
Any suggestions when taking this approach?
when I implemented this technique and step into my app, just before the server retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I make bash reverse-search work in Terminal.app without it displaying garbled output? Using Terminal.app on OS X 10.5, often you see the commands get garbled when you do a reverse-search with Bash. Is there some kind of termcap or perhaps a bash shopt command that can fix this? It is very annoying.
Steps ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Ruby On Rails on Windows with Mongrel Where is the best tutorial for getting Ruby On Rails working on a windows box with Mongrel? I'm a complete novice at server management, so the more detailed the better!
A: You can follow this tutorial, it will get you setup you can actually manage your Mongrel server as a Wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why does Python's iter() on a mapping return iterkeys() instead of iteritems()? It seems like if you want to get the keys of a mapping, you ask for them; otherwise, give me the whole mapping (constituted by a set of key-value pairs). Is there a historical reason for this?
A: Check out this thread for a discussion o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What makes the Unix file system more superior to the Windows file system? I'll admit that I don't know the inner workings of the unix operating system, so I was hoping someone could shed some light on this topic.
Why is the Unix file system better than the windows file system?
Would grep work just as well on Windows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio 2008 Training I've been put in charge of coming up with a training itinerary for my team at work for a migration from c++ to Visual Studio 2008 with C#.
The actual language switch I'm not too worried about, its the learning curve to Visual Studio. What does everything think would be the best way to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a good online resource for css 'design patterns'? Can anyone out there recommend a good online resource for CSS 'design patterns'?
I know design patterns in a software context usually refer to OO based design patterns, but I mean design patterns in the broader sense of the term: i.e. common, clean solutions ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Ruby "is" equivalent Is there a Ruby equivalent for Python's "is"? It tests whether two objects are identical (i.e. have the same memory location).
A: You could also use __id__. This gives you the objects internal ID number, which is always unique. To check if to objects are the same, try
a.__id__ = b.__id__
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: ASP.NET MVC Route Help, 2 routes, 1 with a category url structure and the other for content page I need some help with ASP.NET MVC routes. I need to create 2 routes for a cms type application. One route will be for category level URLS, and the other route will be for the actual page content.
*
*categories, alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Office to programmatically convert documents? I'm interested in using Office 2007 to convert between the pre-2007 binary formats (.doc, .xls, .ppt) and the new Office Open XML formats (.docx, .xlsx, .pptx)
How would I do this? I'd like to write a simple command line app that takes in two filenames (input and o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.