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 |
|---|---|---|---|---|---|
1,975,678 | 1,975,679 | Jquery: syntax for inserting a function | <p>I'm trying to integrate an animation by using the bezier path plug-in and I can't seem to implement it right.</p>
<p>Stripped down, here's what I have:</p>
<pre><code> $('#next2btn').live('click', function(){
$(this).attr('id','next3btn');
$('#content2').show(300, function() {
$('#acc... | jquery | [5] |
3,008,067 | 3,008,068 | PHP class method named print... not allowed? | <p>I am writing a Controller for Codeigniter with a method named "print". The name is important, because I would like to be able to access the page at "http://www.mysite.com/mycontroller/print".</p>
<p>However, I cannot do this because there is the syntax error:</p>
<pre><code>Parse error: syntax error, unexpected T... | php | [2] |
2,084,499 | 2,084,500 | php-cgi.exe has 16 and more instances in task manager | <p>Can someone tell me if 16 running processes of <strong>php-cgi.exe</strong> is normal behavior, and if not what might causing that? The server gets a lot of requests and uses HttpRequestPool for sending parallel requests.</p>
| php | [2] |
3,927,064 | 3,927,065 | email queueing with c# | <p>not sure it is possible but I am looking for a solution that will queue email messages. </p>
<p>Is there any way to write some sort of web app that will run and send certain amounts of emails to email server for delivery even after I submit my message and close webpage. May be some sort of daemon?</p>
| c# | [0] |
2,912,828 | 2,912,829 | Header cannor be sent | <p>I got some error when I uploaded my site to server. The error is:</p>
<p>Cannot modify header information - headers already sent by (output started at.....)</p>
<p>My site works fine on my localhost. Whats the possible error?</p>
| php | [2] |
5,808,713 | 5,808,714 | JavaScript tree / treegrid libraries | <p>I'm looking for a good JavaScript tree / treegrid package. Now -- before you answer:</p>
<p>It needs to be able to perform well with <em>lots</em> of nodes. Perhaps 1,000 sibling nodes. It needs to be able to draw to a usable state within 2 or 3 seconds with 1,000 nodes. It doesn't necessarily need to draw all ... | javascript | [3] |
5,184,479 | 5,184,480 | Is there a jquery event for handling edits of text boxes? | <p>I am looking for a way to bind to an event whenever the text of a text box changes. Right now, I have something like this:</p>
<pre><code>$("#inputPane").change(function() { alert("Changed!"); });
</code></pre>
<p>However, this only gets called when the text box loses focus. I want to get an event whenever a new... | jquery | [5] |
90,276 | 90,277 | jQuery Focus on Div with contentedible | <p>When I hit the enter key I cannot change the focus on the divs. Can anyone help?</p>
<pre><code><div contenteditable="true" id="t" tabindex="-1">
<div class="me" spellcheck="true" content="inhert" >Hello <span style="font-weight: normal;">world2!</span></div>
&l... | jquery | [5] |
4,461,172 | 4,461,173 | Can you use the JavaScript engine in web browsers to process local files? | <p>I have a number of users with multi-megabyte files that need to be processed before they can be uploaded. I am trying to find a way to do this without having to install any executable software on their machines. </p>
<p>If every machine shipped with, say, Python it would be easy. I could have a Python script do eve... | javascript | [3] |
3,306,613 | 3,306,614 | PHP Problem reading the hex values between these addresses? | <pre><code><?php
$file = 'file.dat';
$file_contents = file_get_contents($file);
for ($i = 0x000481; $i <= 0x00048B; $i++) {
print $i;
}
?>
</code></pre>
<p>I am creating an online file analyzer but I have a small problem. It outputs (which is the actual position the hex is in)</p>
<blockquote>
<p>1153 1154... | php | [2] |
1,709,241 | 1,709,242 | How do I change the View's visibility based on another View's animation in a custom layout? | <p>I created a custom RelativeLayout called WheelLayout which contains two ImageViews. The first View, WheelView, is a custom View that calls RotateAnimation a couple times. </p>
<p>WheelView has a custom interface called WheelListener.</p>
<pre><code> public interface WheelListener {
public void wheelStarted();
... | android | [4] |
3,659,834 | 3,659,835 | How to replace more strings in a variable? | <p>In Php it's easy:</p>
<pre><code>str_replace (array(...), array(...), $subject)
</code></pre>
<p>But how to do it in javascript?</p>
<p>thanks in advance,</p>
| javascript | [3] |
4,592,118 | 4,592,119 | Tree Implementation in Python | <p>I found two similar questions(infact same question) for implementing tree in python. Can anyone point me to good references to implement trees. The link given in previous answers is not working.Thanks!</p>
| python | [7] |
5,435,710 | 5,435,711 | how can I automatically stop all background tasks when app is coming in foreground state | <p>i am using following code</p>
<pre><code>#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
if ([[UIApplication sharedApplication]
respondsToSelector:@selector(beginBackgroundTaskWithExpirationHandler:)])
{
UIBackgroundTaskIdentifier bgTask = [[UIApplication sharedApplication]
... | iphone | [8] |
3,395,233 | 3,395,234 | Windows Event log file | <p>I have a program which reads a file every time and now I want to read the event log file of windows ,how can I get the location and read its contents.</p>
<p>The logs are stored in the <strong>%SystemRoot%\System32\Config</strong> directory with a .evt extension. Within the Computer Manager you can also export them... | java | [1] |
4,101,744 | 4,101,745 | Sort ObservableCollection by Date | <p>I have a collection</p>
<pre><code>private ObservableCollection<ContentItemViewModel> _contentTree;
public ObservableCollection<ContentItemViewModel> ContentTree
{
get { return _contentTree; }
}
</code></pre>
<p>class ContentItemViewModel has property:</p>
<pre><cod... | c# | [0] |
5,828,300 | 5,828,301 | Autocentering picture in a control | <p>I'm trying to do a kind of gallery wich can center to the most closer picture.
The controls that I think I can use are the HorizontalScrollView, but I need the trasition effect of centering in the middle of the closest picture. Any idea of examples or the control that I need to use? </p>
<p>Thank you!</p>
| android | [4] |
279,256 | 279,257 | "Minimal" source files to create Android app using Eclipse + ADT | <p>I am trying to understand the anatomy of a MINIMAL Android application, using Eclipse + ADT (Android Development Toolkit).</p>
<p>Please can you advise what is the MINIMAL set of source files I need, for example :-</p>
<pre><code>src / package / MainActivity.java
res / layout / activity_main.xml
res / menu / activ... | android | [4] |
5,733,856 | 5,733,857 | Why does Python return negative list indexes? | <p>If I have this list with 10 elements:</p>
<pre><code>>>> l = [1,2,3,4,5,6,7,8,9,0]
</code></pre>
<p>Why will l[10] return an IndexError, but l[-1] returns 0?</p>
<pre><code>>>> l[10]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: list index out o... | python | [7] |
1,367,870 | 1,367,871 | How to retrieve a Bitmap/image from videoview | <p>I'm trying to get a snapshot of the current position of playback of a video, but I couldn't find an appropriate way to do that. Is there a method I can use? </p>
<p>Any help would be appreciated.
Thanks.</p>
| android | [4] |
2,253,795 | 2,253,796 | How to generate passwords? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4290889/get-all-possible-word-combinations">Get all possible word combinations</a> </p>
</blockquote>
<p>I have a string <code>"abcdefgklmno0123456789"</code></p>
<p>I need to enumerate all the possible combina... | c# | [0] |
5,568,805 | 5,568,806 | How to get the size of the browser inner space if it were maximized in pixels through javascript | <p>I need to know the client available screen size, I mean the size of the browser inner space if it were maximized in pixels. I need some code that works on both IE and Firefox at least.</p>
<p>Thanks in advance</p>
| javascript | [3] |
4,545,206 | 4,545,207 | Help regarding android 1.5 and 2.1 (beginner, issue of Book Version) | <p>I am new to android and last year i bought two books of <strong>android 1.5</strong>. But at that time i was busy in my project so was not able to work on android. Now i want to start android again. Should i go for those books or should i buy new editions
Is there any major change regarding basic learnings?
Two boo... | android | [4] |
4,998,903 | 4,998,904 | iPhone+want tapku libarary calender cell color | <p>I'm using tapku library for displaying a calender in my application I have done all of the date calculations and amrked the cells properly according to my need, but I want to give diff diff color to the cell according to my choices.</p>
<p>Please help me, I have to solve this issue as early as possible..</p>
| iphone | [8] |
5,274,062 | 5,274,063 | How to call on text from a textbox to set a variable in javascript | <p>I have a bit of a predicament. I am trying to run a variable on a loop so that it can change the loop. Here is the code that I have at the present time.</p>
<pre><code><FORM NAME="myform" ACTION="" METHOD="GET">
<INPUT TYPE="text" NAME="inputbox" id="Variable"><P>
</FORM>
<script type="t... | javascript | [3] |
1,330,802 | 1,330,803 | How do I prevent users from being able to "back" into page from a destroyed session? | <p>I have created login functionality on my site, and when I click logout the page redirects and destroys session, which is fine.</p>
<p>However when I click the back button I can still view the page. If I refresh it, then it will redirect me to login as the session has been destroyed and the user does not have access... | php | [2] |
3,624,655 | 3,624,656 | how do I add if statement in linq statement | <p>Can someone please help me add the if statement that's commented in the code snippet below?</p>
<pre><code>Dictionary<string,int> toReturn;
List<string> lookup = GetIt();
foreach (string test in lookup)
{
var testDictionary = ToGroupDictionary(test);
testDictionary.Keys.ToList().ForEach(k =>... | c# | [0] |
2,469,832 | 2,469,833 | How to get Bing 'daily mobile wallpaper' address | <p>is There anyone know how to get the Bing 'daily mobile wallpaper' address.
if you visit bing.com via your IPhone, you will see a beautiful wallpaper.
Bing change it everyday, and provide two resolution format for Portrait and landscape.</p>
<p>for example, today's Bing mobile wallpaper are from
<a href="http://www.... | iphone | [8] |
2,887,657 | 2,887,658 | Removing inserted numbers from a String in java | <p>Ok, so i have created a program that defines if the inserted word is a palindrome or not.
But i need help on removing numbers that where to be inserted in the string.</p>
<pre><code>import java.util.*;
import java.util.Scanner;
class Palindrome
{
public static void main(String args[])
{
String reverse ... | java | [1] |
695,360 | 695,361 | List of Strings unable create | <p>I am trying to understand how to create array lists in Java, for some reason I am getting an error saying to change the type of myList to ArrayList even though I saw this example from a different post on stack overflow and it seemed to work. </p>
<p>What I am trying to do is simply create a List, add three strings ... | java | [1] |
83,174 | 83,175 | Finding Nested value(s) within nested values in jQuery | <p>I have the following code with the intention of locating values from within a targeted div as follows:</p>
<pre><code>$('#combineDiv').children().each(function(){
if ($(this + ":first-child").attr('class') == 'combinedColumn') {
alert('found ONE!');
}
});
</code></pre>
<p>I have a hidden inpu... | jquery | [5] |
2,935,686 | 2,935,687 | Counters not decrementing or not being read in Breakout | <p>Okay, I've got this game loop which never terminates --</p>
<pre><code>public void run() {
setup();
addMouseListeners();
int Turns = NTURNS;
int TotalBricks = NBRICKS_PER_ROW * NBRICK_ROWS;
while ((Turns>0) && (TotalBricks>0)) {
moveBall();
checkForCollision();
... | java | [1] |
2,867,829 | 2,867,830 | How to detect screen rotation through 180 degrees from landscape to landscape orientation? | <p>I've seen a few other questions similar to this but no answers.</p>
<p>Rotating from portrait to landscape (either direction) and back again, we get the helpful call to onConfigurationChanged().</p>
<p>However, when rotating from landscape to landscape (through 180 degrees) onConfigurationChanged() is not called.<... | android | [4] |
2,365,883 | 2,365,884 | Jumping and standing on objects in 2D game | <p>Im making small 2D game and i would like how should, theoretically work jumping and standing on objects.<br>
For jumping should there be some kind of gravity?Should i use collision detection?<br>
Good example of what i want to undestand is jumping in Mario.</p>
| java | [1] |
2,032,468 | 2,032,469 | How we insert the data in the database using sqlite database? | <p>Please help me? I'm new with android database.<br>
Proper answer would be appreciated.</p>
| android | [4] |
2,666,557 | 2,666,558 | jquery dynamic adding hidden field | <pre><code>$().ready(function()
{
$("#add").click(function()
{
var vals = $("#txtaddfeature").val();
if(vals !='')
$('#FeatureLists').prepend('<option value="' + vals + '" selected="selected">' + vals + '</option>');
$('#txtaddfeature').val('');
});
});
</code></pre>
<p>Ok... | jquery | [5] |
4,077,195 | 4,077,196 | hardware detail using Java | <p>I want to make a java application software which give the current status/information of the running computer. So, for this, is there any inbuilt/extrnal library present or not?</p>
<p>Can anyone give a simple code which will just. "What is the current status of laptop battery?" or "Is AC adapter is pluged in or not... | java | [1] |
2,959,129 | 2,959,130 | Develop count down timer with unlimited lap options | <p>I want to develop a count down timer in Android which will have unlimited lap options.</p>
<p>Can anyone guide me with sample article / source code.</p>
<p>Warm Regards,</p>
<p>CB</p>
| android | [4] |
5,215,817 | 5,215,818 | Running PHP script in background | <p>I am testing a php script that has been developed on an OS-X system at Debian and it behaves different there.</p>
<p>To reproduce it I wrote two scripts: parent.php and child.php:</p>
<p>parent.php:</p>
<pre><code>#!/usr/bin/php
<?php
echo "parent started...\n";
shell_exec(__DIR__ . '/child.php &2>/dev... | php | [2] |
431,444 | 431,445 | how to take picture from camera using iphone app | <p>I have implemented picture taking while pressing UI Button butwhen ever i pressed the button got app crashed.</p>
<p>Here is the source code.</p>
<pre><code>.h file
@interface Camera : UIViewController
<UIImagePickerControllerDelegate>
{
UIImagePickerController *mPicture;
... | iphone | [8] |
4,855,265 | 4,855,266 | Easiest way to save data in savedInstanceState when managing an adapter(viewpager) | <p>I'm working with an adapter(viewpager) and when the app changes orientation it loses its information. Which is the easiest way to conserve this information? I was going to use savedInstanceState inside the adapter but it doesn't recognise it.</p>
| android | [4] |
66,192 | 66,193 | System.currentTimeMillis() give wrong output android | <p>when i am print <code>System.currentTimeMillis()</code></p>
<p>give me : </p>
<pre><code>11-03 14:47:05.400: INFO/System.out(7579): date is :: 14475410111
</code></pre>
<p>What is the correct procedure to get entire date with time.?</p>
| android | [4] |
4,530,282 | 4,530,283 | jQuery .delegate(). Events not firing on second click | <p>On a new site I'm designing, I have a top div with a link in it. When that link is clicked, the div animates to the full height of the content. This works but I want a second click on that link to animate the div back to how it was before. This isn't working.</p>
<p>I am using jQuery 1.5.2, hence the use of .delega... | jquery | [5] |
2,344,831 | 2,344,832 | ajax loop over data in jquery | <p>It is possible to loop over all value I get back from jquery ajax call?</p>
<p>below is what I'm trying to do...</p>
<pre><code>if ($(data.DATA).length == 1) {
loop ALL data.DATA {
get data.DATA.ID
}
}
</code></pre>
<p>Thanks</p>
| jquery | [5] |
1,132,101 | 1,132,102 | Cross-browser Javascript copy button | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript">How to copy to the clipboard in JavaScript?</a> </p>
</blockquote>
<p>I am trying to implement a cross-browser Javascript copy button, but am unable to use Flas... | javascript | [3] |
431,550 | 431,551 | Change text in file with php | <p>How would I go about doing this, preferably without mysql.
I just want to display the value inserted on a form on a text file.</p>
| php | [2] |
4,456,680 | 4,456,681 | stopping android handler loop | <p>i am using a class which extends Handler class to update my activity UI.
The code is as follows in side main activity,</p>
<pre><code>public class RefreshHandler extends Handler {
public void handleMessage(Message msg) {
Homeform.this.updateUI();
}
public void sleep(long delayMillis) {
... | android | [4] |
4,267,272 | 4,267,273 | Php putenv() question | <p>I am new to php. Can anyone give a good definition or example when to use putenv() in php? Thanks.</p>
| php | [2] |
252,323 | 252,324 | Generate no duplicate digits | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9960908/permutations-in-javascript">permutations in javascript?</a> </p>
</blockquote>
<p>Now I have 6 numbers, they are from 1 to 6.
I want to generate some digits using all of these numbers, for example, 12345... | javascript | [3] |
5,512,945 | 5,512,946 | How do I control the alignment of formatted text in Java? | <p>I'm knocking my head here using System.out.printf and I really don't understand something that seems that it should be much more simple.</p>
<pre><code>public class main{
public static void main(String args[]){
double dog = 3.85;
double cat = 333.85;
System.out.printf("Hola:%7.1f\n",dog... | java | [1] |
5,716,806 | 5,716,807 | why a .net 1.1 code gets compiled in 2.0 and throws an error? | <p>Hi I have web projects build in VS2003/1.1 framework and deployed in a webserver with IIS setting specified to 1.1 framework.lets say project X</p>
<p>I also have another web project which is build with VS2008/2.0. IIS setting - ASP version 2.0 is selected and all pages are assigned to run with 2.0* dlls. Lets say ... | asp.net | [9] |
413,313 | 413,314 | adding 48 to string number | <p>I have a string in C# like this:</p>
<pre><code>string only_number;
</code></pre>
<p>I assigned it a value = <code>40</code></p>
<p>When I check <code>only_number[0]</code>, I get <code>52</code><br>
When I check <code>only_number[1]</code>, I get <code>48</code></p>
<p>why it is adding 48 to a character at curr... | c# | [0] |
1,704,155 | 1,704,156 | how do i set a conditional statement here? | <pre><code><ul>
<li class="artist-website"><a href="<?php=$artist_website?>" target="_blank"></a></li>
<li class="artist-youtube"><a href="http://youtube.com/<?php=$artist_youtube?>" target="_blank"></a></li>
<li class="artist-twitter">... | php | [2] |
1,017,566 | 1,017,567 | Trying to write to a file and force download with php | <p>Im using the following code to present a file for download. The file saves on the server correctly with the data, and prompts for download, but the downloaded file is empty. The new file is in the same directory as this script.</p>
<pre><code><?php
if(strlen($_POST['name'])<1){
echo "error: you must enter a ... | php | [2] |
2,453,577 | 2,453,578 | Assign valuefield and textfield to listbox | <p>Hi Friends
i develop a webpage in that i need to add value field and text field to listbox item
i tried the following code , but it's not working , Please help me to solve the issue .
Thanks in advance</p>
<pre><code> string[] category = new string[100];
char[] delimeter = { '~' };
categ... | c# | [0] |
1,234,019 | 1,234,020 | increase number of touch points in a Path | <p>I am drawing a <code>path</code> when a user drags his finger across screen. If, however, he does this too fast, I get too few points in <code>path</code>. Is there some way, I can increase the number of points in <code>path</code> <em>after</em> the user has drawn it?
I need this because I am comparing each point o... | android | [4] |
5,480,244 | 5,480,245 | PHP: How do I run a loop during a certain time of the day? | <p>I have a loop which runs in php..</p>
<p>I only want the loop to run if the local (sydney, australia) time is between 1pm and 3pm.</p>
<p>Can anyone provide an example of how this would function?
Thank you!</p>
| php | [2] |
5,035,654 | 5,035,655 | check all the checkboxes by clicking on the "ALL" checkbox using jquery | <pre><code><body>
<input type="checkbox" id="chkMain" />
<input type="checkbox" id="chkMain1" />
<input type="checkbox" id="chkMain2" />
<br>
<P><input class="child" type="checkbox" id="chk1" disabled="true" />
<input class="child"... | jquery | [5] |
4,307,927 | 4,307,928 | How to read special characters | <p>I am getting a value of column from database like below:</p>
<pre>
`;;][@+©
</pre>
<p>When I am reading this in my Python code this is giving below error message:</p>
<pre>
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 7: invalid start byte
</pre>
<p>Then I tried below code but not working:... | python | [7] |
3,147,291 | 3,147,292 | What does the double exclamation !! operator mean? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/784929/what-is-the-operator-in-javascript">What is the !! operator in JavaScript?</a><br>
<a href="http://stackoverflow.com/questions/2168406/what-does-double-exclamation-point-mean">What does !! (double exclamati... | javascript | [3] |
2,750,808 | 2,750,809 | How do I develop a large whitelist of pages for a PHP include? | <p>It's clear that for any reasonable-sized website, building it in modules using PHP includes has great advantages, so I chose to dynamically create the page content using includes. I was against the idea of including the header and footer, so I did the inverse like this (index.php):</p>
<pre><code> if(isset($_GET... | php | [2] |
4,883,110 | 4,883,111 | asp.net dynamic control and jquery | <p>I have some controls being dynamically added to the placeholder control and on the page it has the HTML button (not asp button) that does the validation on the dynamic controls. And the click event handler of the HTML button is in the .js file. </p>
<p>Can anyone suggest the best method to do this?</p>
| asp.net | [9] |
2,766,427 | 2,766,428 | Adding content to variable | <p>sorry I don't know the exact term for this.
I'ld like to add content to "mymeta" from the loops and echos.
I tried this but it's not working:</p>
<pre><code> $mymeta = if (strlen($finalArray['Title']) > 0){
echo $finalArray['Title'] . " | ";
}
+
else if (strlen($finalArray['Name']) >... | php | [2] |
1,399,983 | 1,399,984 | Site works on laptop at public and uni wifi but not at home and Unsafe JavaScript attempt to access frame | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10880177/solutions-to-unsafe-javascript-attempt">Solutions to Unsafe JavaScript attempt?</a> </p>
</blockquote>
<p>Hi so when my cousin tries to access a game on my laptop we get:</p>
<p>4event.layerX and event... | java | [1] |
4,113,605 | 4,113,606 | Is it possible to code images into a python script? | <p>Instead of using directories to reference an image, is it possible to code an image into the program directly? </p>
| python | [7] |
4,893,316 | 4,893,317 | How to add an option from a drop down menu into a select box? | <p>I have a jquery code below where an option which has been selected from a drop down menu is removed from the drop down menu:</p>
<pre><code> var selectedOption = jQuery("#modulesDrop option:selected");
selectedOption.remove();
</code></pre>
<p>But before I perform the remove, I want to add t... | jquery | [5] |
4,436,620 | 4,436,621 | iPhone:Problem with String Concatenation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/510269/how-do-i-concatenate-strings-in-objective-c">How do I concatenate strings in Objective-C?</a> </p>
</blockquote>
<p>Hello,</p>
<p>I am retrieving 10 separate strings from an XML parser. I want to append ... | iphone | [8] |
4,984,363 | 4,984,364 | conventional wisdom Jquery: how do I know I have selected etc | <p>Learning jquery right now though I guess this question could be true of any programming language.</p>
<p>I'll ask the question by example:</p>
<p>Currently reading "jquery fundamentals". In the exercises one of the questions is "Figure out how many elements on the page are hidden (hint: .length)."</p>
<p>I've wri... | jquery | [5] |
2,649,920 | 2,649,921 | python-read file names and build a namelist | <p>I want to make a name list and store all the names in four folders. I build</p>
<pre><code>namelist = {1:[], 2:[], 3:[], 4:[]}
</code></pre>
<p>In the method, I write</p>
<pre><code>for file_name in sorted(os.listdir(full_subdir_name)):
full_file_name = os.path.join(full_subdir_name,file_name)
#namelist[l... | python | [7] |
2,842,805 | 2,842,806 | Changing button background dynamically in thread in Android | <p>I'm developing my first app for Android and its supposed to be a game. Everything is fine but there's one thing I just can't wrap my head around.</p>
<p>In my game's "main" activity (not the first activity which starts when the app starts) I want to have a method which starts a thread which changes a buttons backgr... | android | [4] |
1,241,875 | 1,241,876 | How can i filter data by checkbox check or uncheck | <p>I have a few checkbox like below. and when one checkbox checked it must load result from mysql and when unchecked again it must load result without page refresh.</p>
<p>Almost it is same with <a href="http://www.facebook.com/find-friends/browser/" rel="nofollow">http://www.facebook.com/find-friends/browser/</a></p>... | php | [2] |
948,532 | 948,533 | Split() method in Java for multi-dimensional array | <p>I have a two dimensional array. The assignment is to accept row and columns numbers from user and if user wants to enter numeric data row by row (or column by column) he has to do that with comma. Such as, 3x3 will be:</p>
<p>1,2,4</p>
<p>2,5,3</p>
<p>5,3,2 </p>
<p>So the the first row elements will be [0,0]=1 [... | java | [1] |
4,551,811 | 4,551,812 | matching multiple file extensions with fnmatch() | <p>In the typical file matching code:</p>
<pre><code>while (false !== ($file = readdir($handle))) {
if ($file !== "." && $file !== ".." && fnmatch($mask, $file)) {
$dirList[] = $file;
}
}
</code></pre>
<p>I was trying to use a multiple file extension pattern like this:</p>
<pre><code>... | php | [2] |
346,898 | 346,899 | how to use jquery to remove option from select box | <p>How to use jquery to delete opt1 row ? How about changing opt2 to become selected?
Note that the values are random numbers.</p>
<pre><code> <select name="ShippingMethod" >
<option value="8247(random)">Opt2</option>
<option value="1939(random)" selected="selected">Opt1&... | jquery | [5] |
5,396,106 | 5,396,107 | DNS query in android source code | <p>Can someone please point out the code in android source code, where a DNS query is being made?</p>
<p>I tried to locate the code where the actual DNS query is sent from an application, but i couldn't.</p>
<p>Any help would be great.</p>
<p>Thanks in advance</p>
| android | [4] |
3,944,222 | 3,944,223 | Replace text with JavaScript | <p>I need to replace text using Javascript. It's a little different than the other ones I've seen on S.O. because the text that needs to be added in is an incrementing integer.</p>
<p>For example: Replace the string: "John Mary Ellen Josh Adam" with "John1 Mary2 Ellen3 Josh4 Adam5"</p>
| javascript | [3] |
5,046,051 | 5,046,052 | How to Make Web Service Call Without Making the GUI Unresponsive | <p>I have a <code>UISearchBar</code> and <code>UISearchDisplayController</code>. When the user writes text in it inside <code>searchBar:textDidChange:</code> I make a web-service call to filter my TableView. The problem is that the GUI get unresponsive until I get the result from the web-service. I've tried to solve i... | iphone | [8] |
1,883,643 | 1,883,644 | hightlight a particular td | <p>What I would like to do (and is of course not working) is:</p>
<ul>
<li>When the user changes the value of the input in a row, that then the unit price and the subtotal tds in THAT row changes the background to orange (the class for that is <code>.basket-table td.hightlight</code>).</li>
</ul>
<p>It also needs to ... | jquery | [5] |
702,470 | 702,471 | SymJavaAPI for file scanning through java programme | <p>I need SymJavaAPI.jar for file scanning through java. Where and how to get it?</p>
<p>Thanks for any help!</p>
| java | [1] |
4,936,446 | 4,936,447 | How to animate views? | <p>I'm working on a game that in some ways is similar to Tetris (imagine a 2D array of colored squares that sometimes move around)</p>
<p>I am trying to animate the individual squares so they will smoothly slide down from coordinate to the next. Since I wanted to use Android's built-in tweening feature, the animation ... | android | [4] |
627,459 | 627,460 | Click on link - delay before navigating to a different location | <p>is there any easy way to create a code: if URL changes or clicked on a link show div (like loading gif 3-sec) then show the page? Kinda like blank white page with loading gif spin 3 sec then show the page?</p>
<p>Thanks!</p>
| jquery | [5] |
3,617,710 | 3,617,711 | How to handle null exception in my case | <p>I have defined a function:</p>
<pre><code>public MyCar findCar(){
MyCar car = CarManager.findCarById("U983"); //Nullpointer Exception here if no car be found
if(car!=null)
return car;
else
return null;
}
</code></pre>
<p>When I invoke the above function in Java, If the above <code>CarM... | java | [1] |
1,386,967 | 1,386,968 | how to convert some character into numeric in php? | <p>dear i need help for change a character in php.
i get some code from web:</p>
<pre><code>char dest='a';
int conv=(int)dest;
</code></pre>
<p>can i use this code for convert character into numeric? or do you have any idea?
i'm just want to show result as decimal number:</p>
<pre><code>if null == 0
if A == 1
</code... | php | [2] |
3,392,153 | 3,392,154 | Directory listing using PHP | <pre><code><?php
function directory_listing($directory_name)
{
if ($handle = opendir($directory_name))
{
while (false !== ($entry = readdir($handle)))
{
if ($entry != "." && $entry != "..")
{
if(is_dir($entry))
{
... | php | [2] |
2,466,061 | 2,466,062 | C# Calculate items in List<int> values vertically | <p>I have a list of int values some thing like below (upper bound and lower bounds are dynamic)</p>
<pre><code>1, 2, 3
4, 6, 0
5, 7, 1
</code></pre>
<p>I want to calculate the column values in vertical wise like</p>
<pre><code>1 + 4 + 5 = 10
2 + 6 + 7 = 15
3 + 0 + 1 = 4
</code></pre>
<p>Expected Result = <code>10,1... | c# | [0] |
1,676,446 | 1,676,447 | Initializing a class using a static constructor? | <p>In what situations do I initialize a class using a <em>static constructor</em>?</p>
| c# | [0] |
443,962 | 443,963 | How to apply style to a confirm pop-up window | <p>is it possible to give style to a confirm dialog box in javascript?</p>
<p>i am using asp.net with c#.</p>
<p>Eg:-
OnClientClick='javascript:return confirm("Are you sure, Do you really want to delete this item ")'</p>
<p>how to give style for this dialog box?</p>
| javascript | [3] |
5,734,126 | 5,734,127 | Transforming nested list in Python | <p>Assuming I have a structure like this:</p>
<pre><code>a = [
('A',
['D',
'E',
'F',
'G']),
('B',
['H']),
('C',
['I'])
]
</code></pre>
<p>How can I transform it into:</p>
<pre><code>a = [
('A', 'D'),
('A', 'E'),
('A', 'F'),
('A', 'G'),
('B', 'H'),
('C', 'I'),
]
</code></pre>
<p>Thanks for your time!</p>
| python | [7] |
4,432,837 | 4,432,838 | Use line-break as separator for an array input? | <p>I've never actually used arrays before, as I've never had to so far (a simple variable has been enough for me), however now I've created a form with a text-area that is meant to POST multiple urls through to my PHP script.</p>
<p>What I want to do is use a line-break in the visitors input to act as a separator for ... | php | [2] |
3,489,347 | 3,489,348 | Create iPhone app programmatically, in its entirety | <p>I recently became interested in iPhone app development, so I've been looking at online tutorials, and also reading a book, trying out the examples as I go along.</p>
<p>I'm getting better, but one of the things I still find quite annoying about the usual development model is that I really have no idea what the SDK ... | iphone | [8] |
4,081,666 | 4,081,667 | Most elegant way to achive the some element? | <p>I wrote function onclick of <code>a</code> element</p>
<pre><code> <div class="left_collapsed">Որոնում</div>
<div class="container" style="display: none;">
<ul>
<li>
<a href="" id="search_refresh" >Թարմացնել համակարգը</a>... | jquery | [5] |
5,334,783 | 5,334,784 | HashSet doesnt guarentee sorting? | <pre><code>import java.util.*;
public class DuplicateCheckMain {
public static void main(String[] gopal){
Integer[] args = {6,9,2,55,100,1,6,8,9};
Integer[] args1 = {3,6,2,3,5};
Set S = new HashSet();
DuplicateCheck.checkDuplicate(S,args,new String("HashSet"));
Set S1 = new HashSet();
DuplicateCheck.checkD... | java | [1] |
5,221,911 | 5,221,912 | how to set get_magic_quotes_gpc to Off | <p>How can I set get_magic_quotes_gpc to Off in php.ini ?
I have tried to overwrite value to Off in php.ini. it is showing Off in file but when i echo, it returns 1 means On.</p>
<p>any suggesion that can help me..</p>
<p>I am using XAMPP server ...</p>
| php | [2] |
970,979 | 970,980 | how to display file dialog with csv streamed from a server | <p>I am using jQuery.doGet() to get a csv file from the server. I am receiving the contents of the file in the onDataReceived function. How do I display the file dialog for the user to save it?</p>
<p>adsafe.util.doGet(url, params, onDataReceived);</p>
<p>onDataReceived(data) {
// how do i launch the file dialog f... | javascript | [3] |
2,173,431 | 2,173,432 | Show / hide several div | <p>I use this script :</p>
<pre><code> <script language="javascript">
function toggle() {
var ele = document.getElementById("mydiv");
var text = document.getElementById("displayText");
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = "show";
... | javascript | [3] |
4,017,779 | 4,017,780 | Performing a task every x time | <p>I'm trying to perform a task every 5 minute.
The task need to start from: xx:00, xx:05, xx:10, xx:15 and so on so if the time is xx:37 the task will start in xx:40.</p>
<p>I'm used the following code to do that:</p>
<pre><code> Date d1 = new Date();
d1.setMinutes(d1.getMinutes() + 5 - d1.getMinutes()%5);
... | java | [1] |
5,080,812 | 5,080,813 | How to reduce the size of list item in android? | <p>I have gone through the link <a href="http://blog.sptechnolab.com/2011/02/01/android/android-custom-listview-items-and-adapters/" rel="nofollow">http://blog.sptechnolab.com/2011/02/01/android/android-custom-listview-items-and-adapters/</a> and executed the <strong>listview sample</strong> in android. <strong>I found... | android | [4] |
3,798,826 | 3,798,827 | how are String objects immutable in this case? | <p>I agree with the fact that the String objects are immutable, means they cannot be modified. Like in the case below</p>
<pre><code>String str = "Hi";
String str1 = str.concat("Nilesh");
</code></pre>
<p>Here the str object will be returned if the length argument is 0 or a new String object will be created and its r... | java | [1] |
1,725,961 | 1,725,962 | Delete an image via snapr page | <p>I'm currently making a 'snapr' page, where I take a screensnap with a program, which then uploads it to my server. When it uploads it shows it on a page that has the width, image name, height and image type (.PNG, .GIF etc)</p>
<p>What I'd like to be able to do is have the ability to delete the image by inputting a... | php | [2] |
3,605,486 | 3,605,487 | How to Generate Random Alphanumeric string? | <p>I want to generate a password using numbers ,punctuation and alphabets(both lowercase and uppercase).how can i randomly generate this?</p>
| iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.