text stringlengths 8 267k | meta dict |
|---|---|
Q: Why does Microsoft Visual C# 2008 Express Edition debugger randomly exit? I am writing a multi-threaded Windows application in Microsoft Visual C# 2008 Express Edition. Recently, the debugger has been acting strangely.
While I am Stepping Over lines of code using the F10, sometimes it will interpret my Step Over (F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Ruby on Rails 2.1 Subdomain-Cookie issues When using a subdomain and trying to view anything related to current_user. user is sent to a new session page, the page shows the session is created and gives the option to logout. I can use no subdomain and it works fine.
A: Set it in your environment.rb (or environments/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF Binding Collection To ComboBox and Selecting an item I've been knocking my head against this for some time now. I'm not really sure why it isn't working. I'm still pretty new to this whole WPF business.
Here's my XAML for the combobox
<ComboBox
SelectedValuePath="Type.FullName"
SelectedItem="{Binding P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to check if two objects are of the same type in Actionscript? I want to do this in Actionscript:
typeof(control1) != typeof(control2)
to test if two objects are of the same type. This would work just fine in C#, but in Actionscript it doesnt. In fact it returns 'object' for both typeof() expressions because tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to call ASP.NET .dll file from a PHP script? Do you know how can I call an ASP.NET .dll file from a PHP script?
Thanks!
A: You use the DOTNET extension.
First off, you need to be running this on Windows. If you are on linux, then I would look at using something like Facebooks Thrift.
If you are on windows and d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Protocols used to talk between an embedded CPU and a PC I am building a small device with its own CPU (AVR Mega8) that is supposed to connect to a PC. Assuming that the physical connection and passing of bytes has been accomplished, what would be the best protocol to use on top of those bytes? The computer needs to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: using rstrip on form.cleaned_data[i] in Django In my views.py, i have a snippit of code like this:
def clean_post_data(form):
for i in form.cleaned_data:
form.cleaned_data[i] = form.cleaned_data[i].rstrip()
def add_product(request):
form = ProductForm(request.POST, request.FILES or None)
imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a technical reason for applications to hang on DNS lookups? If I try to quit Firefox when it's "Looking up domain.com..." it beachballs (hangs), goes into "not responding" status, then finally quits. It does this without fail.
This is on Mac with the latest FF, but it's always been this way for me, even on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python GTK MVC: Kiwi? I've been looking around for a good MVC framework for Python using PyGTK. I've looked at Kiwi but found it a bit lacking, especially with using the Gazpacho Glade-replacement.
Are there any other nice desktop Python MVC frameworks? I'm one of the few (it seems) to not want a webapp.
A: In def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Use of 'prototype' vs. 'this' in JavaScript? What's the difference between
var A = function () {
this.x = function () {
//do something
};
};
and
var A = function () { };
A.prototype.x = function () {
//do something
};
A: In most cases they are essentially the same, but the second version saves... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "827"
} |
Q: DataRollBack with XtUnit in Nunit Today I ran XtUnit at a part of my unit testing framework to to rollback database changes created while running a test case. This is a skeleton of how I have used it. The Test case ran successfully but the database state changed as a result.
using NUnit.Framework;
using TeamAgile.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to develop local using PHP and Visual Studio? I am taking my first foray into PHP programming and need to configure the environment for the first time. Can I use PHP with the built in VS web server or do I need to (and I hope not) use IIS locally?
In addition, any pointers on pitfalls to be avoid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any DAL/ORM on GAE? Is there any Database Abstraction Layer (DAL) or Object Relational Mapper (ORM) that works on Google App Engine (GAE), and on normal relational databases (RDBS), other than web2py's?
If not, is anybody working on porting one of the existing DAL/ORM to GAE?
A: There is an ORM for Google App Engi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Weird Behaviour in jQuery's html method Any good reason why $("p").html(0) makes all paragraphs empty as opposed to contain the character '0'?
Instead of assuming I found a bug in jQuery, it's probably a misunderstanding on my part.
A: jQuery only accepts a string as an argument for the val parameter of the html() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I add an ActiveX component to my project in Visual C++ 2008 I am just learning Visual C++ and I am used to Visual Basic where I just select the ActiveX component from a list of references. I can seem to add it anywhere. If I go to the Project | References, it is all blank. It only allows me to specify a pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is filter_var sufficient to sanitise integer input for PHP-based MySQL queries? I've never liked wrapping the
mysql_real_escape_string
function around input I expect to be integer for inclusion in a MySQL query.
Recently I came across the
filter_var
function. Nice!
I'm currently using the code:
if (isset($idUs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why cant I find my cookies in Temporary Internet Files? I'm trying to convert a cookie from www.example.com to .example.com.
So I thought I'd go to C:\Users\SWEAVER\AppData\Local\Microsoft\Windows\Temporary Internet Files and just delete the cookie there.
To my surprise there were not only no temporary internet fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where do you record your authentication information (urls/ips/usernames/passwords)? I'm wondering what people use for storing their username, passwords, urls, IPs, domains, and any other login information they need to both do their job and in general life. It might also store serial numbers or similar data.
I find t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cleaning form data in Django How can i clean and modify data from a form in django. I would like to define it on a per field basis for each model, much like using ModelForms.
What I want to achieve is automatically remove leading and trailing spaces from defined fields, or turn a title (from one field) into a slug (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Upgrading from SPS 2003 to MOSS 2007 If there are extensive modifications made to search.aspx in SPS 2003, will they get lost when you upgrade to MOSS 2007?
A: Surprisingly, they will NOT be lost.
Search.aspx
The Search.aspx file is not changed or
overwritten during the Office
SharePoint Server 2007 upgrade
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I send mail from an iPhone application I want to send an email from my iPhone application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application:
NSString *url = [NSString stringWithString: @"mailto:foo@example.com?cc=bar@example.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "243"
} |
Q: solaris filemerge and pstack equivalents for linux Accepting the possibility of extreme ridicule, I must admit that I really miss sun Teamware's filemerge tool. I have switched from solaris to red hat linux, and find myself regularly missing filemerge (not to be confused with the Apple tool of the same name), as wel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remote Name could not be resolved While accessing a webservice which is availbale at http://recpushdata.cyndigo.com/jobs.asmx, I am getting this Exception. "Remote name could not be resolved"
Any Suggesytion..what to do..
A: The server error you got in the previous comment is good - it means your original problem, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Relational Schema for Fowler's Temporal Expressions Martin Fowler defines an elegant object model for the scheduling of recurring tasks here, which maps to OO code very nicely. Mapping this to a relational database schema for persistence, however, is tricky.
Can anyone suggest a schema + SQL combination that encaps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Nested functions: Improper use of side-effects? I'm learning functional programming, and have tried to solve a couple problems in a functional style. One thing I experienced, while dividing up my problem into functions, was it seemed I had two options: use several disparate functions with similar parameter lists, or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What is tail call optimization? Very simply, what is tail-call optimization?
More specifically, what are some small code snippets where it could be applied, and where not, with an explanation of why?
A: Tail-call optimization is where you are able to avoid allocating a new stack frame for a function because the cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1056"
} |
Q: Any Macro or Technic for Part Optimization? I am working on lock free structure with g++ compiler. It seems that with -o1 switch, g++ will change the execution order of my code. How can I forbid g++'s optimization on certain part of my code while maintain the optimization to other part? I know I can split it to two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Batch file called from Javascript/XPCOM doesn't show command prompt window I am calling a batch file from Javascript in this fashion:
function runBatch(){
var exe = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile);
exe.initWithPath("C:\\test.bat");
var ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/310996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Some keys not working with a Dojo Widget I tried to follow the widget example by mindtrove's blog. Here is the example demo page.
There are some problems with this widget: left & right arrow keys, and home & end keys are not working in Firefox(I am using a Mac), and none of any keys are working if I load the example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does query plan optimizer works well with joined/filtered table-valued functions? In SQLSERVER 2005, I'm using table-valued function as a convenient way to perform arbitrary aggregation on subset data from large table (passing date range or such parameters).
I'm using theses inside larger queries as joined computati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I select top 10 rows in a table without sorting?
Possible Duplicate:
How do I select last 5 rows in a table without sorting?
I want to select the top 10 records from a table in SQL Server without arranging the table in ascending or descending order.
A: The question does not make sense. In SQL a table has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In-depth Documentation of XML-RPC API I was wondering if there is a single API documentation with "argument list" and the detailed description (and struct definition) of all the return values for all the blogging APIs like Blogger API,mt, metaweblog, and wp?
A: As far as I know, WordPress doesn't have its own API, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: apply CSS dynamically in asp.net 2.0 I have a scrolling div with Three linkbuttons and three differents divs. I need to apply CSS to active linkbutton as soon as button is clicked.The codes used by me are:
protected void btnNetwork_Click(object sender, EventArgs e)
{
this.btnForecast.CssClass = "li_1";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: From AS2 to AS3 loading external images I'm converting some Actionscript code from AS2 tp AS3, and I've eventually managed to get most of it to work again (it's allmost a totally different language, sharing just a little syntax similarity). One of the last things that still doesn't work, is the code for loading an e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting CSS pseudo-class rules from JavaScript I'm looking for a way to change the CSS rules for pseudo-class selectors (such as :link, :hover, etc.) from JavaScript.
So an analogue of the CSS code: a:hover { color: red } in JS.
I couldn't find the answer anywhere else; if anyone knows that this is something browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "149"
} |
Q: Best way to test performance of various languages & frameworks I want to perform some empirical trade-off's to assess the performance of applications written in a number of different languages on a Linux platform. Are there standard algorithms that typically used for this purpose?
A: Some people say there are, al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I select last 5 rows in a table without sorting? I want to select the last 5 records from a table in SQL Server without arranging the table in ascending or descending order.
A: select * from table limit 5 offset (select count(*) from table) - 5;
A: Without an order, this is impossible. What defines the "b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: caching JavaScript files Which is the best method to make the browser use cached versions of js files (from the serverside)?
A: From PHP:
function OutputJs($Content)
{
ob_start();
echo $Content;
$expires = DAY_IN_S; // 60 * 60 * 24 ... defined elsewhere
header("Content-type: x-javascript");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Are there public key cryptography algorithms that are provably NP-hard to defeat? Should practical quantum computing become a reality, I am wondering if there are any public key cryptographic algorithms that are based on NP-complete problems, rather than integer factorization or discrete logarithms.
Edit:
Please che... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Offset vs page number when doing pagination This is pretty trivial, but I noticed on SO that instead of an offset they are using page numbers. I know the difference is minor (multiply the page number by rows on a page or divide offset by rows on a page), but I'm wondering if one is recommended over the other.
Some s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: DataGridView Filtering OnClick Event (C# WinForm) How to filter my datagridview by the value of my label.text on click event? That value is from my linq query:
dataSet.Tables[0].AsEnumerable().Where(c => c.Field<int>("ageColumn") > 3 &&
c.Field<int>("ageColumn") < 5).Count();
Let's just say the above query giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Three customer addresses in one table or in separate tables? In my application I have a Customer class and an Address class. The Customer class has three instances of the Address class: customerAddress, deliveryAddress, invoiceAddress.
Whats the best way to reflect this structure in a database?
*
*The straightfor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How should I pass a reference of an object to a controller in MVC? I'm trying to get better at using MVC/MVP style patterns with my WinForm apps and I'm struggling with something that maybe someone here with more experience can help me with.
Below is my basic project layout:
The class G2.cs handles the running of v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which RDBMS do you use with Django and why? I recently switched a project from MySQL InnoDB to PostgreSQL, and I feel bigger lags when inserting and updating data with ajax. This may be subjective. I know the Django devs recommend postgres and I know psycopg2 is supposed to be faster than MysqlDB. Personaly I like t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Debugging an exception in a Cocoa app I am working on an app with an NSTextView. When I paste random bytes into it (say, from a compiled C program) it displays gibberish, as it should. However, when I -setShowsControlCharacters:YES, the same causes a crash and gives the following error multiple times:
2008-11-22 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best way to generate a unique number which has to follow certain rules? Some background: In Germany (at least) invoice numbers have to follow certain rules:
*
*The have to be ordered
*They have to be continuous (may not have gaps)
Since a few months they are allowed to contain characters. Some custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any tool that can upgrade .NET 1.1 WinForm code to .NET 2.0 "style"? I mean a tool that can extract certain contents from old .NET 1.1 WinForm code and put it in .designer file (make it looks like .net 2.0 WinForm code). This also involves an update to the project file (.csproj/.vbproj)..
If no existing tool yet, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Safely checking the type of a variable For a system I need to convert a pointer to a long then the long back to the pointer type. As you can guess this is very unsafe. What I wanted to do is use dynamic_cast to do the conversion so if I mixed them I'll get a null pointer. This page says http://publib.boulder.ibm.com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any implementation of Map, i.e. two keys? I need a map that has two keys, e.g.
Map2<String /*ssn*/, String /*empId*/, Employee> _employees;
So that I can
_employees.put(e.ssn(), e.empId(), e)
And later
_employees.get1(someSsn);
_employees.get2(someImpId);
Or even
_employees.remove1(someImpId);
I am not sure why ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Should I prefer purchasing a commercial framework or creating my own version of the same functionality? (classic "Create vs Buy") I have mixed views about commercial class libraries. Am I better off using a commercial class library or starting from scratch? If buying a library is the way forward which one for a C#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A .NET type for describing 3D position? I need a type which can contain a position of an object in a 3D environment - my house.
I need to know the floor it is on, and the x and Y coordinates on that floor.
The System.Windows.Point(int, int) only represent a two-dimensional space, but does .NET have a type for three-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is any Windows simulator available to test iPhone application? Is there any windows simulator availabe through which I can test (only testing) my iPhone application on Windows XP?
Thanks & regards,
Khushi
A: No. The iPhone Simulator is available as part of the iPhone SDK, which is only available for Mac OS X Leopa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Algorithmic Trading API Anyone have experience with algorithmic trading (like stocks)? Any good services to use to get quotes and to make trades?
A: I had a freelance project that used Interactive Brokers, which provided both a proprietary API as well as a FIX-based one. The proprietary API is somewhat painful to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Add WPF control at runtime I've written a WPF UserControl, and want to add one or more of it to my Window at runtime when I click a button. How can I do that?
Edit: Further specification
I want to add the usercontrols to a Canvas, and put in a absolute position. The canvas is a drawing of the floors in my house, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Open .fla file without using Flash Authoring tool I have a .fla file with some text that I want to get at. Is there a free app than you can use to open .fla files, or just a tool to dump strings and pics?
A: With such question, I just experiment...
I went to deviantART, went to the Flash .FLA Files gallery and down... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Why doesn't the corflags utility warn when marking x64 assemblies as x86? If I set the platform flags of MyApp.exe to be x64
I still can run the corflags utilty like this:
corflags /32bit+ MyApp.exe
corflags will happily set the 32bit flag to 1.
Of course when I'll try to run the application I'll get an error:
0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you convert a byte array to a hexadecimal string, and vice versa? How can you convert a byte array to a hexadecimal string and vice versa?
A: From Microsoft's developers, a nice, simple conversion:
public static string ByteArrayToString(byte[] ba)
{
// Concatenate the bytes into one long string
retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1590"
} |
Q: std::auto_ptr or boost::shared_ptr for pImpl idiom? When using the pImpl idiom is it preferable to use a boost:shared_ptr instead of a std::auto_ptr? I'm sure I once read that the boost version is more exception friendly?
class Foo
{
public:
Foo();
private:
struct impl;
std::auto_ptr<impl> impl_;
};
cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can I record audio using Action script then upload it to server? First is there any technique for using Action Script for recording sound from microphone?
If yes. How?
Then one he record I'll upload it to server.
A: flash.media.Microphone is the class you're looking for.
The static function Microphone.getMicro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JXTable - Highlighter after filtering table Info - for better formatting, I used code-formatting throughout the whole posting.
Hi,
I have a highlighted JXTable. Rows are highlighted, depending on the value
of a specific column (c2). Everytime the value of column c2 changes, the color
is switched from white to gre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Example of drag n drop in AIR I am looking for a simple example of Drag-n-drop within a webpage(say dragging a image to a tabel cell), in AIR (using AIR api)
thanks
A: You may find something here, here or, best of all, Bulgaria Flex Group where the entry begins with "I would like to show an easy way to drag and dro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open Source Proxy Library for .Net I'm looking for a open source .Net HTTP proxy library. Basically I want to develop something like Fiddler (so much lighter with less features).
A: Mentalis doesn't handle non-ASCII very well. The core proxy engine of Fiddler is called "FiddlerCore," now available as a .NET class ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Stack conditions in CASE statement in PL/SQL I'm using Oracle 10g and I'm trying to "stack" the conditions in a CASE statement, like I would do in C++ :
case 1:
case 2:
// instructions
break;
i.e. having the same code block executed for two different successful conditions.
I've tried :
WHEN 1, 2 THEN
WHEN 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I edit and delete data in Django? I am using django 1.0 and I have created my models using the example in the Django book. I am able to perform the basic function of adding data; now I need a way of retrieving that data, loading it into a form (change_form?! or something), EDIT it and save it back to the DB.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: CollectionBase vs generics I am migrating an application from .NET 1.1 to .NET 2.0. Should I remove all uses of CollectionBase? If so, what is the best strategy for migration?
A: Yes, the best classes to look at are in System.Collections.Generic.
I usually use List.
There are two approaches you can use either:
A
pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Modern, high performance bloom filter in Python? I'm looking for a production quality bloom filter implementation in Python to handle fairly large numbers of items (say 100M to 1B items with 0.01% false positive rate).
Pybloom is one option but it seems to be showing its age as it throws DeprecationWarning errors ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Numeric types error when multiplying two 2 vectors in MATLAB I have these 2 vectors:
alpha =
1 1 1 1 1 1 1 1 1
f_uv =
193 193 194 192 193 193 190 189 191
And when I do this:
alphaf_uv = alpha * f_uv'
I get the error message:
"??? Error using ==> mtimes
Integers can only be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Where to put your delegates . . I am trying to determine the best directory structure of my application
i have:
UI
Data
Interfaces
but i dont know where to put delegates..
should there be a seperate Delegates folder or should i store the delegates in the same classes where they are being used . .
A: If you have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What to teach a beginner in Emacs? If you had a 10 minute hands-on session to teach someone Emacs, what would you show them?
Start emacs: emacs
...
Quit emacs: C-x C-c
What else would you have them do between starting and quitting Emacs, while you stood behind them?
A: C-x M-c M-butterfly
A: I'd show the most i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Recommended project structure for Flex builds I'm starting a new project using Flex3 for a reasonably intricate UI getting its data from a collection of RESTful web services. I wondering what experiences others have had in structuring a moderately complex Flex project. The issues I'm thinking about include:
*
*I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP open another webpage with POST data I'm new to PHP and I'm trying to do something that may be bad practise and may well be impossible. I'm basically just hacking something together to test my knowledge and see what PHP can do.
I have one webpage with a form that collects data. That is submited to a PHP script th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to grant different permissions to various Java classes? I have a Java application and I would like to make it extensible. To create an extension, developers within our company will write a Java class that implements a certain interface. They may also wish to write associated helper classes. I would like to lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Changing default behavior in a C++ application with plugins In short: what is the best way to design and implement a factory+plugin mechanism, so that plugins can replace objects in the main application.
We have a code base from which we build our applications. The code base is fine for 70-95% of the applications, m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the hidden features of Maven2? What are the hidden features of Maven2?
A: You can use the settings.xml to force ALL maven builds running on your local machine to also use a locally installed maven proxy. Saving yourself and the network time.
<settings xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DropDownList.SelectedValue changes (as a child control in a FormView) aren't sticking Okay, I have a FormView with a couple of child controls in an InsertItemTemplate. One of them is a DropDownList, called DdlAssigned. I reference it in the Page's OnLoad method like so:
protected void Page_Load(object sender, EventA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Config files for assemblies in GAC I have a .NET dll which needs to read it's config settings from it's config file. Usually, the config file is placed in the same directory as the DLL. But how do i read the config file if the DLL is GAC'ed, because I can put only the DLLs in the GAC, and not it's config files.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is it OK to have code in the root of a project? I am trying to come up with a best practices on project directory structure.
my latest thought is that there should be no classes in the root directory of a project. All classes must go under one of the following directories
*
*UI
*BusinessObjects
*BusinessLog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Monitoring application calls to DLL In short: I want to monitor selected calls from an application to a DLL.
We have an old VB6 application for which we lost the source code (the company wasn't using source control back then..). This application uses a 3rd party DLL.
I want to use this DLL in a new C++ application. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: generics and interfaces enumeration If have a set of classes that all implement an interface.
interface IMyinterface<T>
{
int foo(T Bar);
}
I want to shove them all in a list and enumerate through them.
List<IMyinterface> list
foreach(IMyinterface in list)
// etc...
but the compiler wants to know what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem replacing words using [^a-zA-Z] regex Just could not get this one and googling did not help much either..
First something that I know: Given a string and a regex, how to replace all the occurrences of strings that matches this regular expression by a replacement string ? Use the replaceAll() method in the S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fast container for setting bits in a sparse domain, and iterating (C++)? I need a fast container with only two operations. Inserting keys on from a very sparse domain (all 32bit integers, and approx. 100 are set at a given time), and iterating over the inserted keys. It should deal with a lot of insertions which hit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the best way to extract multiple fields from an asp.net form into a C# list or array ready for processing? I need to extract multiple text/dropdown list fields from an asp.net form and format appropriately ready for sending to recipient via email.
What's the best way of reading those fields without having to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Admin generic inlines for multi-table subclassed models broken --- any alternatives? Here's what I'm trying to do, and failing...
I have a File model which has a generic-relation to other objects:
class File(models.Model):
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Alternative to history.go(-1) for FireFox and Safari Is there an alternative to history.go(-1) for FireFox and Safari. Any Help would be greatly appreciated.
A: You can use history.back().
A: <a href="javascript:history.go(-1)">Link</a>
Should work though.
Because, indeed, the following does not work in Firefox:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NHibernate Inheritance mapping when sub class in Separate Assembly Assume that the core project has a base entity and every plugin maybe extends the base entity.
Solution structure :
Application.Core.BaseClass
Application.Module.SubClass (it's a plug in, maybe not available)
Is any way to implement this mapping usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Measuring performance after Tail Call Optimization(TCO) I have an idea about what it is. My question is :-
1.) If i program my code which is amenable to Tail Call optimization(Last statement in a function[recursive function] being a function call only, no other operation there) then do i need to set any optimization... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Start VB.NET GUI app using Sub Main or form startup object? Is there any reason to start a GUI program (application for Windows) written in VB.NET in the Sub Main of a module rather than directly in a form?
EDIT: The program won't take any command line parameters and it will be executed as a GUI program always.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What are common shortcuts? To send a message I usually press ctrl + enter. What other shortcuts do you think are important to implement into your webapplications?
Edit:
What buttons do you think are interessting to catch with js because they aren't used by the browser?
I am not thinking of ctrl + z f.e. because the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET xml docs - inheriting documentation NDoc has an XML element inheritdoc which allows you to inherit documentation of a member from the parent class (or an implemented interface). However, Visual Studio (i.e. the C# compiler) does not understand this tag and complains about the documentation not being present or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: Why I cannot get equal upload and download speed on symmetrical channel? I'm assigned to a project where my code is supposed to perform uploads and downloads of some files on the same FTP or HTTP server simultaneously. The speed is measured and some conclusions are being made out of this.
Now, the problem is that on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Autocomplete for password doesn't work for my webapp (in firefox) I've created a login submit form in HTML but for some reason autocompletion does not work in firefox.
This is what happens in Firefox:
- I give username and password and click on the login button
- Firefox prompts me if I would like to remember the pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MySQL A Search, A Select of multiple rows, Joining and all in one query I am first doing a search on the table tags which results in all the rows returned together with their additional data from the table links (on which i do a join). The table tags works such that for an auto _id there can be multiple rows (1 tag ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determining if the Maximize button is available Does anyone know where I can find an example of how to determine if the Maximize and/or Minimize buttons on a window are available and/or disabled?
The window will not be in the same process as my application. I have the hWnd and I have tried using GetMenuItemInfo, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Turning off hibernate logging console output I'm using hibernate 3 and want to stop it from dumping all the startup messages to the console. I tried commenting out the stdout lines in log4j.properties but no luck. I've pasted my log file below. Also I'm using eclipse with the standard project structure and have a co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: 'Conference' type operations using Bluetooth? Is it possible to implement Bluetooth devices to provide conference rather than one-to-one operation.
Are there any development toolkits that will allow me to configure BT devices in this way, or modifications that can be done to the BT stack or an add-on protocol.
I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using WITH NOLOCK Table Hint in Query Using View - Does it Propagate Within the View? If a "WITH NOLOCK" query hint is used on a View in SQL Server, does it propagate that hint to the view definition itself, even if NOLOCK is NOT used for the raw tables in the View definition? The reason to need this is that sometim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Content Delivery Network algorithms, examples, code What design considerations must be taken when writing software for content-distribution systems, such as managing the synchronisation and distribution of data, redirecting downloads to the nearest servers and so on?
I am also looking for examples of open source CDN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are EventArg classes needed now that we have generics With generics, is there ever a reason to create specific derived EventArg classes
It seems like now you can simply use them on the fly with a generic implementation.
Should i go thorugh all of my examples and remove my eventArg classes (StringEventArgs, MyFooEven... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Embedding text/html in an Object (instead of an iframe) <iframe data="/localfile.html" type="text/html" width="200" height="200"></iframe>
<iframe data="http://example.com/remotefile.html" type="text/html" width="200" height="200"></iframe>
<object data="/localfile.html" type="text/html" width="200" height="200"></o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Initialising Java Web App I have a simple web app, with a few jsp pages, servlets and pojo's. I want to initialise the connection pool before any requests are made. What is the best way to do this? Can it be done when the app is first deployed or do you have to wait till the first request comes in?
A: Use a Serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/311438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.