text stringlengths 8 267k | meta dict |
|---|---|
Q: Embarrassing Inheritance Question Situation:
- I have a third party control that inherits from System.Windows.Controls.ItemsControl
- I have an instance of this control called foo
- foo has a ListCollectionView datasource with 5 items and no filter.
- foo.Items.Count gives a result of 0
- (System.Windows.Controls.It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add something to the index, commit it, then push the master branch to a named remote with dulwich? How can I add something to the index, as in
git add .
then
git commit -m "message"
then
git push origin master
using dulwich?
So far I've found this http://www.samba.org/~jelmer/dulwich/apidocs/dulwich.index.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Custom service contract attribute I'm looking to implement something similar to the way JSONP callbacks work with WCF in .NET 4. If you pass a callback parameter it wraps the response without callback needing to be in your method signature. What I want to do is have an attribute that switches the response format if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AVPlayer, notification for play/pause state? I'm searching for a way to get notified the exact moment when AVPlayer starts playing. There's the "rate" property, but currently I am checking it periodically with an NSTimer to get updates.
I tried KVO, but apparently it's not KVO compliant.
I know that there are events... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: 000webhost, PHP, and LoadVars AS2 I am using AS2 to download and upload data from an HTTP server using some PHP on the other end. The upload works great, but I ran into a little issue with the download, since the webhost that I am using appends a little HTML comment to the end of every file. My PHP works great, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FTP XML file using FileZilla = malformed tag on receiving end? When sending an XML file to our FTP via FileZilla it appears somewhere in the transfer 1 or 2 of the XML tags are being malformed.
Our client has confirmed on their end that prior to the upload the file is solid and does not have any malformed tags.
Yet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android - how to position this custom balloon view with RelativeLayout Im stuck in getting this to work.
Look at the picture below, i want the bubble to be placed under the image.
And of course would like to be able to place the view wherever i like.
I think the problem is in the parent view so i add parent xml... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to sort datagridview Hello i cannot sort alphabetical my datagridview
this is how i fill my grid :
bs = new BindingSource();
bs.DataSource = db.GetProducts.ToList();
dgvInventory.DataSource = bs;
and this is how i try to sort my grid :
private void toolStripButton3_Clic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Keeping COM Interop in mind, are there any pitfalls in returning objects vs value types in .Net? This question comes to mind when I consider using C++ to subscribe to a Library. I don't have enough of an understanding of COM to make an educated guess at this point. But if I wanted to keep my code open for COM in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting iOS Version on a Web Page Is there any way (using Javascript, PHP, etc) to detect the version of an iOS page, when the page is visited on MobileSafari?
A: Here's a bit of JS to determine iOS and Android OS version.
Tested with actual user agent strings for iOS 4.3 to 6.0.1, and Android 2.3.4 to 4.2
var us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Mechanize you different ip I'm playing around with mechanize on a website that appears differently based on your ip.
Is there a way to change you ip in mechanize?
I've tried:
br.set_proxies({"http": '127.0.0.1:80'})
but that timesout. Is there something else I'm supposed to do to make this work?
A: no, I do not b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can Java be run without a Java Virtual Machine? Sorry for the stupid question, I'm just beginning to learn Java. Can it be compiled into a .exe to be run on another computer, or is it only for computers with a JVM?
A: Not exactly. You can bundle a JRE with your executable, which is kind of like the same thing. Emb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: webviewglue nativedestroy view I am opening the browser at a page from my app, the code for opening the browser is one I have used many times, but in this particular case, the browser never opens.
I keep getting the following messages at the end in logcat:
09-27 15:41:16.624: INFO/ActivityManager(1644): Starting: In... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: batch html file editing I have a collection of one thousand HTML files and need to somewhat trim them. I need to delete all the tags inside <body></body> area of those except for one, <div.pg>, to make them clean to be printed. the excess are navigation links which make the prints messy and make the pages occupy mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which Cocoa control to use to display drill-down table? Any idea which Cocoa control to use to display the drill-down table as in attached screenshot? On the left panel is a list of items. When an item is selected, the detail of the item is displayed on the right panel. Is it NSOutlineView or NSBrowser? Thanks!
Scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS rotating MKAnnotationView in response of MKMapView rotation In my application I have a MKMapView where several annotations are shown. The map rotates based on the heading of the device. To rotate the map the following statement is performed (called by the method locationManager: didUpdateHeading:)
self.navigatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to run javascript during ajax call? While developing a web app where I'm making great use of javascript php and ajax.
I want to call
display_terminal('feedback_viewer','logs/init-raid-log.txt','Init-Raid');
to build my terminal and call feed_terminal() which has its own setTimeout() recursion call
var url='... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Video blacked out in screenshot of UIWebView I am having trouble capturing a screenshot of a UIWebView while it plays a video file.
I can capture when the video file is not playing and it is perfect but when the video file is playing in UIWebView, if I take a screenshot the video area is black and shows a QuickTime... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to determine if the relationships in an entity collection have been saved to the database I have a situation where I'm adding existing entities to an entity collection. Before calling "context.SaveChanges()", I need to know which entities in the entity collection have not had their relationship saved in the data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to create a null value for .NET outside C#? I am using the .NET support in a 3rd party imaging application where it allows one to use .NET assemblies. The only catch is you have to call/create things using the fully qualified name, for instance:
NewDotNetObject "System.Object";
NewDotNetObject "System... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: php make post request with header Using php, i need to call a webservice, passing in specific data in the HTTP header, and specific data in the actual POST string. However, when ever i access this page, the page attempts to download. If I open the downloaded file, it contains only my two !'s. From what I understa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Speed up DISTINCT query in MySQL I have a InnoDB MYSQL table that stores a multi select name ( or 'code' as the table calls it), a parent object's id (parent_id) and the name of the option selected in the multi select (name_id):
CREATE TABLE IF NOT EXISTS `v2_CA_venue_option_map` (
`map_id` int(11) NOT NULL auto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to use Nhibernate ? I was looking at ayende blog http://ayende.com/blog/3946/nhibernate-mapping-concurrency about NHibernate concurrency and i still not very clear when to use . It seems like it is a solution to solve StaleObjectException.
Can anyone explain to me in what scenario you will use a and why ?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: how do I iterate through internal properties in c# public class TestClass
{
public string property1 { get; set; }
public string property2 { get; set; }
internal string property3 { get; set; }
internal string property4 { get; set; }
internal string property5 { get; set; }
}
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: How does JavaScript handle AJAX responses in the background? Since JavaScript runs in a single thread, after an AJAX request is made, what actually happens in the background? I would like to get a deeper insight into this, can anyone shed some light?
A: Below the covers, javascript has an event queue. Each tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: Problem implementing a 2 levels association using rails3-amf I'm using https://github.com/warhammerkid/rails3-amf , and can't implement a two level association as follows:
@posts = Post.where(:category_id => params[:id]).includes(:author => :phones)
respond_with(@posts) do |format|
format.amf { render :amf => @po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom Chart in SSRS Report I am currently working on a peiece of report which has a graph/chart. The interval of X-axis needs to be increasing. That means we need to have dynamic intervals. I am just wondering whether there is a solution to it. The report needs to be ran at dynamic CRM, so it needs to be a SSRS rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are there any document window focus events? This one has been a bit of a pain due to a similarly named feature in Visual Studio (which I won't mention here for the sake of people searching).
What I'd like to do is to listen to events regarding which document window has focus
I wish my extension to behave differentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Call hidden div with onclick I have a div for a button which I want to click and replace the contents on the page with a hidden div. Keep in mind this works without the onclick function (flashes the first div, then goes straight to 2nd) but when I add onclick it doesn't work.
<div id="next" class="button" name="some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xcdatamodel Contents Disappears I've had this happen a few times.
The contents of proj.xcdatamodeld/proj.xcdatamodel/ randomly disappear off my hard drive. However, Xcode will open the model file just fine.
Sometimes all three files disappear (elements, layout, contents). Other times only a subset of the files disap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: can you host a private repository for your organization to use with npm? Npm sounds like a great platform to use within an organization, curious if a private repo is possible, like with Nexus/Maven. Nothing comes up on Google :(
A: There is an easy to use npm package to do this.
https://www.npmjs.org/package/sinop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "248"
} |
Q: Private and public variables to a backbone view In a backbone view where would you put your private variables and your public.
Right now I have something like this:
myView = Backbone.View.extend({
initialize: function(options){
this.myPublic = "I'm public";
}
});
I tried adding a var myPrivate before the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: iPhone - do not receive significant location changes in iphone 3gs with iOS 4.2 I am trying to execute the following code on my iPhone 3gs, with the OS version as iOS 4.2.1
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
[m_coreLocationMan startMonitoringSignificantLocationChanges];
#endif
It somehow does not work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DataGrid tab navigation skip column I have a datagrid with template columns in WPF. Couple of columns in the grid are readonly, others on focus become editable (instead of labels, textboxes, checkboxes and such appear).
What I would like to achieve is that the readonly columns are skipped when I am tabbing through t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use Umlauts from PHP in Javascript I have a MySQL database that contains German Umlauts (ä, ü, ö, etc). The database fields are all encoded latin1_german1_c (if that matters).
From that database I create a json object that I use with javascript. However each value that contains one of those Umlauts gets set t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can you generate complex PDF files with Flex 4? I'm trying to understand if it is possible to generate complex PDF files with Flex.
By complex I mean add images, styled text (font-family, weight, columns) layout elements with large degree of control and so on.
I was looking at AlivePDF library but cannot understand ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What happens when you cast from short to byte in C#? I have the following code:
short myShort = 23948;
byte myByte = (byte)myShort;
Now I wasn't expecting myByte to contain the value 23948. I would have guessed that it would contain 255 (I believe the largest value for a byte).
However, it contains 140, and it mad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Problems including PDB files in Visual Studio 2010 Installer project I am having a hard time tracking down how to include the debug symbol files in an install project for the debug build (only). If I Project -> Add -> Output -> Debug Symbols (for each project), it will include them when running the release build of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can't start WinForms project because Form is a type I have a very small VS2008 Winforms project that will not start.
When I attempt to start debugging the project, I get the message:
'<form>' is a type in '<project>' and cannot be used in an expression.
From the file .Designer.vb.
The problem is that is indeed a f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: firefox add-on vs. extensions vs. plugins I want to write scripts for firefox. It seems that firefox has different terms, like add-on, extensions, plugins. and I have a feeling they're not all the same. Can you sum up the difference between in a few words?
A: Augmenting the useful answer above, I found this high-le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Node.js - Connecting to MongoDB using MongoHQ on Heroku I have a Node.js app using Express that stores data in a mongoDB (locally).
It's now pushed to heroku successfully on a cedar stack and the server is running. I added the mongohq addon through the terminal.
Now... how do I connect that mongoDB through mongohq ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Merging two multidimensional associative arrays I'm chasing my tail trying to combine the results of two different queries to output in a template.
I'm trying to merge the corresponding sub-arrays in model_data and entry_data to get desired_result. I will then iterate over desired_result and print values into the te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why might my AudioQueueOutputCallback not be called? I'm using the Audio Queue Services API to play audio streamed from a server over a TCP socket connection on an iPhone. I can play the buffers that were filled from the socket connection, I just cannot seem to make my AudioQueue call my AudioQueueOutputCallback fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Confusion over generating custom JSON response in Rails Model description:
User, Widget, Purchase
User
has_many :purchases
has_many :widgets, :through => :purchases
Widget
has_many :purchases
has_many :users, :through => :purchases
Purchase
belongs_to :user
belongs_to :widget
Hope that makes sense and is correct ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Retrieving contact info in Android fails with exception ALL,
I am trying to execute following piece of code:
ContentResolver cr = getContentResolver();
Cursor cur = cr.query( ContactContract.Contacts.CONTENT_URI, null, "ContactsContract.Contacts.DISPLAY_NAME LIKE '" + name + "'", null, null );
However when running ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to initialize a vector in MATLAB as per a pattern? I am completely new to MATLAB.This may be a rather basic question.
Given numerical values for size, extras and max, I need to initialize a 1 X N vector such that the first size elements are 1, the next size are 2, the next size are 3 and so on till the last size... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are Microsoft's IE Images 64-bit or 32-bit? Are Microsoft's Internet Explorer Application Compatibility VPC Images 64-bit or 32-bit? For example, if I were to download the Windows Vista with IE7 image and then install IE9, would it be IE9 64-bit and 32-bit or just 32-bit by itself? You would think this information w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS question with cake.generic.css: Can't decrease the width of a table inside a division I have two division with float: left;
div#loadwhat {
float: left;
width: 78%;
padding-right: 5px;
}
div#id_div_rightside {
float: left;
width: 20%;
height: 100%;
border-left:solid thin #ff9900;
}
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get request being aborted in Internet Explorer 9 If you'll visit the site lab.buffspec.com SPECIFICALLY using Internet Explorer 9 and select a gildan 6.1, a hanes 6.1 or a gildan hood and then click on the get pricing button you will see that despite updating the quantity the total price isn't shown. This happens in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Updating MS Access Linked Table from VBS file I am currently working on moving 100s of access databases from a variety of folders to another set of folders and need to update any references to linked tables that will be broken during the move. I have identified how to update the location of the linked database tabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: llvm exceptions; catch handler not handling, cleanup not called I i'm trying to create a exception handler inside JIT llvm code. the current documentation regarding exception handling in LLVM is very handwavy at the moment, so i've been trying to reuse most of the snippets i get from http://llvm.org/demo in order to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Concise way to initialize a block of memory with magic numbers A few examples of what I'm referring to:
typedef struct SOME_STRUCT {
unsigned int x1;
unsigned int x2;
unsigned int x3;
unsigned int x4;
// What I expected would work, but doesn't; the 2nd parameter gets
// turned into an 8-bit quantity at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Newly Added Files Getting Permissions Error I'm running a local WAMP server and have just batch-processed a bunch of images in Photoshop, automatically saving them to a directory. When I try to access these images from my browser, I get a 403 error.
This has not yet happened to me on this server, though I have not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Windows add option to menu In windows, when you click the small icon in the upper left of the window, you get a menu with Move, Minimize, Maximize, and Close options.
Is there anyway I can add my own options to that menu?
A: Absolutely.
GetSystemMenu(hWindow, FALSE) gets you menu handle and you are free to mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting the background color of a table row into a variable before changing it jQuery I have a code to change the color of a row of a table when I hover over it. I want to grab the background color of a row before it changes and then have it change back to its original color using that background color variable.
For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: database design for user/reviewer in django database model i am kinda new to database design, but i would like to create three tables "User" and "Review" and "Topic" for a database in django.
I will try to explain it in detail here:
For example, I have User, Topic and Review models in models.py. one user can only wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Windows remove maximize box I'm using these window styles when calling CreateWindow
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
This disables the maximize box, but is there any way I can completely remove it?
A: No easy way, but if you are going to draw the title bar yourself - in this case you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jQuery $(this) Problem, wrong object i using this code to show a title
$(".line").mopTip({
'w':150,
'style':"overOut",
'get': $(this).attr("title")
});
but as title I get the title of page... what do I wrong?
A: You are using this inside the document window scope, that is why it returns the document title. To ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenEJB alternate descriptors fail to work when using a jUnit test suite I have managed to get alternate descriptors to work with my unit-tests running on OpenEJB using stubs for dependant EJB components, when each test is executed on their own. But once I introduce a test suite, it seems that deployment descriptor ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using int index where double is expected in C++ AMP retrict(direct3d) code Googling didn’t help much, has anyone used AMP?
In the code snippet below the cast from integer to double (double v = idx.x) leads to a “Failed to create shader” run time error.
I thought the restrict(direct3d) would have alerted me of things... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: join versus explicit in condition are there some valid reasons, in a Oracle db, to preferring in a generic query, a filter condition expressed by a join table , instead of a filter with an IN condition with a large number of elements (some hundreds). I mean if you can write something like
SELECT .... FROM t1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: watir-webdriver with firefox 6.0 see following error Errno::ECONNREFUSED Currently run 150 plus scenarios nightly approximately 5000 steps. I see the following error occur around 10 times in the 5000 steps. Not a lot, nor on the same step, however don't know what to do to fix. Currently wrapping in a rescue block... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: write formatted file I want to to write np.double to formatted file:
import numpy as np
a='12 45 87 34 65';
s=np.double(a.split())
fid=open('qqq.txt','wt')
fid.write('%5.1f %5.1f %5.1f %5.1f %5.1f ' %(s[0],s[1],s[2],s[3],s[4]))
fid.close()
Can this "write" row be written in a shorter way?
fid.write('%5.1f %5.1f %5.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I ask MySQL Workbench to submit queries asynchronously, when performing long operations (e.g. table alterations)? Albeit all its greatness, it is very annoying that MySQL Workbench 5.2 freezes each time it submits a query, instead of allowing it to be performed asynchronously.
It is not even possible to laun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Call one constructor from the body of another in C# I need to call one constructor from the body of another one. How can I do that?
Basically
class foo {
public foo (int x, int y)
{
}
public foo (string s)
{
// ... do something
// Call another constructor
this (x, y); //... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: How to get filenames and line numbers in stack traces from embedded Mono? I'm embedding Mono into a C application, and it works fine, but debugging is more difficult than it should be because when I print a stack trace in the Mono code (for example, in response to an exception) all of the lines of the stack trace sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to load child objects lazily with the Data Mapper pattern? If I have a fairly complex User model that I would like to use the Data Mapping pattern to load, how would I lazily load some of the more intensive bits of user info without allowing the User to be aware of the UserMapper?
For example - if the User model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can I create my own AppDomain in a SilverLight application? I'm building a SilverLight application that is dynamically loading assemblies. I would also like to be able to unload them without closing out the current SilverLight application. However, the SilverLight AppDomain class appears to be missing a CreateDoma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Server import of file created through bcp I'm currently reviewing how to import a file created from bcp in SQL Server on one computer into my local SQL Server. This is a datafile I received from a 3rd party so I have no idea of the data structure etc. of the information. My SQL Server skills are quite new so ple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sort ArrayList of strings by length I want to order an ArrayList of strings by length, but not just in numeric order.
Say for example, the list contains these words:
cucumber
aeronomical
bacon
tea
telescopic
fantasmagorical
They need to be ordered by their difference in length to a special string, for example:
inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How can you send the exact number of notification (the number next to your apps) to facebook instead of each time we make a request? I'm trying to have more control on the number we have next to our apps for the user, How can we just send the exact number to show instead of sending notification that increment that n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jpg looks different in firefox 6 and 7 on Windows 7 This website renders a background jpg differently than it did in Firefox 5 and below on Windows 7. I know that's a bit confusing so I'll outline it.
It works:
All versions of firefox, chrome, and IE on windows XP
All versions of chrome, IE, and firefox 5 and below... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting rid of Plone4Artists Calendar - migration from Plone 3.3.5 to Plone 4.0.7 I am trying to remove P4Artists Calendar from a Plone 3.3.5 site, to upgrade it to Plone 4.0.7.
I ran a script to remove all interfaces from all objects, specifically:
'p4a.subtyper.interfaces.ISubtyped',
'p4a.calendar.interfaces.ICal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to: From one string to another in a long list of strings Imagine a long string of characters:
"AATTAATCTATATATTGAAATGGGGCCCCAATTTTCCCAAATC ...."
I define 4 strings:
"AAT"
"ATG"
"TTT"
"ATC"
My mission is to find the "end point" for every string "AAT" in the long string of characters. My end points are the three... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use a mock when the code validates the types it receives I want to test the following code:
public IEnumerable<KeyValuePair<Fact, Exception>> ValidateAll()
{
//...do something
var invalidFacts = GetInvalidFacts();
//...do something
return duplicateFacts.Concat(invalidFacts);
}
private IEn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FlowDecision Designer components My question is about the Flow Decision designer object. Can I change the sides that the "True", "False", and Inputs come from? Currently, True is always to the left, False on the Right, and input is at the top or the bottom. Naturally some flows become very "Messy" because of this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery .hide doesn't hide elements fast enough When I use .hide() with jQuery, it doesn't hide elements fast enough. I can see them all loading and being organized for another script that is also running. It looks really awkward.
Is there anyway to make .hide() actually hide elements before the document loads? I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hooking WinAPI functions called from DLL I have a DLL file library.dll which contains a function foo. The function foo calls a WinAPI function goo. I wrote an application that calls foo from library.dll. The problem is that I want to override the call to goo function by my own function hoo I declared in the applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Group functions fine by themselves, but not when added together? I have a mysql query that looks something like this:
SELECT
SUM(reg_yr) AS reg_yr_total,
SUM(spot_as_reg_yr) AS spot_as_reg_yr_total
FROM foo
WHERE bar
GROUP BY baz
ORDER BY reg_yr_total
which works just fine. if I want to change the ORDER BY cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getting the frame rate of a currently playing video I was wondering - is there a way to get the frame rate at which an Android videoView is currently playing. I looked into the documentation of the VideoView class but it was to no avail. Is there some other way to do this?
Thanks.
A: Yes you can.
VideoView extends ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual c++ 6.0: error C2065: 'PWR_CString' : undeclared identifier This error for the following: C:\software\CATS\includes\Commun\xml_transfer.cpp(1527) : error C2065: 'PWR_CString' : undeclared identifier
CString s1; // Empty string
I did include:"stdafx.h" , "resource.h"
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7575805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: programming language recommendation for Expressing Network Configs I would like to see if there is a language for expressing network configuration. I can use M4 and YAML for macro-fying some of the configs but with conditional statements, they seem to break down.
Any recommendations?
Thanks,
Neel
A: My NCD program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Android - read all mobile numbers into a List Can someone give me a correct example on how to load all MOBILE numbers saved on the phone into a List, Array or whatever is appropriate? All the examples I have found are either depreciated or do not work. Sorry to ask for a freebie like this but I am getting desparate,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: java.lang.UnsatisfiedLinkError: Java cannot find my dll's? I am developing a program that calls R functions from Java using JRI/rJava. I was coding the program in NetBeans on another machine, which was working fine (i.e. able to run the code). I have since then moved to another machine and have been running into pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Xcode 4 and iPad2 splash screen issue Thank you for reading this.
I created a brand new project in Xcode 4 (Window based kind) and tried to get the splash screens working.
If I click on the blue icon of my project (top of the project hierarchy) and then click on "Target/Project", I see that I can drag and drop two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Postgres 9.1 Replication vs MySQL Replication Since Postgres now has built-in replication/clustering/HA support, how does it compare to the built-in features and functionality of MySQL replication/clustering/HA?
What are the PRO/CONs of Postgres vs MySQL related strictly to replication/clustering/HA capabilities?
Pl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: RequestMapping on presence of one of multiple parameters I have a Spring3 controller in which I'm using the @RequestMapping annotation. I know I can use the params value to route based on the the presence or lack of a url parameter, but is there a way to route based on the presence of one of two parameters?
Ideally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Selenium and iframe I have an iframe that gets loaded when i click on a tab on a page. When i use Firebug to look at the iframe on IE8, all i see is:
iframe id=tabContextFrame class=contextFrame contentEditable=inherit src=/xyz.dt?forward=show&layouttype=NoHeader&runid=1234 name=tabContextFrame url=/xyz.dt?forward... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: html form button to stop multiple submissions I have this form that submits to work.php.
What I want to do is disable the submit button when the form is submitted, then re-enable it after 5 seconds or so, so I don't get multiple posts.
How can I do this?
Also, if I press the enter key in one of the text boxes while ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Asynchronous WCF Services in WPF - events I am using WCF services asynchronously in a WPF application. So I have class with all the web service. The view models call the method in this proc, which in-turn calls the web service.
So the view Model code looks like this:
WebServiceAgent.GetProductByID(SelectedProductID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I add additional item templates to an extended WPF treeview I'm trying to set up a Treeview descendent class that can be used as a common template for
all Treeview instances in my application, but with additional formatting and templates for each instance.
For the base, I have a UserControl that descends fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Relationship Set disappears in Core Data with multiple contexts I have an an entity A which has a to-many relationship with entity B along with the respective inverse relationship.
I add B objects to A like this:
NSMutableSet *bSet = [aObj mutableSetValueForKey:@"B"];
for (bData in some array) {
[ cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Listing registration profiles in the admin interface of django-registration with django-nonrel I've successfully installed django-nonrel, and django-registration on Google app engine, thanks for this very useful article. However I have difficulties on listing the registration profiles ( visiting /admin/registration/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pressing submit, nothing happens (jQuery AJAX Forms) Example: dev.alphenweer.nl
When someone clicks on a link, the form gets loaded, they fill out the form, and press a button to submit it. But when someone presses the button, nothing happends. Why is that? What is wrong with my code?
For example, click on "REQUEST ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does JavaScript distinguish between objects? I have wriiten
document.createElement("p");
document.createElement("p")
How does Javascript intepreter knows do distinct between those two?
Id ? ( what is the Js property )? maybe something else ?
A: In this particular case:
document.createElement("p");
document.cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQ Joining 2 tables I have two tables in the database one contains a list of all possible grocery values. For Example
Milk
Cheese
Bread
Meat
the second table contains Items from Grocery that are selected. For Example:
Milk
Cheese
I want a result that has all possible grocery items with Milk and Cheese selected.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OpenGL constant color I read in this Apple documentation (under the header "Avoid Storing Constants in Attribute Arrays") it says that if a model's vertices all have the same colour then colour shouldn't be a vertex attribute. What do they mean by "OpenGL ES 2.0 applications can either set a constant vertex attribut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF Parameter not Passed I call the following local WCF Client service.
var Key = 1000;
FormServiceClient formService = new FormServiceClient("WSHttpBinding_IFormService");
And I call
formService.GetCaseData(Key);
The Key value is not getting passed into the service via my asp.net application.
If I used WCF Test ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accepting a Request URL is incorrect? This started happening over the last weekend that FB notification page is no longer embedding the [app_id] in the acceptance URL and throwing a 404 when clicked on the "request" link on this page:
(Sent Today)
http://apps.facebook.com/224695104250620/?request_ids=161817803905540... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML5 image transformation library, no flash I found http://www.magmypic.com/, the concept is super nice, but flash is SO OUT... i like and think if it's possible to do it in html5. Do you know library that can do it, or site that show how-to
thanks in advance
A: I don't think you need 'HTML5' so do something simil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.