text stringlengths 8 267k | meta dict |
|---|---|
Q: Web page -user custom style How can I give the user the ability to change the style of a webpage, of course I have to make several CSS files , but how can I make the code that permits the change upon the user's choice
A: We're all pretty unlikely to give an answer as thorough as A List Apart's.
They even provided ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF: Ideas to set an flag enum value for a single object using Binding Mechanism I have a Enum for example...
public enum TypeIdentifier {
NotSet = 0,
Type1= 1,
Type2= 2,
Type3= 3,
Type4= 4,
Type5= 5
}
public class CommonObject
{
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: A simple modal is not working in Firefox 3 and Internet Explorer 7 I am using the simple modal and Ajax. When I try to read the content from Ajax it works fine in Chrome. There is a problem in Internet Explorer 7 and Firefox 3.
What am I doing wrong?
My code:
print("code sample");
$(document).ready(function () {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Paned components in GSP So it looks like Grails' GSP does not have an include tag (correct me if I'm wrong). The closest thing to "include" is to use the render tag. There is also the include plugin.
In my case, I have a classic top-left-middle-right-bottom paned page. The top header or left side would include navig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XML Parser for C Can you suggest some of the best XML Parser for C ?
A: You can try ezxml -- it's a lightweight parser written entirely in C.
For C++ you can check out TinyXML++
A: Two examples with expat and libxml2. The second one is,
IMHO, much easier to use since it creates a tree in memory, a data
structure w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: WPF - Why Listbox items do not fill uniformgrid I have a listbox with the ItemsPanelTemplate set to UniformGrid with rows= 6 and cols= 7.
I want the listbox items to fill their space.
I am using a datatemplete defined in a dictionary.
The outer control of my template is a Border with HorizontalAlignment=Stretch
and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Hacky Sql Compact Workaround So, I'm trying to use ADO.NET to stream a file data stored in an image column in a SQL Compact database.
To do this, I wrote a DataReaderStream class that takes a data reader, opened for sequential access, and represents it as a stream, redirecting calls to Read(...) on the stream to IDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WinHttp.WinHttpRequest in .NET Is there a built-in .NET class that can replace or work like WinHttp.WinHttpRequest?
Thanks!
A: There is the System.Net.HttpRequest class:
HttpWebRequest Class
Provides an HTTP-specific implementation of the WebRequest class.
*
*Namespace: System.Net
*Assembly: System (in System... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Input from within shell script I have a script that calls an application that requires user input, e.g. run app that requires user to type in 'Y' or 'N'.
How can I get the shell script not to ask the user for the input but rather use the value from a predefined variable in the script?
In my case there will be two qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Design question for abstract base class? Have a interface
class abc {
public:
virtual int foo() = 0;
...
}
class concrete1: public abc {
public:
int foo() {
..
}
class concrete2 : public abc {
public:
int foo() {
..
}
}
Now in my main program I need to construct classes based upon a value of a varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any high level cross platform UI controls? It's very common for business applications in .net world to use third party control sets like devxpress, componentOne etc. They give possibility to apply skinning, use controls with rich functionality etc.
The problem arises when we want to port such application ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: USB drive with debugging tools I'm putting together a USB drive that should contain tools useful for troubleshooting various software problems encountered by users.
What tools would you recommend that I include?
Main environment: Windows and .NET
A: I can recommend the following : {Some of them have been already me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating tables in a MS Word file using Java I want to create a table in a Microsoft Office Word file using Java. Can anybody tell me how to do it with an example?
A: Have a look at Apache POI
The POI project is the master project
for developing pure Java ports of file
formats based on Microsoft's OLE 2
Comp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I enforce a package-level build order in eclipse Explanation:
Say package A is always built first and then package B. I need to configure my eclipse workspace such that it mimics the build environment and shows compilation errors when sources in package A refer package B. Is this possible? If yes, how?
A: Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio: Make view code default Is there any way to make Visual Studio show the code of a control / form by default instead of the designer? I tend not to be a fan of the designers as they add bloat.
A: I like having my forms open up in Design View, but I made a partial class file which had only code and Visu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "151"
} |
Q: Browsing with IE causes 'Error 80004004' in SignIn widget I am using Movable Type 4.23 and have been testing my site on a PC and discovered that Internet Explorer is unable to view my site due to a conflict in the javascript of the signin widget (initially I thought it was in the mt.js file).
I receive this error: E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP calling multiple videos to convert at once via mencoder.How can I limit it? I recently installed my video script to a new server but I am seeing that it will start to convert 1 video (via mencoder) then before finishing it, it will try and convery another, and another, so it will be trying to convert 4+ videos a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inadvertent use of = instead of == It seems that
if (x=y) { .... }
instead of
if (x==y) { ... }
is a root of many evils.
Why don't all compilers mark it as error instead of a configurable warning?
I'm interested in finding out cases where the construct if (x=y) is useful.
A: About the valid uses of if(i = 0)
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Memory Efficiency and Performance of String.Replace .NET Framework string str1 = "12345ABC...\\...ABC100000";
// Hypothetically huge string of 100000 + Unicode Chars
str1 = str1.Replace("1", string.Empty);
str1 = str1.Replace("22", string.Empty);
str1 = str1.Replace("656", string.Empty);
str1 = str1.Replace("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Eclipse RCP and JFace: Problems with Images in Context menu and TreeViewer I'm working on an Eclipse RCP application. Today I experienced some troubles when displaying images in the context menu. What I wanted to do is to add a column to my table containing images of stars for representing a user rating. On Windows,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Completely overwriting a file with Velocity / NVelocity I am trying to use NVelocity templates in a .Net application: using a template to output results to a file. It all seems to work fine except for the fact that the output is never fully overwritten. If my file is 100 characters long and the template only renders... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to submit a form using the Enter key in asp.net I have 3 buttons in a form. One of them is the submit button. How can I make it the default button to be clicked when I press the enter key. Is there a property for this?
A: There is a property for the form: defaultbutton.
<form runat="server" defaultbutton="myBut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Multi-instance of FCK in dotnetnuke I got a problem when I put 2 instances of FckEditor to a page in dotnetnuke.
sometimes, I got empty text when I call the text property.
Anyone helps?
A: The empty Text property is usually caused by having the editor in an update panel (either explicitly or by turning on partial ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Maps API: Access markers after creation I'm wondering if there is a way to access the Markers that were added to a Map using JavaScript after creation.
I mean, is it possible to make a button somewhere on the page that, on each click, centers the map on another marker that was added previously?
Any help woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET Memory Profiling Tools
Possible Duplicate:
What Are Some Good .NET Profilers?
I am on the lookout for good .NET CLR memory profiling tools.
My key requirement is that it will play well with IIS and standalone CLR Apps. Ideally I would see what objects are allocated, where they are allocated and what size the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Best compiler warning level for C/C++ compilers? What compiler warning level do you recommend for different C/C++ compilers?
gcc and g++ will let you get away with a lot on the default level. I find the best warning level for me is '-Wall'. And I always try to remove fix the code for the warnings it generates. (E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: WM 5 SDK Symbol We have a large number of Window Mobile Devices (Symbol MC35 & MC70). I want to write a small app that gets the device serial number and simcard serial number (not phone number). I have tryed using the Symbol SDK and I can get the Device Serial Number for the MC70s as they have a Electronic Serial Nu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I use Application Settings in a mono project? I'm trying to port an application to Mono, however Mono doesn't support "Application Settings". I don't and won't use Mono Develop, the development is done with Visual Studio.
Is there any quick way to solve this? Or should I implement my own settings replacement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom events in jQuery? I'm looking for some input on how to implement custom eventhandling in jquery the best way. I know how to hook up events from the dom elements like 'click' etc, but I'm building a tiny javascript library/plugin to handle some preview functionality.
I've got a script running to update some te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "189"
} |
Q: Which functions are missing in existing Emacs modules for work with git? What do you think - which functions should be implemented to make work with Git from Emacs more comfortable? Which functions are missing in magit/git.el/egg/git-emacs/...?
A: I've been playing with git-emacs for a few days. I chose that one a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Creating a testing environment with php cli I want to use php in console mode and create an environment to test my functions.
I do not want to be forced to use a web browser and create a new file each time I want to test a function.
I want to access the function in the console and then it return the result.
How do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mercurial: Editor doesn't show the conflict file after a conflicted merge After having solved the problem of getting the editor to launch when there's a merge conflict - Mercurial: No editor appears when merge conflicts are detected
I now have another problem, the editor now launches but opens the files in the follo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pointer class assistance I'm writing a sparse matrix class in C++ in which every row and column are arrays of linked lists from a class I created (aptly named: LinkedList).
I want to write a class that is a "smart" pointer to one cell in this matrix.
In that class, let say LIPointer, I will implement a ++ operator f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Populating Rails Form Fields after an auto_complete field is populate I am trying to create a form in Rails 2.2.2 that populates a field based on a choice a user has made in an 'auto_complete' field. It looks as though the observe_field functionality is what I need to use but I'm stuck on how to update the value of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET MVC - using the same form to both create and edit Whats the best practice approach to creating a form that is used to both create new models and edit existing models?
Are there any tutorials that people can point me in the direction of?
A: Do not use the same controller action. New = HTTP POST; edit = HTTP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: jquery UI Dialog and Asp.net UpdatePanel I am looking for a JavaScript modal dialog solution for asp.net, jquery UI dialog seems good but it move dialog container to bottom of body tag. I changed the dialog code to stay dialog to asp.net form but still it's out of updatepanel.
Is there any solution or more compatibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Are EJB Timers supposed to be persistent/reliable? E.g. if I set a timer to expire every day at midnight, what will happen if one "misfire" (does not trigger the callback because the server is down, for instance) ? I can't find that in the documentation.
Is there a way to make this timer triggers the callback as soo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I get my netbeans drag and drop widget to know whether it is rendering inside the netbeans design view window or the running application? How do I get my netbeans drag and drop widget to know whether it is rendering inside the netbeans design view window or the running application?
I'm trying to do some custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I improve this regex check for valid domain names? So, I have been working on this domain name regular expression. So far, it seems to pick up domain names with SLDs and TLDs (with the optional ccTLD), but there is duplication of the TLD listing. Can this be refactored any further?
params[:domain_name].downcase.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Check linkedlist circularity I need a method that takes a linkedlist as a parameter and return true or false if it is circular or not.
ex:circular linkedlist means there is node pointes to any previous node.
I forgot to tell some constraints, I can not use any datastructure or dynmaic memory allocations.
I can use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should I use the same controller and view for editing and creating models in ASP.NET MVC? Should I use the same controller and view for editing and creating models in ASP.NET MVC, or should I create a view and controller action for creating and a view and controller action for editing?
The editing view is certainly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it ok to use .NET MembershipProvider to have multiple virtual "applications" on one web application? I want to build portal-like asp.net web application from scratch and was looking at asp.net MembershipProvider as a standard way for user's management. I created my provider inheriting from SqlMembershipProvider a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ variable with same name, context : global and private, In the following code, g++ gives this error :
1.cpp: In member function void W::test()':
1.cpp:6: error:int F::glob' is private
1.cpp:19: error: within this context
But, shouldn't the globally declared
variable 'glob' be used here, instead
of the "private" "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c++ network credentials I have web service in my MFC Application and I want to write something like:
WebService * ws = new WebService();
ws->Credentials = new NetworkCredentials(user, pass);
I could not find Credentials class in MFC. Is there such class in MFC?
A: MFC does not have a NetworkCredential class, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How often do you check for an exception in a C++ new instruction? I just started reading Effective C++ today and got to the point where the author talks about the operator new.
The book explains very well how you can catch (with various degrees of elegance) the std::bad_alloc exception that the operator new can rais... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I create an empty solution in Visual Studio (2008)? I am unable to create an empty solution in Visual Studio. The msdn documentation says this is possible but fails to mention how. (Where I have looked, anyway..)
A: New project > Other > Visual Studio Solutions > Empty Solution
A: File --> New Project
Under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How to integrate pep8.py in Eclipse? A little background:
*
*PEP 8 is the Style Guide for Python Code. It contains the conventions all python programmers should follow.
*pep8.py is a (very useful) script that checks the code formating of a given python script, according to PEP 8.
*Eclipse is a great IDE. With t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "90"
} |
Q: Need help on selecting items in simple database in python I'm trying to write a circuit schematic drawing tool in Python. I'm creating a simple database based on dictionaries which holds all the components and their properties. I'm also trying to create a simple query language where you can select, for example, al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i check to see if a delegate is valid? I'm doing something like this:
@protocol CallbackDelegate
-(void) performCallback;
@end
@interface MyObject : NSObject {
id<CallbackDelegate> delegate;
}
-(void)AsyncFuncCall;
@end
@property (nonatomic, assign) id<CallbackDelegate> *delegate;
The code that owns M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set configuration or server to upload image in FCKeditor based on ASP.NET MVC? I am using FCKeditor as web editor in my asp.net mvc beta application.
I inserted FCKeditor in Create.aspx page and every function of FCKeditors works well except image file uploading from my local pc :(
I changed some configuratio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing a folder and setting permissions in PowerShell I need a script to run on Vista Ultimate to share an external drive and assign full control to Everyone. I've got a batch file to create the share using net share, but there doesn't seem to be a way to change the permissions. I reckon this must be possible in Po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: NUnit "could not load file or assemby 'MyTestProject' I'm setting up a new 64 bit machine to run as a build server. When I try to load my NUnit test assembly into NUnit GUI I get the following error.
There is nothing obvious missing, all the dependencies seem to be present. All the DLLs are compiled for the x86 pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Downscaled versions of jQuery or Prototype - JS framework selection While considering the JS framework for my next project, I can see the scale clearly tipping towards jQuery, however, Prototype is getting good reviews, too.
The issue I am thinking of is how to downscale these to have only the functionality I REALLY... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Create an Excel macro which searches a heading and copy-paste the column I am new to Excel macros. I have some columns with headings scattered in many sheets. I would like to type a heading in some column which has the cursor and have the column with that heading copy-pasted to the column with the cursor.
Is it pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to test SQL for validity from the command line? Is there a good tool for ensuring that an SQL query is valid ANSI SQL, and optionally what DBMSs will fail to interpret it? I've found http://developer.mimer.com/validator but I was wondering whether there is a command line tool, preferably open source.
A: Here i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Ignoring XML errors in Python I am using XML minidom (xml.dom.minidom) in Python, but any error in the XML will kill the parser.
Is it possible to ignore them, like a browser for example?
I am trying to write a browser in Python, but it just throws an exception if the tags aren't fully compatible.
A: It should be n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why are cookie paths case sensitive? I've realised for the first time a couple of weeks ago that when setting an http cookie, while the domain name is not case sensitive, the path is.
So a while a cookie stored for
http://SomeWebSite.com
can be read using
http://somewebsite.com
a cookie stored for
http://somewebsit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How do I attatch a Key value pair to a UIView on iPhone? When I started iPhone development, I read somewhere that it's possible to attach a key value pair to a UIView. I understood that all UIViews could be used as dictionaries to store any data you may want to attatch to them to prevent unnecessary subclassing. How... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do you get Python to write down the code of a function it has in memory? When I pass the options in the program (a computational biology experiment) I usually pass them through a .py file.
So I have this .py file that reads like:
starting_length=9
starting_cell_size=1000
LengthofExperiments=5000000
Then I execu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/399991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What can I do to optimize my web page for a mobile phone, specifically the iPhone? So I purchased myself an iPhone ... everybody has one ... so I figured I'd see what the big deal was. To my surprise ... and overall skepticism ... I must say that I am very impressed with the iPhone. There's not any real magic goin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to record audio on iPhone I want to record audio using the iphone (< 2 minutes) and save it to a file.
I looked at SpeakHere, but it confuses me. Which classes do I use? What delegate methods do I create?
Thanks!
A: I agree, SpeakHere is not a very good starting point to learn iPhone audio.
iPhone audio uses ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# 4.0 Dynamic features What is the point of having a dynamic class on which you can call methods that may, or may not be there?
A: The point is that you'll usually be confident that the method will be present (or handled dynamically - e.g. a FindByAuthor method in a "book repository" class which is translated into... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Entity Framework Mapping, different property name I have a database field called abCode, that I want to map to a property called statusCode in the objectlayer. What changes are needed to the msl, csdl, ssdl and object layer to acomplish this?
Here are the relevent (I think) parts of the files:
In msl:
<ScalarPropert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading and running a mathematical expression in Python Using Python, how would I go about reading in (be from a string, file or url) a mathematical expression (1 + 1 is a good start) and executing it?
Aside from grabbing a string, file or url I have no idea of where to start with this.
A: Because python supports ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Master/Details view with XmlDataSources I have a basic test web form with a DataList and a DetailsView and two XmlDataSource components for each of them.
The binding of the DataList to the underlying XML document was easy to set up, but I'm struggling with getting the DetailsView hooked up. The idea is that there is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Responding to ACPI fixed feature button in Windows? My laptop's got a mysterious extra button on it that doesn't cause any keyboard messages -- I've verified this with a low-level keyboard hook.
It appears that it's an "ACPI Fixed Feature Button". Any ideas how I'd go about responding when it's pressed? I found some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is Asp.Net MVC a suitable solution for an enterprise project? We are preparing to develop an enterprise Human Resources Project using ASP.NET and our team is interested in using MVC instead of WebForms but we are a bit worried about this.
We are not sure that this is a suitable solution for an Enterprise project.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is it possible to compile perl with -DDEBUGGER option on Windows using ActivePerl? There are many debugging option available, but it says you need to compile Perl with
-DDEBUGGER option. How do we do that on Windows with ActivePerl.
Also, I had this problem of out of memory with Perl. I was reading a XML file with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Profiling ClickOnce *startup* time I am trying to optimize startup time of one of an internal tool at my company.
It however, is deployed via ClickOnce and utilized IsolatedStorage.
I am using JetBrains dotTrace 3.1 to profile it but then it would not be able to start the application due to dependency on IsolatedSto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NHibernate not persisting many-to-many relationship I'm currently using NHibernate as my data access layer, using Fluent NHibernate to create the mapping files for me. I have two classes, TripItem and TripItemAttributeValue, which have a many-to-many relation between them.
The mapping is as follows:
public class Tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Deploying WCF Client assembly in SQL2005 I'm trying to get a WCF Client assembly deploy in SQL 2005. This means I need to create/register the dependencies for my WCF Client, which are:
*
*System.Runtime.Serialization
*System.Web
*System.ServiceModel
With this script:
CREATE ASSEMBLY System_Runtime_Serializati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Linq returns list or single object I have a Linq to Entities query like this one:
var results = from r in entities.MachineRevision
where r.Machine.IdMachine == pIdMachine
&& r.Category == (int)pCategory
select r;
Usually, I use the code below to check if some results are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Best way to implement keyboard shortcuts in a Windows Forms application? I'm looking for a best way to implement common Windows keyboard shortcuts (for example Ctrl+F, Ctrl+N) in my Windows Forms application in C#.
The application has a main form which hosts many child forms (one at a time). When a user hits Ctrl+F,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "306"
} |
Q: Is it possible to create databases programmatically using DBX? Looks like the TSQLConnection only connects to existing databases, and I could not find another component that allows me to send commands to the database server.
I'm using Delphi 2009 with Firebird and MSSQL.
One idea that came was to connect to a system... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is Microsoft Message Queuing (MSMQ)? How does it work? I need to work with MSMQ (Microsoft Message Queuing). What is it, what is it for, how does it work? How is it different from web services?
A: Actually there is no relation between MSMQ and WebService.
Using MSMQ for interprocess communication (you can use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: what is the purpose and return type of the __builtin_offsetof operator? What is the purpose of __builtin_offsetof operator (or _FOFF operator in Symbian) in C++?
In addition what does it return? Pointer? Number of bytes?
A: The purpose of a built-in __offsetof operator is that the compiler vendor can continue to #d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to dispose asynchronously? Let's say I have a class that implements the IDisposable interface. Something like this:
MyClass uses some unmanaged resources, hence the Dispose() method from IDisposable releases those resources. MyClass should be used like this:
using ( MyClass myClass = new MyClass() ) {
myCla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: List or IList Can anyone explain to me why I would want to use IList over List in C#?
Related question: Why is it considered bad to expose List<T>
A: What if .NET 5.0 replaces System.Collections.Generic.List<T> to System.Collection.Generics.LinearList<T>. .NET always owns the name List<T> but they guarantee that IL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "552"
} |
Q: How do I automatically delete temp files in C#? What's a good way to ensure that a temp file is deleted if my application closes or crashes? Ideally, I would like to obtain a temp file, use it, and then forget about it.
Right now, I keep a list of my temp files and delete them with an EventHandler that's triggered o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Is Adding runat="server" to HTML tags to get relative path in ASP.net an elegant solution? I've got a couple of ASP.Net Usercontrols that I am using in different locations of my new website. These usercontrols had links like this :
<a href="daily/panchang/"></a>
If the usercontrol is used in pages in various subd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: RightToLeft property in Form in C# I want to move the form title, icon and close, and help buttons from left side to right side (change the layout).
I moved the form controls manually to keep background image but now I want to change the form title.
When I set rightToLeft property to yes and rightToLeftLayout to tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Office XP Shared Addin VS 2008 I'm trying to create a Shared Addin using VS 2008 for Office XP (Excel to be precise). However, after creating the project in Visual studio and changing the references to Office XP (apart from Extensibility which I don't seem to be able to find a copy for office xp) and adding excel.ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to handle programmatic change of the input element state in javascript I've faced strange problem. While user change of check box input element on form produces adequate event programmatic change don't. How should I face this challenge? Code following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CodeDom - Call a generic method does anyone know a way to call a generic method of a base class with CodeDom?
I have no problem calling a standard method, but I can't find a solution to call the generic.
The code I use to call the standard base class method GetInstance:
CodeAssignStatement assignStatement = new Code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you retrieve the original location of a mounted path? In C++, how can I retrieve the location of a mounted drive?
for example, if I have mounted drive s: to c:\temp (using subst in the command line)
"subst c:\temp s:"
how can I get "c:\temp" by passing "s:"
I would also like to know how can it be done for a n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Extracting Ajax return data in jQuery I have done jQuery and Ajax, but I am not able to get the response into a Div element. This is the code:
Index.html
$.ajax({
type:"POST",
url: "ajax.php",
data:"id="+id ,
success: function(html){
$("#response").html(data);
}
});
It is receiving the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "43"
} |
Q: Connected points with-in a grid Given a collection of random points within a grid, how do you check efficiently that they are all lie within a fixed range of other points. ie: Pick any one random point you can then navigate to any other point in the grid.
To clarify further: If you have a 1000 x 1000 grid and random... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I copy to the clipboard in JavaScript? How do I copy text to the clipboard (multi-browser)?
Related: How does Trello access the user's clipboard?
A: If you want a really simple solution (takes less than 5 minutes to integrate) and looks good right out of the box, then Clippy is a nice alternative to some of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4347"
} |
Q: Is the Factory pattern useful outside a framework without Visitor? After some years of experience in the field, it seems to me that the Factory pattern is one of the less interesting and useful patterns around when not writing frameworks or libraries.
I'm not saying that Factory pattern is unnecessary. For example, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Nhibernate, MVC and ModelBinders I want to configure my model binders with Nhibernate:
So I have:
<object id="GigModelBinder" type="App.ModelBinders.GigModelBinder, App.Web" singleton="false" >
<property name="VenueManager" ref="VenueManager"/>
<property name="ArtistManager" ref="ArtistManager"/>
I have an attri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing JTable reference at runtime - not appearing in GUI I'm trying to get to grips with Java ME development for the Pocket PC. I'm running the NSIcom CrE-ME emulator and building my application with NetBeans 6.5.
The application is based around three tab panels, each of which have Swing components. The contents ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET Routing - Do Custom Routes COMPLETELY SKIP Everything in the Global.asax? I have a simple ASP.NET 3.5 SP1 Web Forms app... I've added the System.Web.Routing DLL, and I've made a simple route that returns a standard ASP.NET Page as the "IHttpHandler".
All is good... except that HttpContext.Current.User is nul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I get a list of available wireless networks on Linux? I would like to get a list of the wireless networks available. Ideally this would be via some C call, but I don't mind if I have to kludge it with a system call. Even better if the required C call or program doesn't require some exotic 3rd party package.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Accessing mysql from Adobe flex/AIR Is it possible to directly access MySql databases through an Adobe AIR/Flex
application?
If not, what is the next best alternative?
A: I'd have to disagree (though respectfully!) with Abdullah that building an ODBC client into AIR would "cause wierd problems and open up security ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Webservice From SQL Can I call a remote webservice from a Stored Procedure and use the values that areretuned?
A: If you're using SQL 2005/2008, you could do this from a CLR stored procedure if you have the ability to install and run these. For more info:
http://msdn.microsoft.com/en-us/library/ms190790.aspx
A: Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Would you use Laszlo to develop a Flash-based front end to a Java web app? If you have a Java based web application (J2EE webapp - never mind which other underlying frameworks are being used), and you wanted to introduce a Flash based front-end, would you use Laszlo or would you rather expose a ReST-like XML interfa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating a local Token cache using the Geneva Framework Haven't seen many Geneva related questions yet, I have posted this question in the Geneva Forum as well...
I'm working on a scenario where we have a win forms app with a wide installbase, which will be issuing frequent calls to various services hosted by us cen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tool for testing using parameter permutations I remember there existed a testing program/library that will run your code and/or unit tests, creating all kinds of permutations of the parameters (null values, random integers, strings and so on). I just can't remember what it was called and searching google doesn't see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to put more than 1000 values into an Oracle IN clause Is there any way to get around the Oracle 10g limitation of 1000 items in a static IN clause? I have a comma delimited list of many of IDs that I want to use in an IN clause, Sometimes this list can exceed 1000 items, at which point Oracle throws an error. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "124"
} |
Q: How can i draw a box using css like the answer box in stackoverflow? How can i draw a box in css? I want a box like the green one used to display the number of answers to a question in stackoverflow?
A: Use Firebug and the "Inspect" function; point at the answer box here on SO and rip the HTML and CSS from the Fire... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.