text
stringlengths
8
267k
meta
dict
Q: Could not find the main class, program will exit I made an executable jar with the command prompt in Windows 7 using the jar cvfm MyJarName.jar manifest.txt *.class which created the .jar file. But when I attempt to open it, I get a pop-up window that says Could not find the main class: <ClassName>. Program will e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: I'm having trouble with the Node data structure -- trying to make it more efficient with loops So I'm having a bit of an issue with my code. My objective is to take an adjacency matrix from a file and input it into a 2d array. I was able to do that. Now I'm using the data structure for Breadth First Search and Nodes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Can't make tomcat-maven-plugin create a log file? I am running the mvn tomcat:run-war target, and get a directory structure that has a logs directory. But alas, no log. I would just replace this with log4j logging, but this has proven difficult for a variety of reasons. I have tried explicitly setting the log file c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Basic jquery how to combine current slide/fade elements and fix opacity? Notice #element2, I have two functions but only the slide function works. I would like when you hover over it you start at 50% opacity and fade into 100% Here's the code: $("#element2").hover(function() { $("#next").show("slide", { di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I use self. when releasing I have a whole bunch of @property (nonatomic, retain) stuff going on when I'm defining my variables and i want to know: In my dealloc method, should i release them [myGreatVariable release]; or [self.myGreatVariable release];. They are currently done in the former way. And how much ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gamma-curve experiment -- convert 2.2 to opposite of 1.8? The Motorola Photon is infamous for exhibiting what others have called "black crush" -- when viewing pictures, most of the detail in dark parts of the image is flattened out to black. Up to now, pretty much everyone has blamed it on the Pentile display. HOWEV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way or technology to implement database resource allocation based on user? Typically, when platforms want to provide database resource to user (developer) for applications development, they use limit database access APIs to restrict behaviors of the application, in order to enforce some constraints on res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Modify the query that generates the exposed form element in Drupal I would like to change the dropdown filter in a view, by modifying the query that generates it. I do not want to modify the form values after they got pouplated with data already, because it is huge list. Is there a hook like this view-query modifier...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: byte[] to File Type in MVC 3 In my MVC application, I recently have configured a page to allow an arbitrary file type to be uploaded(with certain restrictions that dont apply to this question). I am storing the file as data type byte[] in the database, with the stored file type based off of the file extension(Please...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Scala XML Marshaling using combinator from Scala GData This questions is related to this thread regarding the use of XML combinator which is part of the Google's Scala gdata client library found here * *In the code posted, there was no parameter for elem("segment"...) Wouldn't this cause compiler to complain some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Plotting and Saving as File in MATLAB I need to plot and save to image file in MATLAB. Here is the code that I am calling inside a 'for' loop: figure scatter(data_x_pos,data_y_pos,'r*') hold on scatter(data_x_neg,data_y_neg,'b') t = linspace(-80,80); y = -model.w(1)*t/model.w(2); plot(t,y,'k'); % need to save this p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: NTLM Security - how long before it times-out and is not valid A user on a mobile device navigates to a web site/page protected by windows ntlm security. The user provides their credentials and uses the site. They walk away and return later and they are not required to re=enter their credentials.. Question: What de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Image.ANTIALIAS with resize() in GAE? I am using the script below to resize images. But I noticed that the resized image looses sharpness. According to this page Image.ANTIALIAS is the best "downsizing filter". But when I add the filter to the code images.resize(homepage.original_image, 200, 200, Image.A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between Carp/Croak, Cluck/Confess, and verbose options? I haven't used Carp all that much because I've generally rolled my own. However, in the spirit of keeping with Core modules, I'm using it now. However, it seems like it's barely better than warn/die. Furthermore, what does cluck/confess/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Iterating in two extremely large files simultaneously in Java I need to merge two very large files (>1G each) by writing 4 lines from the first into an output file, than write 4 from the second. And so on till the end. Both files have same number of lines and this number is divisible by four. What's the most efficie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is causing a SIGSEGV using blocks? I have the following code. I get a SIGSEGV occasionally. I have a feeling I'm missing something regarding memory management using blocks. Is it safe to pass the replacedUrls, which is autoreleased to this block? What about modifying the instance variable formattedText? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: CSS hover image link not working in Internet Explorer Please refer http://solarisdutamas.com/fb/KonzeptGarden/sample.php, mouse over to "Pebbles Wash" and click the image. It working fine in Chrome and Firefox, but the link not working in IE. Here's my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Emacs doesn't recognize C-/ in shell over ssh I am using Emacs in shell mode through Bash in Mac Terminal, and Emacs doesn't recognize C-/ as the undo key. It seems not to recognize C-/ at all actually, as nothing happens when I use C-hkC-/ (i.e. describe-key then C-/). Any ideas? Undoing with C-xu is intolerable. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How can I add an image thumbnail to my listview automatically? My goal is to add a thumbnail image in each of the listview entries. When the program opens, it downloads the images to the sd card. How can I make it so that the first entry on the listview has the thumbnail of image1 and the second entry automatically ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trailing slash in URL is considered a different page with different Like count? I've noticed that I get different Like numbers when I check a URL with or without a trailing slash. It's logging them as separate URLS. for example WITH a slash: https://api.facebook.com/method/fql.query?query=select%20total_count%20fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Autocomplete for addresses using Lucene .NET I have not been able to get this nailed down. I have tried several different analyzers and they all get me close, but not exactly what I want. Using SOLR is not an option at the moment. An examples of what I would like: Input: 200 Matches: 200 E Dragon Dr. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What method gets called before a WebView is closed by owner window? I'm working with a webview within a window of a Cocoa application. I would like to retrieve some values using stringByEvaluatingJavaScriptFromString on the webview and save them before the application shuts down. I tried using the applicationWillTer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVVM UserControl binding not getting pushed back to parent control I'm working on making a WPF app and I have a UserControl for data editing with a couple more UserControls inside it (super-simplified version): <UserControl x:Name="ParentControlView"> <DockPanel> <!-- other various controls, textblocks, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Way to make Windows Phone 7 Panorama Items Text gather up? How would I allow panorama items text to gather up like in the picture below? (By the way the image is not mine). Notice how the Panorama Item titles are like "Contacts Chats" not spaced out like regular Microsoft panorama has it? How would I do that? Thank...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 403 Forbidden Error for Python-Suds contacting Sharepoint I'm using Python's SUDs lib to access Sharepoint web services. I followed the standard doc from Suds's website. For the past 2 days, no matter which service I access, the remote service always returns 403 Forbidden. I'm using Suds 0.4 so it has built-in supp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create a recursion function with Java that prints all possible sequences of items contained within the list. I am supposed to be creating a recursive function within Java that prints out all possible colors from a list of colors. E.G.{r, b, g ; r, g, b ; g, r, b ; g, b, r} etc... I believe I had it figured out and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDb - How can I update multiple elements of a nested object using $set? Lets say I have the following document: {name: 'myDoc', nestedDoc: {a: 1, b: 2, c: 3}} And I would like to merge with the nestedDoc a new object: {b: 20, c:30, d:40} So the resulting object would be: {name: 'myDoc', nestedDoc: {a: 1, b: 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How would you find the min depth of a tree? I know how to find the max depth of a tree using a stack and inorder traversal, but I cannot figure out how to find the min depth of a tree (not necessarily a BST) using a stack or queue instead of recursive calls. A: One thing to note here is that when you perform recurs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Post photos to wall issue I can login to Facebook within my application and can also retrieve the information of the Facebook account of my application users. However, when I post a photo to my users' Facebook wall, it always return NULL. Why? A: You need to prompt the user for publish_stream extended permission. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Diagnosing an autorelease error (EXC_BAD_ACCESS) I've been playing around with core data and started writing some methods to query different date ranges of data. My core data model is very simple (Entity named Smoke with one field - timestamp (of type date). When I execute my code, the proper count gets returned, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: efficient way of printing lists to a table in a .txt file using python I want to create a text file which contains a table, created from lists. But, I don't want to have to do something like this: import string print >> textfile, string.rjust(listname[0],3), string.rjust(listname[1],3), The following code demonstra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I'm looking for a graphics library for Java My task is to make a 2D 8-bit game with a couple of friends. All of us are fairly novice programmers, and only I have any experience with graphics programming (just a little though), so this will mostly be a learning experience for us. So, I have a few questions... * *W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Removing events from elements .each vs. .unbind in jQuery... what's the difference? In a script I'm writing, I've noticed there are two currently working ways to 'unbind' an event from an element. $("elementName").each( function() { $(this).unbind('click'); }); And This way... $("elementName").unbind('click'); }); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check if at least one radio button is checked in this function? I'm making a quiz with PHP, but I am using JavaScript to go between the questions first and then I submit the form and let PHP do the rest. I made two JavaScript functions called ChangeQuestion() and BackQuestion(). function ChangeQuestion(prev, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: 'str' does not support the buffer interface - python I'm currently doing an online Python puzzle series, and I've gotten to a problem where you need to unload a pickled file. I read the documentation on it, but I kept getting TypeError: 'str' does not support the buffer interface ...so I search on Google...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is moving between iOS subviews within a single view possible without returning to the view? Is moving between iOS subviews within a single view possible without returning to the view? If so, how? Code example welcome. How I'm doing it now but this requires returning to the "home" view: In the myFile.m // Define the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a 2 page PDF with a different background image on the second page I am trying to use itextsharp to take dynamic information and generate a PDF with it.. The PDF's use a background Image on each page which is different and the text content is positioned where it needs to be using the contentByte helper. That...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Quick assist with finding Javascript variable (PollDaddy hash) I'm working on finding a variable for a PollDaddy poll. The API says that the hash is attributed to the variable PDV_h[PollID] (check "Voting" part of API). I've been looking all around this poll here but can't seem to find it. Can anyone help me figure ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing STM functions purely I've recently started using STM for some bits in a project of mine, but I'm having trouble figuring out how to test it. I have no IO in these functions and was hoping I could write QuickCheck properties to test things, but "atomically" (STM a -> IO a) seems to be the only way to get anyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Low level cycle counter in iOS devices Now that it's clear that the Cortex-A8 performance counters aren't available on the iPhone/iPad (they need to be explicitly enabled for usermode, which Apple hasn't done), is there some other way of getting a reasonable cycle count on iOS devices, for micro-profiling? A: The m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Should I create service for GPS tracking APP? I am writing a location service App that log where the user has been every minute. Should I create a service for the GPS process? OR just create the LocationManager at the Activity? Which one is better? Moreover, I have tried to hide the application by pressing har...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add two variables in a function that every time the one is the working? With the following function I sort the posts of RSS ascending. usort($posts, 'mysort'); function mysort($x, $y) { return strtotime($y->pubDate) - strtotime($x->pubDate); } However some of those feeds have instead of a pubDate tag (f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++ strtok in function changes original string value as parameter when I use strtok to tokenize a c++ string, it happens a confusing problem, see the simple code below: void a(string s){ strtok((char*)s.c_str(), " "); } int main(){ string s; s = "world hello"; a(s); cout<<s<<endl; return 0; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Translating PHP fragment code to .net could anybody translate the PHP part of this code into .net? function showonlyone() { $(‘div[name|="newboxes"]‘).each(function(index) { if ($(this).attr(“id”) == <?=htmlentities($_GET['id']);?>) { $(this).show(200); } else { $(this).hide(600); }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to notification to android remotely? Is there anyway in android to send a code or something to a device with an app installed and cause the device to show a notification or vibrate? What would be the best way to do this? like a PC you have the ability to send a specific code to the device with the app installed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# regex to extract groups from input I want to extract anything between two colon's (inclusive of the colon's) in an arbitrary input using C#. Given String input = "a:one:b:two:c:three:d"; I want {string[3]} [0]: ":one:" [1]: ":two:" [2]: ":three:" Using String[ ] inverse = Regex.Split( input, ":.*?:" ); I get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: NullPointerException getAsObject method I'm using netbean 7.0.1, glassfish 3.1, primefaces 2.2.1. This is view <ui:define name="content"> <h:form enctype="multipart/form-data"> <p:wizard> <p:tab title="Tab 01"> <p:pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ruby app throwing "attempt to pop an unknown release pool"? (OpenGL, OS X) In my small Ruby project using OpenGL via Gosu and Chingu I'm now seeing a number of these errors pop up during my tests: 2011-09-30 23:31:01.789 ruby[832:903] * attempt to pop an unknown autorelease pool (0x12c55a00) UPDATE: I'm now also s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to share objects between different classloaders? I need different classloaders to be able to unload classes. But i need to share objects between them (actually i am getting ClassCastException). So what are the solutions to deal with this?. Thanks A: One of the primary objectives of using separate classloaders i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: appcmd.exe to add/change mime type for a subdirectory of a website I read from this link to add mime for IIS 7 appcmd set config /section:staticContent /+"[fileExtension=' .xyz ',mimeType=' application/octet-stream ']" But if I want to apply the mime settings only to a virtual directory , how to do it ? Thanks. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Funny behaviour from Adobe Flex Transitions-Possible Bug I think I've just spotted an apparent bug in flex 4.5. The link to the relevant application is here. VIEW SOURCE ENABLED!! These are the transitions: <s:states> <s:State name="State1"/> <s:State name="State2"/> <s:State name="State3"/> </s:states> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use background gps properly in android I am writing a service that records your gps location every 30 mins. what should I write to turn on a location listener, wait x mins until my location.accuracy is less than 25 meters, then turn off the location listener. Right now my method is draining too much battery a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7617999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Maps & jQuery implementation doesn't work in IE I added a google maps implementation based on google maps api v3 and this hiding/showing of results on this site. The thing (whilst thoroughly ugly and surely not implemented well) works well in Firefox, Safari, and Opera, but doesn't work in IE. Well - it doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: function call only once then errors on function it just executed I'm posting some data and retrieving it in a new menu. When I do this, I want to animate my button everytime (specifically rotate it). Rotation happens the first time, but stops executing the second time (my posts work). Firebug throws an error after t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: identify if two or more elements in sequence have same property I want to identify and extract the elements if two or more elements in sequence have same property inside a list. e.g. i have a List there is a property for document called Isvalid now i want to identify if two or more documents in sequence have IsVali...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: hyperlink field in table doesnt work I have an Access table that has a hyperlink field, with the records being a website link, to look up the UPS Worldship shipment tracking#. My problem is that even though the text has blue colored font, the link doesn’t launch and open the web browser when I click on the field....
{ "language": "en", "url": "https://stackoverflow.com/questions/7618017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interacting with native applications using python I'm a Python programmer and I was wondering if there's any module or framework that would allow me to interact with native Windows/Linux applications using python. Let's say on Windows I have MS Outlook, so would it be possible to let's say automate MS Outlook to com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery live, bind not working for 'change' I'm trying to create a Chrome extension that interacts with the Pandora player. I need to know when the song changes. I've identified which class (with a unique element) song data is written to, but I can't bind a JQuery 'change' handler to it. In the following code, cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bing Phonebook API in auto complete? Anyone know whether it is possible to get the Bing Phonebook API in Autocomplete textbox? I am working on an application, in which I want to provide an option to add restaurants to there list, I am planning to get the restaurants from bing and wondering is it possible to provide...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detect login shell from Vim script How can I find out if Vim is executed in a login shell? I use the molokai theme for vim which provides really nice colors when I use GVim or a run vim in gnome-terminal, but I tried it in a login shell (after pressing Ctrl + Alt + F1) and it doesn't look good. What I want to do is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC routing by string id? In ASP.NET 2, how do I create a route that allows lookup of an object (eg Product) by a string id (eg ProductCode)? The route for looking up the same object by it's integer id (eg ProductId) is automatic, so I don't actually know how it works. The automatic route by id is: /Product...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Map Subdomain to specific AppEngine app version I have a Python app at www.example.com. I want to create a subdomain that will map to a different version of my app (actually a Java app). So want I want to do is: www.example.com -> example.appspot.com [0] subdomain.example.com -> subdomain.example.appspot.com [?] Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing MediaPlayer in Background Agent in Windows Phone 7 I am trying to capture the current playing track in the Zune music player, in my Background Agent app. Looking at the Unsupported APIs for Background Agents page on MSDN, all of XNA is not supported - which means I can't use XNA's Media.MediaPlayer. Is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Building hadoop using maven I tried to build hadoop mapreduce project with maven, but it always stuck in following error, I already perform predefined installation for yarn i.e. Protobuf installation. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:2.3.2:compile (default-compile) on p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best technique to map JSON data into ContentValues I'm developing an Android app which will initiate a number of API calls that return JSON data structures and then store the results in a content provider. Different API calls return different JSON data structures and map to a corresponding table schema in the conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Whats the difference between a uniformed and non-uniformed histogram? I am using openCV and am wondering about the diff between being uniformed or non-uniformed. Could someone give me a simple, NON-TECHNICAL description? Thanks A: A uniform histogram has bins that are exactly the same size, For example a uniform ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django - A counter template tag that works well even with nested for tag I am trying to make a custom template tag that will increment a variable. That would be used like this: {% for fruit in basket %} {if fruit.is_apple %}{% count apples %}{% endif %} {% endfor %} <p>There are {{ apples }} apples in your baske...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I use ON DUPLICATE KEY UPDATE with an INSERT query using the SET option? I've seen the following (using the VALUES option): $query = "INSERT INTO $table (column-1, column-2, column-3) VALUES ('value-1', 'value-2', 'value-3') ON DUPLICATE KEY UPDATE SET column1 = value1, column2 = value2, column3 = value3, ID=LAS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Android - How to detect a single tap on a LinearLayout? I have a View and I need to detect a single tap on a LinearLayout. I don't care about movements, All I want to detect is a single tap. Basically a touch detection just like the touch detection on buttons. How can I achieve this? myView.setOnTouchListener(new On...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Static variables used as constants return zero in other class I have a class that I'm using to store some static default variables for a visual experiment I'm creating. They are not marked as const, because Im using a GUI to tweak them at runtime. When I log them in the main class ( which calls the static function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I determine if there is an active facebook access token? I am using the PHP Facebook 3.0 SDK for the graph API and want a simple way to find out if there is currently an active token so that I can handle errors gracefully. getUserAccessToken() is a protected method and so I can't seem to access it with the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What classes of problems is Clojure good/bad at solving vis-a-vis Scala? Both languages are JVM based with strong support for functional programming. I'm aware that there would be a large class of problems where both languages would provide excellent solutions.. What I would like to know is if there are any particul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Function of type unsigned int returns negative number Wow I thought I knew my C++ but this is weird This function returns an unsigned int so I thought that means I will never get a negative number returned right? The function determines how many hours ahead or behind of UTC you are. So for me I'm in Australia, Sydne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Voice recording from background Blackberry I am new in Blackberry and I want to record voice automatically from background, Please suggest me how to move further for this. And if possible please give some code. A: Record audio on a BlackBerry smartphone
{ "language": "en", "url": "https://stackoverflow.com/questions/7618089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to evaluate IO Bools in Haskell I'm trying to write a function that takes an IO Bool and does stuff based on what this is, but I can't figure out how to evaluate the IO Bool. I tried saying do cond and do {cond==True} but got the error Couldn't match expected type 'Bool' against inferred type 'a b'. Can someone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: inconsistent checking response.responseText? I'm using jQuery and jqGrid in an application. I have a function function messageControl(response, formdata, id){ switch(response.responseText){ case '0': .... case '1': .... case '2': .... default: .... } } The response is a PHP statement like echo 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert XAML attributes to Style I have the following Rectangle: <Rectangle x:Name="RefractionLayer" Width="200" Margin="-10,0,-80,0" Opacity=".5" > <Rectangle.Fill> <RadialGradientBrush GradientOrigin="0.396,1.152"> <RadialGradientBrush.RelativeTransform> <TransformGroup> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to avoid exception driven programming on "connect/disconnect" methods I know that exception driven programming is something that shouldn't be done (and I imagine why). I'm building a library where I have to estabilish a connection with a device, so the programmer will call MyDeviceInstance.Connect on some point ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: test if a specific id is used as foreign key in any foreign table entry i have a table 'users' with a column 'id'. this id is used as foreign key in many other tables (like posts, comments, etc.). i want to find out if there are any links to a specific user's id in any foreign tables. this gives me all table names a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: 301 redirect for seo I have a site on which I ran a woorank report. One of the items it's reporting is: www resolve Be careful! Your website without www doesn't redirect to www (or the opposite). It's duplicate content! Hide advice High impactEasy to solve Be sure that http://mysite.com and http://www.mysite.com are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change color of certain characters in a cell I have the sentence "I would like 50 of those, please" in cell A1. I want to make any numeric characters red text (just the numeric characters). How do I do this? Here's the frame of what I have... Sub RedText() Dim i As Integer For i = 1 To Len(Cells(1, 1).Value) I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there some kinda onClickDownListener/onClickUpListener? I've been trying to figure out a way to check if a button and/or image is being pressed. But I need to do different things depending if it's being pressed, or not pressed. Here's an example; A player holds down a fire button, the character continues to fire ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Galleria software - Could not extract a stage height from the CSS I'm experiencing an error - Could not extract a stage height from the CSS: Traced height 0px - when I refresh a page with a Galleria gallery in both IE8 and Firefox 6.0.2. I've made these changes: 1) To the html by changing this tag - !DOCTYPE HTML...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is softKeys() deprecated in Guava 10? As of Guava 10, MapMaker.softKeys is deprecated, and the corresponding method doesn't exist in CacheBuilder. Why was this change made? What do I need to do with existing code that use it? A: Here is my attempt of explanation of the issue (a little more complete to Chris' re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: PInvoke with a CString I'm trying to use P/Invoke to call functions in an unmanaged C++ DLL from C#. The C++ DLL uses CString's as function parameters and returns, such as CString AFX_EXT_API GetUserName(CString& userID) Unfortunately, the C++ is legacy code that I cannot change to use the more universal LPSTR (or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refresh tableview on enterforeground I have a tab bar application with five views. I need to refresh the second view when the app returns from background, but only if the user was before in that view. I tried : - (id)init { self = [super init]; if (self) { [[NSNotificationCenter defaultCenter] addObs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get locale specific directory in My documents I have my custom application that generates a directory in My documents path, after installation the application uses that directory, but i got an issue in Chinese windows OS, where my application folder name appears in Chinese, so is there any way i can get the file nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: jquery function to the element that is being appended? I'm trying to append some html stuff, and I was wondering how come when I try to write some jquery function, that element that was just appended won't work? For instance, if I had a list of text and when you click on something, that list will populate with some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using android facebook sdk without oauth login, only SSO Is it possible to use the android facebook sdk auth, but only for SS0 and disable the fallback to oauth. Another words, only allow the user who has the facebook app installed and is the registered user for the phone. A: Facebook is internally using OAuth - ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to reference/including external source files/libraries in C with Visual Studio? Trying to create a C project that references this so that I could use it in my own application. Unfortunately I'm having a bit of trouble. I'm a C# programmer and in that language it is very simple. First you reference the library an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node.js watchFile error. "Undefined is not a function" I am new to Node.js and I am trying to run simple Node.js code. I have Node.js windows binary.v0.5.8 Here is my js code. var fs = require("fs"); fs.readFile('message.text', 'utf8', function (err,data) { if (err) { return console.log(err); } console.lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Page background and body background not displaying as I thought they would I am working on this site: http://www.problemio.com and I am trying to get the entire background and the body background set. I am trying to get the areas on the very left and right sides to be the blue color, and the background of the body t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to duplicate a request using wget (or curl) with raw headers? I was deubgging some http requests and found that I can grab request headers in this type of format: GET /download?123456:75b3c682a7c4db4cea19641b33bec446/document.docx HTTP/1.1 Host: www.site.com User-Agent: Mozilla/5.0 Gecko/2010 Firefox/5 Accept: t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: About not having Class Variables Possible Duplicate: Objective C Static Class Level variables Objective-C , member/class variable Just found out that Objective-C doesn't seem to have Class Variables. There are people who suggest that we can use static variables in Class Methods instead. It sounds reasonable to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to set up apache cxf properly in eclipse I use eclipse Helios Service Release 2 version for apache cxf. When I go to windo->preferences->Web services-> CXF 2.x preferences, and set up the cxf runtime, then the version and type doesn't get filled up automatically, which happens on any other system I have tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Improve a word search game worst case Consider: a c p r c x s o p c v o v n i w g f m n q a t i t An alphabet i_index is adjacent to another alphabet j_index in the tile if i_index is next to j_index in any of the following positions: * * * * x * * * * Here all the * indicates the location which are adjacent t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Not able to register my 64bit dll through nsis script ? I have a 64bit dll which i'm able to register from command prompt with regsvr32. But the problem is when i try to register my dll through nsis script its not registered. I used RegDLL command in nsis script. Anyone knows what the problem may be? A: RegDLL is k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How could I write select statement to these two columns? Can you write a SQL command for helping me in these two columns? for example.....these two columns a1 a2 ______ ______ 1 1 2 1 1 2 2 3 3 1 3 2 4 1 4 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Activity killed by system when idle I am writing a Location service programming that when the user go outside a predefined zone, the App will create a Notification at task bar. I am suffering from the system killing my App Activity automatically. After I hide the App by pressing Home button, the App Activity killed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Algorithm to randomly generate a number that is divisible by N Is there a better agorithm to do the following? I am trying to generate 50 random numbers that are divisible by 7. I then select one of those 50 at random & return that number. Is there a more efficient/better way to randomly generate numbers that a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7618192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }