text
stringlengths
8
267k
meta
dict
Q: Zipping commands and directory (Windows) Troubles The problem is 'I want a program which creates a backup of all my important files'. This lesson is located at: http://www.ibiblio.org/g2swap/byteofpython/read/problem-solving.html import os import time # 1. The files and directories to be backed up are specified ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Post with radio button check verification I have a page that uses jQuery post to submit a form and return the data within a div tag in the same page. then the form is still accessible so that multiple questions can be asked to the user and information will be elicited from the data base. On the first time ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get dictionary key of view being panned and add it to an array I have a bunch of UIImageViews in an NSMutableDictionary. My imageview creation method: for (int i = 1; i <= 5; i++) { char a = 'a'; NSString *key = [NSString stringWithFormat:@"%c%d", a, i]; alphabetVowelA = [[UIImageView alloc] initWithFra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CakePHP Acessing full User Information I am very new to CakePHP and I was just wondering if someone could help me with a couple of things. I have a User class and an Image class. In my users_controller.php I have the following functions function beforeFilter(){ $this->userOb = $this->User->find(); } function b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: make duplicate levels unique in r I have to extract data for each individual from one large file based on a date/time window from another file. I have ID, Start, End date as my window file and a huge file (FULLDATA) with all sorts of other data in it, but we shall just simplify it and say it has only ID, Date, X, Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will this copy the object or add a reference to it? Let's say I have the following object: var lol = { section: {}, other: {foo: 'bar', foob: 'baz'} }; Now if I do the following: lol.section.other = lol.other; will a reference be made linking section.other to other or will the entire other object be copied...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Old version of applet still running in the background in eclipse Sometime I forget to close my previous applet before I re-compile a new version. So I end up with multiple versions of my old applets hanging around in my dock. Is there a way to tell Eclipse to close these old version before launching the new one? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create a fillable PDF that POST's it's data then returns a flattened PDF with the data in it the user can save I have a pdf that currently people fill in, print out, hand to a receptionist who scans the paper form into a pdf, enters the form fields into a web form, attaches the scan to the web form and submits that....
{ "language": "en", "url": "https://stackoverflow.com/questions/7576901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE9, focus on input text box, but pressing enter will execute the first input button. I need it to stop I have a web app, where people can search for stuff. In IE9 the focus is on the search input element but the first button is highlighted so when someone press enter it would always execute the first button. I don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert DataInput to DataInputStream? How can I convert DataInput to DataInputStream in java? I need to know the size of the DataInput. A: Since a stream, by definition, really has no begining or end and thus no fool proof way of knowing how much is available, you just have to read from the stream in fixed sized c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Links published to my page wall with graph do not show up in user feeds I have a php script that posts links to my facebook page wall using the php sdk that works fantastic except for one minor annoyance. When my links are posted programatically via the api they do not appear in the feeds of people who like the page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: receive microphone sound without hearing it This captures microphone sound and changes the alpha of 'foo' according to the sound level. However, I hear the microphones input. I want the visuals to work without hearing any sound. How would I do that? m = Microphone.get(); _root.attachAudio(m); m.setVolume(0); //i ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In JavaScript, how can serializer part of the DOM to XHTML? I would like to serialize part of the DOM to XHTML (valid XML). Let's assume I have just one element inside <body>, and that this is the element I want to serialize: <div> <hr> <img src="/foo.png"> </div> With this, document.innerHTML gives me almo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Custom Textarea/texbox and scroll I need to customize an HTML textarea (put round corners) and costumize his respective horizontal scrollbar. Ive search for a js/jquery plugin but the closest that I have found was this: http://jscrollpane.kelvinluck.com/ but this one does not work on textareas, only in Div elements....
{ "language": "en", "url": "https://stackoverflow.com/questions/7576928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ windows pause timer I'm using SetTimer to create a timer in my application with an interval of 50ms, this timer is going to be used to draw an object, and move it around. Now I don't want the object to move when the window is out of focus, but I still need it to be painted. And having it paint every 50ms, seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting started with SQLite and C++? For an online game I'm making, I need to be able to add users and their stats to a database, an example table: Username, Password, Email, Wins, Loses The username will be the unique key, and from there I need to retrieve the other information. I also need to do other things such ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is this html code using php inside it without the signs? <a href="?page={$smarty.section.page.index}&{$per_pages_vars}">{$smarty.section.page.index}</a> {/if} {/section} {if $pagesArray.is_next_page eq 'Y'} <span class="resultsnext"> <a href="?page={$pagesArray.next_page_is}{if $id}&id={$id}{/if}&{$per_pages_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript regular expression for punctuation (international)? I need a regular expression to match against all punctuation marks, such as the standard [,!@#$%^&*()], but including international marks like the upside-down Spanish question mark, Chinese periods, etc. My google-fu is coming up short. Does anyone have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Excel 2010 index match VBA Tried everything and can't seem to get this. Trying to replace values in Row B (SiteTag) of one worksheet with the proper sitetag from an index match in another worksheet. Worksheet(Site_Visit) SiteTag AL27 AS26 GBEM4 ... Worksheet(Sites) SiteTag Project Name 203AL27 AL27...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does pointer arithmetic have uses outside of arrays? I think I understand the semantics of pointer arithmetic fairly well, but I only ever see examples when dealing with arrays. Does it have any other uses that can't be achieved by less opaque means? I'm sure you could find a way with clever casting to use it to acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is there a way to list the groups of a user who is a contact of the authenticated user on LinkedIn? The LinkedIn API documentation has confused me. It says that it is possible to list the groups of a user (not the logged in user, but any contact of the user) by providing the person-id. The url shows this as an examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCV hand recognition? After spending on a while on this, I finally managed to detect the hands through thresholding. The only problem is that VERY FEW pixels in the background remain, which will mess up the next step. Any suggestions on how to get rid of the few background pixels? Because I don't want to go throu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C++ auto keyword. Why is it magic? From all the material I used to learn C++, auto has always been a weird storage duration specifier that didn't serve any purpose. But just recently, I encountered code that used it as a type name in and of itself. Out of curiosity I tried it, and it assumes the type of whatever I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "206" }
Q: Array of numbers inside a JTextField - Java I'm trying to make a JTextField receive an array of numbers. I tryed with "for" and all the stuff needed to run an array, but without succes. Here is the piece of code. private void cbxGeraValorActionPerformed(java.awt.event.ActionEvent evt) { if(cbxRandom.is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting a Python Modules Dierctory from Inside Itself I have a Python module and I'd like to get that modules directory from inside itself. I want to do this because I have some files that I'd like to reference relative to the module. A: First you need to get a reference to the module inside itself. mod = sys.__mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: c double pointer giving error that doesn't make sense int p_entity(char **data){ char *pch; pch = strtok(*data, " \n"); // printf("%s ", pch); pch = strtok(NULL, " \n"); // (*data) = (*data) + 1; // 1. this is okay // (*data) = pch; // 2. but doing this will cause an error printf("%c %d \n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load various images at same time from the internet objective-c I'm trying to load 5 images at the same time,for them put it on the view and change the image every 5 sec(change between the current 5) I create the current a class wich is called when the viewdidload and starts the timer,the method to load all images is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update SystemName from Get-WmiObject or update data table I need to override SystemName from Get-WmiObject: Function Get-VolumeSpace ([string]$ServerName="localhost") { $wql="Select SystemName, Name, Capacity, FreeSpace From Win32_Volume Where (DriveType=2 or DriveType=3) and name like '[a-z]%'" $volSpace=Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating Unique Numeric IDs using DateTime.Now.Ticks I need to generate a unique numeric ID to attach to an incoming request. This ID is used only temporarily to track the request and will be discarded once the request has completed processing. This ID will only be used in the context of this application but wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: hadoop-streaming example failed to run - Type mismatch in key from map I was running $HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/hadoop-streaming.jar \ -D stream.map.output.field.separator=. \ -D stream.num.map.output.key.fields=4 \ -input myInputDirs \ -output myOutputDir \ -mapper org.apache.had...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET grid with auto-paging,sortable,searchable... GridView? ListView? I need to build a <table> to display Products. I am not very familiar with GridView or ListView, not sure if they can do these below. The requirements: * *Automatic paging. Fetch only 100 records at a time (not the whole 1000000 records when...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to add a list view to a tab in android? I know that a similar question has been asked before but it doesn't really fit what I was looking for. Here it goes. I am trying to populate a tab with a list view however all the examples lead to using Intent in .setContent(), which does not fit what I am trying to do. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ada - strange error - consistent version of gcc/gnatbind i'm trying to compile an Ada project. I installed the current 2011 GNAT GPL package from Libre AdaCore, it contains the gcc compiler too. The strange error is the following fatal error: file dom.ali is incorrectly formatted make sure you are using consistent v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7576994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Read java special character from a string in a file I am making a program that reads code from a java file and removes all the comments, but I am having some problems with special character since I am assuming everything inside the " is part of a string For example I have written in the file: String my_string= " \"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iOS In App Purchases for Subscriptions and Consumables products As I understand, Store Kit API will handle storage and retrieval of history related to "Non-Consumables" products, while for "Consumables" and "Subscriptions" you have to have your own server/backend. What are the best hosted existing solutions for that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to modify a contact number in address book programmatically? I am currently writing an app which should enable the user to modify the contact details (mainly numbers) in the app, and then these modifications should be reflected directly to the Address Book. I searched thoroughly on the internet, but all the exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript interop assignment in Clojurescript Dumb question: how do I do Javascript assignment in Clojurescript ? I'm using a Javascript lib and need to set the value of an object's field like obj.this=that; - I don't know Javascript so maybe there's a .set method ? A: Try some thing like (set! (.-property foo) 5)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: jQuery UI Dialog - Input textbox in the titlebar is disabled? I'm placing a textbox in the titlebar of my jQuery UI dialog. Unfortunately, it is disabled (or otherwise unclickable) when in the titlebar. How can I change this so that my text box is enabled? var $dialog = $('#dlgsearch') .dialog({ auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my Animate alone broken? Using the Raphael.js I have made a circle and a path, all I wanted to do was make the circle animate alone the path, as if the center of the circle went along the line. http://jsfiddle.net/rEJNJ/3/ Can anyone offer some advice window.onload = function () { var paper = Raph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I provide the ServiceURI constructor parameter when instantiating a DomainContext declaratively? I am trying to use RIA in my Silverlight app to pull down data. The twist is that The URI for server side part of the RIA connection (WCF endpoint) is not on the same web server that served up the web page with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Identifying a Specific Face in an Image Using OpenCV's HaarDetectObjects with haarcascade_frontalface_default.xml, I've found I can detect a face fairly reliably. However, is anyone aware of any libraries or methods for identifying a face (i.e. labeling it with a name)? A: Check out PyVision. It's part of a researc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to stop/interrupt a servlet handler? If I have a long-running request handler, and the user hits the browser Stop button, how do I terminate the handler so it doesn't continue working? I'm thinking something simple like raising a thread interrupt based on the client connection state as checked from another watc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is a simple 50 item list enough to justify using a ListView? In the Google I/O 2010 talk about ListView they say you might not need to use a ListView with a bounded and reasonable number of rows. They state if you are dealing with a reasonable number of rows it is possible to just lay them out in a ScrollView. I'm c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I hide all columns in a treelistitem? I'm using the HyperTreeList to display a list of items with the name in the first column, and a "Remove" button in the second column. I wrote a function to filter what is displayed in the tree by some text in a TextCtrl. To hide the TreeListItems, I'm doing this: treelist...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java - my paint program needs a menu bar with a submenu with an image - how to do? SO I have this program that is kind of like paint, it lets you draw shapes and lines, but my assignment is to add a menu bar with a sub menu File-> About, when Click on the about section. It should pull up a panel or a frame or a som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is passing NSString pointer not working for me? I am having troubles passing/receiving NSString pointers through function calls. I'm hoping someone can help me see what I'm doing incorrectly. So this is from my first class... void addTo(int pk, NSString* nam, NSString *descrip) { //open the database ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Work around for iFrame cross domain policy? I have an iFrame and, understandably, I can't edit the elements. Is there a work around for this, like using some sort of proxy? I would need it to work for any website and have things like sessions and cookie data persist (for logins etc). Is it at all possible? A: Nup, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need a jQuery randomly selected identifier from options available I want to randomly select an id or value from one of the many option items in my select tag. Also I was wandering how do I quickly count all the option tags in my select tag, and how can I randomly call an ID field efficiently so if I hit refresh, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inline if statement escapes HTML characters So I'm playing with Mako on Pyramid and I'm trying to do inline if statements. <li>${'<a href="#">Opinions</a></li>' if whichnav == 'opinions' else 'Opinions'} Outputs: <li>&lt;a href=&#34;#&#34;&gt;Opinions&lt;/a&gt;&lt;/li&gt; Whereas: % if whichnav =='opinions': ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: viewDidLoad runs before instance variables are given values What I have is a advertisement Class that has an instance variable that will receive the banner url: @interface Advertisement : UIViewController { } @property (nonatomic, retain) NSString *image; Now, in my app delegate I am initializing the ad class a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash empty array expansion with `set -u` I'm writing a bash script which has set -u, and I have a problem with empty array expansion: bash appears to treat an empty array as an unset variable during expansion: $ set -u $ arr=() $ echo "foo: '${arr[@]}'" bash: arr[@]: unbound variable (declare -a arr doesn't help ei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "134" }
Q: Pass login information from Apache/PHP to Tomcat/GWT We are planning to deploy our GWT module as explained in http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideRPCDeployment under the section "Using Tomcat with Apache HTTPD and a proxy" Basically, we configured Apache/PHP server to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MatLab assigning only the first two variables in I am trying to write a MatLab function to compute Fibonacci numbers. below is what I have but it comes up with an error about F(0). ??? Attempted to access F(0); index must be a positive integer or logical. Error in ==> fibonacci at 11 F(0) = 0; How do I tel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HG: Checkout 'tipmost' tag In mercurial, is there an easy way to programmatically check out the 'latest' tag? Meaning, if hg tags produces this: tip Tag3 Tag2 Tag1 Is there an easy way to checkout Tag 3 in a generic way? Meaning, not just hg checkout Tag3, but a generic way of doing so. EDIT: If I must use scriptin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get the position of the preview of a draggable element when it's dropped in HTML5 DnD I'm doing a visual editor using HTML5 Drag and Drop and i need to drag an element set as draggable to a div who acts as a container. Some browsers provides a kind of preview image that represents the element while i'm draggi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ruby on rails to command line interaction Very new to Ruby so please try to look past my ignorance. Cause I have no idea what I am talking about currently. However I know the ability to do what I want exists. Essentially I have some JAVA server side that can be used via a command line. I am trying to figure out wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android onClick() tasks all happen at once I'm trying to develop a feature for my app that pulls a string of text off of the internet (sort of like twitter, but a lot more basic) and displays it on the screen in a permeanent window. The user sees a large box with a refresh button next to it, and a small space below ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $.children("selector") vs $("selector", parent) vs "parent > child" selector I have the following table structure. <table id='mytable'> <tr><td>1</td></tr> <tr><td>2</td></tr> <tr><td>3</td></tr> <tr><td> <table> <tr><td>A</td></tr> <tr><td>B</td></tr> <tr>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to add object to unparameterized Java List? I have a Java object OldFashioned that extends Java 1.4 List: [Java] class OldFashioned extends List { ... } That is, OldFashioned doesn't take any type parameters. I need to add SomeObject to it. In Java there's no problem, since it treats List 1.4 as List<Object> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get the current UTC time in seconds I have an application, which needs to compare the time in seconds. I want to know how to get the current UTC time in seconds. Can some one post an example of it how can we do this in Java? A: public static long getUtcTime(long time) { System.out.println("Time="+time)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: JSON Sub Level Extraction - How to? Objective-C I'm using SBJSON (and am new to JSON) and can easily extract httprequest's response data with it at its top most level. The problem is that I am quite clueless on accessing elements in a sub level. For instance: Level 1: Key: id Key: car_list ========= car_list (Level...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: facebook opengraph not updating and other questions I'm having a problem using Facebook's OpenGraph. I'm attempting to implement timeline features into my application. However, when try changing my meta tags to change the tile of my object, the changes are not reflected. When I pass my url into the debugger tool fac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is myString.equals("aString"); different from "aString".equals(myString);? I heard several times that in using boolean equals(Object o) to compare Strings, it's better to put the constant on the left side of the function as in the following: * *Bad: myString.equals("aString"); *Good: "aString".equals(myStrin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Check and send variables via URL without redirection i am trying from my main web page to check and in some cases send a variable via URL like this (http://192.168.0.110/CVAL.CGI?A0=1) this is to modify the status of something in my web page depending on the value seen in the url. A: Sounds like you need Ajax. Ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does a table way to small for the screen create a scrollbar? Here's a DEMO Here's my HTML: <div> <table> <tbody> <tr> <td>A1</td> <td>B1</td> </tr> <tr> <td>A2</td> <td>B2</td> </tr> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Css class nesting and grouping What is the difference between #id .A.B x { } #id .A .B y { } in CSS file? Both A and B are classes. x and y are some tags Does the spacing between .A and .B have any significance? A: In the first case, it references an element that has both A and B as classes: <div class="A B"></d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Validation with DDD in SOA application using IoC In my service facade layer, I have a service class with a method/operation that accepts a DTO (data contract) object. AutoMapper is used to map this DTO into an instance of my domain object to apply any changes. The request is passed onto my domain service which does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Detecting an Object in an Image using SIFT/SURF Features Given N SIFT/SURF features extracted from 100 training images describing a specific object, and given M SIFT/SURF features extracted from a new image A, that may or may not contain that object (as well as other objects we don't care about), how would you deter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Scroll down, ajax load more in another div I haven't seen this done anywhere before but I hope y'all geniuses here can help out. I have a very tall div which users will have to scroll to read more. I also have a div to it's top right which loads google ads. I want this div to load more ads based on the scroll level ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i link a list element with the select dropdown I have a list of elements: <li>A</li> <li>B</li> and a dropdown: <select> <options value="A">A</options> <options value="B">B</options> </select> How can i link both of them together? I want to change the value of select to the text of the <l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: allocating memory when overriding + operator in c++ I am creating a custom object and overriding the + operator. I am return a new object of the same type. Is it bad practise to allocate memory inside this method? because I then I will need to delete the memory out of scope. A: Yes, without further information,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anonymous user count using Spring Security I have managed to accomplish a couple features using Spring Security 3.0.5. The first is that I want a count and list of users that have a specific role. To accomplish this I instituted the HttpSessionEventPublisher and the spring configurations that go along with it. Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add multiple records into a google app engine datastore I am trying to update a datastore by uploading a formatted file(contains multiple lines). Each line in the file will create a new record in google app engine datastore. I am not sure how to add multiple rows to the datastore within a for loop. I tried: c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure roles with Apache Shiro 1.2-SNAPSHOT and Guice? I'm playing around with Shiro and would like to configure roles via the ShiroWebModule. addFilterChain("/**", AUTHC); this works, my loginpage is shown and I can login. But addFilterChain("/test/**", AUTHC, config(ROLES, "test")); //that does not seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse SVN : how to use Compare With ... branch? In Eclipse with SVN, I would like to see which changes (line by line!) are done in another branch (or trunk) and then decide for each changed file if I want to keep my working copy version or the changed file. I think this is the way it should work, but apparently it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamically adding buttons to ItemsControl I have a issue that i want your inouts on. I have a outer grid and it has two columns. On first column i am using a ItemsControl that is bind to a a view model (This view model is for dynamically creating buttons). I have a wrap pannel templete define for the Item templete....
{ "language": "en", "url": "https://stackoverflow.com/questions/7577140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Proving various runtimes have various big-O complexities? How can I prove the following: * *10 n log n ∈ O(2n2) *n log n + 40 · 2n - 6n ∈ O(2n) In the first one, I'm using this math: 10 n log n ≤ c · 2n2 10 n2 ≤ c · 2n2 divide by 2 5 n2 ≤ c · n2 I'm guessing that c = 5 and n0 = 1, but I'm not sure if that's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use one search string to search 4 website catalogs I frequent many libraries. The Brooklyn Public Libraries, Queens Public Libraries, New York Public Libraries and CUNY schools libraries. When I want a book I have to go to all 4 online catalogs and search for it. I want to instead write a program that takes the book...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dreamweaver Phonegap Android Emulation Problem I'm having problems using the emulator for dreamweaver using the Jquery Mobile(phonegap) template. Specifically the emulator starts but the app doesn't load and there is no app icon for the app either. When i build and emulate the message "Dreamweaver is unable to ope...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between running rails tests from root and test directory What is the difference between running rails tests from the root directory and from the test directory? I've seen it done both ways, but I would imagine that one is preferred.. ruby test/unit/user_test.rb vs cd test ruby unit/user_test.rb A: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery alternatives to Highslide? Are there any robust jQuery alternatives to the JavaScript popup/lightbox library Highslide? Highslide is too focused on the image gallery aspect and I'm just wondering if there are options. I'm not looking for a triditional lightbox, rather floating/movable divs as in Highslide. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I invoke an immediate update to a Java GUI? (conflict with Thread.sleep()) I am making the game Memory, when you pick two cards and if they match you get to keep them, otherwise you turn them back. If you then remember cards you have already chosen, you can venture a better guess on the next two cards. The pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Insert unique identifier foreign key into table in SQL Server I’m attempting to insert dummy search data using statements like this (the values differ for each one): insert into SEARCHRESULTEXTENSIONBASE (CAL_ISBN, CAL_SEARCHRESULTID, USAGEDATAIMPORTID) VALUES('9780347011266', '1317168818', '925e3a5e-e971-11...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Date formatting on Action/Object publishing With the new Action/Object parts of Open Graph, I'm trying to publish a DateTime formatted absolutely, something like: "Dave is attending EventName on ... 9/28/2011 at 9:30pm" However, I can only get the date to render in two formats: "123456789" or "3 hours left". I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'Unrecognized Selector' Error When Accessing Delegate I'm working on homework assignment #3 for CS193P (Fall 2010), the graphing calculator. I've successfully implemented the delegate to pass the expression and the scale, and am now trying to add an additional field to the delegate, as referenced in my earlier ques...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QComboBox fused to QSpinBox So I am writing a Qt GUI for some scientific software and I have QSpinBoxes and QDoubleSpinBoxes for a quantities that user should set the units of. Because I have several of these spinbox-combobox pairs in a row I think it would be least confusing to have the ComboBox on the right fused ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I expose my data model in a transactional form? Some software currently being written has a requirement for the data model to be transactional, implementing CRUD operations. (get a copy of data, make changes, submit it atomically, get fault messages for failures, etc.) Is there a well documented design patte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL JOIN Not Using Primary Key When Joining on Result Returned From Function Description I'm trying to JOIN a table using the result of a stored function. The stored function returns an unsigned integer, which is the same type as the field I'm joining against. Problem The field I'm trying to JOIN to is a primary k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: groupBy function in maphilight jquery plugin Does anyone know how to get the groupBy function to work in the maphighlight plugin? I want to be able to have a group of countries on a map all highlight no matter which country in the group you mouseover. I cannot get even one to work. The documentation that I have been...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to download the sqlite database of an android app? I am using a sqlite database in my android app. I want to download the database to pc. Can anyone kindly tell me what to do ? A: if your app is in emulator you can just use the DDMS and open /data/data/your.package.name/databases. if you have your app in mobile...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create a CSV file with PHP via fopen/fwrite but also write headers to it I feel like I am missing obvious here, but I will post anyway. I have a 'csv.php' which creates a csv file, simple example: // csv.php $fh = fopen('report.csv', 'w') or die("can't open file"); while ($row = mysql_fetch_row($result)) { fpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to call a parent class's method from child class in c#? I have a master page with a method I use a lot from content page code behinds. In those code behinds, I have a method that gets duplicated a lot, so I thought I'll put it in something I can inherit from. Unfortunately, I now can't call the method in my mast...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help with eraser from buffered Image So below I am working on a paint type project for class that lets you draw shapes lines etc, now my professor wants us to add a eraser tool that lets you erase parts of the image, it is on a buffered image any ideas? im fresh out import javax.imageio.ImageIO; import javax.swi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parsing php data to get only individual data How do I parse this data? This is a datetime that were from my database 2011-09-27 13:14:11 I want to get only the 13 14 and 11 separately. the output should be: 13 14 11 Please be noted that this is a dynamic value I could also get a datetime that has this value: 2011...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: posts_per_page not working for new wp query I need to set the post_per_page to display only 1 post here's the code I use: <?php $yell = new WP_Query(array('posts_per_page' => 1,'post_type' => 'items', 'portfolio-category' => 'accessories')); while ($yell->have_posts()) : $yell->the_post(); ?> <h2><?php the_title();...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: knockout loads, but does not work in IE I'm building a client-side application with jquery and knockoutjs. It works great in FF and Chrome, but crashes in a really puzzling way in IE v8. For debugging, I'm running this code: $(document).ready(function(){ //A bunch of code that works fine ... //... alert( viewM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Trying to make App Store loading bar When an app is downloaded from the app store, it goes directly to the home screen with a nice looking loading bar (to show when the app is downloading/installing). JailbreakMe 3.0 utilizes this. Does anyone know how to use this? I'm trying to make an install script to install a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using RackSpace to store data from 1,000 iPhones without "sharing" Is there a simple way to have all my users of an app have a part of RackSpace for some of their information, let's say key'ed by their UUID (an id unique to their iPhone), with that data encrypted just for them? That way, all 1,000 could upload and d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3.1 Remote Button Unobtrusive Javascript event not caught (JQuery) I want to start using the Ajax events ajax:success, ajax:failure, ajax:complete and ajax:beforeSend as recommended for unobtrusive Javascript in posts like: * *http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-in-rails-3/ *h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ClassNotFound W/ Spring using Eclipse Tomcat Maven M2Eclipse Sorry I am new to this stack overflow stuff so pardon the long error message at the bottom. I am trying to deploy a project called BroadLeaf to a Tomcat 7 server using eclipse. I have installed M2Eclipse/WTP Integration. I run a maven configuration (throug...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }