text stringlengths 8 267k | meta dict |
|---|---|
Q: Active Desktop Recovery This one's new to me.
I downloaded and installed the VB.Net version 3.5 updates, and got some complaints about my printer drivers, which I ignored. My system auto-rebooted without asking, and then came up with am "Active Desktop Recovery" background screen (everything still works normally). ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validate reflected method return type and parms in Java I have a generic Callback object which provides a (primitive) callback capability for Java, in the absence of closures. The Callback object contains a Method, and returns the parameter and return types for the method via a couple of accessor methods that just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding a photo to a model's has_many model from a view I have a model, Thing, that has a has_many with ThingPhoto, using Paperclip to manage everything. On the "show" view for Thing, I want to have a file upload, and have it relate to the Thing model.
For some reason, I'm totally glitching on how this should be done... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I learn to write well-structured programs in Perl? I've started learning Perl but most of my former programming experience has been in languages that emphasize object oriented programming such as C# and Java. All the Perl examples I have found tend to be long single function programs and I find my self writi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: mySQL stored procedure with .NET connector problem I've seen other topics that deal with this error but none that seem to correspond to my situation.
First of all, my code works completely fine when i run it locally.
But when i upload it to the server, i get the error:
Parameter '?PuserName' not found in the collect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross .NET Languages Performances Does using Multiple .NET Languages (Delphi, VB.NET, C#) into the same application (but in differents class library of course) can down peformances compared to a full C# application for example ?
A: I'm not an expert on the CLR, but I would guess that you will have very similar perf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WAMP Server not working Okay so a continuation from this question, where you experts intro'd me to WAMP, which can basically execute PHP within a Windows XP environment.
So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Using AD as authentication for Django I'm working on a Django-based application in a corporate environment and would like to use the existing Active Directory system for authentication of users (so they don't get yet another login/password combo). I would also like to continue to use Django's user authorization / p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Is Git ready to be recommended to my boss? I want to recomment Git to my boss as a new source control system, since we're stuck in the 90s with VSS (ouch), but are the tools and 3rd party support good enough yet?
Specifically I'm talking about GUI front-ends similar to TortoiseSVN, decent visual diff/merge support, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: "public" role access in SQL Server Can anybody let me know that what permission does public have in sql server.
Thanks
A: Every database user belongs to the public database role.
When a user has not been granted or denied specific permissions on a securable object, the user inherits the permissions granted to publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What is a xul runner? The reason I ask is because every e-mail that I get with a link attached I keep getting " Platform Version 1.9.0.4 not compatible with min version>=1.9.0.5 max version<=1.9.0.5.
I don't have a clue how to get rid of xul runner or what I need to do in order for my computer to accept xul or wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get current page URL from a firefox sidebar extension I'm writing a sidebar extension for Firefox and need a way to get the URL of the current page so I can check it against a database and display the results. How can I do this?
A: This seems to work fine for me
function getCurrentURL(){
var currentWindow = Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Why isn't System...Stack implemented as a Linked List? I was looking through my code and I found a couple of extension methods that I wrote in order to remove items from a System.Collections.Generic.Stack. I was curious, so I looked at the source of Stack with Reflector and I can see that they implemented it as an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are the best resources to learn web design for web applications? I've built it now how do I create a half decent design? I need some techniques, resources, examples, books etc. for an information intensive web application.
P.S. - I just bought Web Design for Developers from Pragmatic Programmers and its not v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Display formatted text on the iPhone I need to display text in an iPhone application, something like the way a book is displayed, for example:
Heading
Sub heading
The actual text of the book. Blah. Blah. Blah.
How would I go about doing that? I've found the UITextView and UITextField and UIScrollView objects, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is stopwatch benchmarking acceptable? Does anyone ever use stopwatch benchmarking, or should a performance tool always be used? Are there any good free tools available for Java? What tools do you use?
To clarify my concerns, stopwatch benchmarking is subject to error due to operating system scheduling. On a given... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Printing named parameters Archaelus suggested in this post that writing a new format routine to handle named parameters may be a good learning exercise. So, in the spirit of learning the language I wrote a formatting routine which handles named parameters.
An Example:
1> fout:format("hello ~s{name}, ~p{one}, ~p{two... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Font (typeface) selection for the Web? I got to thinking about font (typeface) selection today. A site I did for work came with this professsionally done style guide that detailed colour selection, font selection, spacing, etc. It's the first time I'd seen anything like that but I have to admit, what they'd chosen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: TKinter windows do not appear when using multiprocessing on Linux I want to spawn another process to display an error message asynchronously while the rest of the application continues.
I'm using the multiprocessing module in Python 2.6 to create the process and I'm trying to display the window with TKinter.
This ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I pop a view from a UINavigationController and replace it with another in one operation? I have an application where I need to remove one view from the stack of a UINavigationController and replace it with another. The situation is that the first view creates an editable item and then replaces itself with an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: What is the alphanumeric id in a reddit URL? What is the 7n5lu in the reddit URL
http://www.reddit.com/r/reddit.com/comments/7n5lu/man_can_fly_if_you_watch_one_video_in_2
...and how is it generated?
Update:
@Gerald, I initially thought this is some obfuscation of the id. It is just doing the conversion from integ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: What does the user need to run a WPF browser application? I've been developing on WinForms and WebForms since the last 4 years. I didn't consider migration to WPF till now, but I am considering it now. Please tell me what's required at the client end to properly run WPF applications in the browser. What are the plat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Reflection To Instantiate 'Builder Pattern' (Joshua Bloch) When attempting to use Joshua Bloch's "Builder Pattern" [Item 2 in Effective Java Second Edition] with reflection [object = constructors[index].newInstance(constructorParameterValues);] the following exception occurs:
java.lang.IllegalAccessException: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Win32 File Name Comparison Does anyone know what culture settings Win32 uses when dealing with case-insensitive files names?
Is this something that varies based on the user's culture, or are the casing rules that Win32 uses culture invariant?
A: An approximate answer is at
Comparing Unicode file names the right way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Why is ActiveRecord issuing a separate query per join? I'm doing an ActiveRecord find operation (via the "will_paginate" library) like this:
contacts = Contact.paginate(:all,
:conditions => conditions_specified,
:select => "DISTINCT contacts.*",
:joins => joins,
:include => [:addresses, :emails, :p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best practices for use of C++ header files I have the following doubts on header files usage.
1 - Include guards placing after comments
/* Copyright Note and licence information (multiple lines) */
#ifndef FOO_H
#define FOO_H
// Header file contents
#endif
Herb Sutter says in his "C++ coding standards" book that co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Linking page title block to home - best practices? I do most if not all my sites to have the page title block (generally a styled h1 on my pages) to link back to the home page.
Should this be linked on the first page, i.e. the home page? I read that this shouldn't be linked, but one thing I do when I go to a page f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best alternative to an out of control switch statement? I have inherited a project that has some huge switch statement blocks, with some containing up to 20 cases. What is a good way to rewrite these?
A: Polymorphism. But it may not be a trivial refactoring.
Some examples and refs:
Refactoring (Googe bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Standard/common mark up language for user provided content? I suppose this might be similar to this question, but I'm wondering if there's a standard/popular mark up language for wiki and similar style user provided content. With the proliferation of different mark up syntaxes out there it seems like one would be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: StructureMap with WCF? Anyone had any luck integrating StructureMap (DI Framework) with WCF?
I can return the default instance in the constructor of my WCF service like this, but obviously it is not ideal.
public MemberService()
{
this.memberRepository = StructureMap.ObjectFactory.GetInstance<IMemberRepository>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why are Exceptions said to be so bad for Input Validation? I understand that "Exceptions are for exceptional cases" [a], but besides just being repeated over and over again, I've never found an actual reason for this fact.
Being that they halt execution, it makes sense that you wouldn't want them for plain condition... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: I can read but not set cookies in my rails app It's the weirdest thing. When I ran the Rails WEBrick debugger yesterday I could do things like
cookies[uid] = s.session_id
where 'uid' is a passed argument that has a user id in it, and then expect
cookies[uid]
to give me back, say:
29b93443d9ec18168a26e1ab12957b0dd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Binding for WPF Styles I'm trying to create a custom control - a button - which will have multiple styles applied to it depending on the value of a property within the data context.
What I was thinking is using something similar to:
<Button Style="{Binding Path=ButtonStyleProperty, Converter={StaticResource styleCon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How do I automatically run an application on USB attach or CD insert on Mac OS X? Is there any way to automatically launch an application on USB attach or CD insert on Mac OS X? it's easy on Windows, but I found that AutoRun.Inf does not work on the Mac at all.
A: It is possible to install a background service that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: What is the difference between Seq Scan and Bitmap heap scan in postgres? In output of explain command I found two terms 'Seq Scan' and 'Bitmap heap Scan'. Can somebody tell me what is the difference between these two types of scan? (I am using PostgreSql)
A: http://www.postgresql.org/docs/8.2/static/using-explain.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Pass by reference and value in C++ I would like to clarify the differences between by value and by reference.
I drew a picture:
So, for passing by value, a copy of an identical object is created with a different reference, and the local variable is assigned the new reference, so to point to the new copy
How should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Portable web font technology After reading the question on web font typeface selection, it occurred to me that portable network fonts were the answer. We used to use a package by Bitstream to generate subsets of needed fonts to embed in web pages so that it looked the same in every browser on every platform. When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Optimal solution for struct with more than 16 bytes I have a type which I consider use it as struct.
*
*It represents single value
*It is immutable
But the problem is, it has 6 fields of int.
So which solution I should use for this type?
*
*keep using struct?
*change to class?
*or pack 6 integers into an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Writing Signal handlers for Shared libraries or DLL? I have a Application A(by some company X). This application allows me to extend the functionality by allowing me to write my own functions.
I tell the Application A to call my user functions in the Applications A's configuration file (this is how it knows that App... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I use ASP.NET TreeView to display informations I´m trying to use the ASP.NET TreeView control to display informations like some sites do. For example:
http://www.codeproject.com/KB/webforms/ClientSideTreeView.aspx
The site of the link above have some code snippets that can be collapsed or expandend, showing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Increasing the maximum number of TCP/IP connections in Linux I am programming a server and it seems like my number of connections is being limited since my bandwidth isn't being saturated even when I've set the number of connections to "unlimited".
How can I increase or eliminate a maximum number of connections that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "256"
} |
Q: disable gcov in gcc build Anyone know how, when making GCC, to tell it not to build gcov? It's giving me lots of errors for my target (powerpc-wrs-vxworks).
A: I found this line in gcc/Makefile.in:
LANGUAGES = c gcov$(exeext) gcov-dump$(exeext) $(CONFIG_LANGUAGES)
Try removing the gcov parts and rerun configure.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/410617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert an array into an index hash in Ruby I have an array, and I want to make a hash so I can quickly ask "is X in the array?".
In perl, there is an easy (and fast) way to do this:
my @array = qw( 1 2 3 );
my %hash;
@hash{@array} = undef;
This generates a hash that looks like:
{
1 => undef,
2 => undef,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: How to declare special XML schema (XSD) case I need your help to define a special case in XML schema:
A sequence that contains two elements: 'x' and 'y' whereas:
*
*<x> element can appear 0 to unbound times in the sequence
*<y> element can appear 0 to 1 time in the sequence
*<x> and <y> locations can be anywher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Table per Concrete Class Hierarchy in Hibernate I have the following Hibernate Mapping, which has to be mapped using the Table per Concrete Class Hierarchy:
<hibernate-mapping package='dao'>
<meta attribute='class-description'></meta>
<class name='PropertyDAO'>
<id name='id' column='id_property'>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Manipulating list items with jQuery I am currently trying to manipulate a unordered list with jQuery, essentially I have a list of links in an unordered list, certain users only have access (all set server side) to certain files / pages.
I was hoping to use some jQuery to remove a few list items from the DOM, simply... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I display tick marks on a Progress Bar? I'm downloading a collection of files, and I'd like to display progress in a progress bar. It's simple to display overall progress by setting the maximum value of the progress bar to the total size of all the files, and by setting the current position to the size downlo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Test User Data (Fake Data) Where can I get, or how can I generate a large formatted collection of fake user data (names, email address, locations, etc.) that can be used for testing an application?
It can be clearly fake, this will be limited to the development server. But I'm sure anything would be better than what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Can I initialize a const string from a const char in C#? I am trying to do the following in a way or another:
const char EscapeChar = '\\';
const string EscapeString = EscapeChar.ToString(); // or ("" + EscapeChar)
This does't compile. Is there another way to make it work?
A: From the C# Language Specification (§ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Cyrillic characters in PHP's json_encode I'm trying to encode Cyrillic UTF-8 array to JSON string using php's function json_encode. The sample code looks like this:
<?php
$arr = array(
'едно' => 'първи',
'две' => 'втори'
);
$str = json_encode($arr);
echo $str;
?>
It works fine but the result of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Best way to determine if two path reference to same file in C# In the upcoming Java7, there is a new API to check if two file object are same file reference.
Are there similar API provided in the .NET framework?
I've search it over MSDN but nothing enlighten me.
I want it simple but I don't want to compare by filena... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: F# Seq module implemented in C# for IEnumerable? F# has a bunch of standard sequence operators I have come to know and love from my experience with Mathematica. F# is getting lots of my attention now, and when it is in general release, I intend to use it frequently.
Right now, since F# isn't yet in general release,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Why does NotImplementedException exist? This really, really urks me, so I hope that someone can give me a reasonable justification for why things are as they are.
NotImplementedException. You are pulling my leg, right?
No, I'm not going to take the cheap stab at this by saying, "hang on, the method is implemented -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Can I change the thickness of the border of a window with MFC? Normally, the thickness of a window is 4 pixels, which can be retrieved by GetSystemMetrics method. Can I change its value, for example 2 pixels?
Thank you very much!
A: Simple answer: No. Not for a specific window.
Complicated answer: The border is dra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a difference between private const and private readonly variables in C#? Is there a difference between having a private const variable or a private static readonly variable in C# (other than having to assign the const a compile-time expression)?
Since they are both private, there is no linking with other li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Inject multiple service implementations with Castle Windsor I would like to have Windsor inject multiple implementations of a service to a constructor.
My scenario is that I have multiple search providers that implement a common interface. I would like to register each of these with windsor and then inject them int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: resolving svn binary conflicts I use svn for a project im working on with a couple of other developers. Svn works fine for source control however we are all ways getting conflicts when we commit the dlls.
When i do i resolve the conflict (which deletes my dlls as the diff program cant handle binary files) then have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to browse the source of OpenJDK online? Is it possible to browse the source code of OpenJDK online, just like I can do with SourceForge's projects? I never used Mercury before, so I felt confused.
(Note: I don't want to download the source. I just want to browse it online, to see how some methods are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Code Sourcery GCC vs Vanilla GCC Compiler, what is the difference? I've found a company that provides GCC based toolchains for ARM, MIPS but I don't know in what are they different from the vanilla GCC, of course, they bring other software pieces such as Eclipse, but when looking only at GCC and Binutils, are they d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to do basic View tracking on a web page? I have a web facing, anonymously accessible, blog directory and blogs and I would like to track the number of views each of the blog posts receives.
I want to keep this as simple as possible, accuracy need only be an approximation. This is not for analyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoiding array duplication According to [MSDN: Array usage guidelines](http://msdn.microsoft.com/en-us/library/k2604h5s(VS.71).aspx):
Array Valued Properties
You should use collections to avoid code inefficiencies. In the following code example, each call to the myObj property creates a copy of the array. As a res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Optimization techniques for large databases What optimization techniques do you use on extremely large databases? If our estimations are correct, our application will have billions of records stored in the db (MS SQL Server 2005), mostly logs that will be used for statistics. The data contains numbers (mostly intege... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net MVC and N-Tier Greetings,
Apologies in advance that I have not researched this toughly enough to answer the question myself, but I imagine it would take me some time and I would rather know now before I invest more time in learning it. I couldn't find anything in my initial research..
Why use ASP.Net MVC if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: mod_rewrite with spaces in the urls I need to set up some RewriteRules to redirect a URL which has a space in it. I've tried this:
RewriteRule ^article/with%20spaces.html$ /article/without_spaces.html [R=301,L]
... but it doesn't work. Putting in a space instead of %20 causes a 500 Internal Server Error. How do I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Resize jquery UI dialog with JS? Even better would be if autoResize in latest branch would work as intended, but till then the question is simple: how to resize a dialog once it is created?
A: $('#dialog').dialog().animate({width: "700px"}, 400);
I've used this for dynamically resizing dialogs.
A: The answer from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I make a button like 'Digg it' for my website? I've got a blogging site hosted on Windows Sever, ASP.Net 3.5, ASP.Net AJAX, SQL Server in background.
I want to give bloggers a button like 'digg-it' which they can put on their blogs for the readers to click to thumb-up the post if they like it.
I know I'll be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What (if any) technical debt am I incurring with Ruby on Rails? I'm a big fan of ruby on rails, and it seems to incorporate many of the 'greatest hits' of web application programming techniques. Convention over configuration in particular is a big win to my mind.
However I also have the feeling that some of the conv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Factory method implementation - C++ I have the following code for "factory" design pattern implementation.
class Pen{
public:
virtual void Draw() = 0;
};
class RedPen : public Pen{
public:
virtual void Draw(){
cout << "Drawing with red pen" << endl;
}
};
class BluePen : public Pen{
public:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Bootstraping all functions in PHP This is a bit of a crazy idea, but would there be a way to bootstrap all the functions that php have without using a helper function to call the functions.
What I mean is actually calling some code or function before and after every basic function call.
Example:
<?php
echo "Hello";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flex/Accordion: Conditionally hide a child How do I hide a child in a accordion? Using visible doesn't seem to work and enabled isn't what I'm after.
<mx:Accordion>
<mx:VBox width="100%" height="100%" label="Foo" id="viewOverview" visible="false">
...
</mx:VBox>
...
</mx:Accordion>
A: I think you can't hide it. St... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TortoiseSVN can't connect to SlikSVN Subversion server I've created a SubVersion server on one of the machines in my workgroup. From my development box I'm able to access the repository and check in/out files without any problem.
I've just installed TortoiseSVN and no matter what I do it won't connect to the reposit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you check for infinite and indeterminate values in C++? In my programs infinity usually arises when a value is divided by zero. I get indeterminate when I divide zero by zero. How do you check for infinite and indeterminate values in C++?
In C++, infinity is represented by 1.#INF. Indeterminate is represented... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Why does .NET's Conditional Attribute Cause Side-Effects to be Removed? I read about the Conditional attribute today. According to MSDN:
Applying ConditionalAttribute to a method indicates to compilers that a call to the method should not be compiled into Microsoft intermediate language (MSIL) unless the conditiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Simple way to extract part of a file path? I'm not very good at C, and I always get stuck on simple string manipulation tasks (that's why I love Perl!).
I have a string that contains a file path like "/Volumes/Media/Music/Arcade Fire/Black Mirror.aac". I need to extract the drive name ("Media" or preferably "/Volum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to trace a NullPointerException in a chain of getters If I get a NullPointerException in a call like this:
someObject.getSomething().getSomethingElse().
getAnotherThing().getYetAnotherObject().getValue();
I get a rather useless exception text like:
Exception in thread "main" java.lang.NullPointerException
a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Using jQuery for first time, simple problem! I have some markup like this:
<p><a id="1" href="#">Link 1</a></p>
<p id="1show" class="starthidden">Hi! I get shown when link 1 is clicked</p>
<p><a id="2" href="#">Link 2</a></p>
<p id="2show" class="starthidden">Hi! I get shown when link 2 is clicked</p>
<p><a id="3"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overriding an operator using const for both parameters in C++ I'm trying to create an overridden operator function using both const parameters, but I can't figure out how to do it. Here is a simple example:
class Number
{
Number()
{
value = 1;
};
inline Number operator + (const Number& n)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: URL Rewrite with two distinct blanket redirects (one for WordPress permalinks) I have a relatively complex .htaccess file to control page requests, this currently redirects all requests of files (with some type exclusions) to an index file, with an exception of one directory that includes a WordPress installation.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best modules to develop a simple windowed 3D modeling application? I want to create a very basic 3D modeling tool. The application is supposed to be windowed and will need to respond to mouse click and drag events in the 3D viewport.
I've decided on wxPython for the actual window since I'm fairly familiar with it a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: reading a text file into an array in c What would be the most efficient method of reading a text file into a dynamic one-dimensional array? reallocing after every read char seems silly, reallocing after every read line doesn't seem much better. I would like to read the entire file into the array. How would you do it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Can I draw a menu (not popup menu) in any rectangular region of a window with MFC? I override OnNcPaint() method along with OnNcLButtonDown() and OnNcMouseMove() and OnNcHitTest() method. So the original menu of the window doesn't exist. I want to add a menu with the area of the caption bar. How can I do this?
Thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the SID of an Oracle XE instance I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database.
When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do.
A: I h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I parse XML from a Google App Engine app? How do I parse XML from a Google App Engine app? Any examples?
A: Take a look at existing answers on XML and Python.
Something like this could work:
from cStringIO import StringIO
from xml.etree import cElementTree as etree
xml = "<a>aaa<b>bbb</b></a>"
for even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Has anyone used Google Gears in an Enterprise scenario? I want to create an application which will have a client and server components. The client may not be connected to the internet all the time, and hence will have to store data locally and then sync with the server whenever the internet connection is available. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Environment Picker is there any open source or use Environment Picker in dotnet that allows me to simply create a set of environments (whatever that may mean to my application) and then have a picker on startup.
it wouldn't be too hard to build a simple custom one but i would imagine that this is done over and ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I prevent IE from using my windows identity when accessing local websites? I'm doing some tests on a Windows Server 2008.
When I try to access an URL (for example the TFS webservice URL) for test purposes, it automatically uses my Windows identity (ie Administrator)
How can I force IE to display the login po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What Is The Best Place To Store An Object's XML/CSV/Other Representation When an object has various formats (XML,CSV) it can be represented in, where should one store knowledge of those formats.
Should the object have knowledge of how it's represented in XML (i.e. letting the object convert itself through some metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get a list of installed printers? I'm searching for a possibility to get a list of installed printers. I'm using JDK 1.6 with a Windows operating system. Does anyone know a solution?
Thank you in advance.
A: Just wanted to add a little snippet:
import javax.print.*;
class Test {
public static void m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: generate treeview nodes programmatically How can I generate treeview nodes programmatically for this collection
node id parent node id
------- --------------
100 null //this is the root node
101 100
123 101
124 101
126 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "#include" a text file in a C program as a char[] Is there a way to include an entire text file as a string in a C program at compile-time?
something like:
*
*file.txt:
This is
a little
text file
*main.c:
#include <stdio.h>
int main(void) {
#blackmagicinclude("file.txt", content)
/*
equiv: char[] conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "162"
} |
Q: What harm can come from defining BOOST_DISABLE_ABI_HEADERS when compiling boost? What harm can come from defining BOOST_DISABLE_ABI_HEADERS when compiling boost?
From the boost file: boost_1_37_0\boost\config\user.hpp
// BOOST_DISABLE_ABI_HEADERS: Stops boost headers from including any
// prefix/suffix headers tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a difference in term of performance between "unsigned int" and "int" on the IPhone? Or to reformulate the question: is there a performance penalty in using unsigned values?
And in general: what is the most performant type (16bit signed?, 32bit signed? etc.) on the IPhone ARM processor?
A: ARM is a 32-bit a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to make a dynamic and intelligent address and time zone contact form Microsoft's live service has an amazing contact details form in their "Account" > "Registered information" page. You are first asked for your country and the rest of the contact form changes accordingly. For example, if you select "United State... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django problem of resolving special characters in url We have a website made by Django. And there is no problem when access
following url on local working environment:
http://site/tags/c%23/
"c%23" is urlencode of "c#", that works fine locally.
But after we deploy it on Bluehost hosting server (apache+fastcgi), ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Client firewall blocks all ports but 80 and 443, need away to forward requets on port 443 to SSH or HTTPS I am currently working at a client were they have locked down the network, except for ports 80 and 443. I need to connect to our server using SSH, but the same server also runs our website. We do not want to inv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/410995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: is it possible to detect pointer-to-member-function? i want a specialize template in a pointer-to-member-function case. Is there a way to detect this? right now i declare struct isPtrToMemberFunc, then add an extra template (class TType=void) to each class (right now just 1) and specialize the extra template to see ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/411004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Try-Finally to be used used sparingly for the same reasons as Try-Catch? I just finished reading this article on the advantages and disadvantages of exceptions and I agree with the sentiment that Try-Catch blocks should not be used for "normal" control-flow management (don't use them like a goto). However, one a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/411012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ssh/VPN access from dynamic IPs / while travelling. knockd or dynDNS based authentication? What are the advantages and disadvantages of using knockd vs. using dynamic DNS based authentication for ssh or VPN logins from a dynamic IP address or while travelling (i.e. some random hotel IP)? Ideally, any device with ssh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/411037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Differences between Private Fields and Private Properties What is the difference between using Private Properties instead of Private Fields
private String MyValue { get; set; }
// instead of
private String _myValue;
public void DoSomething()
{
MyValue = "Test";
// Instead of
_myValue = "Test";
}
Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/411048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: ASP.NET MVC page/subpage routing I'm try to figure out how to handle the following scenario. In general, i have a bunch of records in a table. All of these have ID and ParentID fields to form a tree.
Page1
- Page2
- Page3
Page4
- Page5
-- Page6
Now, i want my routes for Page3 and Page6 to be like /Page1/Page6 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/411054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.