Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
3,883,094 | 3,883,095 | why static methods can not be overriden in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2223386/why-doesnt-java-allow-overriding-of-static-methods">Why doesn't Java allow overriding of static methods?</a> </p>
</blockquote>
<pre><code> public class Start extends a{
@Override
static void ... | java | [1] |
2,739,455 | 2,739,456 | how to finish activity after picture taken by camera | <p>I am using an activity to capture image
i want to start a finish my activity on picture taken
on capture button i write following code</p>
<pre><code>btnCapture.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
preview.camera.takePicture(shutt... | android | [4] |
1,311,237 | 1,311,238 | Send Email from Localhost in offline Web Application | <p>i want to send mail from any email id to any email id from localhost.can i use iis smtp server for this?my asp.net application is not online.</p>
| asp.net | [9] |
4,876,919 | 4,876,920 | How to Loop through all the properties of a Class? | <p>Is there a way to loop through all the properties from within a class's constructor so I can set all their default values instead of having to list each one like</p>
<pre><code>this.prop1 = "?";
//repeat for each prop
</code></pre>
<p>For example:</p>
<pre><code>public class thisClass()
{
library()
{
... | c# | [0] |
5,397,670 | 5,397,671 | How do I call local function from a static function? | <pre><code>#ifndef DATACENTER_H_
#define DATACENTER_H_
#include <map>
#include <list>
#include <string>
#include "LiLo/SoundInfo.h"
#include "MutexCondition.h"
#include "UserInfo.h"
using namespace std;
class DataCenter : MutexCondition{
private:
map<long long, list<SoundInfo *> >... | c++ | [6] |
4,645,613 | 4,645,614 | Does iPhone developer REALLY needs iPhone? | <p>For the sake of coding itself, I know that I don't need to buy iPhone as there's pretty good emulator.<br>
However, as I will develop iPhone apps for clients (will not have direct contacts to clients) via freelancers sites, do you think that I might get rejected (not chosen) by the contractor because I don't have iP... | iphone | [8] |
1,336,191 | 1,336,192 | Object Oriented Javascript | <p>In the course of programming we encounter large javascript files which are open source and written in an object oriented manner( like JQuery ).</p>
<p>If we need to modify these files we have to have a basic knowledge of the members and the flow. If we have multiple files then the task is much more difficult.</p>
... | javascript | [3] |
5,959,767 | 5,959,768 | C++ Hangman program check if work function | <p>This is the program i have so far it compiles but outputs are wrong. I'm trying to fix this function that compares two arrays and returns true if they are equal and false if not. </p>
<pre><code>bool CheckWon ( char selectedWord[], char gameBoard[] )
{
bool checkWon = false;
int length = strlen(selectedWord... | c++ | [6] |
5,983,910 | 5,983,911 | \n or \n in php echo not print | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2531969/print-newline-in-php-in-single-quotes">Print newline in PHP in single quotes</a><br>
<a href="http://stackoverflow.com/questions/3446216/difference-between-single-quote-and-double-quote-string-in-php">Diff... | php | [2] |
2,302,072 | 2,302,073 | Set default value for GUI PreferenceActivity during runtime | <p>I have the following XML.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory
android:title="@string/preference_xxx_category">
<CheckBoxPreference
android:title="@... | android | [4] |
2,565,504 | 2,565,505 | sliding drawer above imageview | <p>I want to add a sliding drawer above the imageview like the one in the image can anyone help me with this please !</p>
<p>you can see the image here <a href="http://i.stack.imgur.com/2NPvb.jpg" rel="nofollow">http://i.stack.imgur.com/2NPvb.jpg</a></p>
<p><a href="http://i.stack.imgur.com/pVqqG.png" rel="nofollow">... | android | [4] |
2,538,376 | 2,538,377 | Way around 1mb file size restriction? | <p>My app needs to save files that will range from about 2-20mb. When I tried to do this I was getting an OutOfMemoryException. I did some reading and it's looking like Android has a file size limit of 1mb. Is this correct? If so, is there a way around this limitation, other than splitting up every file into 1mb ch... | android | [4] |
5,860,130 | 5,860,131 | How to open a particular message/conversation in the Gmail app | <p>I am trying to programmatically open an individual email in the Gmail app on Android.</p>
<p>I know it can be done because the built-in notifications send you to a message when you click on them and there's an app on the market called Gmail Notifier which does it as well.</p>
<p>What I've tried so far:</p>
<p>-se... | android | [4] |
3,632,580 | 3,632,581 | What's low level Javascript? | <p>I've seen the term "Low level Javascript" come up a few times but I've no idea what it means. Google shows no results surprisingly. Can someone shed some light on it?</p>
| javascript | [3] |
2,945,328 | 2,945,329 | different drawable resolutions | <p>I want to deploy my application on different screen sizes using the 1.6 feature.
I exported the drawable resources with different resolutions in drawable-ldpi, drawable-mdpi and drawable-hdpi folders.
On android 1.6 and 2.0 everything looks good.</p>
<p>My problem is that on 1.5 the drawable-ldpi resources are used... | android | [4] |
2,609,734 | 2,609,735 | Javascript Validation for- "From Date" should not be prior 13 months from "To Date" | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/12054405/from-date-will-not-be-accept-earlier-than-13-months-in-javascript">From Date will not be accept earlier than 13 months in javascript</a> </p>
</blockquote>
<p>I Am trying to form a “From Date” will not ... | javascript | [3] |
3,910,801 | 3,910,802 | Get value of parameter defined in callback javascript function | <p>How can I retrive parameter "url" inside call back function?</p>
<p>Function declared in global scope:</p>
<pre><code>var showPrompt = function(text, callBackFunc){
$('#msg').html(text);
$('#msgbtn').click( function(){callBackFunc();})
};
</code></pre>
<p>//calling function</p>
<pre><code>$('li').click(f... | javascript | [3] |
2,394,458 | 2,394,459 | how to save pcm audio buffer as acc or other audio file? | <p>I get pcm audio from http protocol and i can play it.However, I don't know how to save them as ACC or other audio file.
Does anybody can help me?thanks.</p>
| iphone | [8] |
2,494,554 | 2,494,555 | url rewriting in windows server | <p>I have upload my site on windows server, but when i use .htacess in my site then it is not working. means no page will open it show page not found error. but it is working properly in localhost.I want to know whether windows server support .htaccess(Url rewriting) or not. if it support then how can i enable it on se... | php | [2] |
199,553 | 199,554 | PHP destructor behavior problem | <p>I have found this <a href="http://bugs.php.net/bug.php?id=30210" rel="nofollow">http://bugs.php.net/bug.php?id=30210</a>, which according to the PHP team isn't a bug. What I fail to understand is why would you have the directory reset happen before the destructor. Would appreciate your views on the same and also if ... | php | [2] |
2,700,662 | 2,700,663 | Java char array to int | <p>Is it possible to convert a <code>char[]</code> array containing numbers into
an <code>int</code>?</p>
| java | [1] |
1,359,854 | 1,359,855 | why calling split and splice gives empty array? | <p>In this JavaScript, why don't i get <code>azbc</code>?</p>
<pre><code>var x = "a-b-c".split('-').splice(1, 0, 'z');
alert(x.join(''));
</code></pre>
<p><code>split</code> returns an array containing <code>a</code>, <code>b</code> and <code>c</code>.</p>
<p>Shouldn't <code>splice</code> insert <code>z</code> after... | javascript | [3] |
3,413,782 | 3,413,783 | Load the div content when that div is seen/reached while scrolling | <p>On the jQuery documentation pages, I notice that the Disqus comments do no open until I scroll to that part of the page.</p>
<p>Scroll down the bottom of this page and you'll notice the affect: <a href="http://api.jquery.com/child-selector/" rel="nofollow">http://api.jquery.com/child-selector/</a></p>
<p>I was won... | jquery | [5] |
1,140,160 | 1,140,161 | java runtime.getruntime() getting output from executing a command line program | <p>I am using the runtime to run command prompt commands from my java program. However I am not aware of how I can get the output the command returns.</p>
<p>Here is my code.</p>
<pre><code>Runtime rt = Runtime.getRuntime();
String[] commands = {"system.exe","-send",argument};
Process proc = rt.exec(commands);
</c... | java | [1] |
2,318,048 | 2,318,049 | JavaScript Broken Closures and Wrapper Function from John Resig #62 and #63 | <p>The first example below is #62 from John Resign`s Learning Advanced JavaScript <a href="http://ejohn.org/apps/learn/#62" rel="nofollow">http://ejohn.org/apps/learn/#62</a>. It is called Fix the Broken Closures. Example 1 fails 4 times. Example 2, which is only different because it has a wrapper function, passes 4 t... | javascript | [3] |
2,118,174 | 2,118,175 | populate html table with jquery | <p>suppose i have table and i want to append data in the middle of table through jquery.</p>
<h2>here is my table code html</h2>
<pre><code> <table border="1">
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
</code></pre>
<p><strong>here i need to append tr with jQuery</stro... | jquery | [5] |
4,579,454 | 4,579,455 | Centering an element to the viewable area with Jquery | <p>I have a huge scrollable area. In one section I have a grid of thumbnails. When clicked, the thumb is cloned and animates out to the center of the screen, but it animates to the center of the entire area, not the area that you are viewing i;e, the area of have scrolled to. How can I get it to animate to the center o... | jquery | [5] |
5,975,730 | 5,975,731 | JS object undefined problem | <pre><code><script type="text/javascript">
var X = {
a: [{name:john, phone:777},{name:john, phone:777},{name:john, phone:777}],
b: [{name:john, phone:777},{name:john, phone:777},{name:john, phone:777}],
c: [{name:john, phone:777},{name:john, phone:777},{name:john, phone:777}],
d: [{name:john, phone:77... | javascript | [3] |
3,844,991 | 3,844,992 | PHP array_shift() not working for me. What am I doing wrong? | <p>I am creating an array and want to delete the first element of the array and re-index it. From what I can tell, array_shift() is the right solution. However, it is not working in my implementation. </p>
<p>I have a member variable of my class that is defined as an array called $waypoint_city. Here is the variab... | php | [2] |
2,399,202 | 2,399,203 | Throw exceptions through several processes | <p>I have Remote Service in a separate process and in this Remote Service for example I am calling a method that throw Custom Runtime Exception if something wrong. - I want to handle that exception in UI.</p>
<p>But as I understand I cannot throw exception from one process to another.
What is solution for this situati... | android | [4] |
5,525,463 | 5,525,464 | Debugging Jquery conflicts / errors | <p>Is there an easy way to debug jquery conflicts / errors ?. I am currently using firebug but it is showing no errors at all. I am adding the jquery library and the jquery script and the scripting needed in the head but it doesn't seem to be working, I cant seem to get any to work to be honest, and no errors appear in... | jquery | [5] |
3,258,671 | 3,258,672 | jquery copy content to another text box | <p>I have following 2 fields in my large form...</p>
<pre><code> <p><input type="text" name="name" id="proname" value="" /></p>
<p><input type="text" name="var" id="provarname" value="" /></p>
</code></pre>
<p>I want that #provarname should get value live automatically from #pro... | jquery | [5] |
261,033 | 261,034 | Decrement a variable in an incrementing for loop | <p>In my python script, I am itterating through a list (headerRow) starting at index 9. I want to check to see if it is already in the database, and if not then add it to a database with an auto-incementing primary key. I then want to send it through the loop again to retrieve it's primary key.</p>
<pre><code>for i in... | python | [7] |
1,964,973 | 1,964,974 | How to select second element with JQUERY when clicked on image? | <p>The code below working for only first div. I can't display other divs when i clicked on the other "img"s.
Do you know a method to reach second (next) element?</p>
<pre><code>$(document).ready(function() {
$('.imgOpenClose').click(function() {
if ($(this).attr("src") == "images/openTree.gif") {
... | jquery | [5] |
2,925,909 | 2,925,910 | Removing a duplicate phrase | <p>I'm looking to remove duplicate phrases from any give string.</p>
<p>Example:</p>
<pre><code>My_First_Post_My_First_Post.htm
</code></pre>
<p>Would have the phrase "My_First_Post" in there twice, thus becoming:</p>
<pre><code>My_First_Post_.htm
</code></pre>
<p>Any easy way to do this?</p>
| c# | [0] |
5,277,795 | 5,277,796 | Find time until a date in Python | <p>What's the best way to find the time until a date. I would like to know the years, months, days and hours. </p>
<p>I was hoping somebody had a nice function. I want to do something like: This comment was posted 2month and three days ago or this comment was posted 1year 5months ago.</p>
| python | [7] |
5,349,352 | 5,349,353 | findViewById() not found id in nested layout? | <p>My xml :</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="240dp"
android:layout_height="320dp"
android:gravity="center"
android:background="@drawable/borders"
>....<LinearLayout
android:id="@+id/arearight"
android:... | android | [4] |
4,963,119 | 4,963,120 | Why can't i specify two fields | <p>I'm doing <a href="http://docs.oracle.com/javase/tutorial/java/javaOO/QandE/creating-questions.html" rel="nofollow">exercise 1</a> of the official Java tutorial. So far, I have this program: </p>
<pre><code>public class Card {
public final int rank;
public final int suit;
public Card(int rank, int sui... | java | [1] |
2,369,121 | 2,369,122 | is this lead to memory leak for iphone | <p>Let me explain in detais</p>
<pre><code>In appDidfinish()
{
preLoginNavController = [[PreLoginNavController alloc] initPreLoginNavController];
[window addSubview:[preLoginNavController view]];
}
</code></pre>
<p>then in <strong>preLoginViewController when user press a button</strong></p>
<p>then i am doing this... | iphone | [8] |
3,156,114 | 3,156,115 | How to implement this image stack effect in Android? | <p>I looked at the H&M Android app and trying to figure out how to implement some widget.
Can anyone have an idea how this image frame is implemented?
I can guess that it using openGL.</p>
<p><img src="http://i.stack.imgur.com/KwYZk.jpg" alt="https://lh6.ggpht.com/Q-WH9L6rIIPEaEpp2ty0uXH7VqDbVqE_0x2f22o4cjvCHsVm-l... | android | [4] |
1,944,137 | 1,944,138 | how to create "ONLY STATUS BAR NOTIFICATION like Alarm clock, battery,3g in android without expandable drawer | <p>I dont drawer type notification.. i only want only an icon as notification..plzz help guyss</p>
| android | [4] |
3,866,440 | 3,866,441 | How to do unix commands or operations of unix in java | <p>How to connect to unix server and perform operation in java as we performed in unix screen.
I wnat to execute this command "<strong>sed '1,2d;/affected/d;/^$/d;/------/d'</strong>" in java.</p>
| java | [1] |
681,419 | 681,420 | How to test whether a variable holds a lambda? | <p>Is there a way to test whether a variable holds a lambda?
The context is I'd like to check a type in a unit test:</p>
<pre><code>self.assertEquals(lambda, type(myVar))
</code></pre>
<p>The type seems to be "function" but I didn't see any obvious builtin type to match it.
Obviously I can write this, but it feels cl... | python | [7] |
2,681,876 | 2,681,877 | Trying to incorporate the mass of a ball | <p>I'm having trouble trying to incorporate mass into my program (specifically, the mass of a basketball).</p>
<p>So, first off, I used an equation to determine what the ball's velocity has to be in order to go through the hoop (with gravity factored in). When I ran my program with just gravity, it went through the h... | python | [7] |
4,777,083 | 4,777,084 | jquery select list remove | <p>there are 2 multiple select list on my page , one is there with a seperate remove button . selecting an item there in the selected list is removing the item from the first select list also.how will i specify which list to remove item from in this code</p>
<pre><code>$().ready(function() {
$('#remove').click(... | jquery | [5] |
2,095,227 | 2,095,228 | How to convert /Date(-6847824600000+0530)/ to a Date time | <p>My Web Service returns dates in </p>
<pre><code>"dateRequired": "/Date(1357101103000+0530)/",
"etaExport": "/Date(-6847824600000+0530)/",
"etaImport": "/Date(-6847824600000+0530)/",
</code></pre>
<p>as a json . I want to know the best way to convert these unix dates to DD-MM-YYYY HH:MM format and want to elimitate... | java | [1] |
1,956,666 | 1,956,667 | How to access the property bag in Javascript? | <p>I want to access my property bag using Javascript from a
<pre><code> <CommandUIHandler
Command="FCS.Intake.Tab.Reports.TL"
CommandAction="javascript:
function getWebProperty() {
var ctx = new SP.ClientContext.get_current();
var web = ctx.get_site().get_rootweb();
... | javascript | [3] |
1,738,085 | 1,738,086 | Android Action Bar and Menu Access | <p>My app likes to have as much screen space as it can on phones, so I've been using the NoTitleBar theme up to now. Going forward for V3.0+, at least on tablets, I'd like to support the Action Bar since there's room for it and it has some nice features, so I might use one of the standard Holo themes in that case.</p>
... | android | [4] |
3,340,641 | 3,340,642 | Get particluar values from a string in PHP | <p>My string is :</p>
<pre><code>$mystring = "https://maps.google.com/?ll=37.0625,-95.677068&spn=37.188995,86.572266&t=m&z=4";
</code></pre>
<p>Now I want those values which I have marked as bold from the string. How can I achieve this with PHP?</p>
| php | [2] |
390,646 | 390,647 | how to set tablelayout row background color programmatically | <p>How to set tablelayout row background color programatically.</p>
| android | [4] |
664,581 | 664,582 | Core Java and latest technologies | <p>I have learned core Java and wanted to apply it through some project. I also wanted to know, what is the importance of certification courses like SCJP? Is it necessary to get certified? What languages and techonogies are in demand now (or will be in the future) so that it could make my curriculum vitae look heavy ... | java | [1] |
3,894,894 | 3,894,895 | How can I use javascript to check and modify the height of two DIVs after a page has loaded? | <p>I have the following HTML: </p>
<pre><code><div>
<div id="a" class="grid_6" style="background-color: #ff00ff">
<div class="block-border">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever ... | javascript | [3] |
415,423 | 415,424 | Can I use bitwise OR for Java Enums | <p>Suppose you have an enum Direction</p>
<pre><code>enum Direction{
North,South,East West
}
</code></pre>
<p>Could I write a method that uses bitwise or's to compare multiple enums</p>
<pre><code>public boolean canGoDirection(Direction dir){
return dir | Direction.North;
}
</code></pre>
<p>where I would c... | java | [1] |
4,026,692 | 4,026,693 | Surfaceholder recreates really slow | <p>When I return to my menu activity it takes around <strong>7seconds</strong> before the menu gets drawn ... when the activity gets started it takes only less then a second, why does it takes so long to create the surface again and lock the canvas?</p>
<pre><code> @Override
public void surfaceCreated(Surfa... | android | [4] |
5,429,932 | 5,429,933 | Converting all vars to global scope | <p>I know I can use $GLOBALS['var'] inside a function to refer to variables in the global scope.
Is there anyway I can use some kind of a declaration inside the function so I will be able to use $var without having to use $GLOBAL['var'] every time?</p>
<p>Joel</p>
| php | [2] |
1,560,668 | 1,560,669 | Set and get username between activities | <p>Here's the scenario.
I have:</p>
<p>A LOGIN activity</p>
<p>A SESSION where I have methods getUsername() and setUsername()</p>
<p>A GET activity where it is supposed to get the username.</p>
<p>Upon successful login in the Login Activity I have this line of code</p>
<pre><code>public class MainActivity extends ... | android | [4] |
2,238,764 | 2,238,765 | retrive data from sqlite | <p>What I am trying to achieve is retrieve records from SQLite database which are in the range of 3 days before current date and 3 days after current date including current date.</p>
<p>how to do this,please suggest some example to try out.</p>
| android | [4] |
3,780,299 | 3,780,300 | iPhone app rejected for "transferring excessive volumes of data" | <p>Our lovely app that downloads mp3s from our server into a local file on the phone then plays from that file was rejected for using too much bandwidth.</p>
<p>I understand the rejection (we are downloading rather than streaming) and don't quibble with their decision... our first priority was quality of user experien... | iphone | [8] |
323,397 | 323,398 | writing tab seperated values into a file | <p>From a file, i have taken a line, split the line into 5 columns using <code>split()</code>. But i have to write those columns as tab seperated values in an output file. </p>
<p>Lets say that i have <code>l[1], l[2], l[3], l[4], l[5]</code>...a total of 5 entries. How can i achieve this using python? And also, i am ... | python | [7] |
2,291,996 | 2,291,997 | android memory consumption | <p>I have many pictures in my @drawable directory which are connected to xml layout via background property:</p>
<p>i.e
<code><ImageButton android:background="@drawable/background1" ... /></code></p>
<p>I have many activities, so, when activity is destroyed (BACK is pressed), the heap isn't freed. So, the quest... | android | [4] |
2,883,716 | 2,883,717 | using 'or' operator not working for menu | <p>In my code here, I have a CSS class called "active" which I use if the $_GET['page'] == tutorials, php, mysql, etc...</p>
<p>The problem is, even if the 'page' variable is not equal to any of these values, the Tutorials button in this case is still active for some reason.</p>
<p>Any ideas why this would be happeni... | php | [2] |
5,437,936 | 5,437,937 | how to resume/suspend a pthread in iphone os? | <p>Now i face a problem in my porting job, when i need to implement a thread class that will work in not only wince, symbian ,but also unix-like system, like iphone.</p>
<p>I own a suspend/resume interface to implement, anything is ok in wince/symbian except iphone, i use the posix pthread to finish my job, but i sear... | iphone | [8] |
2,448,314 | 2,448,315 | how to implement web page mirror with jQuery? | <p>Put all contents on another web page into a fixed size div.</p>
<p>How to achieve this?</p>
| jquery | [5] |
387,859 | 387,860 | JQuery binding item index to another items index | <p>I have scroller using Jquery Tools Scrollable which scrolls through items fine. Separate to this I have a list which matches the items being scrolled through. I need to add a class to the correct list item based on the scroller's index. The best way I can think of is to use the navigator on the scoller to set the se... | jquery | [5] |
4,876,932 | 4,876,933 | SimpleXMLRPCServer does not support methodSignature? | <p>I'm implementing XMLRPCServer following "<a href="http://www.doughellmann.com/PyMOTW/SimpleXMLRPCServer/" rel="nofollow">Standard Python Library by Example</a>". I want client to be able to see method signatures, and I expected that</p>
<pre><code>proxy = xmlrpclib.ServerProxy('http://%s:%s' % (host, port))
print p... | python | [7] |
554,943 | 554,944 | Select cells from 3D grid in certain radius | <p>I ran into a little problem today that I can't seem to solve in an efficient way. I'd like to select all cells of a 3D grid given the center of a sphere and the radius.</p>
<p>I have a cubic grid of cells, which all have the same dimensions, i.e. the cube has same width height and depth and is divided into sub cube... | c++ | [6] |
4,205,419 | 4,205,420 | Selecting Audio Files Using Intent.createChooser not working with all phones | <p>I am nearing completion of a project I am working on using Android, but ran into a little bump in the road when we got a new device to test our application with.</p>
<p>I am programming using Android 1.6 and my two devices are:</p>
<p>HTC Incredible - Verizon (Android 2.2)<br>
Samsung Galaxy S - T-Mobile (Android ... | android | [4] |
4,897,233 | 4,897,234 | How to parse the XML which contains HTML contents | <p>i am new for android. could you help me to parse this XML which contains the HTML contents like,</p>
<pre><code><title>Jeff Mayweather: Floyd Sr showed a Sign of finally letting go of his Son, Passing Torch to Roger</title>
<summary type="html">
&lt;p&gt;By Shawn C... | android | [4] |
1,094,431 | 1,094,432 | Select element on click | <p>I have a problem with selecting the correct element using the .delegate method.</p>
<pre><code><div><span>Some element</span></div>
</code></pre>
<p>I need to select the div element even when the click event is raised through the span tag. Any ideas, how can I reach the div through the span... | jquery | [5] |
572,520 | 572,521 | parallelly execute blocking calls in python | <p>I need to do a blocking xmlrpc call from my python script to several physical server simultaneously and perform actions based on response from each server independently.
To explain in detail let us assume following pseudo code</p>
<pre><code>while True:
response=call_to_server1() #blocking and takes very long t... | python | [7] |
3,528,178 | 3,528,179 | I need help designing a long running job processing server | <p>I'm about to propose a new architecture for several pieces of the system I'm working on; it's going to entail getting a lot of number crunching and data translation jobs off of tomcat, and on a more fitting platform and I need a little advice.</p>
<p>First, the way this system is currently setup: There is an AS400 ... | java | [1] |
2,295,764 | 2,295,765 | Jquery: finding element with classname stored in variable | <p>(Edited with more detail just in case someone else has a similar question)</p>
<p>I've got an image map which needs to reveal a div on rollover of a hotspot. I've given my areas on the image map classes, and using jQuery want to reveal it's corresponding div, e.g.,</p>
<p><code>area shape="rect" coords="601,31,723... | jquery | [5] |
1,389,216 | 1,389,217 | Selector in Javascript | <p>I am facing problem : In xml file there are two node with same name e.g.</p>
<p>Xml file :</p>
<pre><code><main>
<aaa> XXXX </aaa>
<bbb> XXXX </bbb>
<aaa> XXXx </aaa>
</main>
</code></pre>
<p>On traversing whole xml file... i m using
where l_item.node gets value 'a... | javascript | [3] |
2,289,102 | 2,289,103 | In Android, media player not working | <p>The media player is not working when I try the following: </p>
<pre><code> player=MediaPlayer.create(this, R.raw.mh);
player.start();
</code></pre>
<p>I receive this error:</p>
<blockquote>
<p>The method create(Context, int) in the
type MediaPlayer is not applicable for
the argument... | android | [4] |
3,459,936 | 3,459,937 | iPhone: UITableView delegate is alive after viewController was released | <p>My ViewController1 pushes ViewController2</p>
<pre><code>ViewController2 *controller =
[[ViewController2 alloc] init];
[self.navigationController pushViewController:controller
animated:NO];
[controller release];
</code></pre>
<p>ViewController2 has UITableView ... in xib file I connected delegate with File... | iphone | [8] |
2,704,468 | 2,704,469 | Dump method c#, plug in needed? | <p>I have seen Object.Dump() method where you can see the object created in the bottom of of the Visual Studio after running. Does anybody know what plug-in I need?</p>
| c# | [0] |
4,729,579 | 4,729,580 | Java executes "if" block when condition is demonstrably false | <p><img src="http://i.stack.imgur.com/qGJtM.png" alt="Screen shot of my problem."></p>
<p>This pretty much says it all. <code>paneNum</code> is 0. Test for <code>paneNum < 0</code> is apparently <code>true</code> since the instruction pointer is inside the if-block, and the function returns <code>false</code>.</p>
... | java | [1] |
389,813 | 389,814 | Live Online Editor (Google Wave in Simple) | <p>Is there any free ad-hoc live meeting online editor (I think it would be AJAX/Javascript based) where I can share a URL with a friend and edit the same text online (live).</p>
| javascript | [3] |
2,271,047 | 2,271,048 | Javascript: push an entire list? | <p>Is there a built in way to append one list into another like so:</p>
<pre><code>var a = [1,2,3];
a.append([4,5]);
// now a is [1,2,3,4,5];
</code></pre>
<p><code>concat()</code> does something similar but returns the result. I want something that modifies the existing list like <code>push()</code></p>
| javascript | [3] |
3,821,672 | 3,821,673 | How can i sell products through my android app (what are steps i have to follow) | <p>In my app i have several products to sell ,
if user clicks on any product it shows product details with pay button, how can i integrate paypal to that button,
i don't have good knowledge on integrating paypal please provide steps to do this.
thank you in advance.</p>
| android | [4] |
4,365,061 | 4,365,062 | Calculate fair scores for scoreboard | <p>Well, it is not fully programming related (so i hope you don't vote me down for this hehe), but i can use some advice on this one.</p>
<p>This is the situation:</p>
<ul>
<li>Math game with several "games"</li>
<li>Game 1 can get +100 (all good) or -100 (all wrong)</li>
<li><p>Game 2 can get +20 (all good) or -20 (... | c# | [0] |
2,576,069 | 2,576,070 | convert associative array to array of objects | <p>How do I convert an array of arrays into an array of objects? </p>
<pre><code>$a = blah // an array of arrays;
$b= (object) array( $a);
print_r($b); //prints an object of an array of arrays
</code></pre>
| php | [2] |
2,038,643 | 2,038,644 | Remove element from html string (What is wrong with this script) | <pre><code>script = "<div><p>sss</p></div>";
$(script).find('p').remove();
console.log($(script));
</code></pre>
<p>I want to remove the p element from script
Why the p element still available?</p>
| jquery | [5] |
740,638 | 740,639 | What is the shortest way to get argument passed into program? | <p>What is the shortest way to get argument passed into program. Shortest = at least count of characters. I need it because i do puzzles that requires arguments and it repeats in every puzzle. I use now <code>import sys</code>, but i'm not sure if it's shortest way.</p>
<pre><code>import sys
a = sys.argv[1]
</code></p... | python | [7] |
5,041,081 | 5,041,082 | How to read Email | <p>I have a question. I must create a program with a service in backgroud, to control inbox emails and if an email comes from a defined address I do something. Can you help me? I don't find any guide to read emails.</p>
| android | [4] |
2,117,085 | 2,117,086 | EOD not ending? | <p><img src="http://i.stack.imgur.com/cs5fw.jpg" alt="alt text"></p>
<pre><code><?php
// Page class
class Page {
// Declare a class member variable
var $page;
var $title;
var $year;
var $copyright;
// The Constructor function
function Page($title, $year, $copyright){
// Assign values to member variables
$this-&... | php | [2] |
5,446,205 | 5,446,206 | Hide on body click exept item id = something | <p>How do I hide the menu except if the user clicked on element with ID = 'menubutton'?</p>
<pre><code>$('body').click(function(event) {
$('#menu').hide();
});
</code></pre>
| javascript | [3] |
879,155 | 879,156 | php strpos special characters | <p>I'm using PHP Version 5.1.6</p>
<p>I have a string (session file) and need to extract a value from it, so i'm searching for a needle in the string but it returns false, I reduced the code to this:</p>
<pre><code>$string = ';SERVER_NAME|s:17:"stackoverflow.com";REMOTE_ADDR|s:13:"69.59.196.211";';
$start = strpos($s... | php | [2] |
3,957,428 | 3,957,429 | Ensure valid data or protect against invalid data? Both? | <p>I would like to know, in a practical sense, on a large scale (Java - my case)project is it better to just code defensive logic to protect against invalid data in the DB or just take the time to go through and make sure that you don't accept any invalid data? Remember, the issue here is that there are many cases wher... | java | [1] |
1,470,827 | 1,470,828 | Setting a tables width in javascript has a different value when logging in than page refresh | <p>Our web application as a lot of javascript so I cant upload all the code but I'm
wondering if someone
might have an idea on my problem. I'm just looking for possible causes so I can
investigate it.</p>
<p>When I login I am taken to a page with several components on it. One of the
components is a table and sets its ... | javascript | [3] |
867,446 | 867,447 | Python not returning expected value | <p>I simply cannot understand what is happening here. The problem is important for my homework (studying programming so I'm a beginner... also my English is not that good, sorry).</p>
<p>I am trying to read a string... it can be either a number or a set number of commands.<br>
I'll just give a very small example of wh... | python | [7] |
3,168,048 | 3,168,049 | find the neighbouring states around the agent | <p>I need to find the states that are next to my pacman agent. The current state is Tuple(3,5) which is given by numPos.</p>
<p>I need to check the position that are around the pacman agent. I want to find the neighbouring states so that i can check it with the ghosts states and if they matches, that means , a ghost ... | python | [7] |
905,153 | 905,154 | display html content in div | <p>How to display html content </p>
<pre><code> <script type="text/javascript">
function replaceContent(show) {
var display = new Array();
display[1] = 1.html;
display[2] = 2.html;
document.getElementById("ShowItems").innerHTML = display[show];
}
</script>... | javascript | [3] |
1,731,813 | 1,731,814 | How do you add an element into the last place inside a DIV with jQuery? | <p>If I have a div like this:</p>
<pre><code><div id="a">
<div id="a1">...</div>
<div id="a2">...</div>
<div id="a3">...</div>
</div>
</code></pre>
<p>How do I add another div into the last position inside <code>#a</code> using jQuery?</p>
<pre><code> &l... | jquery | [5] |
2,048,689 | 2,048,690 | Submit form with jQuery not working? | <p>I have a form looking like: </p>
<pre><code><form action="/Soeg.aspx" method="GET" id="searchFormHeader"></form>
</code></pre>
<p>In the code further down, I have a submit button, the form is triggered by the form=""
However, that isnt supported by IE, and then i've tried making a solution in jQuery fo... | jquery | [5] |
3,981,154 | 3,981,155 | g++ cannot find header file | <p>I am migrating from Java to C++. It seems that C++ makes classes declaration in separate files, difficult. So I need your help,</p>
<p>in my main.cpp:</p>
<pre><code>#include "Sphere.h"
using namespace std;
.....
...
..
int main( void ) {
Sphere *earth = new Sphere(sphere_start ,sphere_end);
...
..
.
</code><... | c++ | [6] |
3,662,948 | 3,662,949 | why three quotation coming in fopen, """aaaa""","""bbb""" | <p>it is an example of fopen</p>
<pre><code><?php
$list = array (
array('aaa', 'bbb', 'ccc', 'dddd'),
array('123', '456', '789'),
array('"aaaa"', '"bbb"')
);
$fp = fopen('file.csv', 'w');
foreach ($list as $fields) {
fputcsv($fp, $fields);
}
fclose($fp);
?>
</code></pre>
<p>it's output is</p... | php | [2] |
3,312,014 | 3,312,015 | With compiling android platform, why doesn't generate init.rc in out/target/product/vendorxxx/root/ | <p>As title descripted, I add a new device in android platform. But, after compilation, init.rc doesn't be generated @out/target/product/vendor_xxx/root</p>
<p>Why? is my wrong with setting in BoardConfig.mk or AndroidProducts.mk? </p>
| android | [4] |
5,240,198 | 5,240,199 | sys.exit() does not terminate my program | <p>I want to exit a Python script if my try succeeds. My code just doesn't exit and continues to execute the rest of the script.</p>
<p>If I run <code>python myscript.py --help</code>, I need the script to exit. If I run <code>python myscript.py</code> I need do execute the <code>except</code> part.</p>
<pre><code>tr... | python | [7] |
4,252,289 | 4,252,290 | Using drawRect, setNeedsDisplay and layoutSubViews | <p>Is there any ground rule for using methods like drawRect, setNeedsDisplay and layoutSubViews?
I believe they adversely affect the app performance. Is there any preferred alternatives for these messages?</p>
| iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.