text stringlengths 8 267k | meta dict |
|---|---|
Q: SpeakHere sample can't play sound which loads from internet I'd like to play sound file which loaded from internet, so I tried to start from iPhone SDK SpeakHere sample. I recorded the sound, then saved and uploaded to the internet, I could download that file and play without problem from sound tools. But when I tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Most number of projects within a solution for VS 2005 is there a max number of projects that will cause performance issues. We have now up to 25 projects and growing. Should we making these binary referenced or are we breaking out our application logic into too many different projects. Seems to start to be a big ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get an original row in a SQL join from disappearing? In this query:
SELECT COUNT(*) AS UserCount, Company.* FROM Company
LEFT JOIN User
ON User.CompanyId = Company.Id
WHERE Company.CanAccessSystem= true
AND(User.CanAccessSystem IS null OR User.CanAccessSystem = true)
GROUP BY Company.Id
I want to query a l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Submit button style in IE I have a question to the submit- button behavior of internet explorer. If I load the page everything is fine - the submit button looks as it should.
Inactive state http://img58.imageshack.us/img58/7214/inactiveci9.jpg
But if I click inside the FORM, the submit button gets some additional s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: jQuery with elements generated dynamically I've been working with jQuery for a pair of weeks and I've noticed it works fine with objects that are in the original HTML document, but when I generate a new element using jQuery the library doesn't get any of its events.
Let's say I try to run something like this:
$('.wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I populate another dropdown with the onChange event of the first dropdown? with jquery, or with simple just javascript, I want to populate a 2nd dropdown from the choice of the first dropdown.
The value of the first dropdown is the condition to get rows for the second dropdown.
How does the onChange event l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How much work should be done in a constructor? Should operations that could take some time be performed in a constructor or should the object be constructed and then initialised later.
For example when constructing an object that represents a directory structure should the population of the object and its children b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Adding element to node There's a HTML:
<div class="test">
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
And a bit of JS:
$(document).ready(function() {
// do stuff when DOM is ready
$(".test ul").append('<li>Foo</li>');
});
Why does it add nothing, but if I remove html from append's argument st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect drag operation at windows global scope? When I drag a folder at the edge of the screen in Windows XP, it becomes a toolbar containing the files in the folder.
How can windows detect there is a drag operation?
If I want to write an application to detect drag operation in system scope, how can I do this?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best practice to mark deprecated code in Ruby? I'd like to mark a method as deprecated, so the people using it can easily check their code and catch up. In Java you set @Deprecated and everybody knows what this means.
So is there a preferred way (or even tools) to mark and check for deprecations in Ruby?
A: You do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "144"
} |
Q: Generic vector of vectors in C++ Is there a good way in C++ to implement (or fake) a type for a generic vector of vectors?
Ignore the issue of when a vector of vectors is a good idea (unless there's something equivalent which is always better). Assume that it does accurately model the problem, and that a matrix does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: where would report generation code go . I have a visual studio solution with the following projects:
*
*UI
*DataAccess
*BusiessLogic
*BusinessObjects
I now have a bunch of code that generates reports that are sent out via email or saved as csv files.
These ReportGenerators classes take in business objects a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Most efficient way for storing geolocations in a database I know postgres has a datatype for storing geographical coordinates. But I'm looking for a RDBMS agnostic solution. Currently I'm using Decimal(25,20) in MySQL. I may be using this data to lookup these locations based on a given distance from a given location... | {
"language": "en",
"url": "https://stackoverflow.com/questions/293997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to prevent a new window from opening in hosted Internet Explorer I'm hosting an Internet Explorer instance (the Web Control) in an CAxWindow ATL class. How do I prevent that a website could open a new window from the hosted IE? I'm already setting an implementation of IDocHostUIHandlerDispatch to disable the con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Elegant Object comparison When comparing two objects (of the same type), it makes sense to have a compare function which takes another instance of the same class. If I implement this as a virtual function in the base class, then the signature of the function has to reference the base class in derived classes also. W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I fix Visual Studio 2005 unresponsiveness? My VS 2005 goes unresponsive all the time. I have tried all of the optimization tricks that have been listed on StackOverflow. I am running with Resharper 4.1. (not sure if that could cause this). What other ways could I try to isolate the root issue here?
Is it po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some C++ related idioms, misconceptions, and gotchas that you've learnt from experience? What are some C++ related idioms, misconceptions, and gotchas that you've learnt from experience?
An example:
class A
{
public:
char s[1024];
char *p;
A::A()
{
p = s;
}
void changeS() const
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Is there a GhostDoc like plug-in for CodeRush or ReSharper? I have noticed that GhostDoc hasn't been updated in a long while. So I am curious if there is a plug-in for Resharper or CodeRush that will accomplish the same thing? Or even if this type of functionality is built in to one of the tools that would be grea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to expand 'select' option width after the user wants to select an option Maybe this is an easy question, maybe not. I have a select box where I hardcode with width. Say 120px.
<select style="width: 120px">
<option>REALLY LONG TEXT, REALLY LONG TEXT, REALLY LONG TEXT</option>
<option>ABC</option>
</sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: WPF Documentation and Visual Studio 2008 Express I'm trying to get a WPF development environment set up at home, using Visual C# Express 2008. I installed both it and the MSDN documentation for it, however it looks like the documentation doesn't include any WPF documentation.
I was about to install the Windows Vista... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Concurrency or Performance Benefits of yield return over returning a list I was wondering if there is any concurrency (now or future), or performance benefit to using yield return over returning a list. See the following examples
Processing Method
void Page_Load()
{
foreach(var item in GetPostedItems())
Proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Hibernate: Avoiding reading all the records to memory at once I have a large amount of rows in the database from which I need to create an XML document. I am using hibernate 3. The basic list() method in Criteria and Query interfaces looks dangerous: I quess it pretty much has to read all the records into memory eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: dllimport failed to locate dll even though it is in the PATH I use [Dllimport("DllName.dll")]
where I'm sure a path to my dll exists in the process PATH environment variable, and still
I get "DllName.dll could not be found"
A: "DllName.dll could not be found" could also mean that DllImport has not found one of DllN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Timers, UI Frameworks and bad coupling - Any Ideas? I've just written a small XBox 360 Wireless Controller managed interface that basically
wraps around the low-lever SlimDX wrapper library and provides a easy, managed API for the XBOX 360 controller.
Internally, the class polls the gamepad every N ms, and shoots ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS Recycle Global.asax Is it possible to catch an recycle event in the global.asax?
I know Application_End will be triggered but is there a way to know that it was triggered by a recycle of the application pool?
thx, Lieven Cardoen aka Johlero
A: I found this article on Scott Guthries's blog:
Logging ASP.NET Appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to index and find numbers with Lucene.NET? I've implemented full text search for a web site using Lucene.NET (Version 2.0). Indexing and searching works well, but I have one problem. If I look for numbers (phone numbers, product numbers etc.) as search terms, I don't get any resulting documents.
I'm using the Lu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Where does the system store the icons position? The "icon view" and "folder view" on any folder is in fact a SysListView. If you uncheck Auto-arrange of the icons you can move around the icons and next time you open the folder all icons are at the same place as last time.
My question is, where does the system stores... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Creating new ASP.Net MVC project - Unit Test Dialog does not show up When I create a New Project of type ASP.Net MVC Web Application, I expect the dialog for unit test applications to show up, but it does not. I cannot find the Unit Test App among the product types I can create either. How do I set up my VS so that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# / Web Development learning strategy For a newcomer to .NET Web Development and programming in general, who chooses C# as there preferred language?
Is it better to learn C# first, without trying to apply it to web development? It seems most literature for C# uses Console or Windows Forms as a learning platform. So... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Importing Sql Server 2005 database into Sql Server express 2008 Is there any way to import a database backup from 2005 into 2008 express edition. What I've had to resort to is doing a script the database, then import all the data through DTS. Whenever I tried to import straight from a backup file it says something a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Merging dictionaries in C# What's the best way to merge 2 or more dictionaries (Dictionary<TKey, TValue>) in C#?
(3.0 features like LINQ are fine).
I'm thinking of a method signature along the lines of:
public static Dictionary<TKey,TValue>
Merge<TKey,TValue>(Dictionary<TKey,TValue>[] dictionaries);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "619"
} |
Q: Design question with Enums to model Type relationships In designing a class for customer for example would it make sense to use an Enum for CustomerType?
A: That depends on other constraints. You haven't told us enough about your model. For example, if different types of customers have different types of informatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Ruby Routes in Model Okay, these two related questions are in reference to Railscast #21:
I'm having some trouble with routes. Two issues:
1) The routes in the tutorial seem to be relative to the root of the application; I want them to be relative to the root of the model. So
"http://example.com/login" I nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: flowchart best practices Could some one point to articles / books on how to create good flow chart diagrams?
A: BoUML-it's free!
I've used this open source tool for the last 6 months at work to create UML diagrams:
bouml.free.fr/
I've used it on both a Macbook running OS X, as well as Ubuntu Linux on a desktop, bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql import trouble using XAMP originally i was using easyPHP (windows) then i switch to mac and used MAMP.
i archive my db every once in a while and right before i reformatted. The export was made by going into the root of phpMyAdmin and using the export function. Now i am trying to import the data i get this erro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the most useful Intellij IDEA keyboard shortcuts? I did a bit of googling hoping to find a post on IDEA shortcuts similar to Jeff's post on Visual Studio shortcuts (Visual Studio .NET 2003 and 2005 Keyboard Shortcuts), but didn't really spot anything that helped. Hopefully the answers to this question will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "290"
} |
Q: Best way to move a data row to another shard? The question says it all.
Example: I'm planning to shard a database table. The table contains customer orders which are flagged as "active", "done" and "deleted". I also have three shards, one for each flag.
As far as I understand a row has to be moved to the right shar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I fix this error: "MyEvent += expected"? I have a delegate, say:
public delegate void MyDelegate();
I have an event, say:
public MyDelegate MyEvent;
While invoking the event I am receiving an error message:
"MyEvent += expected ....."
How do I resolve this?
A: You can only invoke the event from within th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Jquery how to get attribute from a HttpServletRequest I have this piece of code:
$("#faq").click(function () {
var url = $.get("faq", { pagina: "page" });
alert(url);
});
On "faq" responds to a Servlet that sets an attribute on the request
....
request.setAttribute("pageFAQ", pageFAQ);
....
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to map a key press to simulate middle-click in xwindows? I'm wondering, is it possible to somehow map a key-press event to act like a middle-key click of a mouse in Xwindows? They are diffrent devices, I know, but if there was a way to trigger a middle-button click event from a C program, it should be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Error Trying To Make Easier rsync Command I normally use scp to copy stuff, but now I'm trying to get used to the more powerful rsync command. It helps me use less bandwidth by copying up only files that have changed. However, rsync has a lot of complex parameters, so I thought, hey, I'll just make a little Bash scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sync Services Client and Schema Xcode Project Structure I've started work on a project that will be primarily acting as a Sync Services Client. Ideally, the project have two components: a custom schema bundle and a preference pane.
As a first step, I've created an Xcode project for the schema bundle. But now I found... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to determine change statistics between revisions Given 2 file revisions I want to know how many lines were added/modified/deleted.
I want to have this information for the entire repository of thousand of files.
Please point me to a script or tool as I am a total svn newbie
I am working on windows
Sample output
F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: iPhone app using .NET development environment? How could I create iPhone applications using the .NET development environment?
A: If you just want to leverage some knowledge of c#, you can use Unity. Games developed with Unity (http://unity3d.com) use Mono with an AOT (ahead-of-time compiler) to compile mono bytecod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Why does C# forbid generic attribute types? This causes a compile-time exception:
public sealed class ValidatesAttribute<T> : Attribute
{
}
[Validates<string>]
public static class StringValidation
{
}
I realize C# does not support generic attributes. However, after much Googling, I can't seem to find the reason.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "553"
} |
Q: Clear upper 16-bits in 1 ARM instruction In ARM assembly immediates are encoded by an 8-bit rotated value which means we can only encode
(0-256)^2n.
Now my problem is that I want to clear the upper 16-bits of r0 and replace it with the half-word stored r1. But because of the limited range of the immediates I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dragging an image in WPF I'm trying to create a WPF application where I can drag an image around.
Currently I have an image placed in the center of the window, and I'm thinking of using the three mouseevents MouseDown, MouseMove and MouseUp to calculate the new position when dragging the image.
Are there any other g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: SGML Parser in Plain C I'm looking for an open-source SGML parser written in plain C. This is to parse bona-fide SGML, not malformed stuff.
Any ideas?
A: There's OpenSP, which is part of the OpenJade project, but is implemented in C++. Might be close enough for your needs?
A: This came up on a fast Google search (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294228",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inserting a node into a linked list in constant-time? I'm working on an assignment that is telling me to assume that I have a singly linked list with a header and tail nodes. It wants me to insert an item y before position p. Can anybody please look over my code and tell me if I'm on the right track? If not, can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF - HeaderStringFormat Doesn't work in Expander I can't seem to find the magic combination to make the HeaderStringFormat work for a WPF Expander.
Here are all the things I've tried:
<Expander Header="{Binding Path=MyProperty, StringFormat=Stuff: ({0})}" >
<TextBlock Text="Some Content" />
</Expander>
<Expand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I retrieve an HTML element's actual width and height? Suppose that I have a <div> that I wish to center in the browser's display (viewport). To do so, I need to calculate the width and height of the <div> element.
What should I use? Please include information on browser compatibility.
A: NOTE: this answer w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1131"
} |
Q: tr1::mem_fn and members with default arguments I have class with a member function that takes a default argument.
struct Class
{
void member(int n = 0)
{}
};
By means of std::tr1::mem_fn I can invoke it:
Class object;
std::tr1::mem_fn(&Class::member)(object,10);
That said, if I want to invoke the callable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Assigning multiple users to a workflow task in sharepoint Has anyone able to assign multiple users to a sharepoint workflow task using the CreateTask activity?
A: Sharepoint task allow the use of groups. Assign the task to a group and trigger the work flow when a task has been assigned.
A: I blogged a while ago ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you call a constructor for global objects, for arrays of objects, and for objects inside classes/structs? How would you call the constructor of the following class in these three situations: Global objects, arrays of objects, and objects contained in another class/struct?
The class with the constructor (used ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Add Java Libraries to a Netbeans Grails Project I am just getting started with Grails. How do I add Java libraries to my Grails project? I added the Smack library jar to the lib folder of my Grails project, but I still cannot import any of its packages into my Java or Groovy classes. I am using the Netbeans IDE. Any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Python for Autohotkey style key-combination sniffing, automation? I want to automate several tasks (eg. simulate eclipse style ctrl-shift-R open dialog for other editors). The general pattern is: the user will press some key combination, my program will detect it and potentially pop up a dialog to get user input, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to use svn with beyond compare 3 I want to use svn command line with beyond compare and get the following output
Text Compare
Produced: 11/16/2008 11:45:34 AM
SourceFile,CompareFile,IOriginal,IAdded,IDeleted,IChanged,UOriginal,UAdded,UDeleted,UChanged
"E:\Downloads\eeli\eel\1.c","E:\Downloads\eeli\eel\2.c",967,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Latest web application features What kind of features web users are expecting or excited about? I am aware of Ajax. Any thing else? I dont understand how tags are important even on this stackoverflow site. I dont understand how wiki is an important feature? I see that questions get "kicked" in terms of improtance or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing master volume level How can I change the master volume level? Using this code
[DllImport ("winmm.dll")]
public static extern int waveOutSetVolume (IntPtr hwo, uint dwVolume);
waveOutSetVolume (IntPtr.Zero, (((uint)uint.MaxValue & 0x0000ffff) | ((uint)uint.MaxValue << 16)));
I can set the wave volume but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Advice on designing loosely-coupled complete systems? How does one design loosely-coupled systems which may often require data from each-other but don't necessarily belong in the same category?
For instance, lets take the old Pet-shop example one-step further and create a pet-store franchise. Each pet-store has its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JavaScript implementation of Gzip I'm writing a Web application that needs to store JSON data in a small, fixed-size server-side cache via AJAX (think: Opensocial quotas). I do not have control over the server.
I need to reduce the size of the stored data to stay within a server-side quota, and was hoping to be able... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "215"
} |
Q: ASP.NET Ajax ErrorSys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server I created an Ajax website in Visual Studio, added a simple page with a textbox and button, when I click the button once everything works, when I click it twice I get the error
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: unpacking an array of arguments in php Python provides the "*" operator for unpacking a list of tuples and giving them to a function as arguments, like so:
args = [3, 6]
range(*args) # call with arguments unpacked from a list
This is equivalent to:
range(3, 6)
Does anyone know if there is a way to achie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How to get the mouse button pressed from a command event in XUL? It seems that the XUL command and click events are somewhat different.
Although my function does get called when using the command event, the event object does not contain the button property.
My question is: how do I detect what mouse button that was ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Counting the rows in a TDbGrid I have a TDbGrid, and I can easily tell how many columns are in it at runtime with the FieldCount property, but there doesn't seem to be a corresponding RowCount property to display how many records are being displayed. How can I find this out?
A: You could try:
DBGrid1.DataSource.Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Read (and write) RTF files with C++ / Qt I am looking for a simple C++ library for tokenizing and parsing RTF (Rich Text Format) files. I am planning to edit them with Qt's QTextEdit.
More the Formatting preserved the better -- but actually I am planning to use Bold and Italics only.
In perl I would use RTF::Tokeniz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Creating a Drop Down Menu That Changes Page Content Using Show/Hide Layers and Z-Index I am trying to create a sidebar for a site that will allow a user to select an item from a drop down menu and show an RSS Feed. The feed will change depending on which item is selected from the list. I am not sure how to acomplish... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP YAML Parsers Does anyone know of a good YAML Parser for PHP? If so, what are the pros and cons of this library?
A: Symfony2 has a YAML component which supports most of the YAML 1.2 spec
https://github.com/symfony/Yaml
A: Spyc: https://github.com/mustangostang/spyc
Pure PHP implementation, so you don't need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: NHibernate, Codesmith and project physical architecture Recently I tried CodeSmith templates for NHibernate. As many of you might watched, there is a video explaining how to create a Petshop.Data using these templates. My question is what is the correct architecture in this approach? Should we have a BLL (or Service... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the experiences with using unicode in identifiers These days, more languages are using unicode, which is a good thing. But it also presents a danger. In the past there where troubles distinguising between 1 and l and 0 and O. But now we have a complete new range of similar characters.
For example:
ì, î, ï, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: CharBuffer vs. char[] Is there any reason to prefer a CharBuffer to a char[] in the following:
CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE);
while( in.read(buf) >= 0 ) {
out.append( buf.flip() );
buf.clear();
}
vs.
char[] buf = new char[DEFAULT_BUFFER_SIZE];
int n;
while( (n = in.read(buf)) >= 0 ) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Draw the variable diagram for a C# linkedlist I'm facing a real problem in understanding how to draw a variable diagram to a linked list
In the book I'm reading its not giving enough info
I will post an example:
the insert:
public void Insert(Object newItem, Object after)
{
Node current = new Node();
Node ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Good Tiff library for .NET I know libtiff for C, but haven't found a port for .NET. Does such a port exist?
A: My company recently released a free and open-source(New BSD license) version of LibTiff written using only managed C# (license permits commercial use and distribution).
https://bitmiracle.com/libtiff/
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: ASP.NET Ajax Error I added the ModalPopupExtender to an existing ASP.NET application. At runtime I get the following error
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .net 3.5SP1 on a .net 3.0 Server - Is it possible to use the /bin Folder in ASP.net? One of my Websites is on a Shared Hosting Provider, running either .net 2.0 or .net 3.0, but not 3.5 SP1.
I wonder if it would be possible to still use 3.5 SP1 by simply deploying all the 3.5 assemblies into the /bin Folder, since t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Formatting strings in C# consistently throughout a large web application I'm looking for a consistent way to structure my use of formatting strings throughout a large web application, and I'm looking for recommendations or best practices on which way to go.
Up until now I've had a static class that does some common ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: separate datatable for each row in db. .NEt I have long tables generated by datagrid control that go beyond the page width. I would like to convert that into separate table for each row or definition list where each field name is followed by field value.
How would I do that.
A: Uses jquery. If you have more than ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Split edit window in Visual Studio Is there any way to show two editing windows in visual studio? I would like to look at two source files at the same time but I must be missing the option to do that.
A: Another easy option is to open two documents, then just click and drag the tab for one of the documents and drop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: From Java to .Net These are some questions for any developer whose made the jump from Java to .Net:
If you could go back to the start of your switched, what would you do to make the transition easier?
Any books you would recommend?
How is .Net compared to Java EE? Anything that totally bugs you?
And the most impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: URL Design for SSL-Secured SaaS Application I am developing an application using the ASP.NET MVC platform, which will be exposed as a service over the web (the SaaS model). I am trying to determine the best way to partition the URL namespace for each user account. The application will need to be accessed securely ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why can't my Perl CGI script find the Oracle DBD? DBD, and Oracle Masters:
I have a Perl web application that is behaving oddly. I am using it to read some stuff from an Oracle DB and report. I have version 11.1.0.6.0 of Oracle's Instant Client installed. I'm running on WinXP and have the PATH environment variable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Note onset detection I am developing a system as an aid to musicians performing transcription. The aim is to perform automatic music transcription (it does not have to be perfect, as the user will correct glitches / mistakes later) on a single instrument monophonic recording. Does anyone here have experience in auto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How do I find userid by login (Python under *NIX) I need to set my process to run under 'nobody', I've found os.setuid(), but how do I find uid if I have login?
I've found out that uids are in /etc/passwd, but maybe there is a more pythonic way than scanning /etc/passwd. Anybody?
A: Never directly scan /etc/passwd.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: The type 'System.Web.UI.ScriptManager' is ambiguous: it could come from assembly When I run my asp.net app I get the error
The type ‘System.Web.UI.ScriptManager’ is ambiguous:
I am having the same problem this person is having http://forums.asp.net/t/1313257.aspx , when I change the 1.0.61025.0 to 3.5 and re-compi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Semantic urls with dots in .net I'm trying to make semantic urls for search pages, but if someone use a search finished in dot, the .net engine return a 404.
The request don't even get to the routing engine, so i think its something related to security or something like that.
For example, the stackoverflow routes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How can I get a DIV to centre on a page using jQuery and blockUI? I'm trying to convert Matt Berseth's 'YUI Style Yes/No Confirm Dialog' so I can use it with the jQuery blockUI plugin.
I have to admit I'm no CSS guru but I thought this would pretty easy even for me....except 10hrs later I'm at a loss as to why I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Python UPnP/IGD Client Implementation? I am searching for an open-source implementation of an UPnP client in Python, and more specifically of its Internet Gateway Device (IGD) part.
For now, I have only been able to find UPnP Media Server implementations, in projects such as PyMediaServer, PyMedS, BRisa or Coherence... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can't access website via cURL from localhost, but can from hosted server I'm writing a script that pulls XML data from wowarmory.com, using PHP 5 and cURL:
$url = "http://www.wowarmory.com";
$userAgent = 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12';
$ch = curl_init(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are some techniques for code generation? I'm generating C++ code, and it seems like it's going to get very messy, even my simple generating classes already have tons of special cases. Here is the code as it stands now: http://github.com/alex/alex-s-language/tree/local%2Fcpp-generation/alexs_lang/cpp .
A: I wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does the ItemAdd Event stop being Handled on my Sent Items folder? I am having some trouble keeping an event handle alive for some reason.
My project is an outlook addin which prompts the user to do something when they send an email. Now, I have an event handler hooked up to the Sent Items folder so that when th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Left outer join (join between three tables)? I have a main table that I must get data from. I have a left outer join where the fields will match 40% of the time. And then I have another join where I need to match the data from table A with.
This is the SQL in pseudo code. This query won't work.
-- This is the part... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Directory structure with commands . I have a winforms projects and we use the command pattern. We are trying to clean up our directory structure and make it consistent.
We are trying to decide if we should have a root commands folder or not. What do you think is better for a directory structure?
Project
--Commands... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: New {object} vs {object} = new {object} I was just wondering if there is any difference between the two different new object initializers or is it just syntactic sugar.
So is:
Dim _StreamReader as New Streamreader(mystream)
and different to:
Dim _StreamReader as Streamreader = new streamreader(mystream)
Is ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Where can I find C/C++ users journal archive in suitable format (not .html)? I am searching for this magazine for quite a long time and I can`t find it.
A: they merged with frobbs a couple years ago: http://www.ddj.com/cpp/cuj.jhtml. you might find something there.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/294554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I compare MySQL enums? I have an enumeration: ENUM( 'alpha', 'beta', 'gamma', 'delta', 'omega' )
If I sort my table by this column I get them in the correct order defined above.
However, I can't find a way to select a subset of these, e.g. everything before delta. Using WHERE status < 'delta' only returns alpha ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Route to get all requests to the root folder (no trailing slash allowed) I want to catch all URL's in the root folder of the url www.example.com
The url cannot end in a trailing slash, and can't contain any slashes at all.
so these should pass:
www.example.com/abc
www.example.com/abc123-asdf
www.example.com/abc123/ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP 5 Reflection API performance I'm currently considering the use of Reflection classes (ReflectionClass and ReflectionMethod mainly) in my own MVC web framework, because I need to automatically instanciate controller classes and invoke their methods without any required configuration ("convention over configuratio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Most elegant looping construct? Sorry for the newb question. I'm still learning programming. So I'm using C++, and I need to do something like this:
int n;
do {
n = get_data();
if(n != -1)
send(n);
} while(n != -1);
This is just a sketch. Anyway it doesn't feel real elegant. I have to have my te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the regular expression for the "root" of a website in django? I'm using django and when users go to www.website.com/ I want to point them to the index view.
Right now I'm doing this:
(r'^$', 'ideas.idea.views.index'),
However, it's not working. I'm assuming my regular expression is wrong. Can anyone help me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Recommended on-line SQL-92 certification? I'm interested in measuring and improving (where necessary) my team's SQL-92 skills. Can anyone recommend an appropriate on-line course and/or examination?
Ideally it would be vendor-neutral, but it could also be MSSQL/Oracle specific, as long as the proprietary bits were fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/294609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.