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,105,794 | 3,105,795 | CS0016: Could not write to output file 'c:\..\..\App_Web_XXXX.aspx..dll' -- 'The directory name is invalid. ' | <p>This problem is driving me nuts.</p>
<blockquote>
<p>CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework<64>\vX.X.XXXX\Temporary ASP.NET Files\root\XXXXXX\XXXXXX\App_Web_XXXX.aspx.XXXXXXXX.XXXXXXXX.dll' -- 'The directory name is invalid. '</p>
</blockquote>
<p>I've tried to give full ac... | asp.net | [9] |
3,477,020 | 3,477,021 | Find greatest of three values in PHP | <p>With three numbers, <code>$x</code>, <code>$y</code>, and <code>$z</code>, I use the following code to find the greatest and place it in <code>$c</code>. Is there a more efficient way to do this?</p>
<pre><code>$a = $x;
$b = $y;
$c = $z;
if ($x > $z && $y <= $x) {
$c = $x;
$a = $z;
} elseif ($... | php | [2] |
3,776,856 | 3,776,857 | Database on Android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1510840/where-does-android-emulator-store-sqlite-database">Where does Android emulator store SQLite database?</a> </p>
</blockquote>
<p>I am doing database application in android.i need to know where the data ba... | android | [4] |
3,317,106 | 3,317,107 | Stop JavaScript from truncating leading 0 | <p>I normally use the following code to get PHP variables into JavaScript:</p>
<pre><code>echo("var zipCode = " . $zipCode . ";");
</code></pre>
<p>This works fine but on zip codes that start with a 0 it is truncating it.</p>
<p>I am trying to figure out a way to keep the leading 0.</p>
<p>Any help would be great.<... | javascript | [3] |
5,019,033 | 5,019,034 | Andrioid How to cache data | <pre><code> Android How to cache the data for 2 days.
</code></pre>
<p>Thanks
Ramachandran</p>
| android | [4] |
1,699,554 | 1,699,555 | Why is this code not drawing a line? | <p>I am not sure why my code is not working but it is driving me crazy.</p>
<p>This is my class that should draw the button and creates the area to draw on:</p>
<p>The second set of code is the driver program I need to make 4 canvas's that when I make two mouse clicks it draws a line between the two clicks and then r... | java | [1] |
2,670,444 | 2,670,445 | Cryptography in java bytes to bits | <p>I wrote server and client and I would like to send some file which will be encrypted. So I have to operate on bits, not bytes, because my cryptography metod is like that: I send my file in parts of about 8 bits and I add to them some specific MAC. (its: winnowing and Chaffing metod)</p>
<p>In my program I read file... | java | [1] |
1,602,712 | 1,602,713 | Android Hierarchy Viewer is not showing performance indicators for a view | <p>I am working with Android 2.2. While checking the views using HierarchyViewer, no performance indicators are being displayed. It shows 'n/a' agianst each of the three measures. Why is this happening?</p>
| android | [4] |
2,434,992 | 2,434,993 | Get a file from a URL | <pre><code>$vars='https://www.googleapis.com/latitude/v1/currentLocation?key=AIzaSyB2hw658V7RSzEYgwSHwYkaLm_505gqLhs';
$content = file_get_contents( $vars );
</code></pre>
<p>I am using this function for retrieving a file from a url but <code>file_get_contents()</code> is not working. Please suggest me a function for ... | php | [2] |
2,248,044 | 2,248,045 | validation conflicts with routing | <p>I have a trouble with asp.net validations. At first my validation worked successfully. But when I began to routing, my clientside validations didn't work. There is successful and unsuccessfull codes:</p>
<p><em><strong>Unsuccessful example :</em></strong> </p>
<pre><code>void Application_Start(object sender, Even... | asp.net | [9] |
4,133,716 | 4,133,717 | Can someone please explain .map() in laymans terms? | <p><strong>UPDATE 1:</strong></p>
<p>Here is more of the script:</p>
<pre><code>$(".favorites").sortable(
{update:function() {
var that = this;
var urls = "";
var texts = "";
$.map($(".favorites a"), function(elt) {
urls += "url=" + elt.href + "&";
texts += "text=" + $(elt... | jquery | [5] |
5,013,329 | 5,013,330 | How to kill other applications in android | <p>Can any body tel1 me how to kill other applications when i open my application.For example i am playing some music and i opened my application and trying to kill the other applications using below code.I couldnot stop the music playing.`ActivityManager activityManager = (ActivityManager)getApplicationContext().getS... | android | [4] |
3,879,878 | 3,879,879 | Question regarding SDK object / method call: public abstract SharedPreferences.Editor putString (String key, String value) | <p>When I try to use this in Eclipse (3.6) I get:
The method putStringSet(String, HashSet) is undefined for the type SharedPreferences.Editor</p>
<p>If I cast the HashSet to a Set I get this:
The method putStringSet(String, Set) is undefined for the type SharedPreferences.Editor</p>
<p>However it's clearly defined in... | android | [4] |
5,404,022 | 5,404,023 | Android: Where do I find startSubActivity()? | <p>I'm trying to use the function [context].startSubActivity([intent i]) but that won't compile. Apparently startSubActivity() doesn't exist in Android 2.01? I <em>do</em> see a bunch of startActivity(...) functions, but no startSubActivity, which so many examples provide. Would someone please tell me if it's been depr... | android | [4] |
1,605,119 | 1,605,120 | create superglobal variables in php? | <p>is there a way to create my own custom superglobal variables like $_POST and $_GET?</p>
| php | [2] |
864,838 | 864,839 | Count the no of Visitors | <p>I have stored resumes in my database and i have retrive it from asp.net web page by creating linkbutton...i can view ,download the resumes which i stored in my database.My issuse is when i view one resume example (domnic resume)then no of visitor for domnic resume should be count .if again i view that resume no of v... | asp.net | [9] |
5,519,975 | 5,519,976 | Customizing AutoCompleteTextView | <p>I have got <code>AutoCompleteTextView</code> that works well if I fill it's adapter with <code>String</code> objects. </p>
<p>But what methods should I override if I want to pass to it's adapter another kind of objects contains from strings, that should be displayed in popup window after user inputs a text into edi... | android | [4] |
3,771,368 | 3,771,369 | Java: How do I achieve a pointer effect without method calls? | <p>I am trying to make some sort of integer (be it <code>int</code> or <code>Integer</code>), <code>x</code>, that equals the sum of two other integers: <code>a</code> and <code>b</code>. <code>a</code> and <code>b</code> will change on occasion, so I want <code>x</code> to always be up-to-date.</p>
<p>Is there a way ... | java | [1] |
2,792,725 | 2,792,726 | Instruct the browser not to wait for more content while processing continues | <p>How do I instruct the browser not to expect any more content to be coming down the line? Kinda like the server saying “I got what I need, you don’t need to wait while I finish the processing of the page”.</p>
<p>I have a server-side task, which is initiated when a certain page is hit. The task may be time-consuming... | asp.net | [9] |
1,380,070 | 1,380,071 | Python: Help with new line character | <p>I read in a text file that is tab delimited, i then have a list for each line, i then index out the first entry of each list, i then write this to a file. code below:</p>
<pre><code>import csv
z = csv.reader(open('output.blast'), delimiter='\t')
k = open('output.fasta', 'w')
for row in z:
print row[1:12]
fo... | python | [7] |
3,474,302 | 3,474,303 | Convert query to parametrized asp.net query | <p>How would I make this parametrized ?!</p>
<pre><code>string query = "";
query += " SELECT DistID FROM Distributor";
query += " WHERE Username = '" + username_id.Text + "'";
query += " AND Password = '" + password.Text + "'";
GeneralFunctions.GetData( query );
</code... | asp.net | [9] |
4,984,461 | 4,984,462 | question about getting value from class | <p>consider following code</p>
<pre><code>#include <iostream>
using namespace std;
class MyClass{
int a;
public:
MyClass(int j) {a = j;}
int geta(void) {return a;}
};
int main(void)
{
MyClass ob = 99;
cout << ob.geta();
}
</code></pre>
<p>output of this code is 99
my quest... | c++ | [6] |
3,917,683 | 3,917,684 | ASP.net - ValidationSummary output to pop-up page - or as plain html onto the same page | <p>I have an ASP.net page with asp validators and afew custom validators.</p>
<p>When I click submit on the page I want to put the output of the Validation summary on to a new page(pop-up) and leave the old page in the background.</p>
<p>OR</p>
<p>put the validation summary in plain html on the same page</p>
<p>Is ... | asp.net | [9] |
4,397,165 | 4,397,166 | Different input name's | <p>I have a form with input fields like:</p>
<p>post_1a ; post_1b ; post_1c</p>
<p>post_2a ; post_2a ; post_2a</p>
<p>post_3a ; post_3a ; post_3a</p>
<pre><code><table>
<tbody>
<tr>
<td><input id="new_post_a" name="post_1a" type="text"></td>
... | php | [2] |
1,337,442 | 1,337,443 | why does my dialog box only work one time? | <p>i have a dialog box and in it, it has two buttons, one that continues and one that cancels. </p>
<pre><code>$(document).ready(function(){
$("[name=resetPwd]").click(function(){
var id = $(this).attr("userid");
var email = $("[field=emailAddress].[userid="+id+"]").text();
var name = $("[field=firstName].... | jquery | [5] |
5,775,055 | 5,775,056 | Can I add timeout for ftpslib connection? | <p>Can I add timepout for ftps connection and each command on ftp server ?</p>
<pre>
r = ftpslib.FTP_TLS()
...
</pre>
| python | [7] |
2,845,063 | 2,845,064 | the type or namespace name 'Management' does not exist in the namespace 'MicrosoftSqlServer' are you missing an assembly reference | <p><strong>using Microsoft.SqlServer.Management.Smo;
Using Microsoft.SqlServer.Management.Common;</strong></p>
<p>I am using the above namespaces for restore database from c# window form, but the compiler tell me <strong>"the type or namespace name 'Management' does not exist in the namespace 'MicrosoftSqlServer' are ... | c# | [0] |
2,608,801 | 2,608,802 | Evenly divide in c# | <p>In c# how do I evenly divide 100 into 7?</p>
<p>So the result would be </p>
<ol>
<li>16</li>
<li>14</li>
<li>14</li>
<li>14</li>
<li>14</li>
<li>14</li>
<li>14</li>
</ol>
<p>The code below is incorrect as all 7 values are set to 15 (totalling 105).</p>
<pre><code> double [] vals = new double[7];
f... | c# | [0] |
2,088,639 | 2,088,640 | Fetching tab tilte in viewpager | <p>I have implemented ViewPageIncicator and is running fine. I have 3 tabs with name "Tab1","Tab2", "Tab3". what i want is, the tab name when i scroll the tab.</p>
<p>Could anyone let me know how to fetch the tab title of the current tab that is being displayed?</p>
| android | [4] |
3,319,648 | 3,319,649 | UINavigationItem back problem | <p>i have a UINavigationController in my viewcontroller,and after pushing another viewcontroller from current viewcontroller,when i press the back button on navigation bar, it return to previous view,however the previous data in the first view still there, how can i reset the first view data as like call the viewDidLoa... | iphone | [8] |
2,453,388 | 2,453,389 | Properly use Return Keyword | <p>I'm fairly new to programming and I have a question. I want to get a list of computers on the network, I have done this successfully, then I have been able to get how many computers there are by using .Count()...The issue is, I have several places in my full code where I would like to reference that number, and ever... | c# | [0] |
1,483,784 | 1,483,785 | Returning two variables in a C++ function | <p>I would like to return two double variables: when calling a function that I have created.
According to some tutorials (which deal with the basics of the C++), I would be unable to do that.</p>
<p>Is there a way to do so?</p>
| c++ | [6] |
1,423,368 | 1,423,369 | Loading into appropriate child with jQuery | <p>I use drop-down selector to load matching section from an external file into the table cell in a row below selector. I can't seem to be able to target it properly. I thought that nextAll() would do the trick but it doesn't. What else shall I try? </p>
<pre><code>$('.mySelector').change(function(){
var $selectF... | jquery | [5] |
1,051,644 | 1,051,645 | how to place validation for phone number in android,"starts with +"? | <pre><code> Pattern p = Pattern.compile("^\\+(?:[0-9] ?){6,14}[0-9]$");
//Match the given string with the pattern
Matcher m = p.matcher(numberstr);
//check whether match is found
boolean numberFound = m.matches();
</code></pre>
| android | [4] |
4,749,335 | 4,749,336 | New-ing string types | <p>From <a href="http://www.apress.com/9781590598849/" rel="nofollow">Pro C#</a> </p>
<p>Referring to "New-ing" Intrinsic data types...</p>
<blockquote>
<p>All intrinsic data types support what is known as a default constructor. It allows you to create a variable using the new keyword.</p>
<p>[...] Object ref... | c# | [0] |
286,983 | 286,984 | string and class are both reference type, then why the comparasion returns different result? | <p>I'm comparing 2 strings and 2 class objects, then why string one comparison gives results "TRUE", whereas objects comparison give "FALSE"? Please explain whats going in term of memory locations in both teh case?</p>
<pre><code>class Program
{
public class Person
{
public string Name { get; set; }
... | c# | [0] |
3,697,015 | 3,697,016 | ifstream not working | <p>I'm trying to open a file using ifstream, but no matter what solutions I find that I've tried, nothing seems to work; my program always outputs "unable to open". Below is my code in its entirety. Any help at all is appreciated!</p>
<pre><code>#include <iostream>
#include <fstream>
#include <string>... | c++ | [6] |
2,597,848 | 2,597,849 | jQuery Custom Scroll Plugin | <p>I want to develop a jQuery plugin that instead of having scrollbars, it instead has scroll "buttons" on the top and button of a container. The container itself is just an unordered list as a menu on the left hand side of the page, but I also need to calculate when it needs to scroll. The user can resize the browse... | jquery | [5] |
3,900,738 | 3,900,739 | EWS SOAP message | <p>I want to send a SOAP message which update an existing appointment at outlook account ,
I found the SOAP message (from MSDN) which do it , but It can update only the subject,date and
attends , <strong>I want to update the task body ... How can i do it?</strong></p>
| c# | [0] |
5,512,968 | 5,512,969 | How do I implement word count in Python? | <pre><code>x="I use computers"
print (x)
y=x[0:1]
y1=x[2:5]
y2=x[6:15]
n=(y+y1+y2)
print len(n)
</code></pre>
<p>I know this counts the number of letters but how do I count the number of words in the sentence?</p>
| python | [7] |
539,723 | 539,724 | how i can replace style with new one using jquery | <p>i am inserting below css using jquery into head tag but problem is everytime i change the color using user interface it add another style tang and than css how can i remove already added and replace with new css please help.</p>
<pre><code><style charset="utf-8" type="text/css">div.contentMid2{background:#000... | jquery | [5] |
4,520,807 | 4,520,808 | month regex problem in php. validation problem | <pre><code>function preveriDatum($string)
{
if (preg_match("^(3)?(?(1)[0-1]|(0)?(?(2)[1-9]|[12][0-9]))\.(0)?(?(3)[1-9]|1[0-2])\.[1-9][0-9]{3}$^", $string))
return true;
else
return false;
}
</code></pre>
<p>is valid for 13.01.2010 but not for 13.1.2010. Can i aso make it valid for 13.1.201... | php | [2] |
4,887,613 | 4,887,614 | A simple question about Javascript functions, differences in invocation/definition | <p>Can someone please explain the difference between the following function definitions?</p>
<pre><code>var alertMessage = function alertMessage(message) {
alert(message);
}
var alertMessage = function(message) {
alert(message);
}
</code></pre>
<p>What are the implications of each? Thanks!</p>
| javascript | [3] |
5,796,662 | 5,796,663 | Java Package Error while compiling the following code | <p>Hi I ve created the following code and the first file called "Draggable.java" is compiled. and the second file "Circle.java" shows me an error.... Please aneswer</p>
<p>In the Draggable.java file</p>
<pre><code>package graphics;
public interface Draggable {
}
</code></pre>
<p>In the Circle.java file</p>
<pre><... | java | [1] |
4,410,273 | 4,410,274 | Clear a collection or re-initialize? | <p>I'm working on a .net app and I'm using an object that is composed of 5 Lists and 1 Hashtable. This object is used within a loop that iterates atleast 500 times to run some analysis. On each loop this object should start empty, so I was wondering if it's more efficent to call clear on all Lists and Hashtable or shou... | c# | [0] |
4,172,920 | 4,172,921 | Warning! Unknown device API version | <p>I am new to Android programming. I have created an app and I am deploying it on my android device with version 4.0.3. I have connected the device properly. Eventhough I get this warning. I have deployed successfully on previous occassions. I am really not able to understand why my device version is not getting detec... | android | [4] |
5,940,652 | 5,940,653 | C++ methods which take templated classes as argument | <p>I have a templated class</p>
<pre><code>Vector<class T, int N>
</code></pre>
<p>Where T is the type of the components (double for example) and n the number of components (so N=3 for a 3D vector)</p>
<p>Now I want to write a method like</p>
<pre><code>double findStepsize(Vector<double,2> v)
{..}
</co... | c++ | [6] |
4,625,462 | 4,625,463 | iPhone, how to fire a button event in programmatically | <p>I want fire a button event(or maybe method) in code,the button was generate by iPhone SDK , I can not update it, so I add the action to the button, the code likes as follows:</p>
<pre><code>[theButton addTarget:self action:@selector(onButtonEvent:)
forControlEvents:UIControlEventAllTouchEvents];
-(void) ... | iphone | [8] |
895,121 | 895,122 | Read entire XML file and store in memory java | <p>Here is what I am trying to do.</p>
<ol>
<li>Read entire XML file (I do not care the name of element or attribute,etc..).</li>
<li>Save the read XML file into memory.</li>
<li>Update some values of read xml file.</li>
<li>Write back to a XML file.</li>
</ol>
<p>I am trying to use XMLStreamReader to read a XML file... | java | [1] |
2,189,684 | 2,189,685 | Is static variables are Thread specific in java? | <p>Is static variables are Thread specific, means</p>
<pre><code>class A {
public static int i = 10;
}
Class B {
A.i = 20;
}
Class C {
A.i = 30;
}
Class D {
System.out.println(A.i);
}
</code></pre>
<p>Above classes I am calling from my web application, i.e. in first request I Call Class B, in seco... | java | [1] |
239,798 | 239,799 | removing value from the list | <p>I have a query I have a Map like this</p>
<pre><code> Map ppvValidatedinfo = new HashMap<String, List<String>>();
</code></pre>
<p>and it contains the value like this </p>
<pre><code> 1 22 23 24 25
</code></pre>
<p>so 1 is the key(patient id) and the values(scriptinfo) are 22,23,24,25</p>
<p>No... | java | [1] |
4,682,900 | 4,682,901 | I'm having an issue with the following code and haven't been able to debug it | <p>Error says something about <code>eZip</code> not being recognized or something</p>
<pre><code>public class Address
{
private String name;
private String street;
private String city;
private String state;
private String zip;
public Address(String aName, String aStreet,
String aCity, ... | java | [1] |
4,272,402 | 4,272,403 | Is there any way to forbid the son class to call the public method of super class in java? | <p>Is there any way to forbid the son class to call the public method of super class in java?</p>
<p>For example</p>
<pre><code>public abstract class TObject{
abstract public void quark();
}
public class Animal extends TObject{
public void quark(){
System.out.println("this is the animal");
... | java | [1] |
4,447,270 | 4,447,271 | PHP Search and remove numeric array value | <p>I have a php array with strings and I'd like to delete the keys that have a string containing only numbers.</p>
<p>How can I do that?</p>
| php | [2] |
2,484,676 | 2,484,677 | How to pass string variable to javascript function using php | <p>I have a problem about to passing a string parameter to java-script function using PHP. I have an anchor tag as View Live. Here $website contains web URL. On click of link I am opening a popup window. and function to open popup I have a function popup() in javascript. When I click on link I getting error of undefine... | php | [2] |
4,847,235 | 4,847,236 | Overriding a parent method | <p>I have a class A
private method 1</p>
<p>class B extends A
private method 1 (Same name)</p>
<p>When I instantiate B and method 1 gets called from class A. I made them both protected and that solved it. Is there a way to keep both private and still get class B's method 1 to be called?</p>
| java | [1] |
5,725,929 | 5,725,930 | Equality of two structs in C# | <p>I look for an equality between two instances of this struct.</p>
<pre><code>public struct Serie<T>
{
T[] X;
double[] Y;
public Serie(T[] x, double[] y)
{
X = x;
Y = y;
}
public override bool Equals(object obj)
{
return obj is Serie<T> &am... | c# | [0] |
3,797,811 | 3,797,812 | Will Titanium 1.7.2 work properly on XCode 4.0.2? | <p>The Titanium module works great with Titanium 1.5.1 and XCode 3, but the module does not properly work with Titanium 1.7.1 and XCode 4.0.2. I got the following error:</p>
<blockquote>
<p>Error: Traceback (most recent call last):File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/builder.py", l... | iphone | [8] |
997,996 | 997,997 | Does Minecraft use any open source Java libraries apart from the JDK? | <p>I'm interested in writing games in Java and wondered if Minecraft is written purely using the standard JDK or whether it uses open source (or commercial for that matter) libraries.</p>
| java | [1] |
4,006,015 | 4,006,016 | Can you get more information about the online file? | <p>I have a online file: <a href="http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe" rel="nofollow">http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe</a> ,please donot download it, i want to determine the software version whether is changed, so i want more information about it. for example, using python,i can get this... | python | [7] |
283,478 | 283,479 | Determine if Python is running as 32 or 64 bit? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1405913/how-do-i-determine-if-my-python-shell-is-executing-in-32bit-or-64bit-mode">How do I determine if my python shell is executing in 32bit or 64bit mode?</a> </p>
</blockquote>
<p>just a q and a thing i thou... | python | [7] |
2,294,548 | 2,294,549 | Facing Facebook place checkin issue when adding my own places | <p>I have added my own places in places class for check-in but getting this error</p>
<p><code>**API response: {"error": { "message":"(#) Requires a valid Place Page ID:,"type: "OAuthException", "code:100}}**</code> </p>
<p>how do I get the <code>PageID</code> of my own places?.I am unable to find any solution .I hav... | android | [4] |
2,814,636 | 2,814,637 | how to select a certain clone of lists using jquery? | <p>How to select a certain clone of list using jquery?</p>
<pre><code> <ul id=testList>
<li><input type=checkbox" /><p> Test A </p></li>
<li><input type=checkbox" /><p> Test B </p></li>
<li><input type=checkbox" /><p>... | jquery | [5] |
1,840,707 | 1,840,708 | Finding all checkboxes are checked in jQuery | <p>I have a collection of checkboxes</p>
<pre><code> <input id="1" class="paid" type="checkbox" />
<input id="2" class="paid" type="checkbox" />
<input id="3" class="paid" type="checkbox" />
<input id="4" class="paid" type="checkbox" />
</code></pre>
<p>I would like to write some jQuery to ... | jquery | [5] |
2,132,330 | 2,132,331 | Hot to use the second parameter of lastIndexOf() method in javascript string object? | <pre><code>"This apple is my apple".lastIndexOf("apple"); // returns value of 17
"This apple is my apple".lastIndexOf("apple",12); // returns value of 5
"This apple is my apple".lastIndexOf("apple", 3); // returns value of -1, not found
</code></pre>
<p>Hi guys!</p>
<p>I understand the first two examples,but why the ... | javascript | [3] |
2,006,156 | 2,006,157 | Problem with multiple image selection in android | <p>I have a problem in selecting image from image gallery. In my view there are two Buttons and two EditTexts. On clicking each button I want to choose and image from gallery and the path of the image needs to copied into the respective EditText. In my code image selection is working but the path is entered into only o... | android | [4] |
3,925,432 | 3,925,433 | Thinning or skeletonization with java | <p>How to thin or skeletonization the image with java?
I mean I want to get the skeleton of the character image, and this need to implement with java for the OCR process. Thanks for your interest and give me some suggestion and direction.
Thanks in advance</p>
| java | [1] |
5,120,454 | 5,120,455 | what is the difference between having exit() and having not in a header function? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3553698/php-should-i-call-exit-after-calling-location-header">php - Should I call exit() after calling Location: header?</a> </p>
</blockquote>
<p>I dont know how to title this question but here it goes.</p>
<p... | php | [2] |
3,877,503 | 3,877,504 | limit one area and browse other people are using the same app | <p>When my app is triggered, it takes the current position of the user through the GPS (this function already implemented).</p>
<p>My question is: I want to know for example if I have users who are using my app in a given radius (1km for example). Is it possible?</p>
| android | [4] |
4,307,369 | 4,307,370 | Custom cursor image with javascript | <p>I need to change my mouse cursor to a custom image.</p>
<p>If possible I would like to do it on a spritesheet.
I can't do it from the css because I'm using it in a game. I already know how to decide when etc.</p>
<p>What I need to know is how do I change the cursor to an image, and deciding the image position and ... | javascript | [3] |
3,177,935 | 3,177,936 | How to getline() from specific line in a file? C++ | <p>I've looked around a bit and have found no definitive answer on how to read a specific line of text from a file in C++. I have a text file with over 100,000 English words, each on its own line. I can't use arrays because they obviously won't hold that much data, and vectors take too long to store every word. How can... | c++ | [6] |
5,617,895 | 5,617,896 | javascript- want to set li innerHTML of ul | <p>I'm writing a javascript function where I get a ul object from my HTML and want to set the text of one of the li elements in the ul. I'm doing:</p>
<pre><code>list = document.getElementById('list_name');
</code></pre>
<p>Then I want to access the ith li element of list using a loop.
I have:</p>
<pre><code>for (i ... | javascript | [3] |
4,993,103 | 4,993,104 | Convert multiple DataTables to columns in a single datagridview | <p>I have three DataTables in C# called MIT, Oracle and Difference. Could you please let me know how to add these three tables to a gridview as seperate columns? I know how to bind a DataTable to a gridview as given below. But i need the same to be done for several DataTables.Please help</p>
<pre><code>dataGridView1.D... | c# | [0] |
4,098,366 | 4,098,367 | PHP "backspace" character during output possible? | <p>I have a feeling the answer is "it's not possible," but thought I'd ask to satisfy my curiosity.</p>
<p>I have some code that's echoed where the \n is unavoidable:</p>
<pre><code>echo "Hello \n";
echo "World!";
</code></pre>
<p>I'd like the line to simply read (in the code output):</p>
<blockquote>
<p>Hello Wo... | php | [2] |
1,965,200 | 1,965,201 | Class def not found in new connected application | <p>Using eclipse and the google plugin I have created a connected app. Hello world.</p>
<p>When i run the app, with no modifications, i get a <code>class def not found error</code> for <code>MyRequestFactory</code>.</p>
<p>Everything compiles fine but when I click the "say hello button" it crashes with the above erro... | android | [4] |
5,530,170 | 5,530,171 | Difference between $(Parent Child) and $(Parent).find(Child) (in jQuery) | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6230266/jquery-single-selector-vs-find">jQuery single selector vs .find()</a> </p>
</blockquote>
<p>Is there any difference between $(Parent Child) and $(Parent).find(Child) in jQuery?</p>
<p>You may have multi... | jquery | [5] |
4,113,586 | 4,113,587 | 32 bit long vs 64 bit long | <p>I am working on project (c++ integration with Python) which has migrated to 32 bit machine to 64 bit machine. In Python, C long is mapped with Python Integer.
SO I can not change in Python Interface(client interface) and always gets overflow error from python client. it was working fine in 32 bit machine</p>
<p>So ... | c++ | [6] |
1,787,313 | 1,787,314 | How I can read an xml file with limited memory? | <pre><code> var q = from n in XElement.Load(Application.StartupPath + "..\\..\\..\\2.xml").Elements()
select n;
foreach (var q0 in q)
{
string str = q0.ToString();
}
</code></pre>
<p>the problem is my xml file is so big so how I can man... | c# | [0] |
2,198,741 | 2,198,742 | Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError on object initialization | <p>I have an instance variable, like so:</p>
<pre><code>PathFinder finder;
</code></pre>
<p>(this is using Kevin Glass' A* tutorial, so the PathFinder class is in the same file, link here: <a href="http://cokeandcode.com/index.html?page=tutorials/tilemap2" rel="nofollow">http://cokeandcode.com/index.html?page=tutoria... | java | [1] |
1,997,636 | 1,997,637 | Require override of parent virtual function | <p>I'm working on a serialization system, and all my serializable classes implement</p>
<pre><code>virtual void serialize(Buffer buffer);
</code></pre>
<p>When a pointer is going to be serialized, I need to call the serialize() function of the class itself, and not that of any of its parents, even if the pointer is a... | c++ | [6] |
620,178 | 620,179 | How can I limit the number of instances of a class? | <p>As an exercise, I wish to make a class that can't have more than N instances. How can I do that?</p>
<p>Suppose, for example, you want to limit number of connection to database so that no more than N users can connect at the same time. I understand how to make a singleton:</p>
<pre><code>class Singleton {
private... | c++ | [6] |
1,101,313 | 1,101,314 | what is meant by that in a servlet (private static final long serialVersionUID = 1L)? | <p>Can any one tell me that what is the meaning of</p>
<pre><code>private static final long serialVersionUID = 1L
</code></pre>
| java | [1] |
769,179 | 769,180 | Clear val on toggle with boolean | <p>I have a hidden div with form elements in it that I toggle on a radio select option (Think yes/no as the options)</p>
<p>If they select yes, display the div and require the fields, else hide div and clear the fields (if they have entered any value).</p>
<p>I can do all of this except clear the value with passing a... | jquery | [5] |
2,345,770 | 2,345,771 | How can I store an int array into a number array? | <p>Integer extends Number so in that sense Number becomes the superclass of int. I want to store an int array into a Number array..
I have the following code.However, it seems it is not allowed in java.</p>
<pre><code> int[] b = {1,2};
Number[] a = b;
</code></pre>
<p>Why java does not allow me to store an int... | java | [1] |
5,723,794 | 5,723,795 | how to fix this, JavaScript Error : document.forms. is null not an Object | <p>in my jsp page, I am getting script error. <strong>error message is : document.forms[0] is null not an object.</strong>when i click to SignOut . sign Out works fine and it is redirect to default.jsp. but my default.jsp doesn't show anything just a blank page. I checked view Source of default.jsp page.The whole pa... | javascript | [3] |
771,055 | 771,056 | Identifying the id of current visible div | <p>I am working with 3 divs at the moment - on pageLoad the default is viewed but when the user clicks on a button the div is hidden and the selected div appears in its place. </p>
<p>How would I write an if statement to identify the div currently selected by the user? For example:</p>
<pre><code>if selected_div is '... | javascript | [3] |
1,506,532 | 1,506,533 | Python: catch exceptions inside a class | <p>Is it possible to write an exception handler to catch the run-time errors generated by ALL the methods in class? I can do it by surrounding each one with try/except:</p>
<pre class="lang-py prettyprint-override"><code>class MyError(Exception):
def __init__(self, obj, method):
print 'Debug info:', repr(o... | python | [7] |
5,173,079 | 5,173,080 | create label on fly and display error message | <p>how to create label on fly and assign some error message to that label using jquery. I want display this message on the top. How to achieve this using jquery?</p>
| jquery | [5] |
2,159,643 | 2,159,644 | Strange problem with NSMutableArray - Possibly some memory corruption | <p>I am trying to update data in a table view using a NSMutableArray. Quite simple :(</p>
<p>What is happening is that I get my data from a NSURLConnection Callback, which I parse and store it in an array and call reload data on the table view. The problem is that when cellForRowAtIndexPath is called back by the fram... | iphone | [8] |
273,185 | 273,186 | Alias function in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8773579/if-javascript-has-first-class-functions-why-doesnt-this-work">If Javascript has first-class functions, why doesn’t this work?</a> </p>
</blockquote>
<p>When I try to make an alias function for <code>docu... | javascript | [3] |
1,863,164 | 1,863,165 | how to display string in mobile number format | <p>i have a string of mobile number eg:919999999999.</p>
<p>i need to display this number in this format (+91)999-999-9999;</p>
<p>here 91 is country code.</p>
<p>how can i done this,can any one please post some code.</p>
<p>Thank u in advance. </p>
| iphone | [8] |
3,266,923 | 3,266,924 | Please explain why and how +new Date(); works as 'workaround' for Date.now() in IE8 or below | <p>(I'm reading the book "<em>Professional JavaScript for Web Developers</em>" to give a context about this question, specifically Chapter 5 on Reference Types) </p>
<p>I'm wondering why and how
<code>var start = +new Date();</code> works to get the current millisecond representation of now as a work-around to browser... | javascript | [3] |
856,346 | 856,347 | How can I use jQuery to move an <option> to be the second element? | <p>How can I use jQuery to move a specific <code><option></code> to be the second option?</p>
<pre><code><select class="comestibles">
<option>apple</option>
<option>banana</option>
<option>cantaloupe</option>
<option>date</option>
<option>eggplant&... | jquery | [5] |
1,628,610 | 1,628,611 | What is one-level deep copy in JavaScript? | <p>What is one-level deep copy in JavaScript?</p>
<p>Thank you!</p>
| javascript | [3] |
66,618 | 66,619 | How to set gujarati for textview in the android application? | <p>I want to make a application in which i needs to show the textview in gujarati language.</p>
<p>I tried with </p>
<pre><code>Typeface tf = Typeface.createFromAsset(getAssets(), "G-SARAL1.TTF");
text.setTypeFace(tf);
</code></pre>
<p>but this is not working, I set the gujarati text in string.xml file and then i se... | android | [4] |
473,853 | 473,854 | How to use less code for this situation | <p>Currently, I have code like this:</p>
<pre><code> static void Main()
{
int whichClass = 0;
if (whichClass == 0)
{
//repeat code
TestAbstract clTest = new ClassA();
clTest.MainFunc();
}
else if (whichClass == 1)
{
... | c# | [0] |
2,371,051 | 2,371,052 | javascript split | <pre><code><script language="javascript">
function frompost()
{
var string=$('#indexsearch').val();
var url=string.split('=');
if(url==""){
var url=string.split('video/');
}
var finalurl='http://watchvideos.tv/watch/'+url[1];
window.location = finalurl;
//$('#srchFrm').attr('action',finalurl);
... | javascript | [3] |
1,955,420 | 1,955,421 | PHP - call function in object with set_error_handler() | <p>I am trying to use this in my page class. I only just started using objects in PHP so I'm still a little clueless (but learning as much as I can). This is in my <code>page()</code> function (so called when there is a new instance of page)</p>
<pre><code>set_error_handler('$this->appendError');
</code></pre>
<p>... | php | [2] |
1,817,279 | 1,817,280 | specific number formater to a phone number | <p>I want to display the the number in the following format </p>
<p>and the format is "123-456-7890"</p>
<p>I am using </p>
<pre><code>NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
[formatter setNumberStyle:NSNumberFormatterNoStyle];
[formatter setPositiveFormat:@"###-###-####"];
[formatter setLen... | iphone | [8] |
1,496,557 | 1,496,558 | Scenario - How to improve user experience using preload of pages and delayed save of web pages in ASP.NET | <p>I have a ASP.NET website and say it has 2 pages. I am displaying these 2 pages as 2 tabs. Both pages have some input fields like check boxes, radio buttons, dropdowns.</p>
<p>When I move from tab-1 to tab-2, I have to perform the following operations.</p>
<ol>
<li><p>I need to save the data entered on tab-1. This ... | asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.