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 |
|---|---|---|---|---|---|
2,343,676 | 2,343,677 | PHP equivalent of a DataTable | <p>Would anyone happen to know the PHP equivalent to C#'s datatable? I've considered (briefly) using a two-dimensional array, but consider it to be kind of dirty. Is there another data structure which might work for storing various types of data in a two-dimensional, row / column oriented (perhaps with headers?), easil... | php | [2] |
675,149 | 675,150 | PHP caching class | <p>I'm a AS3 coder and i do a bit of php and i am having a hard time doing a static class that can cache variables.</p>
<p>Here's what i have so far :</p>
<pre><code><?php
class Cache {
private static $obj;
public static function getInstance() {
if (is_null(self::$obj)){
$obj = new stdClass();
}
... | php | [2] |
1,358,140 | 1,358,141 | custom UIView and First Responder | <p>In Root View controller class I have a UIButton which is hooked to some Action.
when action is triggered it adds a custom UIview over the Root View Controller class.</p>
<p>And if user touches the root view controller view it show other abc view.</p>
<p>Now what I am trying to do is if user touches out side of t... | iphone | [8] |
584,580 | 584,581 | Toggle multiple element classes with jQuery | <p>I need to be able to toggle class when I click an element. It works fine for that element:</p>
<pre><code>$(".main").click(function() {
$(this).toggleClass("classA").toggleClass("classB");
});
</code></pre>
<p>But I would like to add to it to toggle classes for all elements on the page that have a particular c... | jquery | [5] |
3,433,292 | 3,433,293 | C#: Order of execution of operands in an IF statement | <p>I came across some statements while surfing the .net source:</p>
<pre><code>If( null != name)
If( false == check())
</code></pre>
<p>what is the difference between (name != null) and (Check() == false) statements from the above statements?</p>
<p>Can any one get me clear of this? Please.</p>
| c# | [0] |
3,278,734 | 3,278,735 | python : comma in print as "\t" | <p>the <code>,</code> in print added a white space</p>
<pre><code>>>> print "a","b"
a b
</code></pre>
<p>If I need a <code>\t</code>, I put </p>
<pre><code>>>> print "a","\t","b"
a b
</code></pre>
<p>How I can change the output of <code>,</code> to a <code>\t</code>?</p>
| python | [7] |
1,702,298 | 1,702,299 | How to get phone number of the person I'm dialing | <p>in Android, I need to get the phone number of the person I'm dialing to in my BroadcastReceiver (OFFHOOK state)</p>
<p>I know I can get the INCOMING number but I need the outgoing, is it possible?</p>
| android | [4] |
4,369,767 | 4,369,768 | changing the colour of output of date function in javascript | <p>i have the bellow code for getting the date and time on button click.i want to get the output in a different color..what changes are needed?</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script>
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>
<... | javascript | [3] |
2,204,803 | 2,204,804 | What are nested types? | <p>I quote from the <a href="http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html" rel="nofollow">JLS 9.1.1.2 strictfp Interfaces</a></p>
<p>"The effect of the <code>strictfp</code> modifier is to make all <code>float</code> or <code>double</code> expressions within the interface declaration be explic... | java | [1] |
1,521,842 | 1,521,843 | Python: How to access tuple values inside a dictionary of a dictionary | <p>I have a dict of dict setup as follows:</p>
<pre><code>from collections import namedtuple
Point = namedtuple('Point', 'r w')
mydict= {
'user1': {'item1': Point(2.5,0.1),'item2': Point(3.5,0.6)},
'user2': {'item1': Point(3.0,0.3), 'item3': Point(3.5,0.8)},
'user3': {'item1': Point(2.0,0.4),'item3': Poin... | python | [7] |
2,502,776 | 2,502,777 | tutorials for the basic's of understanding android development | <p>I'm now 3 months into android development and done quite a lot tutorials now. I've build a lot of small Apps according to these tutorials, the most of them give you the method writen and done, tell what they do and tell where to put them. However, now I am into my own Apps I notice that I'm having trouble understand... | android | [4] |
1,528,469 | 1,528,470 | disable textbox using jquery? | <p>I have three radio buttons with same name and different values.When I click the third radio button the checkbox and textbox going to be disabled.but when I choose other two radio buttons it must be show.I need the help in Jquery.Thanks in advance....</p>
<pre><code><form name="checkuserradio">
<input t... | jquery | [5] |
427,949 | 427,950 | Javascript apply methods from one object to another | <p>I have been at this for hours and just can't get it quite right. I have an object with methods that works fine. I need to save it as a string using JSON.stringify and then bring it back as an object and still use the same methods.</p>
<pre><code>function Workflow(){
this.setTitle = function(newtitle){this.title =... | javascript | [3] |
1,984,691 | 1,984,692 | Searching datatable for data | <p>Currently the if statement finds the "starting with" text in the column and gets the row. I was wondering: how am I able to check if the next character in the string is <code>[</code>? This for example with the <code>StartsWith</code> method </p>
<pre><code> foreach (DataRow r in queryDataTable.Rows)
... | c# | [0] |
5,430,195 | 5,430,196 | Browser showing parse error on the code AddP2CMessage($customerID,$subject,$body,’T’,’N’,5); | <p>The version of php used is 5.3. but in many other liveservers there is no error. so why the parse error occurs here in AddP2CMessage($customerID,$subject,$body,’T’,’N’,5);</p>
| php | [2] |
1,443,877 | 1,443,878 | how to know if the string have ellipsize | <p>i have a string in the textView as:</p>
<pre><code><TextView
android:id="@+id/comment_concent"
android:maxLines="2"
android:textColor="#FFCD3333"
android:ellipsize="end"
android:layout_marginRight="5dip"
android:layout_width="210di... | android | [4] |
2,340,373 | 2,340,374 | How to add an icon to actiontab | <p>Hi I have followed the tutorial below exactly and now I'm wondering how I can add an icon to each tab? I only know how to add an icon to a menu but not a tab. Also I'm new to android, so it would be awsome if someone could tell me <strong>exactly</strong> where the <code>android:icon="@drawable/ic_action_view_as_lis... | android | [4] |
924,446 | 924,447 | Executing PHP code stored partially in a string | <p>Say I have a string "Some text [login_form] some other text". How can I replace '[login_form]' with the PHP code "require('somescript.php');" and run the 'require' function.</p>
<p>I don't want to use 'eval' as my string contain HTML and other code and also has great possibility of errors.</p>
| php | [2] |
5,435,327 | 5,435,328 | Return By Reference in c#? | <p>How to return by reference using function.Please provide me with complete funcion definition
which returns by reference in c#.Is there any other way to pass reference? Please help.</p>
| c# | [0] |
1,791,353 | 1,791,354 | Filling DataGrid from Dataset | <p>I would like to ask for faster way in filling datagrid from dataset. I'm working with huge volume of data (approximately of 8000 of rows). I'm using C#.net . I have two version of codes (below) both of them took almost one minute to finish the loading of data.</p>
<pre><code>// First Code
DataSet objDataSet = new D... | c# | [0] |
4,725,536 | 4,725,537 | Hello please let me about learning iphone(i need best book for beginers) | <p>Hi I am new to Objective C and iphone developments, please specify me a way to learn about iphone developments please help...</p>
<p>Regards</p>
<p>GuruPrasad R Gujjar.</p>
| iphone | [8] |
5,122,319 | 5,122,320 | nullptr and checking if a pointer points to a valid object | <p>In a couple of my older code projects when i had never heard of smart pointers, whenever i needed to check whether the pointer still pointed to a valid object, i would always do something like this...</p>
<pre><code>object * meh = new object;
if(meh)
meh->member;
</code></pre>
<p>or when i needed to delete... | c++ | [6] |
1,030,474 | 1,030,475 | onclicklistener is not working | <p>I simply created an application where when the button is clicked it shows a toast. But when I click on the button nothing happens. Here is the code:</p>
<pre><code>package convert.project.convert;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Vi... | android | [4] |
5,764,090 | 5,764,091 | void -[MKTileCache synchronize](MKTileCache*, objc_selector*) called while in background | <p>when i run the programme i got the message on consol is void -[MKTileCache synchronize](MKTileCache*, objc_selector*) called while in background and my application gets crashed
what is the meaning of this message and give me solution to get rid of this problem </p>
| iphone | [8] |
2,255,458 | 2,255,459 | PHP connection_aborted() does not work when page changes | <p>I'm trying to serve an image while adding a MySQL row for each second the image was viewed.</p>
<p>I'm serving it in chunks of 1024 bits (total size is of image is 20kb)</p>
<p>The problem is that if I load the page where the image is displayed and then close the window or click a link that takes me to a different... | php | [2] |
704,688 | 704,689 | Inventory Management System in Java | <p>I want to develop a inventory management system with accounting and customer information and
sales and purchase orders for an auto parts business. I am thinking of using Apache OFBIz but am not sure if this is the right choice as i have never used it before. I have developed applications previously using java swin... | java | [1] |
3,977,397 | 3,977,398 | Setting data source to an raw ID in MediaPlayer | <p>In MediaPlayer.create method an id to a Raw file can be used but how to use that in setDataSource method?</p>
| android | [4] |
3,450,555 | 3,450,556 | Element is not being removed from DOM when remove() on parent element is called when holding an instance in another class | <p>I have a jquery extended class (Class2) which is initialized by another jquery extended class (Class1). </p>
<p>Class1 adds a div container element to the DOM, and initializes Class2. Class2 takes an argument which is the div container element from Class1 and adds a child to that container.</p>
<p>As discussed in ... | jquery | [5] |
4,128,342 | 4,128,343 | to validate date in aspx | <p>can any one tell me the code to validate the date field in signup form,which shd also validate the leap year and no of days in each month
for example it should not validate feb 30 and also april 31...... in aspx formate </p>
| asp.net | [9] |
1,463,565 | 1,463,566 | Java XML DOM with lots of data, how can I buffer it? | <p>I have a Java program that is generating XML data which happens to be very large. I am using the typical parsers in javax.xml and the org.w3c.dom objects. The DOM in memory is becoming so large that it occasionally runs out of memory. Now, the reason it reaches the memory limit is because the program is generating a... | java | [1] |
363,825 | 363,826 | write to a file | <p>I want to write to a file named "TEXT" and append to the file every time I run the program. It compiles but it does not take input. Please help out; I am new to programming.</p>
<p>Here's the code I'm working with:</p>
<pre><code>#include <iostream>
#include <fstream>
#include <string>
using name... | c++ | [6] |
2,151,344 | 2,151,345 | php Fatal error: Function name must be a string in | <p><strong>Fatal error: Function name must be a string in /home/../public_html/updater.php on line 3</strong></p>
<pre><code> 1: <?php
2:
3: $user_id = $_GET("uid"); /* <-- Line 3 */
4: $user_name = $_GET("uname");
5: $setting = $_GET("setting");
6:
7: $MyString = $user_name + '[' + $user_id + ']{'... | php | [2] |
2,780,077 | 2,780,078 | Convert System.Windows.Media.Imaging.BitmapImage to byte array | <p>I have the code below to convert byte array and resize it to specific height and weight:</p>
<pre><code>public static BitmapImage LoadImage(byte[] imageData, int nWidth, int nHeight)
{
if (imageData == null || imageData.Length == 0) return null;
var image = new BitmapImage();
... | c# | [0] |
587,683 | 587,684 | Check if AsyncTask is taking too long | <p>I have an AsyncTask that get info from the web. Sometimes the connection fails and the AsyncTask processdialog is running forever.</p>
<p>In the doInBackground I have a check in the end if my catched info are empty and if this is the case, it should appear Positive button/Negative button, but this is not happening... | android | [4] |
2,381,442 | 2,381,443 | Python string split | <p>what would be the best way to split this in python. (address, city, state, zip)</p>
<pre><code><div class="adtxt">7616 W Belmont Ave<br />Chicago, IL 60634-3225</div>
</code></pre>
<p>in some case zip code is as</p>
<pre><code> <div class="adtxt">7616 W Belmont Ave<br />Chicago, IL 6... | python | [7] |
1,144,110 | 1,144,111 | How to cache/precalculate something(without global variable)? | <p>What I want to do is to sending data between two handlers.</p>
<pre><code>element.onmousedown = function() {
data = precalculate();
}
element.onmouseup = function() {
dosomething(data);
}
</code></pre>
<p>if the <code>data</code> is a global variable it works. People says global variable is evil. But I do... | javascript | [3] |
1,955,165 | 1,955,166 | How in Jquery do I select the first blank input which is not a check box or a button | <p>How in Jquery do I select the first blank input which is not a check box or a button. I have the following:</p>
<pre><code>$(':input[value="",type!="button",type!="checkbox"]:visible:first').focus();
</code></pre>
<p>Thanks for any suggestions</p>
| jquery | [5] |
458,619 | 458,620 | Access style resource defined in library project | <p>I have something like this in my library project. I want to use that custom defined theme in my concrete project but Im not able to reference it.How can I achieve this?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
</code></pre>
<p></p>
<pre><code><style name="MenuDialog" parent="android:Theme.Di... | android | [4] |
5,242,544 | 5,242,545 | Is there an event when application Window is fully draw? | <p>I'm trying to get the result from <code>getLocationOnScreen()</code> as early as possible.</p>
<p>However, putting it in the <code>onCreate()</code> event I'll get 0 as my results (which I suspect is because the Window has not been fully created). <code>onResume()</code> also does not work unless the application ha... | android | [4] |
5,331,062 | 5,331,063 | slow-loading javascript include blocks rest of site | <p>I have a site with a third-party Javascript include coming from an external URL. However, it frequently loads very slowly (if at all). It is a tracking service used by our marketing team, so I can't remove it (I have suggested it!).</p>
<p>Currently it's included at the end of my page template with a very simple</p... | javascript | [3] |
2,784,077 | 2,784,078 | c++ can I use cin.get to get individual numbers of a float? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5742615/c-converting-a-float-to-individual-digits">C++ converting a float to individual digits.</a> </p>
</blockquote>
<p>I was wondering if I could use <code>cin.get</code> to get the individual integers for an... | c++ | [6] |
4,656,058 | 4,656,059 | Is there a sample source code for home automation on android? | <p>i wanted to know how the home automation is done in android. if anyone has a sample code of a single switch button for a light to switch on or off..??? it would be helpful for me..i wanted to know how the coding is being done of this.</p>
<p>Thanks in advance</p>
| android | [4] |
2,988,288 | 2,988,289 | How to limit label for up to 5 lines of text | <p>I have a basic question:</p>
<p>I am getting text data from a database and want to display in a label (x width, don't know if width is important but I guess it is) upto 5 lines of text (if in database the data is less then 5 lines all will be displayed).</p>
<p>Need to work with all borwsers.</p>
<p>Thanks for an... | asp.net | [9] |
1,217,413 | 1,217,414 | how to make datepicker image enable after making it disable in jquery | <p>How can i make datepicker image clickable/enable after makin it disable like this</p>
<pre><code> $("#_ctl0_MainContent_txtFromDateTime").datepicker({
showOn: "button",
buttonImage: "../images/calendar.gif",
buttonImageOnly: true,
buttonText: "Please Select Date",
onSelect: function() {
... | jquery | [5] |
4,600,579 | 4,600,580 | iPhone Development: Resources for beginners | <p>As the title says have you got any available resource to start developing for iPhones?</p>
<p>Books, Online resources, tools, development environment, pre-requisites and everything is related to iPhone programming will be good!</p>
<p>Thanks</p>
| iphone | [8] |
4,862,128 | 4,862,129 | AssetManager list not Returning anything | <p>The following code produces a list with no entries:</p>
<pre><code> AssetManager am = getContext().getAssets();
try {
String[] xmls = am.list("assets/images");
//Do something...
}
catch(IOException e)
{
}
</code></pre>
<p>There are plenty of files in my assets/images directory.... | android | [4] |
5,502,891 | 5,502,892 | How to convert List<IEntity> to List<Entity>? | <p>How to convert List to List?</p>
<p>IEntity is my interface and Entity is a class that implements IEntity.</p>
| c# | [0] |
3,351,762 | 3,351,763 | In Jquery how do you find out the 'eq' of an element of what is being clicked? | <p>When one of the divs inside 'uploadChoice' is clicked, how can I ascertain which one is clicked? Can I return an 'eq' value somehow?</p>
<pre><code> <div id=uploadChoice>
<div>Text</div>
<div>Image</div<
<div>Text & Image</div>
</div>
$("#uploadCh... | jquery | [5] |
2,542,778 | 2,542,779 | Jquery behaviour in IE, different for setting rather then changing style values? | <p>I have a jquery script that was timing out in IE, superfast in firefox the reason was the below jquery script</p>
<p>var $this;
$j('.rc_bottom').each(function () {
$this = $j(this);
if ($this.parent().outerWidth() > 0 && $this.css('width') != 'auto') {
$this.css('width', $this.prev().outerWidth... | jquery | [5] |
1,984,825 | 1,984,826 | obtain initials of Contact name | <p>i want to according to alphabetical order to displayorder, i know in contact.apk have done it,for example i add one Contact Person, i input "David",then "D" is be known and in the item appear "D",All with D beginning name as a group,so i want to know how to get the initials of Contact name ? if i used other langua... | android | [4] |
1,005,807 | 1,005,808 | I add application preference in device setting | <p>How can I add application preference in device setting. I want to my preference setting be part of device setting opinion. My application setting can be appeared or displayed in device setting list.</p>
<p>Any API i need to use or keyword?</p>
| android | [4] |
2,419,171 | 2,419,172 | Android - How to remove activity from recent apps? | <p>I created a custom dialog on my android app. This dialog is an activity with Dialog theme. Now, assume that the app is showing this dialog, User press "Home" to back to Android Home view. Later, user press and hold button <code>Home</code> then choose my app from recent apps. It's will show the dialog again.
What I... | android | [4] |
4,531,418 | 4,531,419 | multiple class events together , how to get the current class name | <p>I have multiple class events bind together for a click event , </p>
<p>i want to know which class is clicked , how can i get current user selected class </p>
<pre><code>$('.class2 , .class3 , .class3').bind('click', function () {
location.href = "test.htm";
});
</code></pre>
| jquery | [5] |
2,563,787 | 2,563,788 | Intro to Java Programming books | <p>Where are some good intro Java programming books out there freely downloadable?</p>
<p>And how much money can one make by writing a Java Programming book and selling it online?</p>
| java | [1] |
4,162,148 | 4,162,149 | jQuery onclick function isn't firing | <p>I have a 'link' that, when clicked, will show a div full of content. Once clicked, the 'Open' button changes to a 'Close' button with close functionality.</p>
<p>Here's the jQuery:</p>
<pre><code>$(document).ready(function(){
$('.open_user_urls').click(function() {
$('#user_urls').slideDown('slow');... | jquery | [5] |
1,903,735 | 1,903,736 | Check if there is not enough room for a String (TextView) | <p>Is it somehow possible to check if a <code>String</code>'s length, assigned on <code>TextView</code> is of more length than actual device's screen is? In other words, how to check if text doesn't fit on the screen?</p>
<p>What I need is to free some room if text doesn't fit.</p>
| android | [4] |
4,348,097 | 4,348,098 | Some problems with post request | <p>I still have some problems with jquery. If i have html like this:</p>
<pre><code><form method="post">
<textarea id="id_content" rows="10" cols="40" name="content"></textarea>
<input id="yes" type="submit" value="submit">
</form>
<form method="post">
<textarea id="i... | jquery | [5] |
1,765,176 | 1,765,177 | JQuery adding active class to classes of same name | <p>I have two identical cases of the divs below.</p>
<pre><code><div class="box">
<div class="content">
Content here
</div>
<div class="info">
Text here
</div>
</div>
</code></pre>
<p>.info is hidden with overflow: hidden and when I hover over .box, .info .animate... | jquery | [5] |
1,553,999 | 1,554,000 | Event handling for iOS - how hitTest:withEvent: and pointInside:withEvent: are related? | <p>While most apple documents are very well written, I think '<a href="http://developer.apple.com/library/ios/#DOCUMENTATION/EventHandling/Conceptual/EventHandlingiPhoneOS/Introduction/Introduction.html">Event Handling Guide for iOS</a>' is an exception. It's hard for me to clearly understand what's been described ther... | iphone | [8] |
61,180 | 61,181 | php: parse error on mysql query | <p>I'm getting the following error:</p>
<blockquote>
<p>Parse error: syntax error, unexpected T_VARIABLE in /home/a4999406/public_html/willingLog.html on line 48</p>
</blockquote>
<p>on the following code (line 48 is first row of this code):</p>
<pre><code>$rows = mysql_num_rows($result);
for ($j=0; $j<$rows: +... | php | [2] |
2,485,412 | 2,485,413 | How to Stop camera to be used . or how to make it unusable | <p>I am working on an app, in which i need to stop some functionality of phone, </p>
<p>which include :</p>
<p>1) making or receiving phone calls,</p>
<p>2) use of Bluetooth or wifi,</p>
<p>3) Use of camera, </p>
<p>these feature will lock as soon as this app get installed, and will be locked until the get uninst... | android | [4] |
157,027 | 157,028 | How to randomize subset of array in Javascript? | <p>What is the best way to randomize part of the array in Javascript</p>
<p>For example, if I have 100 items in the array, what is the fast and efficient way of randomizing set of every 10 times. Items between 0 and 9 is randomize within data items[0] to items[9]. Items between 10 to 19 are randomize within data items... | javascript | [3] |
276,748 | 276,749 | How to modify the properties of item inside Dictionary? | <p>I have a Dictionary, and I want to modify the property of an item inside the dictionary, how to achieve this? Can I use foreach to modify the item's properties? I has surveyed some posts, they said the reference obtained from foreach is readonly, which can not be modified.</p>
<pre><code>class MyClass
{
public i... | c# | [0] |
4,166,819 | 4,166,820 | Get minimax to output just one spot? | <p>I have this minimax function for a numbers game. The goal is to get to [11][30] in an array. And each player can only change x or y, not both. So if player one picks 5 16, then player2(AI) can pick 5 17, 5 18, 5 19, or 6 16, 7 16, 8 16...etc. My problem is that when its the AI's turn it just picks every valid sp... | c# | [0] |
5,913,315 | 5,913,316 | What is the best explanation for the export keyword in the C++0x standard? | <p>I know that in the original C++0x standard there was a feature called <code>export</code>.</p>
<p>But I can't find a description or explanation of this feature. What is it supposed to do? Also: which compiler is supporting it?</p>
| c++ | [6] |
1,188,520 | 1,188,521 | Hold most of the object in cache/memory insted of database? | <p>It just occurred to me why not to have most of the objects in a cache(memory) when an application start.</p>
<p>if it's not that large web application. Or to have a settings for how much I want to put in the cache/memory.</p>
<p>I just guess it could require to have something like below 1 GB RAM or a lot less.</p>... | java | [1] |
4,680,224 | 4,680,225 | Android Development: Save | <p>In my webview there is no long click and show up a context menu where i can save link as save image and so on.</p>
<p>Here is my work so far:</p>
<pre><code>registerForContextMenu(mWebView);
public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, ... | android | [4] |
2,640,656 | 2,640,657 | How to read in a text file, line by line, and fill an object array with the information? | <p>Figured it out...
I can't believer it took me that long just to get this:</p>
<pre><code> int id = inputFile.nextInt();
String title = inputFile.next();
String isbn = inputFile.next();
String author = inputFile.next();
String category = inputFile.next();
char catagorie... | java | [1] |
3,299,701 | 3,299,702 | Android default menu button is not visible | <p>in my app the android default menu button is not visible? why? Any help?</p>
<p><img src="http://i.stack.imgur.com/vuBhN.png" alt="enter image description here"></p>
| android | [4] |
3,490,587 | 3,490,588 | Saving app state on iphone | <p>I'm developing a word game for iphone. Now that IOS has multitasking, do I definitely have to save the game state when the game is interrupted?</p>
| iphone | [8] |
434,526 | 434,527 | How to sign Android app with system signature? | <p>I've downloaded and compiled Android 2.1 version with <code>signed-google_ion-ota-14721.zip</code> image for my HTC phone. The compile completed successfully and so the system image flash.
How can I sign my own Android application with the system signature? </p>
<p>Can someone describe the whole process for signing... | android | [4] |
5,828,299 | 5,828,300 | Is there a listener for ScrollView's scrolling? | <p>I have a TableLayout inside a ScrollView, because of some special needs, I need to do some things when the ScrollView has reached the top. Is there such a listener to listen in on user's scrolling operations? Or, if there is no a ready listener, can I subclass the ScrollView (which will be painful I supposed) to ach... | android | [4] |
81,532 | 81,533 | How to filter data before get it out from the database? | <p>I use <code>cursor</code> get data from database,But there are some unnecessary data in it.I want to know how to show the data exactly I want to show,not all I get from the database,I can't judge this when query the database ,only can handle it after I get the data out,I hope the app can filter the data automatic af... | android | [4] |
4,372,367 | 4,372,368 | Android: How to run another program from my program and send agrument to it | <p>I'm writing a small program, it can show and manager all files and folder in the android mobile. Now I get a problem need to help, when I click to a file icon, example a audio, i want the audio player can run and play it. Who can help me</p>
| android | [4] |
3,536,450 | 3,536,451 | How to retrieve original @classmethod, @staticmethod or @property | <p>I understand that @decorator.decorator doesn't allow to decorate above @staticmethod, @classmethod (and perhaps also @property). I understand the usage:</p>
<pre><code>class A(object):
@classmethod
@mydecorator
def my_method(cls): pass
</code></pre>
<p>But, in a debugging module, I still want to try to... | python | [7] |
2,889,899 | 2,889,900 | Jquery custom rule dynamically added | <p>I have a custom rule:</p>
<pre><code>jQuery.validator.addMethod("greaterThanStartPrice", function(value, element, param) {
return this.optional(element) || (parseFloat(value) > $(param).val());
}, "\"Reserve Price\" must be greater than \"Start Price\"");
</code></pre>
<p>to check that a value entered into inpu... | jquery | [5] |
2,107,472 | 2,107,473 | How to add a listener to a running service on Android | <p>I added a listener to the service called "BindService".<br>
And then I killed the Activity which have added the listener to the "BindService".<br>
"BindService" is still running. I can see it on DDMS of eclipse.<br>
Now I started the Activity again and I want to add a listener to the "BindService" again.<br>
How cou... | android | [4] |
4,619,813 | 4,619,814 | How to call create a proper interface | <p>I have an interface with two methods</p>
<pre><code>interface IFoo{
void FooOne(A,B,C);
void FooTwo(D,E,F);
}
</code></pre>
<p>Now there are two implementation class which extends this interface. One is as follows:</p>
<pre><code>class Foo1 implements IFoo{
void FooOne(A,B,C);
void FooTwo(D,E,F);
}
</code... | java | [1] |
3,457,524 | 3,457,525 | converting String into long in java | <p>I couldn't convert a <code>String s="45,333"</code> into number like long or double. Can anyone help me to solve the issue.. i have added the model snippet, when i try to run that code it showing <code>NumberFormatException</code>..</p>
<pre><code>public static void main(String args[])
{
long a=85200;
NumberFormat ... | java | [1] |
1,764,660 | 1,764,661 | JAVA why is arrayCopy a System call? | <p>Example</p>
<pre><code>short size = 1234;
byte[] payload = {12,43, 55,123, 11, 55};
byte [] shortSize = ByteBuffer.allocate(2).putShort(size).array();
byte[] entirePayload = new byte[shortSize.length+payload.length];
System.arraycopy(shortSize, 0, entirePayload, 0, 2);
System.arraycopy(payload, 0, entirePa... | java | [1] |
527,874 | 527,875 | Alternative for deprecated session_is_registered | <pre><code>session_start();
if (!session_is_registered(user)) {
header("Location: login.php");
die();
}
</code></pre>
<p>What is the proper way to do this since <code>session_is_registered()</code> is deprecated?</p>
| php | [2] |
5,173,723 | 5,173,724 | Where is the source code for Android's web browser? | <p>Since Android has such pathetic documentation, I'm looking for the source code for the browser so I can see what objects it provides to JavaScript. Where should I look? Is there an online source code browser?</p>
| android | [4] |
5,903,435 | 5,903,436 | Cannot create system.img when recompiling Android | <p>I wan to recompile android project. I followed steps <a href="http://source.android.com/source/building.html" rel="nofollow">here</a>...but every time after ~2 hrs of processing (with no errors I guess), I cannot find the "system.img" file in the output directory. I can find the other 2 files ramdisk.img, userdata.i... | android | [4] |
4,595,035 | 4,595,036 | c# . if (image == Properties.Resources.image) | <p>I want to do an if stament on an image </p>
<pre><code> if (SortName.Image == Properties.Resources.RadioEmpty)
{
SortName.Image = Properties.Resources.Radio;
}
else
{
SortName.Image = Properties.Resources.RadioEmpty;
}
</code><... | c# | [0] |
2,627,465 | 2,627,466 | Validate Form Field using JQUERY | <p>I've a form field with one input field.</p>
<p>As soon as the user completes typing i need to make an ajax call and validate input on serverside.</p>
<p>I tired keyup, focusout, keydown and mouseup events but doesn't seem to work as expected. Could some one please suggest the best keyboard events to choose to reso... | jquery | [5] |
5,626,868 | 5,626,869 | java convert literals to objects | <p>I have an app where a property file contains data in the following format</p>
<pre><code>name=abc#$#String
age=23#$#Integer
</code></pre>
<p>When the value is casted, cast it to values after #$#. is it possible to do this without using a switch or if then else statement. </p>
<p>What I would like to do is have a ... | java | [1] |
5,842,584 | 5,842,585 | Ideally what should be written in onPause() | <p>I've got an Activity and a service bound to it in the onCreate of the Activity.
service keeps running even when activity has got deep under the stack.
but in my development i've never used onPause() and onResume() methods for the activity.
can you please suggest what ideally should be written in those methods.</p>
| android | [4] |
2,910,474 | 2,910,475 | java single quotes replace | <p>In java <code>String str="welcome'thnks'how are u ";</code></p>
<p>I need to replace the single quotes in <code>str</code> by <code>\'</code> i.e when I print str I should get output as <code>welcome\'thnks\'how are u</code></p>
| java | [1] |
611,420 | 611,421 | Java applet can't find printers (granted permission) on CentOS 6 with CUPS | <p>PrintServiceLookup.lookupDefaultPrintService() returns null in the applet but returns the default printer when called in a small application.</p>
<p>I tried permission java.lang.RuntimePermission "queuePrintJob" and also clicking OK to grant permission to the applet to access the printer. The applet also has permis... | java | [1] |
5,757,807 | 5,757,808 | How to define parameter with constant variables for function in php? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/254514/php-and-enums">PHP and Enums</a> </p>
</blockquote>
<p>I want to create a function with several parameters that one of them has several constant variable.
for example:</p>
<pre><code><?php
function pr... | php | [2] |
5,805,373 | 5,805,374 | How to get exactly "Unknown Sources" application list on Android? | <p>How to get exactly "Unknown Sources" <strong>application list</strong> on Android?
what is flag to used? If it is not this method,what are others method? and
How to programmically?</p>
<pre><code> PackageManager pm = this.getPackageManager();
final List<PackageInfo> appinstalled = pm
.getI... | android | [4] |
60,417 | 60,418 | TextBox Auto Expandable | <p>how can i make textbox auto expandable when i insert the text</p>
| jquery | [5] |
3,803,238 | 3,803,239 | How to set type face from xml | <p>I know to set Typeface from coding like below.</p>
<pre><code>type1=Typeface.createFromAsset(getAssets(),"fonts/helveticaneueLtstd-bd.otf");
text.setTpeface(type1);
</code></pre>
<p>But it is difficult to me to set Typeface if i have more text views.How can i set the typeface from XML instead of from coding.</p>
| android | [4] |
634,609 | 634,610 | PHP shorthand IF with two variables in the first part | <p>How can I write this IF condition (at the moment I have error, but I don't know where)?</p>
<pre><code>$gll_name = ($gll_id != NULL ? $w = $this->gallery_model->gallery_get_one_user($gll_id); $w->name : " ");
</code></pre>
| php | [2] |
5,898,260 | 5,898,261 | i want to find the preinit method in asp.net | <p>I want to put a break-point on <code>preinit</code> method.<br>
So, how can I find <code>preinit</code> method and where is it located?
I want to debug this method and try to understand, how it works.</p>
| asp.net | [9] |
4,618,427 | 4,618,428 | iphone facebook friend status | <pre><code>NSMutableDictionary * params = [[NSMutableDictionary alloc] init];
[params setValue:@"100000********" forKey:@"uid"];
[params setValue:@"1500" forKey:@"limit"];
[params setValue:@"results" forKey:@"callback"];
</code></pre>
<p>when im using this coding im getting my friend status... </p>
<p>but... | iphone | [8] |
3,934,465 | 3,934,466 | Why can't you use 'this' in member initializers? | <p>Any ideas why I get an error if I try to do something like this:</p>
<pre><code>public class Bar
{
public Bar(Foo foo)
{
}
}
public class Foo
{
private Bar _bar = new Bar(this);
}
</code></pre>
<p>I get an error saying:</p>
<p>"Cannot use 'this' in member initializer"</p>
<p>but the following wo... | c# | [0] |
6,008,808 | 6,008,809 | Need to find out who is retaining an NSMutableArray | <p>I have an issue where I need to find out what objects are retaining a NSMutableArray. If it is an object I created I can just override retain and release and set a breakpoint on it, but since it is a NSMutableArray I can't. I tried to subclass NSMutableArray but I get exceptions when I try to add to my subclass. Any... | iphone | [8] |
2,139,463 | 2,139,464 | android Send text Message with Image | <p>How to send Text Message With Images <strong>without user intervention</strong></p>
<pre><code>short SMS_PORT = 15005;
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null, sms, null, null);
smsManager.sendDataMessage("5556",null,SMS_PORT,bFile,null,null);
//bFile is a Image by... | android | [4] |
3,164,229 | 3,164,230 | Java: Do all processes run under the same JVM? | <p>We have a linux server that starts around 20 java programs. These java programs are all identical, except that they are using a differen port. These programs run fine. However, after a while all 20 programs crash at the exact same time. Each of these programs are allocated 2 gig of memory, by starting them up like t... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.