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,133,789 | 1,133,790 | How to Insert an Animated gif in Java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2935232/show-animated-gif-in-java">Show animated gif in Java</a> </p>
</blockquote>
<p>How can I insert an animated gif image in Java?</p>
<p>I have already looked at different answers and question. But when I ... | java | [1] |
1,064,159 | 1,064,160 | repeating function with time | <p>I am trying to display sports scores every 90 seconds in an iframe. I have everything working except for one part. The issue I have is that once the time goes from 90 to 0 it loads the html page into and iframe and continues to reload the same html page forever. How can I make it load one time, and then start the 90... | javascript | [3] |
5,517,569 | 5,517,570 | how to test thread safety of a module? | <p>I want to use a module to help serve pages in cherryPy. The module works great in a single thread, and it does not use inter-thread communications (queues, ...). Still, there is a slight possibility that some side effects (e.g. via global) may occur in a multi-threaded environment such as CherryPy.</p>
<p>What tes... | python | [7] |
429,651 | 429,652 | Eclipse message saying List cannot be resolved to a type | <p>I am trying the following code in eclipse:</p>
<pre><code>public class A {
List<Integer> intList = new ArrayList<Integer>();
}
</code></pre>
<p>However it gives me an error saying: List cannot be resolved to a type and ArrayList cannot be resolved to a type. </p>
<p>Is there some library I nee... | java | [1] |
4,219,092 | 4,219,093 | Diffrence between x++ and ++x? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1094872/is-there-a-difference-between-x-and-x-in-java">Is there a difference between x++ and ++x in java?</a> </p>
</blockquote>
<p>I am reading the official Java tutorial and I don't get the difference between ... | java | [1] |
2,084,476 | 2,084,477 | spliting an array without foreach | <p>So I have an array of items</p>
<pre><code> $arr1 = Array(266=>"foo",178=>"bar",3="foobar");
</code></pre>
<p>and then I have an of array of numbers like this</p>
<pre><code> $arr2 = Array(0 => 266, 1 => 178);
</code></pre>
<p>and so what I want to do is split array one into two arrays </p>
<p>where... | php | [2] |
3,088,593 | 3,088,594 | Possibility of an ANR in Standalone Service | <p>Can an android process that does not contain any activities (i.e. a standalone service) receive an ANR? </p>
<p><em>Android mentions: "In Android, application responsiveness is monitored by the Activity Manager and Window Manager system services. Android will display the ANR dialog for a particular application when... | android | [4] |
5,367,457 | 5,367,458 | Trying to determine if a stream is active php | <p>I have the link to 2 audio streams</p>
<p><a href="http://82.35.172.112:88/broadwave.m3u?src=1&rate=1" rel="nofollow">http://82.35.172.112:88/broadwave.m3u?src=1&rate=1</a>
and
<a href="http://86.28.144.85:88/broadwave.m3u?src=1&rate=1" rel="nofollow">http://86.28.144.85:88/broadwave.m3u?src=1&rate=... | php | [2] |
4,038,296 | 4,038,297 | Where did java get the idea for Interfaces from? | <p>I'm aware that most things in modern programming languages are at least <strong>partially</strong> based on features in earlier languages.</p>
<p>This leads me to wonder where java got the inspiration for interfaces from. Was it mostly their own creation? Was it based on fully Abstract Base classes(with multiple in... | java | [1] |
496,015 | 496,016 | jQuery Hide and Show DOM Element | <p>I have the following code:</p>
<pre><code>jQuery(document).ready(function ($) {
var objModal = '<div id="Modal"><div class="ModalContent"><p>please wait</p></div></div>';
function JS_Utils_ShowModal() {
if (!objModal) {
$('body').append(objModal);
}
}
function J... | jquery | [5] |
2,507,300 | 2,507,301 | repeat tickerText on the notification | <p>Iam running a service, this service downloading a file, and when it finish it notify the user via the notification bar.</p>
<p>so when there is a notification the user can see the tickerText, and then it disspear.</p>
<p>is there anyway of repeating this tickerText every X time on the notification line, until the... | android | [4] |
2,153,497 | 2,153,498 | How to disable the focus of listheader and footer? | <p>I am working on android applications. In my page I kept listheader,listview and listfooter. I had disabled the focus of listview but when i am trying to disable the header and footer it is not appying ?</p>
<p>MyCode:</p>
<p>For listview I had disabled the focus by giving</p>
<pre><code>lvAdapter adapter = new lv... | android | [4] |
5,127,680 | 5,127,681 | mysqli_stmt_fetch(). Entries exist, but nothing is printed | <p>Am i doing something ridiculously stupid?
Everything works up until hello you(2)</p>
<p>while (mysqli_stmt_fetch($selectCust)) won't execute.
I went through everything step by step and the entries appear in the database.
The if statement executes properly if the entry is original.</p>
<p>I did this entire form in... | php | [2] |
5,520,571 | 5,520,572 | Jquery ul with many li items seperated to a ul with rest of the li items | <p>Whats up peeps..</p>
<p>lets say i have a ul with 30 li items</p>
<pre><code><ul class="column">
<li>portfolio items 1</li>
<li>portfolio items 2</li>
...
<li>portfolio items 29</li>
<li>portfolio items 30</li>
</ul>
</code></pre>
<p>i need jqu... | jquery | [5] |
6,034,070 | 6,034,071 | Change CSS using "if" in jQuery | <p>Is there a way to change the CSS of a parent div only if the child is visible? And back again when not??? I've been racking my brains and I'm all Googled and jQuery documentationed out.</p>
| jquery | [5] |
190,030 | 190,031 | How to get an application's Package name and MainActivity name from another application? | <p>I am developing a android application that hide the app when user select the app from the app drawer. Here one problem occurred I want to get the package name and main activity of that application on which user taps.I researched a more but failed every time I am also a new comer so Friends please help me on this top... | android | [4] |
3,548,540 | 3,548,541 | Reading line from text file into C++ system() command | <p>I'm new to C++, and I'm trying to read a string from a text file that only contains one string and use that as input for a system() call. Here's what I have: </p>
<pre><code>#include <iostream>
#include <string>
#include <fstream>
int main(int argc, const char * argv[])
{
std::string curlStri... | c++ | [6] |
5,315,529 | 5,315,530 | jQuery error "uncaught exeption..." | <blockquote>
<p>uncaught exception: [Exception...
"Component returned failure code:
0x80040111 (NS_ERROR_NOT_AVAILABLE)
[nsIXMLHttpRequest.getAllResponseHeaders]"
nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location:
"JS frame ::
=1299105704512">http://code.jquery.com/jquery-1.5.min.js?=129910570451... | jquery | [5] |
3,383,314 | 3,383,315 | Splitting factory, super and subs out from a single module | <p>I have a working module that contains a factory function, a super class and two sub classes. The actual module is <a href="https://github.com/natemarks/CiscoXMLPexpect/blob/master/CiscoXMLPexpect/commandler.py" rel="nofollow">here</a>.</p>
<p>I split the factory into its own file and put the two subclasses into th... | python | [7] |
4,050,223 | 4,050,224 | Determining time elapsed between 2 dates | <p>I am trying to determine the time elapsed between 2 dates using javascript. An example would be: "I quit smoking on January 5, 2008 at 3 A.M., how many years, months, and hours has elapsed since I quit?".</p>
<p>So my thoughts were:</p>
<ol>
<li>Get "quit" date</li>
<li>Get current date</li>
<li>Convert to time (... | javascript | [3] |
2,559,898 | 2,559,899 | jQuery > reset popup window 's x and y relative to icon that launched the window | <p>I have a jQuery jPicker colorpicker that is bound to an input text field and opens onclick of a small picker.gif icon. The problem I'm having is that (1) The colorpicker that opens does not appear to be positioned according to the x/y position of the picker.gif (it opens far away from the click point) and (2) The co... | jquery | [5] |
3,861,335 | 3,861,336 | Collection of template-heterogeneous types | <p>I have a bunch of <code>boost::property_map</code>s defining costs of edge traversal in a graph. I'm executing an algorithm with differently weighted combinations of these maps, currently by manually doing <code>totalcost = weight1*weight1_factor + weight2*weight2_factor + ...</code>. The number of property maps is ... | c++ | [6] |
4,406,372 | 4,406,373 | Rotate Panel in WinForm | <p>How can i rotate (90 degrees) a panel control? i know it is very simple in WPF but i can't use it.
Do you know such a way for WinForm panel control?
Thanks you all!</p>
| c# | [0] |
1,778,138 | 1,778,139 | Cannot access memory at address error | <p>I'm getting this error:</p>
<pre><code>Program received signal SIGSEGV, Segmentation fault.
0x0000000000407265 in Quadtree::deeper (this=0x7fffffffe430,
orig=@0x7fffffffe430, n=@0x7a1da0, tol=Cannot access memory at address 0x7fffff3feffc
) at quadtree.cpp:47
47 int Quadtree::deeper(QuadtreeNode * & o... | c++ | [6] |
4,076,836 | 4,076,837 | Anyone can help me for example SSH Code for Android? | <p>I want to create android application for SSH to Linux Server.
But I can't find a topic with SSH connect to server
anyone can help me for SSH Source code to connect SSH Server.</p>
<p>Thx</p>
| android | [4] |
5,918,928 | 5,918,929 | Reading multiple commands from one line of input in c++ | <p>Say input can be 'x','y' and 'z' and for each commandX(),commandY() and commandZ() can be executed, respectively. Instead of having to type then pressing enter each time (ie: x (enter) commandX() executed then y (enter) commandY() executed ...) how can I let the user input it into just one line (ie: x y z (enter)) ... | c++ | [6] |
3,593,897 | 3,593,898 | Android ant build: how to run android upload and not update build.xml, proguard.cfg | <p>0 down vote favorite</p>
<p>I am running the standard ant script 'build.xml' which gets created when you run the 'android create project' command. In order to verify my local.properties is set correctly, I added a task at the beginning of the build.xml script to run the command:
android update project -p .</p>
<p>... | android | [4] |
2,334,550 | 2,334,551 | App crashing after reloading | <p>I am writing my first app that tries to deal with persistent data and am having some major troubles. I finally feel like I am getting close but now the crash is crashing sporadically - I assume it is some sort of memory issue but have no clue how to fix it. If I reset the settings of the iphone simulator and then ... | iphone | [8] |
768,371 | 768,372 | When will one need to create a separate process in a Application? | <p>I was reading a article in Android developer blog <a href="http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html" rel="nofollow">Process and Threads</a> which talks about creating new process for specific component of Application. But I failed to understand when will creating a new proces... | android | [4] |
3,440,495 | 3,440,496 | How android OS version compatibility works? | <p>If I use the following code in my app together with Android 2.1 library my app won't compile because GINGERBREAD variable is not visible.</p>
<pre><code>public static boolean SUPPORTS_GINGERBREAD = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD;
</code></pre>
<p>On the other hand... | android | [4] |
1,635,809 | 1,635,810 | Skipping if condition in jquery | <p>I am using following code snippter on button click event. Issue is if I don't select radio button than it gives me alert undefined but if I use same condition that is if I equate value of same in if condition than it escape condition.
From below code I am not getting <code>alert("Select action to perform.");</code> ... | jquery | [5] |
5,201,100 | 5,201,101 | multiplication result is negative zero | <p>can someone tell me why the output of the code mentioned below is negative zero??</p>
<p>a * b = -0</p>
<p>here 'a' is of type long, b is an object of decimal class.....and if a=-28 and b=0, then the output is -0 </p>
| python | [7] |
4,223,346 | 4,223,347 | java subclass method referring to field in superclass help! | <p>I have a subclass called savingsaccount. I want the method(addInterest) in savingsaccount to refer to a field in the superclass called balance. It says that balance has private access. How do i go around getting rid of this? I'm not allowed to set the field in the superclass to anything else other than private. ANy ... | java | [1] |
1,729,033 | 1,729,034 | Invoke a right click mouse from the keyboard right arrow keydown | <pre><code>$("#element").bind("keydown", function(e) {
if (e.which === 39) { //if keyboard right arrow
$("#element").trigger({
type: 'mousedown',
button: 2
}).trigger({
type: 'mouseup'
});
$("#element").bind('mousedown', function(ev) {
... | jquery | [5] |
1,975,185 | 1,975,186 | Is it possible to remove voice search for edits in Android | <p>I have a requirement to suppress voice recognition button in Android SoftKeyboard. </p>
<p>During my research I found the setInputMethodAndSubType which has mode parameter. But I cannot locate how it can be used. </p>
<p>Any inputs.</p>
| android | [4] |
3,505,034 | 3,505,035 | how to use cellValueChanged event in datadrid view to use filter function? | <p>I write a function to filter datagridview(dgv) </p>
<pre><code>void filterDataGridView(DataGridView dgv, string columnName, string filterValue)
{
foreach (DataGridViewRow row in dgv.Rows)
{
if (row.Cells[columnName].Value.ToString().Contains(filterValue))
{
row.Visible = true;
... | c# | [0] |
3,676,617 | 3,676,618 | What is the proper way to acces a property from an object inside several scopes of a method? | <p>For example, if I have the object:</p>
<pre><code>function Website(){
this.images = [];
}
Website.prototype.getImages = function(){
jQuery('img').each(function(key, val){
this.images.push(val.src);
})
}
</code></pre>
<p>and I try to call <code>website.getImages()</code> I get this error: <code... | javascript | [3] |
4,156,014 | 4,156,015 | Android: Preference default Value | <p>I have a problem. I have 3 - 4 Activities. One of those is main and a second one is Preference Screen. I have a preference screen with different Preferences like ListPreference etc that have default values. How can i activate default Value of Settings when I start my project ?
Because they activated only when I star... | android | [4] |
2,514,116 | 2,514,117 | call async asihttp in different view controller | <p>I try to use UINavigationController to navigate from one view controller to another.
In both viewController , the viewWillAppear</p>
<p>I call asihttp using async mode.</p>
<p>but this always cause the app crash.</p>
<p>I try to use the function of asihttp '[request cancel]'
in the wiewWillDisaaoear, but the erro... | iphone | [8] |
3,471,138 | 3,471,139 | Enumerate Java Fields | <p>I have a Java class with ~90 fields. I want to be able to do things to every field (generate an XML element for instance) without writing the same 5 lines of code with slight substitutions 90 times. In Objective C I think you can get to instance variables in ways similar to accessing Dictionary elements (ObjectFor... | java | [1] |
4,966,295 | 4,966,296 | Move applications to SD card | <p>In some apps with min sdk 3 (Android 1.5), I can move application to SD card from my Desire HD.(Android 2.2) How to make it programmatically possibility to move application to SD card with Requires Android 1.5 and up. </p>
| android | [4] |
3,978,079 | 3,978,080 | When is the page send to clients browser? | <p>When i build a set of elements (say 100) with php (in a loop)
Is the page send to the client only when the loop is completed or is the page on client side already showing on the client before the loop is completed? Thanks</p>
| php | [2] |
1,632,949 | 1,632,950 | Private Inheritance and Derived Object to Base reference | <p>As far as I understand the reason that we cannot pass a derived class object to a base class reference for private inheritance is that Since Derived is privately inherited from Base, the default constructor of Base would be called before the constructor of Derived. But because it is private and not inherited to Deri... | c++ | [6] |
5,452,485 | 5,452,486 | Running the Android example SampleSyncAdapter | <p>I installed the example SampleSyncAdapter from the sdk into eclipse--it runs in the emulator--e.g, if i go to Settings>>Account & Sync, I do see the SamplesyncAdapter Account--but i can't log in when i select it--the Google documentation is next to useless in terms of orienting developers--what should I enter to... | android | [4] |
4,881,468 | 4,881,469 | In what version of Python was set initialisation syntax added | <p>I only just noticed this feature today! </p>
<pre><code>s={1,2,3} #Set initialisation
t={x for x in s if x!=3} #Set comprehension
t=={1,2}
</code></pre>
<p>What version is it in? I also noticed that it has set comprehension. Was this added in the same version?</p>
<p><strong>Resources</strong></p>
<ul>
<li><a hr... | python | [7] |
687,432 | 687,433 | Is there some way to introduce a delay in javascript? | <p>Is there some function like <code>delay()</code> or <code>wait()</code> for delaying executing of the JavaScript code for a specific number of milliseconds?</p>
| javascript | [3] |
5,320,131 | 5,320,132 | Area Chart Graph in android | <p>I want to implement an Area Chart Graph in android.I prefer Area chart graph because i want to color the area of my graph.The Graph is draw using some calcutions.AnyOne have an idea reagrding how to implement the area chart graph??</p>
| android | [4] |
2,062,372 | 2,062,373 | How to get variable name in PHP? | <p><code>func($name1)</code> should return <code>name1</code></p>
<p>Is it possible?</p>
| php | [2] |
2,999,218 | 2,999,219 | How to solve infinite recursion in java (stack overflow)? | <p>I have problem with infinite recursion. Main method will run, then if I chose 1, it will go to submenu(). But, when I choose a wrong option in submenu(), the program must be loop back to main method. </p>
<p>However, this situation can result stack overflow. </p>
<p>Do you have any ideas guys related to this probl... | java | [1] |
3,847,729 | 3,847,730 | jQuery copy multiple date dropdowns to hidden field | <p>I have a form with 3 dropdown boxes to select Month/Day/Year. I need to submit the info selected in ISO 8601 format (e.g. '2012-05-30') via a hidden field. How can I use jQuery to build the date value based on what's selected in those dropdown boxes?</p>
<p>The HTML is something like:</p>
<pre><code><select nam... | jquery | [5] |
89,335 | 89,336 | How to send email with attachment using GmailSender in android | <p>I want to know about how to send email with attachment using GmailSender in android.</p>
| android | [4] |
4,162,096 | 4,162,097 | Static methods vs instance methods in BLL | <p>Was asked today why I used code like this for my bll classes in an asp.net app:</p>
<pre><code>public class StudentBll
{
public static DataTable GetStudents()
{
return DBHelper.ExecuteSp("GetStudents");
}
public static DataTable GetStudentById(int studentId)
{
return DBHelper.Ex... | c# | [0] |
5,242,535 | 5,242,536 | Getting the item with the maximun value in list of dicts after grouping the dict by key | <p>I have a list of dicts that looks like this:</p>
<pre><code>[{'apples': 99}, {'bananas': '556685'}, {'apples': 88}, {'apples': '2345566'}]
</code></pre>
<p>I would like to group the items by the key and return the key of the item with the highest value? i.e. sum up the values all the apples and sum up the values o... | python | [7] |
5,619,177 | 5,619,178 | mapp pagination with image in image slider using jQuery | <p>I have slider images & below those I have pagination. Please check url :-</p>
<pre><code>http://210.7.76.139:965/dominie/index.php/index
<div id="gallery">
<div class="gallary_image">
<a id="tab1" class="" href="#" style="opacity: 0.763923;">
<img width="777" height="441" rel="... | jquery | [5] |
1,969,250 | 1,969,251 | Android following class could not be found | <p>I'am trying to load a spinner to my layout and keep geting this error:</p>
<p>The following classes could not be found:
- Spinner (Change to android.widget.Spinner, Fix Build Path, Edit XML)</p>
<p>heres my xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://sch... | android | [4] |
5,191,235 | 5,191,236 | how lightboxes for pics works? they use iframes? how they download pics? | <p>how lightboxes for pics works? they use iframes? how they download pics?</p>
| javascript | [3] |
1,199,670 | 1,199,671 | NullPointerException at: int start = Math.max(chat.first, chat.last-10); | <p>I have the following Java code in a JSP:</p>
<pre><code>21: ChatState chat = (ChatState)application.getAttribute(ChatConstants.APP_STATE);
22: // assert(chat != null);
23:
24: int start = Math.max(chat.first, chat.last-10);
25: for (int i=start; i<chat.last; i++) {
26: out.println(i + "User ... | java | [1] |
471,374 | 471,375 | packing a c++ project for release with some dependencies like pthread boost curl etc | <p>I am writing an c++ application where i use a lot of libraries like boost curl,pthread etc. I am not sure how to pack the application with all the dependencies for production use.
What is the best way to distribute the application with dependencies?</p>
| c++ | [6] |
716,223 | 716,224 | Java bean class | <p>Bean class /encapsulation means variable should be private & getter & setter should be public. Because of the reason data hiding.Anybody can't access this variable out side.</p>
<p>My Question is :`With the getter/setter method we can access/set variable from outside class.Then why we need to keep that vari... | java | [1] |
5,368,812 | 5,368,813 | Image blur in android | <p>I have taken thumbnail image from gallery which is smaller in size and resized into 300*300 size.</p>
<p>By doing that the image looking so blurred.</p>
<p><strong>getting image from gallery</strong></p>
<pre><code> @Override
protected void onActivityResult(int requestCode, int resultCode,
Intent... | android | [4] |
533,054 | 533,055 | php exercises | <p>I'm looking for exercises that will help me to learn php (complex loops, arrays, tricks etc)</p>
| php | [2] |
575,050 | 575,051 | Can't read SharedPreferences fron another application | <p><strong>EDITED:</strong></p>
<p>I have one app that writes to SharedPreferences like that:</p>
<pre><code> Context otherAppsContext = null;
try {
otherAppsContext = createPackageContext("AfroKeyboard.com.rob", Context.CONTEXT_IGNORE_SECURITY);
} catch (NameNotFoundException e) {
}
Share... | android | [4] |
5,506,238 | 5,506,239 | Running in IDLE sometimes returns nothing & Optimizing | <p>Sometimes when I run this in IDLE, the shell will only show</p>
<blockquote>
<p> >></p>
</blockquote>
<p>However, when I close the window and kill the program, it'll appear as normal for a split second before closing. Most of the time it will work though.</p>
| python | [7] |
706,753 | 706,754 | c++ - Is there a way to auto-cast values when assigning them to references`? | <p>I'm wondering if there is some way that C++ autocasts values that I want to assign to a reference.</p>
<pre><code>class X{
public:
X(int x){
}
};
int main(){
X x = 5; //works
X& y = 6; //doesn't work
X& z = (X)7; //works
return 0;
}
</code></pre>
<p>As you can see, ... | c++ | [6] |
3,747,048 | 3,747,049 | how to get dropdown(select box) all value and write in any div | <p>i have dropdown(select) box Like :</p>
<pre><code><select name="drp_name" id="drp_name">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
... | jquery | [5] |
4,793,901 | 4,793,902 | To detect service idle | <p>How to programmatically detect either my Apache webserver is idle using C#?
I already have an open source program that monitors mouse movement. But how can I monitor either the targeted server is idle/up/down?</p>
| c# | [0] |
4,399,852 | 4,399,853 | How to find address in iPhone using latitude and longitude? | <p>I have a question: How to find address in iPhone using latitude and longitude?</p>
| iphone | [8] |
4,370,722 | 4,370,723 | Why getItemViewType() is missing in RemoteViewsService.RemoteViewsFactory in Android? | <p>For normal Base Adapter, there is both <code>public abstract int getItemViewType (int position)</code> and <code>public abstract int getViewTypeCount ()</code>, but there is just public abstract int getViewTypeCount () in <code>RemoteViewsService.RemoteViewsFactory</code> when I develop HomeScreen Widget. How can I... | android | [4] |
4,622,730 | 4,622,731 | How to unset Socks Proxy | <p>I am able to set a socks proxy server by code like this:</p>
<pre><code> System.getProperties().setProperty("socksProxySet", "true");
System.getProperties().setProperty("socksProxyHost", address);
System.getProperties().setProperty("socksProxyPort", port);
</code></pre>
<p>Accordind to <a href="http://d... | java | [1] |
1,626,138 | 1,626,139 | javascript code architecture question | <p>I'm about to make a web app which will have a pretty heavy client end. I'm not sure about the way to organize my javascript code, but here is a basic idea :</p>
<pre><code>// the namespace for the application
var app = {};
// ajax middle layer
app.products = {
add : function(){
// send ajax request
// ... | javascript | [3] |
2,454,676 | 2,454,677 | Clicking on List Item also clicks the checkboxes inside item | <p>I've a listview where each listitem has a checkbox. When I click list item, OnItemClick is called but checkbox is also clicked, that's annoying coz checbox onclick actions are triggered.</p>
<p>Edit:
how can I prevent checkbox from being clicked when row Item is clicked?</p>
| android | [4] |
701,060 | 701,061 | Trying to make a thai translator in Python, but am unable to write using Thai characters | <p>I am trying to make a thai translator, but am unable to write using Thai characters.
I saw somewhere to do this to check what the default encoding is:</p>
<pre><code>import sys; print(sys.getdefaultencoding())
</code></pre>
<p>I get utf-8 </p>
<p>My problem is that I just get ?? when I use Thai characters. Is th... | python | [7] |
5,323,122 | 5,323,123 | loop my function but not able to do it properly | <p>i have a code which i want to run in loop but its only running one time i tried intervel but its not working</p>
<p>here is the code :</p>
<pre><code>var getposition = 0;
var intervalinfo ;
function setpostion(){
document.getElementById("join").style.position = "absolute";
docu... | javascript | [3] |
3,933,418 | 3,933,419 | How to add checkboxes into dropdown in php? | <p>I am using core php. I want to add checkboxes inside dropdown list so can select multiple values. Please give me solution.</p>
| php | [2] |
1,547,614 | 1,547,615 | Possible to activate camera led in torch mode while using the video recorder? | <p>I have an app that needs to record video while the led flashlight is on in torch mode. I know its possible in android while taking pictures but is it while using the Media recorder?
Thanks for your help in advance. </p>
| android | [4] |
1,941,558 | 1,941,559 | Prevent the loading of images | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2784418/lazy-load-images-when-they-come-into-the-viewport">Lazy load images when they come into the viewport</a> </p>
</blockquote>
<p>How can I prevent the loading of all image data in a long grid of images, bu... | javascript | [3] |
4,671,466 | 4,671,467 | Failed Binder Transaction between activities but not between service and activity? | <p>Currently I have a background service that acts as a shared data holder for a couple apps. For some reason, it doesn't have any problem passing along some couple thousand parcelables in an array list along to the app, but when it comes to passing along that data within that app to a new activity that's being launche... | android | [4] |
3,846,449 | 3,846,450 | how to catch Error globally on android? | <p>When an exception occurs, i try to report it to a log server.</p>
<p>i have caught an exception which inherited java.lang.RuntimeException when using <code>Thread.setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler handler)</code>.
but i haven't caught any subclasses that have inherited java.lang.Err... | android | [4] |
3,605,267 | 3,605,268 | Make javascript mandatory in web application? | <p>I am building a web application that will have a fair bit of forms. The html forms are generated using php.</p>
<p>One of the things I came across is this:</p>
<p>I have a drop down box for the user to select his country. Once he selects the country, a call is made to the server to fetch a list of states within th... | javascript | [3] |
1,346,008 | 1,346,009 | Android random string doesn't check | <p>Random string works fine.</p>
<p>Doesn't work check now.
I enter the text to what has been EditText drawn.</p>
<p>But the check is not working. Why?
Code: </p>
<pre><code> public static StringBuffer random() {
String str = new String(
"G12HIJdefgPQRSTUVWXYZabc56hijklmnopqAB78CDEF0KLMNO3... | android | [4] |
342,807 | 342,808 | Breaking the string in certain number of characters | <p>I am looking for the shortest, elegant way to break the unicode string in to certain number of character.</p>
<p>I am having the div enter code herewith different language strings. I am breaking the string after certain number of characters. But for capital and small letters in English there was UI distortion.</p>
... | php | [2] |
5,602,530 | 5,602,531 | Curious: Why is the "throws <SomeSpecific>Exception" syntax required in Java alone? | <p>We all know it is needed.</p>
<p>But WHY is it needed in Java alone, when other similar languages that have exception handling capablities don't require us to write "throws Exception"? Is there anyone who knows what was happening when Java language was designed and why they made it that way? Just curious.</p>
<p>P... | java | [1] |
2,039,770 | 2,039,771 | how i can Toggle this ul by jquery | <p>please any one can slideToggle this ul
i use the jquery</p>
<pre><code><ul id="flags_16">
<li>
<a href="#" class="nb">
<img src="en.png" class="imgvatb">langs</a>
<ul style="display: none;">
<li>
<a href="en" class="nb... | jquery | [5] |
3,480,333 | 3,480,334 | How to handle keys on certain area | <p>I wan to ask you, how to handle keys on certain area with this library <a href="http://www.openjs.com/scripts/events/keyboard_shortcuts/" rel="nofollow">http://www.openjs.com/scripts/events/keyboard_shortcuts/</a> It's shown only with document, and when i try '#dmine_div' it does not work.How it must be ? </p>
| javascript | [3] |
5,575,236 | 5,575,237 | xml ws contain one string with no tags | <p>I have an xml WebService URL that contain only this line"hi this invalid number"
I wanna read this line to my aandroid app at textView or alert msg
I used the next code but it return nothing !!! is there any way to solve this issue?? </p>
<p>int eventType = xpp.getEventType();</p>
<pre><code> while (eventT... | android | [4] |
2,349,148 | 2,349,149 | Return position of an item in ArrayList | <p>I know that I can iterate the list and prove every element of the list. But I was wondering if there is better solution to get the position of an item in an ArrayList?</p>
| java | [1] |
2,157,045 | 2,157,046 | Delete memory in inheritance | <p>I have code below, it always has memory leak please help me.</p>
<p>Thanks,
Ankata</p>
<hr>
<pre><code> class ABCD
{
public:
ABCD(void);
~ABCD(void);
CString tem1;
CString tem2;
};
class CDE :
public ABCD
{
public:
CDE(void);
~CDE(void);
CString tem;
};
void main()
{
CLi... | c++ | [6] |
5,885,884 | 5,885,885 | Remove divs around a div | <p><strong>My HTML</strong></p>
<pre><code><div class="wrapper">
<div class="wrapper2">
<div class="real_content"></div>
</div>
</div>
</code></pre>
<p><strong>Question</strong></p>
<p>Is there any way for me to remove the 2 divs around <code><div class="real_content"&... | jquery | [5] |
2,145,363 | 2,145,364 | Java Calendar problem: why are these two Dates not equal? | <pre><code>import java.io.*;
public class testing {
public static void main(String a[]) throws Exception{
Date d1=new Date();
Thread.sleep(2000);
Date d2=new Date();
if(d1.equals(d2)){
System.out.println("Both equal");
}else{
System.out.println("Both ... | java | [1] |
2,192,424 | 2,192,425 | How do you strip whitespace from an array using PHP? | <p>I was wondering how can I strip white space from an array using PHP?</p>
| php | [2] |
276,613 | 276,614 | Attribute mapping with a Python property | <p>Is there a way to make a Python <code>@property</code> act as a setter and getter all at once?</p>
<p>I feel like I've seen this somewhere before but can't remember and can't recreate the solution myself.</p>
<p>For example, instead of:</p>
<pre><code>class A(object):
def __init__(self, b): self.b = b
def get... | python | [7] |
1,957,976 | 1,957,977 | Bad magic number while trying to import .pyc module | <p>I have some problems while trying to import some module (compiled .pyc) in my program. I know that it compiled in Python 2.6.6 (r266:84297), I have installed the same version, but had an error "bad magic number" while trying to import it :(</p>
<p>Does anybody know what I did wrong?
Or maybe it's possible to change... | python | [7] |
4,958,402 | 4,958,403 | java how to know if a process is waiting for input | <p>I'm trying to create a process in java that starts a external file that asks for a number of arguments which the user gives at execution time.</p>
<p>The question is how to determine if the precess is asking for a argument </p>
<pre><code> ProcessBuilder pb = new ProcessBuilder(c.fileName);
Process proc = n... | java | [1] |
983,187 | 983,188 | NSNotification in iphone sdk | <p>what is the use of <strong>NSNotification</strong> in iphone sdk?</p>
<p>Thanks</p>
| iphone | [8] |
1,842,280 | 1,842,281 | PHP: Is it possible to set the domain when creating a session? | <p>On mydomain.com if I run this code:</p>
<pre><code>session_start();
$_SESSION['close_label'] = '1';
</code></pre>
<p>and then onspect the session cookie in my browser, it says:</p>
<blockquote>
<p>domain: .mydomain.com</p>
</blockquote>
<p>Is it possible to have it say:</p>
<blockquote>
<p>domain: .someothe... | php | [2] |
2,653,394 | 2,653,395 | getApplication use in onClick method | <p>I use Application to access my data.
And while buttom be click, I want to use the data which in Application.
I use below code:</p>
<pre><code>b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
MyData md = (MyData)this.getApplication();
md.setName("");
md.setIP("");
}
});
</code></p... | android | [4] |
4,136,809 | 4,136,810 | get variable from included file? | <p>I have a php file. Name is never mind.<br/>
I think you will understand. But i want to use function.</p>
<p>Example.php file have a variable that reserve file name.</p>
<pre><code><?php
$name = "abcdfg";
?>
</code></pre>
<p>And my function is:</p>
<pre><code>function getData($arg)
{
require_once($arg . '.... | php | [2] |
92,738 | 92,739 | Concat performance | <p>I was reading a <a href="http://blogs.msdn.com/b/wesdyer/archive/2007/03/23/all-about-iterators.aspx?PageIndex=2#comments" rel="nofollow">blog post</a> on msdn about iterators which talks about about how <code>Concat</code> has <code>O(m^2)</code> performance where <code>m</code> is the length of the first <code>IEn... | c# | [0] |
927,061 | 927,062 | storing image in Db using asp.net | <p>Im developing art gallery which needs 1000s of images to be uploaded so inserting images in DB won't be feasible. so i want to give link of folder inside db where ultimately images should get stored. plz help.</p>
| asp.net | [9] |
5,925,224 | 5,925,225 | Open/Save as dialog box | <p>Jquery:</p>
<p>Is there a way to catch the event that is fired when the browser opens the Open/ Save as dialog box?
<img src="http://qpack.orcanos.com/helpcenter/Images/openSave.png" alt="Open/Save dialog example"></p>
<p>I need to do something when the dialog is shown.</p>
| jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.