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,315,950 | 5,315,951 | Implementing Code Behind Clickable TextViews | <p>I just started working with clickable TextViews in Eclipse. The line in the code below:</p>
<pre><code>t2.setOnClickListener(this); seems to be having a problem.
</code></pre>
<p>I have tried a variety of methods like setOnTouchListener etc. to handle the click events of a user clicking my TextViews but I am ha... | android | [4] |
4,684,548 | 4,684,549 | My php code is very slow and timeout error appears | <p>I have a soccer fantasy league script and every week I add a points to the users, using this code:</p>
<pre><code>$sql_user="select * from ".$prev."user ";
$re_user=mysql_query($sql_user);
while($d_user=mysql_fetch_array($re_user))
{
$userID=$d_user['id'];
$sql_addpointgroup="select * from ".$prev."addpoint group... | php | [2] |
5,054,289 | 5,054,290 | fputcsv force all values to have quotes or non at all | <p>i'm using <code>fputcsv</code> and its only putting input text type values into quotes. Is there a way to override this and either force all to have quotes or remove them all together? I tried <code>fputcsv($fp, $data, ',', '"');</code> but that didn't work</p>
<pre><code>$data = array_values($_POST);
if( $fp = fop... | php | [2] |
1,808,244 | 1,808,245 | How to compare 2 different length arrays to eachother | <p>I'm trying to make a function that compares two different length arrays to each other and if they match then some actions are performed. Array1, cell1 compares to array2, cell1, cell2, cellN... Then Array1, cell2 compares to array2, cell1, cell2, cellN...</p>
<p>Something resembling this:</p>
<pre><code>if(array1... | php | [2] |
1,791,918 | 1,791,919 | Android: different onStop conditions when overriding | <p>I have an activity that has a special <code>onStop</code> case: if the user stops the activity (only on <code>onBackPressed</code> called) it will gracefully stop and go back one level (the app has 3 levels of activities), if the user does <em>anything else</em> the activity will quit and go back to the first level.... | android | [4] |
2,385,470 | 2,385,471 | What is the best way to stop multiple form submissions using PHP? | <p>I wanted to know what is the best way to stop multiple form submissions using PHP, can you please give an example.</p>
| php | [2] |
2,547,257 | 2,547,258 | My code seems to do nothing | <p>Doesn't do anything, it doesn't even let me input when I call gets(), even my IDE is claiming "statement has no effect".</p>
<pre><code>#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int main()
{
char userluv[800], fuusd[800], orig[800], key [51], priv [21];
int te... | c++ | [6] |
1,325,929 | 1,325,930 | How to find image name with imageview? | <pre><code>myImageView = [[UIImageView alloc] initWithImage:[imagearray objectAtIndex:j]];
[myImageView setUserInteractionEnabled:YES];
[myImageView setTag:i];
if (i==0||i==1) {
[UIImageView beginAnimations:nil context:NULL];
[UIImageView setAnimationDuration:1.5];
... | iphone | [8] |
2,901,439 | 2,901,440 | Can I add data to an already serialized array? | <p>I am using ckeditor and would like to serialize the textarea data along with all of the other elements. Is this possible?</p>
<p>I would like to append the taData to vals if possible.</p>
<pre><code>var vals = $("#post").find('input,select').serialize();
var taData = CKEDITOR.instances.ta1.getData();
</code></pre>... | jquery | [5] |
467,646 | 467,647 | Checking if number of objects is < 1 in PHP object array | <p>I am trying to check whether the number of items in an object is less than one like this:</p>
<pre><code>if ( count($trailhead_list->o < 1 ) )
</code></pre>
<p>It always returns true even if there is some items there.</p>
| php | [2] |
39,966 | 39,967 | Find Even/Odd number without using mathematical/bitwise operator in Java | <p>How is it possible find Even/Odd number without using mathematical/bitwise operator?</p>
| java | [1] |
5,418,264 | 5,418,265 | variable value to use as javascript code | <p>I have following code...</p>
<pre><code><script type="text/javascript">
var arr= new Array('10');
arr[0]='Need For Guru';
arr[1]='Qualities of a Guru';
arr[2]='Living Guru';
arr[3]='Who is a Satguru?';
arr[4]='Guru and Spiritual master';
arr[5]='Definition of discipleship';
arr[6]='Power of Faith';
arr[7]=... | javascript | [3] |
1,553,195 | 1,553,196 | Javascript/jQuery positioning issue | <p>Here is the problematic part of my code:</p>
<pre><code>$('#chat-bar').prepend('<li id="chat-button-with-'+userid+'"><a href="#">'+username+'</a></li>');
$('#chat').prepend('<div class="chat-box" id="chat-box-with-'+userid+'"></div>');
parentright = $('body').width() - $('#chat... | jquery | [5] |
4,447,300 | 4,447,301 | Stop the query when clicked | <pre><code><script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("1");
return false;
});
});
</script>
</code></pre>
<p>I am a newbie on this and I just copy so... | jquery | [5] |
2,686,964 | 2,686,965 | Python space+time efficient Data Structure to store 2D Bit Arrays | <p>I want to create a 2D Binary (Bit) Array in Python in a space and time efficient way as my 2D bitarray would be around 1 Million(rows) * 50000(columns of 0's or 1's) and also I would be performing bitwise operations over these huge elements. My array would look something like:</p>
<pre><code>0 1 0 1
1 1 1 0
1 0 0 0... | python | [7] |
4,938,362 | 4,938,363 | problems controlling a background-image with javascript during a mouse over effect within a thumbnail div | <p>I'm sorry if this is a fairly common question, but I assure you I've spent the last two days reading through to see if I can figure it out on my own, but alas I'm here at your feet hoping for some a advice. I'm still in the beginning stages of learning javascript. </p>
<p>Basically, I have a series of thumbnails co... | javascript | [3] |
5,277,953 | 5,277,954 | Null Pointer exception in JavaScript | <pre><code>var Obj = {
StateValues: ['AL','AK','AL','AK','AZ','AR','CA','CO','CT','DE','FL','GA','HI','ID','IL','IN','IA',
'KS','KY','LA','ME','MD','MA','MI','MN','MS','MO','MT','NE','NV','NH','NJ','NM','NY','NC','ND',
'OH','OK','OR','PA','RI','SC','SD','TN','TX','UT','VT','VA','WA','WV','WI','WY'],
g... | javascript | [3] |
5,458,228 | 5,458,229 | PHP object notation generator similar to json | <p>I have some data structure in PHP that I need to dump into a format that can be natively parsed as PHP code. Is there a tool for that?</p>
<p>In other words, is there a PHP data structure formatter that would output PHP object notation code, a sort of "PSON" for PHP similar to what JSON is for JavaScript?</p>
| php | [2] |
4,895,516 | 4,895,517 | Understand Python Function | <p>I'm learning Python and wanted to see if anyone could help break down and understand what this function does step by step?</p>
<pre><code>def label(self, index, *args):
"""
Label each axes one at a time
args are of the form <label 1>,...,<label n>
APIPARAM: chxl
"""
self.da... | python | [7] |
3,732,192 | 3,732,193 | How to check whether a particular device supports 4G networks in Android? | <p>I want to check if <strong>a particular device has hardware support for 4G networks</strong>. </p>
<p>I will elaborate the issue...<br>
In the application we have a settings page where user can make selection and allow application to run only in selected networks.
Eg. User can select that app will run only in WiFi... | android | [4] |
2,820,400 | 2,820,401 | Settings required for remote connection | <p>I wanted to know what are the basic settings/configuration required by server so that other computer can connect to server only through event Viewer.
Also basic permissions required for user to connect to the server through event viewer.
NOTE: The user doesnt have an RDC to </p>
| asp.net | [9] |
4,081,310 | 4,081,311 | setTimeout to print consecutive numbers: Closure | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5226285/settimeout-in-a-for-loop-and-pass-i-as-value">setTimeout in a for-loop and pass i as value</a> </p>
</blockquote>
<pre><code>for(i=0;i<5;i++){
setTimeout(
function(i){
console.log(this.i)
},10... | javascript | [3] |
4,183,045 | 4,183,046 | structure in template class | <p>sample code is as follow:</p>
<pre><code>struct TEMP
{
int j;
TEMP()
{
j = 0;
}
};
template<typename T>
class classA
{
struct strA
{
long i;
strA():i(0) {}
};
static strA obj_str;
classA();
};
template<typename T>
classA<T>::classA()
{}
t... | c++ | [6] |
3,400,916 | 3,400,917 | Where to get NavUtil Class? | <p>I am looking to use <code>NavUtils (http://developer.android.com/reference/android/support/v4/app/NavUtils.html)</code> in the <code>v4 android compatibility libraries for Efficency Navigation</code>. It seems that the <strong>v4 jar does not contain this class</strong>. Further, it seems that NavUtils is not in the... | android | [4] |
1,779,885 | 1,779,886 | jQuery: How to get return value of function as value of id attribute? | <p>I'm trying to create a new tr element and set it's id attribute to the last id in the table of my MySQL db.</p>
<p>Here's what I have, but this does not set the id properly:</p>
<pre><code>$('<tr>').html(response)
.attr('id',function(){
var daId;
$.get(
'/getlastid.php',
null,
... | jquery | [5] |
1,187,426 | 1,187,427 | how to change backgroundcolor of uibutton programatically | <p>I want to change the background color of a button to black.</p>
<p>i have tried so many codes. but didn't works fine.</p>
<p>how it is possible</p>
<p>Regards</p>
<p>K L BAIJU</p>
| iphone | [8] |
1,248,732 | 1,248,733 | How to change system brightness? | <p>I want change the system brightness using my application. But as soon as i come out of that app. Brightness is again resetted to default value. What shud i do in order to make permanent change to brightness setting? I have tried few ways but all off them only work till my app is not closed. </p>
| android | [4] |
4,117,761 | 4,117,762 | Efficient way to verify that records are unique in Python/PyTables | <p>I have a table in PyTables with ~50 million records. The combination of two fields (specifically userID and date) should be unique (i.e. a user should have at most one record per day), but I need to verify that this is indeed the case.</p>
<p>Illustratively, my table looks like this:</p>
<pre><code>userID | dat... | python | [7] |
5,672,455 | 5,672,456 | BigInt with specificied bit length | <p>I have used "BigInteger" library which is downloaded from "http://projectdistributedsystems.googlecode.com/svn-history/r94/trunk/src/misc/BigInt".</p>
<p>I have to create a <code>bigInt</code> which is exactly 125 bits. (In java we use <code>new BigInteger(125, randomNumber)</code> which create a 125 bit BigInteger... | c++ | [6] |
2,519,254 | 2,519,255 | How do I add another intent and how do I call this receiver in code? | <p>I have following receiver that listens to Boot_Completed </p>
<pre><code><receiver android:name=".receivers.ActionBootCompletedReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<category android:name="android.int... | android | [4] |
4,396,965 | 4,396,966 | PHP - How to Automatically Post Form in Another Website and Parse the Result | <p>I am planning to create a website like what <a href="http://dohop.com" rel="nofollow">http://dohop.com</a> is doing that will allow a user to pull the airlines price rate and date from the <a href="http://airasia.com" rel="nofollow">http://airasia.com</a> website. Currently the site will only allow the user to view ... | php | [2] |
3,826,586 | 3,826,587 | Get install app information | <blockquote>
<p>How can I find all information of install for ex: if my mobile has “angry birld” then I >want to get appname, packagename, versionname, versionname, date ,icon etc… </p>
</blockquote>
| android | [4] |
1,288,568 | 1,288,569 | When new a Form, will I get a process or thread? | <p>In C#, I have two Forms: mainForm and form1. </p>
<pre><code>class Form1; //...
class mainForm {
//...
void f() {
Form1 form1 = new Form1();
...
}
}
</code></pre>
<p>I want to wait for the form1 to exit and continue the following work in the mainForm. But I don't know the form1 is imple... | c# | [0] |
228,165 | 228,166 | Check if specific input file is empty | <p>In my form I have 3 input fields for file upload:</p>
<pre><code><input type=file name="cover_image">
<input type=file name="image1">
<input type=file name="image2">
</code></pre>
<p>How can I check if <code>cover_image</code> is empty - no file is put for upload?</p>
| php | [2] |
4,715,094 | 4,715,095 | User control page_load event invoked before the Button click event of the aspx page | <p>I want to assign property value on button click in aspx page and want to pass the value to the usercontrol and than bind data according to the Property value.
But the problem is before button click event is fired the page_load of user control is invoved ? is the any way to call the page_load of user control again on... | c# | [0] |
5,050,195 | 5,050,196 | check if compilator supports boost library | <p>i am using visual c++ 2010 and want to check if it supports boost library and if not how download it?can i do it?</p>
| c++ | [6] |
1,993,421 | 1,993,422 | Difference between innerHTML and .html() from jQuery | <p>Can somebody tell what is the difference between jquery .html() function and innerHTML?</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$('#test_link').click(function(){
//$('#div_test_out').html("<div width='250px' height='100px' id='div_test'>&... | jquery | [5] |
3,335,959 | 3,335,960 | Implement a top level window from a broadcast receiver | <p>I have a broadcast receiver that listens for incoming calls, then displays a popup. The popup is a dialog type of theme and has FLAG_NOT_FOCUSABLE and FLAG_NOT_TOUCHABLE - basically, it's an informational window that goes away after x seconds, and is not meant to interfere or take focus over anything else.</p>
<p>T... | android | [4] |
4,769,005 | 4,769,006 | How to detect if a microphone is present in android? | <p>I have a voice recognition part in my application to capture users voice input.</p>
<p>This is what I do</p>
<pre><code>Intent voiceIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
startActivityForResult(voiceIntent, REQUEST_CODE);
</code></pre>
<p>This works fine on most of the devices but now sinc... | android | [4] |
1,802,300 | 1,802,301 | jquery change img attribute name without loosing atribute values | <h2>Background</h2>
<p>I generate dynamic php gallery in which it is possible to drag images by using jquery UI.</p>
<p>All images has option to be cropped.</p>
<p>Image that are listed first in a gallery are the "title image" of the gallery and have a different crapping ratio as non "title images".</p>
<h2>Problem... | jquery | [5] |
4,169,353 | 4,169,354 | Python approach to dataset manipulation | <p>Folks, we have the following problem: we've got several objects containing table data that look something like this:</p>
<p><code>{'field1':'value1','field2':'value2', ...}</code></p>
<p>At some point during runtime we need to "select" data from these objects (tables) in the same way one were to query a DB (i.e. g... | python | [7] |
853,110 | 853,111 | need to copy files on client system, is thr any possible way? | <p>dear frnds
I m developin an Online Examination System in C#.net and want to copy files on client machine as soon as exam starts, so that even if internet gets disconnected examinee can continue with test</p>
| asp.net | [9] |
3,549,888 | 3,549,889 | Loading holding page before main content is displayed? | <p>I am creating a site that pulls various feeds from the web, while these feeds are being loaded I would like to display a holding page that says loading and then disappears presenting the loaded feeds, can anyone point me towards any tutorials for this or any advice on how to achieve this using jQuery?</p>
| jquery | [5] |
1,949,488 | 1,949,489 | iphone memory management | <p>1.UIImageView *img1=[[UIImageView alloc]initwithImage:[UIImage imageNamed:@"1.png"]];</p>
<p>2.UIImageView *img2=[[UIImageView alloc]initwithImage:[UIImage imageNamed:@"2.png"]];</p>
<p>a) img1.image = [UIImage imageNamed:@"2.png"];</p>
<pre><code>b) [img1 setImage:img2];
</code></pre>
<p>which way utilizes mini... | iphone | [8] |
504,949 | 504,950 | Determine if a key is currently pressed | <p>I have a need to determine if a key is currently being pressed. I do not need an event to fire, I simply need to determine if a key is being pressed to decide a code path. I looked around and there are some great GlobalKeyHook classes however they are event based.</p>
<p>Little example, basically I need to determin... | c# | [0] |
1,337,251 | 1,337,252 | PHP:I want to run a function every 30sec's without using a for loop | <p>php has header('refresh:30')</p>
<p>When i'm getting data from a form via post,the array resets on refresh(when i use header-refresh)</p>
<p>I was looking for a setTimeOut(in javascript) sorta tool in php or a way to persist a variable got from the user(form data) even after a refresh.</p>
<p>-- Php Beginner</p>
| php | [2] |
5,484,976 | 5,484,977 | Can Array contain only a single key value pair? | <p>I have declared a method where it will dynamically create a database query string depending on the table my code is something like this.</p>
<pre><code>public function checkBeforeDelete($table = array(), $key , $value )
{
$tableCount = count($table);
$queryString = array();
for($i=0;$i&l... | php | [2] |
1,434,592 | 1,434,593 | Inheriting from std::vector | <p>There are many answers on here saying not to inherit from std::vector and alike such as <a href="http://stackoverflow.com/questions/10353954/potential-problems-with-inheriting-from-stdvector">this question</a>. I understand the reasons and agree with them. However in <a href="http://isocpp.org/files/papers/4-Tour-Al... | c++ | [6] |
4,328,992 | 4,328,993 | How to assign an object function to a variable? | <pre><code>class example()
{
function shout($var)
{
echo 'shout'.$var;
}
function whisper($var, $bool)
{
if($bool)
{
echo $var;
}
}
}
$obj = new example();
if($var)
{
$func = $obj->shout();
}else
{
$func = $obj->whisper();
}
</code></p... | php | [2] |
1,394,336 | 1,394,337 | I obtain different results from dynamic_cast when using different compilers | <p>The assertion in the following program gives different results according to the compiler used: in GCC 4.4 the assertions fails, while in CLang does not. It looks like GCC does not like V being private in C. Is this a bug?</p>
<pre><code>#include <cassert>
class V {
public:
virtual ~V() { };
};
template&... | c++ | [6] |
4,069,964 | 4,069,965 | looping over all member variables of a class in python | <p>How do you get a list of all variables in a class thats iteratable? Kind of like locals(), but for a class</p>
<pre><code>class Example(object):
bool143 = True
bool2 = True
blah = False
foo = True
foobar2000 = False
def as_list(self)
ret = []
for field in XXX:
if ge... | python | [7] |
2,986,830 | 2,986,831 | Adding names to an array and outputting them to a table | <p>I'm having some trouble getting my code to work. This is what I have so far.</p>
<pre><code>function outputNamesAndTotal() {
var name;
var outputTable;
var inputForm;
var nameArray;
var outputDiv;
outputDiv = document.getElementById("outputDiv");
inputForm = document.getElementById("inputForm");
ou... | javascript | [3] |
841,360 | 841,361 | Change z-index infinitely in jQuery | <p>I am a bit new to jQuery but I need to write a small custom image rotator. Basically I will have a small stack of .png images that look like Polaroids. The rotator will need to pull the top one off, move it to the right, set the Z-index lower than the other two, then move it back over...just like you would if you ... | jquery | [5] |
1,344,954 | 1,344,955 | iPhone Contact Syncing | <p>Everytime I sync my iPhone, any contacts I have deleted from my iPhone reappear, like the old contacts are added back. New contacts remain.</p>
| iphone | [8] |
1,110,154 | 1,110,155 | UITouch question. Is it possible to disable multiple tapping | <p>I would like to have each UITouch instance record a single tap. In other words, regardless of how close multiple taps occur in time, I would like them each to create a unique touch instance. Is this possible?</p>
<p>Thanks,
Doug</p>
| iphone | [8] |
1,326,063 | 1,326,064 | Android on ubuntu with eclipse | <p>I got HTC Desire phone, and i want to be able to run my application (developing ob eclipse or netbeans) on it. But when i run my applications i see (in the list of running devices ??? in 'name' column and ??? in status column. So i can<code>t press OK button (it</code>s just disabled). Please tell me how can i make ... | android | [4] |
1,188,389 | 1,188,390 | How can I optimize my javascript code? | <p>I have created the following jquery toggle box show/hide function. But I know that I have redundant code, and I want to make it as short and effective as possible. This is just my attempt to learn to code <em>right</em> fron the start...</p>
<p>HTML:</p>
<pre><code><div>
<ul>
<li><... | jquery | [5] |
3,168,511 | 3,168,512 | Display more than one images from drawable folder to view default imageviewer in android | <p>i want to display more than one images in android default imageviewer.i am view one image from sdcard to default android imageviewer.i want to display more than one images from drawable folder if it's not possible or how to view images from sdcard folder like if images folder contain more than one images to view all... | android | [4] |
2,010,958 | 2,010,959 | ... Pause button? | <p>I have an android game that relies on touching the major areas of the screen, so I had initially implemented a system for pausing that relied on physical keys/buttons (press "up" to pause). I knew this was a bad idea, but was unsure as to how I might implement a touchable pause "button." Ideas?</p>
<p>Here is the c... | android | [4] |
793,502 | 793,503 | Go back to default state if nothing is selected | <p>I have a results page with 2 columns: LEFT COLUMN contains a list of items that help the user filter his results. RIGHT COLUMN contains all the results. </p>
<p>By default, there are no items selected in the left column, hence, there are no results to show/filter on the right column. There are, however, some instru... | jquery | [5] |
4,185,961 | 4,185,962 | How to Separate the Profile Details | <p>I try to read education details from face book using JSON in IPhone.</p>
<p>I read all education details from Face book successfully.</p>
<p>But i get the whole details. I want to separate the school, college {PG and UG}. But the node having same name like school. and also the data wil be read first one school, an... | iphone | [8] |
4,902,793 | 4,902,794 | how to assign the hover to 2 elements | <p>I am trying to assign hover event to 2 elements at the same time. Are there better ways to do this?</p>
<pre><code>//I want to assign hover to another element.
$element1=$('hi');
$element2=$('hi2');
//I need to assign element 1 and element 2 to the same hover function...
$element1.hover(function(e){
... | jquery | [5] |
3,123,963 | 3,123,964 | add item to my stringarray | <p>I have my category_array(String array) in my String.xml file.
I use this string-array to populate a listview.</p>
<pre><code><string-array name="category_array">
<item >Airplane</item>
<item >Train</item>
<item >Taxi</item>
<item >Bus</item>
... | android | [4] |
392,233 | 392,234 | code to view current online users is not giving proper output | <p>i have written a code to view online users in asp.net(vb) but when page gets run it doesn't show proper output,it only shows 3 users online,if more pages are open then also it shows same.i have pasted the code below.please help me.</p>
<pre><code>Public Class Global_asax
Inherits System.Web.HttpApplication
... | asp.net | [9] |
760,490 | 760,491 | PHP Converting GMT to IST | <p>Can i convert GMT to IST in PHP without using PEAR.</p>
<p>Here is how i get GMT <code>gmdate()</code>, now how do i convert it to IST.</p>
<p>Thanks</p>
| php | [2] |
1,783,315 | 1,783,316 | operator precedence and associativity with Math.Floor(Math.Random()) | <p>I understand how the code works, in terms of the results it gives. First, it gets a random number, and, second, using Math.floor() it rounds down the results of Math.Random. Therefore, it's moving from right to left through the code. </p>
<pre><code>Math.floor(Math.Random * num);
</code></pre>
<p>In the JavaScrip... | javascript | [3] |
3,215,308 | 3,215,309 | SDK for MediaTek | <p>How can we get (paying) the SDK for MediaTek 6223/6225/6235?</p>
<p>Regards,</p>
<p>Carlos Paz
lorgot at hotmail dot com</p>
| iphone | [8] |
2,521,620 | 2,521,621 | Triggering jquery event function at page load | <p>Here's a little jQuery function that does what I want when a checkbox is clicked, but I have a basic gap in my knowledge: </p>
<p>How to register this so that it deals with checkboxes that are already clicked when the page loads? </p>
<p>(<strong>Edit:</strong> Sorry, to those who already answered the question, bu... | jquery | [5] |
2,092,146 | 2,092,147 | Arrow icon missing back-to-top javascript? | <p>I have a problem with my website, <a href="http://www.gameamv.com" rel="nofollow">www.gameamv.com</a>.</p>
<p>Lower right corner, I had the back-to-top arrow icon called icon-chevron-up which looks like this ( ^ )</p>
<p>I did some CSS changing and cannot figure out why it disappeared? I've been back tracking for ... | javascript | [3] |
3,071,899 | 3,071,900 | Java Generic Types | <p>How to code a list that has a method, i.e. sum(), that returns the sum of the element(s) in the list if all element(s) in the list are integer or number, and returns the concatenation of string of characters if all element(s) in the list are string (type) using Java to implement the concept of polymorphism in Java?... | java | [1] |
1,480,477 | 1,480,478 | How to decode text? | <p>Hi guys I have a json response from server with such text:</p>
<pre><code><div class=\"profile-info\">\u0413\u043e\u0440\u043e\u0434: \u041a\u043e\u0432\u0440\u043e\u0432<\/div>
</code></pre>
<p>How to decode <code>\u0413\u043e\u0440\u043e\u0434: \u041a\u043e\u0432\u0440\u043e\u0432</code>?</p>
| c# | [0] |
5,712,684 | 5,712,685 | Set running time limit on a method in java | <p>I have a method that returns a String, is it possible that after a certain time treshold is excedeed fot that method to return some specific string? </p>
| java | [1] |
4,514,350 | 4,514,351 | How to access an array from within an object? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7027615/accessing-class-properties-with-spaces">Accessing Class Properties with Spaces</a> </p>
</blockquote>
<p>i have and object file and i cant get devices list, How to get <strong>devices</strong>?? how to c... | php | [2] |
5,624,322 | 5,624,323 | Php validate with preg_match | <p>I try to validate fields. Three fields that may only contain numbers. The fields have the variable names $num1, $num2, $num3. I have put them in an array and then I run preg_match but it does not work. How should I do?</p>
<pre><code>$valnum = array (‘$num1’, ‘$num2’, ‘$num3’);
if (preg_match('/[0-9]/', $valnum... | php | [2] |
5,870,810 | 5,870,811 | How to quote a string dynamically in Javascript? | <p>This kinda funny, i want to quote a string value for a function but javascript throws this error <code>Uncaught SyntaxError: Unexpected token }</code></p>
<p>This my code</p>
<pre><code>var val = "Testing String";
var table_row = "<tr><td><a href='#' onclick='test('"+val+"')'>Row1</a></t... | javascript | [3] |
2,686,406 | 2,686,407 | How to call Activity from a menu item in Android? | <p>I'm attempting to call startActivity(myIntent) from the click of a menu button but my application crashes at that point.</p>
<p>The same startActivity call works fine from a regular button click, so, I assume the menu button is missing information about the context? Or maybe I'm totally off the mark here.</p>
<p>S... | android | [4] |
56,186 | 56,187 | Library to translate using google or other service? | <p>Is there a PHP script or library or API to use google translate or other similar service?</p>
<p>I need to translate a few words stored in an array:</p>
<pre><code>$toTranslate = array(
'word1',
'word2',
'word3',
'word4'
);
</code></pre>
| php | [2] |
1,810,372 | 1,810,373 | How to filter list using Predicate | <pre><code>private static class FilterByStringContains implements Predicate<String> {
private String filterString;
private FilterByStringContains(final String filterString) {
this.filterString = filterString;
}
@Override
public boolean apply(final String string)... | java | [1] |
586,638 | 586,639 | keypress not working in ie7/8 | <p>simple question - </p>
<p>This will not seem to work in ie7/8. <a href="http://jsfiddle.net/XvXpE/1/" rel="nofollow">http://jsfiddle.net/XvXpE/1/</a></p>
<p>Any idea why? Or what I can do to fix it?</p>
| javascript | [3] |
5,135,666 | 5,135,667 | In Javascript, how to explain 0 == "" returning true? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7605011/why-is-0-true-in-javascript">Why is 0 == “” true in JavaScript</a> </p>
</blockquote>
<p>The following is done in Firebug:</p>
<pre><code>>>> 0 == ""
true
>>> "" == false
... | javascript | [3] |
5,449,736 | 5,449,737 | Image Uploading | <p>i want to upload an image from the client's system, through javascript and store that image on the client side (local storage) not at the server side..and before uploading that image i want to preview that image also...any help will be awesome...
Regards: Zain</p>
| javascript | [3] |
1,629,503 | 1,629,504 | Read HTML string | <p>How to read string in HTML? I need to read character by character until certain condition then
go to the next line.</p>
<p>I found the class <a href="http://msdn.microsoft.com/en-us/library/system.net.webclient%28v=vs.80%29.aspx" rel="nofollow">WebClient</a> </p>
<pre><code>client = new WebClient();
String htmlCod... | c# | [0] |
5,879,993 | 5,879,994 | how to replace space with %20 in url in android in jsonparsing | <p>In my application i want to replace space with %20 in my string.I tried in this way,</p>
<pre><code>String flag1="http://74.208.194.142/admin/upload_image/1342594079_images (2).jpg";
flag1.replaceAll("", "%20");
</code></pre>
<p>But it is not working please help me.I am getting null pointer exception.</p>
| java | [1] |
4,217,715 | 4,217,716 | How to Rename my asp.net web page | <p>I have a page name with XYZ.aspx</p>
<p>Now I want to change ABC.aspx how should I do it?</p>
<p>When i directly change it from solution explorer it gives me an error.</p>
<p>Can anyone help me on this?</p>
<p>Thank You </p>
<p>Smartdev</p>
| asp.net | [9] |
2,394,120 | 2,394,121 | JavaScript delete confirm box | <p>My function is something like this:</p>
<pre><code>function delete(type, id){
if(id){
window.location.href = '/site/'+type+'/delete/'+id;
}
}
</code></pre>
<p>I'm calling it like this:</p>
<pre><code>onclick="delete('position', <?php echo $key;?>)
</code></pre>
<p>Where in the function shou... | javascript | [3] |
3,280,014 | 3,280,015 | Identity Property in Cayley Table | <p>I am working on a project which requires me to discern if the cayley tables in my text files, have identity, associative, inverse, and abelian properties.. I am currently working on the identity function, and while I believe I must use two nested for loops to cycle through the rows and columns of the tables. I am un... | c++ | [6] |
301,051 | 301,052 | why android emulators are very slow on my computer | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1554099/slow-android-emulator">Slow Android emulator</a> </p>
</blockquote>
<p>is it my computer's hardware limitation? it has 1024 megabytes of ram 2200 x 2 dual core amd cpu i can't develop any android. th... | android | [4] |
2,707,062 | 2,707,063 | Find the contents of a directory | <p>Is it possible to get the contents of a directory with javascript?</p>
| javascript | [3] |
1,073,665 | 1,073,666 | PHP load <option> data into <textarea> | <pre><code><select name="template" id="template">
<option value="none">Don't use template</option>
<option value="RWT">Report Abuse</option>
<option value="renew">Resend Email Codes</option>
</select><br/>
<textarea name="body" row... | php | [2] |
86,760 | 86,761 | Error: expected identifier, string or number | <p>I've been working on some javascript functionality for this site: <a href="http://bit.ly/e1oyVV" rel="nofollow">http://bit.ly/e1oyVV</a></p>
<p>Everything is o.k in all browsers except IE 6 and 7 where I'm getting the error: </p>
<p>Error: expected identifier, string or number on line 236, char 3</p>
<p>I have no... | javascript | [3] |
5,947,000 | 5,947,001 | How to uncheck a checkbox on unselection of a particular checkbox | <p>I want to uncheck checkbox based on unselection of another check box.
ex.</p>
<pre><code> <input id=isActive_1 type=checkbox />
<input id=isActive_2 type=checkbox />
<input id=isActive_3 type=checkbox />
<input id=publish_1 type=checkbox />
<input id=publish_2 type=checkbox />... | jquery | [5] |
6,022,326 | 6,022,327 | Assigning values from list to list excluding nulls | <p>Sorry for the title but I don't know other way of asking.</p>
<p>EDITED FOR EASY EXPLANATION</p>
<pre><code>public Dictionary<string, string>[] getValuesDB(DataSet ds)
{
Dictionary<string, string>[] info;
Dictionary<string, string>[] temp = new Dictionary<string, string&g... | c# | [0] |
3,922,970 | 3,922,971 | Cannot access cookie in javascript | <p>I created a function to get the cookie in javascript :</p>
<pre><code> function getCookie() {
var arr = document.cookie.split(";");
for (i = 0; i < arr.length; i++) {
if (arr[i].substr(0, arr[i].indexOf("=")).replace(/^\s+|\s+$/g, "") == "taxibleC") {
return arr[i].s... | javascript | [3] |
1,095,842 | 1,095,843 | Set an event on item select CheckboxList | <p>How to fire an event based on selected item in Checkboxlist (ASP.net 3.5), the OnSelectedIndexChanged in Checkboxlist returns a list of all the selected items, where I need to know just the current selected item.</p>
| asp.net | [9] |
4,180,939 | 4,180,940 | how to read a txt file containing matrix form of data into 2d array of same dimensions as in the file using java | <p>here is my code:</p>
<pre><code>import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class csvimport5 {
public static void main(String[] args) throws IOException {
double [][] data = new double [87][2]; ... | java | [1] |
4,979,727 | 4,979,728 | Simple java program can not be run | <p>I am trying to compile and run HelloWorld on linux machin with java version 1.6. I get it compiled but can not run it. I know that the program is at least correct. </p>
<p>Can anybody tell me how to get the silly program run?</p>
<p>I know even this problem had been metioned several times but nowhere found the fi... | java | [1] |
3,975,055 | 3,975,056 | what should i put in this if statment to save the the current array value to a variable | <pre><code>if (preg_match('/^([0-9]( |-)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$/', $buffer, $matches));
{
$variable = ?;
}
</code></pre>
| php | [2] |
2,021,676 | 2,021,677 | Android App using WAF | <p>I'm a new android app developer and I wanted to know if it's possible to create android apps using Web Application Framework?</p>
<p>if so, are there links for examples?</p>
| android | [4] |
4,915,438 | 4,915,439 | How to create Downloading Bar to UIWebview | <p>I need to create downloading bar, when URL is loading on UIWebview to my application.</p>
<p>I need to following format when URL is loading time to my application.</p>
<p><img src="http://i.stack.imgur.com/OaOcA.jpg" alt="alt text"></p>
<p>If anybody know the solution for this, please help me.</p>
<p>Thanks.</p>... | iphone | [8] |
2,541,780 | 2,541,781 | Synchronize two ListView positions when you scroll from both list views Android | <p>I have two ListViews. Is there any way to synchronize the position of ListViews when I scroll both the Lists</p>
| android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.