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 |
|---|---|---|---|---|---|
5,942,544 | 5,942,545 | Why does this JSON.parse return error: "unexpected token illegal"? | <p>I'm using an AJAX request. This is the first time I'm using JSON or any of it's methods. The ajax utility returns an argument to the onreadystatechange callback as the responseText or responseXML of the file I'm requesting. Using a simple <code>info.txt</code> and <code>request.responseText</code> will work fine but... | javascript | [3] |
2,232,946 | 2,232,947 | Purpose & Tutorial for how we make customized usage of `std::iterator` | <pre><code>class MainClass
{
class EmbeddedClass
{...};
class const_iterator
: public std::iterator<std::random_access_iterator_tag, EmbeddedClass>
{...}
class iterator: public const_iterator
{...};
};
</code></pre>
<p>I have seen the above design in a legacy project.</p>
<... | c++ | [6] |
3,475,016 | 3,475,017 | callback causing memory leak | <pre><code>Model.GetData(function (args,jsonData) {
RenderData(jsonData);
});
</code></pre>
<p>I am passing a callback to my model class, </p>
<pre><code>var Model = (function () {
function GetData(args,callback) {
// do all math works.
var HTTPClient;
HTTPClient.onload = function () {... | javascript | [3] |
2,030,799 | 2,030,800 | DIV width immediately after append is calculating wrong? | <p>In the script I'm working on, I'm appending markup for a feedback form to the body and then centering that element (a DIV) on screen with jQuery. In the code sample below, form_code holds my form markup. The defined CSS styles for #feedback_form explicitly define a width. However, the calculation for width() called ... | jquery | [5] |
3,109,116 | 3,109,117 | Programming voicemail in Android | <p>Is it possible to program my voicemail box in Android using Android SDK or NDK.</p>
<p>What I want to know is that if someone calls me and I am busy on another line. Can I direct their call to some app that gives them some sort of IVR menu to choose from ?</p>
<p>Thanks in advance.</p>
| android | [4] |
1,078,754 | 1,078,755 | How to make code compatible for both IOS 5 and IOS 4 [iphone] | <p>I am on a new project. I want my code compatible to be for both IOS4 and IOS5 SDKs. I need all my functionalities work both in IOS4 and IOS5. That said, i am not planning to use new features in IOS5 (feature wise) and disable that feature for IOS4.</p>
<p>I have 2 options. Let me know which is best ?</p>
<ol>
<li>... | iphone | [8] |
3,487,247 | 3,487,248 | Not getting exact result in python with the values leading zero. Please tell me what is going on there | <blockquote>
<blockquote>
<blockquote>
<p>zipcode = 02132</p>
<p>print zipcode</p>
</blockquote>
</blockquote>
</blockquote>
<p>result = 1114</p>
| python | [7] |
5,761,443 | 5,761,444 | Uncaught SyntaxError: Unexpected end of input - Javascript error | <p>I get this error when i try to call this function in Chrome 16.0.912.77 m:</p>
<pre><code>function fade(e){
if(op > 0){
op -= 0.01;
document.getElementById(e).style.opacity = op;
window.setTimeout("fade(\""+e+")\"", 10);
}
}
</code></pre>
<p>It's a simple function which fade a el... | javascript | [3] |
1,131,574 | 1,131,575 | Initialization list on different subclasses | <p>I've got a large, abstract, class <code>InfoBase</code> with lots of properties. Then there are a few subclasses, which have a handful of properties. I will recieve an object with information to instansiate a subclass object of <code>InfoBase</code> which will then be returned, something like this:</p>
<pre><code>p... | c# | [0] |
2,814,940 | 2,814,941 | 2D Arrays: Retreiving Row/Column And Not Value | <p>Simply as my title states, I'm wishing to compare an array with itself, so it doesn't process a certain body of code unless the coordinates are different. For example:</p>
<pre><code>if (one [a][b] == two [c][d])
{
//Do Nothing
}
else
{
System.out.println(one [a][b]);
}
</code></pre>
<p>What I want to d... | java | [1] |
2,250,131 | 2,250,132 | Download apk and start install prompt inside android application | <p>I'm building a private enterprise Android application. My goal is to detect when there is update available and offer user to download it. If user choose to download update file is downloaded and android app install prompt is showed.</p>
<p>I successfully check for update, the problem is that apk file is not downloa... | android | [4] |
3,376,929 | 3,376,930 | spatial index for lines | <p>I have lots of line segments (that represent various surfaces such as walls, ceilings and floors). I want to efficiently determine which lines are within the player's bounding box.</p>
<p>(Right now I'm cycling through all lines, and whilst correct, it is proving much too slow).</p>
<p>There are several kd-tree a... | javascript | [3] |
4,504,415 | 4,504,416 | dotx (Word Template) file manipulation using ASP.Net | <p>I have a <strong>dotx</strong> file which contains placeholders to be replaced with DB values including Image place-holders.</p>
<p>Should I convert <strong>dotx</strong> file to <strong>docx</strong> first and then replace the placeholders in my .net application?</p>
<p>Or there is some other way to do same.</p>
... | asp.net | [9] |
4,677,787 | 4,677,788 | How to create chart with the crystal reports in ASP.Net? | <p>How to create chart with the crystal report in asp.net.</p>
<p>Please reply.........</p>
<p>Regards,
Hrishi</p>
| asp.net | [9] |
4,380,943 | 4,380,944 | C++ assignment operator associativity | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points">Undefined Behavior and Sequence Points</a> </p>
</blockquote>
<p>after the following c++ code, the array a contains: 0, 1, 2, 3, 4</p>
<pre><code>int a[5] = {0,1... | c++ | [6] |
5,656,346 | 5,656,347 | Binary utilities for Android | <p><code>busybox</code> provides some, but not all, useful binary utilities for Android. For example, there are no <code>pstree</code> or <code>file</code>. To use these utilities, one must cross-compile them with ARM as target. </p>
<p>Question:</p>
<ol>
<li><p>Are there any other sources of Android binary utilities... | android | [4] |
4,758,130 | 4,758,131 | Difference between pass-by-reference & and *? | <p>What is the difference between passing-by-reference and using the C pointer notation?</p>
<p><code>void some_function(some_type& param)</code></p>
<p>and</p>
<p><code>void some_function(some_type *param)</code></p>
<p>Thanks</p>
| c++ | [6] |
4,127,705 | 4,127,706 | jQuery: How do you pass $(this) as function parameter? | <p>All jQuery examples I see has in-line functions.</p>
<p>If the function is pretty long, or if the function is reusable, I may want to separate the function.</p>
<p>For example, how can I turn this</p>
<pre><code>$('#myElement').click(function(){
$(this).addCss('clicked');
})
</code></pre>
<p>into something lik... | jquery | [5] |
1,755,525 | 1,755,526 | i have java code and i wont to find the defect in it & this is the code | <pre><code>package com.foobar;
import java.lang.String;
import java.util.*;
/**
* An example program for an application suitte.
*
* @since 1.1.1
* @author Richard Torkar
* @author
* @throws NullPointerExceptions These are of course thrown throughout the code.
*/
public class Example extends Object {
sta... | java | [1] |
818,914 | 818,915 | error with mainactivity.java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8498869/r-cannot-be-resolved-to-a-variable-hello-world">R cannot be resolved to a variable - Hello World</a> </p>
</blockquote>
<p>I was developing my first app but get stuck on <code>mainactivity.java</code>.</... | android | [4] |
5,151,048 | 5,151,049 | What is the fastest way to copy a double[] in Java? | <p>Simple question, what's the fastest way of copying an array of doubles in Java. I currently do this...</p>
<pre><code>public static double[] clone_doubles(double[] from)
{
double[] to = new double[from.length];
for (int i = 0; i < from.length; i++) to[i] = from[i];
return to;
}
</code></pre>
<p>whi... | java | [1] |
480,669 | 480,670 | Why reading Floating point number from file gives rounded output? | <p>i have a file and two inputs are shown below:</p>
<blockquote>
<p>34.800287000 0.077352000</p>
</blockquote>
<p>i'm reading from a file(by getline then define stringstream) and saving it in my class variables which are both defined <strong>double</strong>. However
when i check my variables i see that:</p>
<blo... | c++ | [6] |
395,186 | 395,187 | when we will use user control? | <p>when and where we will use user control ? actually i want to ask it's best practices.</p>
<p>i have read on msdn about user control there it was written .</p>
<p>At times, you might need functionality in a control that is not provided by the built-in ASP.NET Web server controls. In those cases, you can create your... | asp.net | [9] |
1,852,602 | 1,852,603 | How To Validate X Days Before D-Day? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php">How to calculate the difference between two dates using PHP?</a> </p>
</blockquote>
<p>Let's say I have given date like this :</p>
<pre><code>... | php | [2] |
4,296,478 | 4,296,479 | Using OnClick Listener in Listview | <p>I want to be notified when an item in a listview has been clicked , I have a main activity that has a ListView , I want to be notified when an Item in a this list has been Clicked , I did not override main activity to ListActivity .</p>
| android | [4] |
2,408,066 | 2,408,067 | Control scrolling DIV with keyboard | <p>I have a div that contains a table that has many rows in it. The scrollbar displays correctly and works correctly when using the mouse. However, in an effort to make it keyboard driven I have made the div have focus and then being able to use the arrow keys (via a onKeyPress event I am able to move up and down the... | javascript | [3] |
2,210,072 | 2,210,073 | Invalid Postback occurring? | <p>I keep getting this error:</p>
<blockquote>
<p>Invalid postback or callback argument. Event validation is enabled
using in configuration or <%@
Page EnableEventValidation="true" %> in a page. For security
purposes, this feature verifies that arguments to postback or callback
events originate from th... | asp.net | [9] |
2,380,368 | 2,380,369 | Identical Javascript code works in separate file | <p>So I was beating my head against a wall, again and again, trying to find the error in my complex code. Finally, with nothing else to do, I copied and pasted the code into another file and called it code2.js and linked my hmtl file to this code. Suddenly, it works. Any ideas? It wasn't even the entire code went from ... | javascript | [3] |
774,353 | 774,354 | Python: How can I run python functions in parallel? | <p>I researched first and couldn't find an answer to my question. I am trying to run multiple functions in parallel in Python.</p>
<p>I have something like this:</p>
<pre><code>files.py
import common #common is a util class that handles all the IO stuff
dir1 = 'C:\folder1'
dir2 = 'C:\folder2'
filename = 'test.txt'
... | python | [7] |
5,670,086 | 5,670,087 | Getting information from the battery usage indicator | <p>What I would like to do is get the data from the built in battery usage indicator screen in Android. This is the screen that displays what has been using battery life in percentages, such as display, cell standby, wifi etc.</p>
<p>I've searched through the Android developer site and can't seem to find any informati... | android | [4] |
2,284,611 | 2,284,612 | what will be the result of atoi (argv[1])? | <p>I just want to know that what will these line actually do.</p>
<pre><code> int main(int argc, char *argv[])
</code></pre>
<p>And especially this one.</p>
<pre><code> int n = atoi (argv[1]);
</code></pre>
<p>I read this from a book but i cannot understand these line.</p>
| c++ | [6] |
1,787,978 | 1,787,979 | using python 2.7 : sh: -c: line 0: syntax error near unexpected token `(' | <p>Python 2.7</p>
<p>I am getting the following error message. Not clear as to why this is. I have searched and no luck. Fairly basic script. Has worked across all our windows environments</p>
<pre><code>#!/usr/bin/env python
import os
import time
import subprocess
import platform
#Log Files
source = ['"/home/data... | python | [7] |
3,302,302 | 3,302,303 | Python within python | <p>I have two python scripts. First python script calls second. But seconds python script should use one variable from first script to give desired result. I know I can just writes those few codes in second script to first one simply. But I am curious how to do this on this way.
Tnx.</p>
| python | [7] |
1,848,680 | 1,848,681 | How to get the most recent National Weather Service radar images? | <p>I am trying to get the most recent NWS radar images using c#. There are <a href="http://radar.weather.gov/ridge/RadarImg/NCR/OKX/?C=M;O=D" rel="nofollow">directories</a> on the NWS website that contain a list of the most recent images. However, the files are named by the date uploaded, not in numerical order. They a... | c# | [0] |
3,591,181 | 3,591,182 | Android non-root lock replacement | <p>Let me begin by saying that, yes, I know that the stock Android lock screen can not be programatically replaced without rooting. </p>
<p>Now that that's over with, I want to make an app that contains a custom 'lock' mechanism. There are apps out there that emulate this functionality, namely LockGo. This allows a us... | android | [4] |
3,241,859 | 3,241,860 | Is Android Context thread safe? | <p>When I use the Android Context within an AsyncTask#doInBackground, is it thread safe? The context is provided via constructor or via getApplicationContext() from a surrounding Activity. This simple questions is asked a lot at stackoverflow and else where but I found not a clear answer?</p>
<p>E.g. in the doInBackgr... | android | [4] |
1,750,866 | 1,750,867 | removeData causing the value to revert to the value of | <p>According to the <a href="http://api.jquery.com/removeData/" rel="nofollow">documentation</a>, .removeData() will cause the value of the property being removed to revert to the value of the data attribute of the same name in the DOM.</p>
<p>Q: What does that mean?</p>
| jquery | [5] |
2,961,593 | 2,961,594 | line breaks (enter pressed) inside tags? | <p>I have a div editablecontent, which has the following code</p>
<pre><code><span id="id1">Hello </span>
<span id="id2">there </span>
<span id="id3">how </span>
<span id="id4">are </span>
<span id="id5">you? </span>
</code></pre>
<p>Now the thing is when cu... | jquery | [5] |
1,054,547 | 1,054,548 | What's a good online source for learning java | <p>I always wanted to be able to program. But I never knew where to began, so any book's, videos or lessons I can start with.</p>
| java | [1] |
3,255,068 | 3,255,069 | Extracting the a value from a tuple when the other values are unused | <p>I have a tuple <code>foo</code> which contains something I don't care about and something I do.</p>
<pre><code>foo = (something_i_dont_need, something_i_need)
</code></pre>
<p>Is it more correct to use</p>
<pre><code>_, x = foo
</code></pre>
<p>or </p>
<pre><code>x = foo[1]
</code></pre>
<p>The only things I c... | python | [7] |
2,161,775 | 2,161,776 | Order a variable to display from the highest to lowest value | <p>my code below will echo the position of the user if the number($nm) fall
between the range so let say i have $nm = (10,4,3,3,1) respectively the position will be (staff,staff,staff,marketer,staff) instead of (marketer,staff,staff,staff,staff) how can i arrange so that marketer come first (marketer,staff,staff,staff,... | php | [2] |
2,028,308 | 2,028,309 | Remove html table rows after 2nd row | <p>how remove html table rows after 2nd row?
if in table have 5 row, 1 and 2 are safe, 3,4,5 must be remove </p>
| jquery | [5] |
1,729,868 | 1,729,869 | Swipe Pages in Android | <p>I have a question that I want to Swipe Screens with touch in Horizontal Manner with Many Pages. Means the background of all these pages are same but Pages over that are different. Same as the WallPaper Screen of any Android Phone which is horizontal Scrollable and Pages are different. How to implement this in our pr... | android | [4] |
4,194,888 | 4,194,889 | iPhone - increase UIImageView size and keep the image size fixed | <p>I have a custom UIImageView class which I use to handle multi-touch events on the UIImageView. When the user touch begins, I want to increase the UIImageView's frame but keep the UIImage size fixed.</p>
<p>I tried changing the UIImageView's frame and then calling the drawInRect: method of UIImage to keep the UIImag... | iphone | [8] |
2,425,626 | 2,425,627 | not able to change name after copying a form | <p>I'm trying to copy and past a form within a project using Visual Studio. </p>
<p>I've managed to copy and past the form (right clicking in the Solution explorer > Copy; Right click again paste) I can change the name of the new form in the Solution explorer. But when I select the form [Design] I can't change the nam... | c# | [0] |
2,297,230 | 2,297,231 | iPhone trying to phrase a php file return from my web service | <p>I have made up a simple set of web services (trying to make a super simple chat server) that return a string. I cannot figure out a easy way to phrase the string using the NSString class.
the string looks something like</p>
<p>start user
tedpottel
fred
Oreo<br>
end user
start comments
hello today how are you
say w... | iphone | [8] |
163,749 | 163,750 | Why do we use Object as a synchonized lock? | <p>Does it provide any benefit over using lock on String etc?</p>
<pre><code>private Object lock = new Object();
private String lock = new String();
</code></pre>
| java | [1] |
5,066,121 | 5,066,122 | How can Data will show dynamically on the pages | <p>In my database there is a table where every time multiple records will come.I have a screen where I have to show all the data,means first row display in first page second row data will display on second page,so how can I do this.how can I show page dynamically.In my page there is are so many images and I am taking t... | android | [4] |
1,625,460 | 1,625,461 | About NSPredicate in Core Data Fetch | <p>I have two entities, User & Message.</p>
<ul>
<li>Message has a created_at timestamp;</li>
<li>Message has a sender[to one relationship with User];</li>
<li>User has a sentMessages[to many relationship with Message];</li>
</ul>
<p>However I want to fetch all users who have sent any messages and with their late... | iphone | [8] |
5,299,553 | 5,299,554 | Javascript Regexp for Amount | <p>Strugling with trying to do the following without having to write a complex regexp:</p>
<p>I want the following inputs only:
Numbers, commas (,) and Period (.)</p>
<p>Example</p>
<ul>
<li><strong>123.123.101.45,00</strong> </li>
<li><strong>1.0</strong> </li>
<li><strong>1,00</strong> </li>
<li><strong>5</... | javascript | [3] |
1,800,329 | 1,800,330 | Unexpected Results When Comparing getString() Return Values | <p>I am facing a problem is that the if statement which I am coding is producing wrong results and can't compare two results:</p>
<p>My code is:</p>
<p><code>temp_code</code> has value <code>130</code> and <code>rs.getString(employee_id)</code> has value <code>130</code> also</p>
<pre><code>String temp_code = rs.get... | java | [1] |
1,448,223 | 1,448,224 | How to set the UIBarButtonItem color | <p>I want to Change the UIBarButtonItem Color,
which is the sub view of UIToolBar,</p>
<p>My problem is if i change the toolber tint color , the barbuttonitems color are changing automatically ,how can i differ them...</p>
| iphone | [8] |
1,951,453 | 1,951,454 | read android dmesg with code | <p>How can I read dmesg output in my program?</p>
<p>Thanks..</p>
| android | [4] |
983,387 | 983,388 | Web-view full-screen mode | <p>i have set swf file in <code>webview</code> i got everything is successfully but when i long press it give me option of full-screen so i need to avoid it how can i do that ?? </p>
<p><strong>here i have attach image :</strong> </p>
<p><img src="http://i.stack.imgur.com/g8sYC.png" alt="enter image description here... | android | [4] |
2,208,922 | 2,208,923 | Detect when a fragment is drawn? | <p>Basically I need the functionality of OnWindowFocusChanged but on a fragment. The onWindowFocusChanged listener isn't actually available to fragments unfortunately, so I'm not sure what to do.</p>
<p>Any way to do this?</p>
| android | [4] |
2,442,556 | 2,442,557 | C# NullReferenceException unhandled (with string array) | <p>I have the following code:</p>
<pre><code>string[] buttons = new buttons[5];
int j = 0;
while (j<5)
{
buttons[j] = pullString(node);
j++;
}
</code></pre>
<p>However I get a NullReferenceException unhandled error pointing to the first line of the code inside the while block. Please explai... | c# | [0] |
4,858,802 | 4,858,803 | How to require non-blank text on an Alert Input Dialog | <p>I would like to retrieve user input via an Alert Dialog... is there any way to make it so that the user cannot press Ok if the EditText is blank? I mean require that he type something in?</p>
| android | [4] |
3,980,246 | 3,980,247 | Removing redundancy when adding items to Python dictionaries | <p>Suppose you have a dictionary like:</p>
<pre><code>my_dict = {'foo' : {'bar' : {}}}
</code></pre>
<p>And you want to make the following sequence of assignments:</p>
<pre><code>my_dict['foo']['bar']['first'] = 1
my_dict['foo']['bar']['second'] = 2
</code></pre>
<p>Clearly there is some redundancy in the fact that... | python | [7] |
1,356,308 | 1,356,309 | Use jQuery to add scripts to the Head of a document | <p>I am looking for a way (using jQuery) that I can add other scripts into the head of a document.</p>
<p>The reason I need to do this is because when building a "template" for a certain web design application I am only allowed to insert 1 js file into the head of the document.</p>
<p>Some features that I would like ... | jquery | [5] |
7,822 | 7,823 | Casting size_t to allow more elements in a std::vector | <p>I need to store a huge number of elements in a <code>std::vector</code> (more that the 2^32-1 allowed by unsigned int) in 32 bits. As far as I know this quantity is limited by the <code>std::size_t</code> unsigned int type. May I change this <code>std::size_t</code> by casting to an <code>unsigned long</code>? Would... | c++ | [6] |
1,250,886 | 1,250,887 | Object Literals In Java? | <p>I am learning GWT for web development and came across a piece of code I can't really understand.</p>
<pre><code>helloBtn.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
Window.alert("Hello!");
}
});
</code></pre>
<p>If someone could explain to me what it is doing that w... | java | [1] |
4,656,316 | 4,656,317 | Launching activity from the status bar creates new activity even when one already exists | <p>I have an activity that starts a long-running service which in turn adds an icon to the status bar. When the activity gets invisible, e.g. by pressing the Home button, and the pressing the icon in the status bar a new activity is created instead of showing the already created activity. If you now press the back butt... | android | [4] |
5,120,953 | 5,120,954 | C++ - Why static member function can't be created with 'const' qualifier | <p>Today I got a problem. I am in the need of a static member function, const is not a must but a better. But, I didn't succeed in my efforts. Can anybody say why or how?</p>
| c++ | [6] |
462,697 | 462,698 | Add Pdf file to Resource using Code C# | <p>Is there any way to add a file to an application's resources using code (not the visual designer)? I've tried the <code>ResourceWriter</code> class but it doesn't do what I want.</p>
| c# | [0] |
4,244,016 | 4,244,017 | how to create sqlite database or table from text file saved in sd card in android? | <p>I have text file in sd card, In that First line contain column name for tables and rest of the lines contains values for the columns. Each line separated by /n, and each item separated by |. By using this i have to create a table in my database.</p>
| android | [4] |
1,724,202 | 1,724,203 | Android: Adding Activity to the menu on the homescreen | <p>I'm trying to add my Android activity to the menu on the homescreen (the one with: add, wallpaper, settings, search, notifications).</p>
<p>I suspect this is done from the AndroidManifest.xml, but I can't figure out how.</p>
<p>Am I looking at the right place? And if so, what am I missing?</p>
| android | [4] |
2,592,121 | 2,592,122 | Monitor class in Java | <p>I want to know about <code>Monitor</code> class in Java.</p>
<p>What is it used for, where is it used?</p>
| java | [1] |
1,924,810 | 1,924,811 | Parentheses around data type? | <p>I am a beginning programmer and came across this in my textbook:</p>
<pre><code>public boolean equals(DataElement otherElement)
{
IntElement temp = (IntElement) otherElement;
return (num == temp.num);
}
</code></pre>
<p><code>IntElement</code> is a subclass of <code>DataElement</code>. <code>nu... | java | [1] |
4,596,791 | 4,596,792 | functionname.arguments not working in Mozilla | <p>I have function works perfect in IE but not in mozilla.</p>
<pre><code>function showhide()
{
alert("test");
var args=showhide.arguments;
alert("1"+args);
for (i=0; i<(args.length); i=i+2)
{
alert("2"+args);
eval(args[i]+".style.display='"+args[i+1]+"'");
}
alert("3"+args);
}
</code></pre>
<p>I get a... | javascript | [3] |
3,417,340 | 3,417,341 | How to check if an object is an instance of a NodeList in IE? | <p>Why is NodeList undefined in IE6/7?</p>
<pre><code><form action="/" method="post" id="testform">
<input type="checkbox" name="foobar[]" value="1" id="" />
<input type="checkbox" name="foobar[]" value="2" id="" />
<input type="checkbox" name="foobar[]" value="3" id="" />
</... | javascript | [3] |
1,482,258 | 1,482,259 | how to increase the progress bar value based on validations | <p>Hello i have the code like following..
In this i have validations... i used progress bar also.. for every validation if it is true then the progress bar value should increase by 10..if validation not performed well then the progress bar value should be at the same state..how to achieve this.. plz help me</p>
<p>Tha... | jquery | [5] |
605,664 | 605,665 | How can I accept multiple classes for one function argument? | <p>Say I have two classes, ClassA and ClassB.</p>
<p>ClassB inherits ClassA, and has some additional functions and variables.</p>
<p>Is it possible for me to make a function that can accept either ClassA or ClassB as the same argument, and let me determine which one was used?</p>
| c++ | [6] |
2,274,595 | 2,274,596 | iPhone app - Review guidelines - Contest rules | <p>i've just had my iPhone app rejected on the 20.2 statement of the Review Guidelines:</p>
<p>Official rules for sweepstakes and contests, must be presented in the app and make it clear that Apple is not a sponsor or involved in the activity in any manner</p>
<p>Now, I have a problem. In my app I will have more than... | iphone | [8] |
3,562,064 | 3,562,065 | Exporting File from Google results to local machine | <p>I am a java developer. I want to know that if there is anyway in JAVA by which I can export files from google results to my local machine. What I tend to do is that Search something in google and if the page searched contains a file, I want to store that file on my local machine. This whole process should happen via... | java | [1] |
498,592 | 498,593 | Where is the specification that defines this behavior for InputStreamReader? | <p>Considering the below code for an exercise problem, where is the specification that says roughly: "Upon the call to readTokens(), wait for the user to press carriage return and then continue execution."</p>
<p>I'm not fully understanding why my code works, why does the program pause after "Enter Data: " is displaye... | java | [1] |
5,330,678 | 5,330,679 | How to find out who the ROM provider is? | <p>I have an automatic bug reporting facility in my app that includes useful information for debugging. </p>
<p>One thing that I would like to include is the ROM provider. In particular I would like to know if the user is running a custom ROM and which, preferably even with the version number.</p>
<p>Any idea how to ... | android | [4] |
4,323,349 | 4,323,350 | ihow to acees random items from an array and then put them in another array in iphone sdk? | <p>i have a problem i have an array which has ten items "one" to "ten"
i want to get randon items from this array and put them in a new array which can display the random items </p>
| iphone | [8] |
5,282,873 | 5,282,874 | Read first half of file contents and echo and then the second half | <p>I have a text file that lists the name of a track then after a double space the artist is listed. In order for me to fetch the album art from Last.fm I have to have both the title and artist in the the URL like <code>http://ws.audioscrobbler.com/2.0/?method=track.getinfo&track=TRACK TITLE&artist=ARTIST</code... | php | [2] |
4,303,664 | 4,303,665 | Can I control different progressbars for different ajax events? | <p>I have a form with two places that use ajax to submit the information to server.</p>
<pre><code> $("#loading img").ajaxStart(function(){ // this progress bar is used by both ajax submission.
$(this).show();
}).ajaxStop(function(){
$(this).hide();
});
<div id="loading">
<img src="loading4.gif" bor... | jquery | [5] |
5,379,122 | 5,379,123 | substring with while loop | <p>I want to read a text from a file. Every line should be split at 180 characters and then each line should be added to a table, but I get the error message "String index out of range -180".</p>
<pre><code>import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class ReadAndWrite... | java | [1] |
3,728,732 | 3,728,733 | Python: Performance test, ensuring cleanup | <p>I am executing some performance tests on a messaging framework within python, and I am trying to make sure that the code is properly cleaning up after itself.</p>
<p>Is there a way to monitor the current number of threads owned by the process? Is there a better way to tell if I am leaking threads?</p>
<hr>
<p>Ju... | python | [7] |
3,827,817 | 3,827,818 | How to specify each DataTable in each Row in Datagridview | <h2> Dt0</h2>
<h2>DT1 | Dt1</h2>
<pre><code>Dt2 | Dt2| Dt3|
</code></pre>
<p>I want them to arranged like this.All are from Different DataTable.Specifying each Row values.
How can i achieve this.</p>
| c# | [0] |
3,314,641 | 3,314,642 | Input a comma after every 10 digit in Javascript? | <p>I put 10 digit mobile numbers in a Textarea like the follwoing.
242452354643663463636346366363463636365636363634656346
but i need to put comma(,) after every 10 digit number.</p>
| javascript | [3] |
1,770,789 | 1,770,790 | how to put clickable image jframe | <p>i want to add icons in jframe which does some action while click like buttons. </p>
| java | [1] |
4,452,161 | 4,452,162 | getting error while installing PHP SDO.dll? | <p>I am installing SDO.dll for PHP in to my machine, i am getting following error:</p>
<p><img src="http://i.stack.imgur.com/CGDk6.jpg" alt="enter image description here"></p>
<p>Please help me .
thanks in advance.. </p>
| php | [2] |
3,049,439 | 3,049,440 | Best way to programmatically parse and transform ASP.NET Webform pages? | <p>I need to programmatically parse and transform ASP.NET webform pages. It's a requirement that I have =(.</p>
<p>Anyone know any tools or frameworks?</p>
<p>Update:</p>
<p>I just need to modify ASPX pages (not rendered HTML code).</p>
<p>There are no inline c# code.</p>
| asp.net | [9] |
1,538,068 | 1,538,069 | How to send data from iphone to MAC/PC via serial port? | <p>I'm new to these things, and have no idea how to achieve this thing.
I want to send some data from iphone to MAC/PC and also want to receive data sent from MAC to iphone.
Please help me out or give me some clue, where I can start from. </p>
| iphone | [8] |
3,923,618 | 3,923,619 | Linking a .cpp file containing a class | <p>How to do this?
I'm using a .cpp file which contains the class and all it's methods, a .hpp file which contains linked libraries.
If I want to compile a file having the main function, how to do this? Should I declare an extern class?
Can I have an example of how linking classes?</p>
<p>This is the class in the cpp ... | c++ | [6] |
1,587,890 | 1,587,891 | I want to scan 2 datum and see if it has relevancy or not | <p>So I want to scan 2 Datum, these are texts, then I will rate it if it has relevancy. </p>
<p>Example:</p>
<pre><code>Data: individual facts
Data: statistics, items of information individual facts
</code></pre>
<p>This is my JS code that will scan the whole webpage:</p>
<pre><code>var listitem, thislist;
var item... | javascript | [3] |
4,012,153 | 4,012,154 | Extract decimal or Integer from a string in php | <p>Eg:</p>
<pre><code>$str .= "Additional tax(2.34)";
$str .= "Additional tax(3)";
</code></pre>
<p>Can anyone help me up to extract the number from the string. I need an array format like this </p>
<pre><code>Array ( [0] => 2.34 [1] => 3 );
</code></pre>
| php | [2] |
1,591,724 | 1,591,725 | Get java.lang.NoSuchMethodError when running simple codes | <p>I have the following JAVA code. It compiles fine, but when I run it, I got the following error:</p>
<p>Exception in thread "main" java.lang.NoSuchMethodError: Edge.(LVertex;D)V
at Test.main(Test.java:27)</p>
<p>Any clue? Thanks in advance!</p>
<pre><code>import java.util.ArrayList;
class Vertex{
public ... | java | [1] |
4,321,980 | 4,321,981 | using jQuery to drop down menu using the tab key | <p>I have a dropdown menu that needs to drop when using the keyboard (tab key) as well as when you hover over it. I've tried everything I've found, but can't get the tab key to work. </p>
<p>I can't get the code to format right so I'm linking to it:
<a href="http://www.cameron.edu/snippets/cameron.js" rel="nofollow"... | jquery | [5] |
3,334,509 | 3,334,510 | Callback animation to begin only after ALL children have finished animating | <p>I have a div wherein I would like to fade all of the child elements out at once, but fade in a new element but only after all children have completed fading out. Using my current code below, the #Message div starts fading in after the first child element and is actually placed after the last child. Once the last c... | jquery | [5] |
4,677,209 | 4,677,210 | jQuery: value undefined | <p>i am rendering a select box using Ajax call in php and the output is coming like </p>
<pre><code> <select onchange = 'addtolist(this.val)' name='select_val' id='select_val' class= 'required'>
<option value='xzvfxcv'>xzvfxcv</option>
<option value='dfscs'>dfscs</option>
</select&... | jquery | [5] |
583,797 | 583,798 | PHP script misbehaving | <p>I have a small script that defines a variable called <code>$prPrice</code>. This script is not working in the way that I intend, as in some of the products that contain a certain department code are display prices relating to other department codes. So i assume that the way i have initially put this together is some... | php | [2] |
1,925,872 | 1,925,873 | jquery: scroll to an element within an overflowed div | <p>i have 20 list items inside of a div that can only show 5 at a time. what is a good way to scroll to item #10, and then item #20.</p>
<p>i know the height of all the items.</p>
<p>the scrollTo plugin does this, but its source is not super easy to understand without really getting into it. <strong>important -</stro... | jquery | [5] |
3,071,548 | 3,071,549 | WP Supersized & Easy Fancybox Conflict | <p>I am using WP Supersized and Easy Fancybox Wordpress plugins. Everything is works fine till the point I am not clicking the link to open a fancybox. Image is opening perfectly just having some issues with the position. Its shifting towards the left on opening up.</p>
<p>Here is the link to my demo page where I am u... | jquery | [5] |
3,853,362 | 3,853,363 | How to make Bitmap compress without change the bitmap size? | <p>I using this method to compress image </p>
<pre><code>if(bitmapObject.compress(Bitmap.CompressFormat.PNG, 100, fOut))
{
...
}
</code></pre>
<p>But that image that i get is much small ( in the dimension ) that was before the compress action. </p>
<p>My application need to send the compressed image thru the ne... | android | [4] |
2,775,555 | 2,775,556 | Python - Way to recursively find and replace string in text files | <p>I want to recursively search through a directory with subdirectories of text files and replace every occurrence of {$replace} within the files with the contents of a multi line string. How can this be achieved with python?</p>
<p><strong>[EDIT]</strong></p>
<p>So far all I have is the recursive code using os.walk ... | python | [7] |
4,768,115 | 4,768,116 | Web Navigation not working after adding access rules | <p>Hey I ran into a problem after I added authentication roles and access rules. I added folders to my website so I could set restrictions on the web pages located in those folders. I moved all the appropriate pages into the corresponding folders (admin pages into the admin folder, employee pages into the employee fol... | asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.