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,605,739 | 2,605,740 | how to send mail in asp.net | <p>hii
i m trying to send mail through coding of asp</p>
<p>is there any external APIs to send mail like JAVA</p>
<p>give some hints
if possible sample code!!</p>
<p>I m using vs 2005 as well as vs 2008</p>
| asp.net | [9] |
4,620,103 | 4,620,104 | Getting emails and phone numbers from contact without extending Activity | <p>I'm trying to get the email adresses and phone numbers from a contact. My class doesn't <code>extend Activity</code> and now I'm stuck.</p>
<p>How can I overcome this problem?</p>
| android | [4] |
2,358,044 | 2,358,045 | Convert a python dict to a string and back | <p>I am writing a program that stores data in a dictionary object, but this data needs to be saved at some point during the program execution and loaded back into the dictionary object when the program is run again.
How would I convert a dictionary object into a string that can be written to a file and loaded back into... | python | [7] |
4,810,038 | 4,810,039 | ClearInterval not stopping | <p>I have the following JQuery code:</p>
<pre><code>JModel.ClipThumbs.Clip.prototype = {
interval: null,
setThumb: function(src) {
this.mainThumb.src = src;
},
mouseEntered: function(el) {
var temp = this;
var x = 0;
this.interval = setInterval(functi... | jquery | [5] |
1,280,137 | 1,280,138 | Android - keeping the activity alive | <p>I have a puzzling problem. If I deploy my application from Eclipse on any device/emulator, I can use the Back and Home buttons to minimize it and then I can click the launcher icon to resume it. </p>
<p>If I take the apk, put it on the phone and install it (using the Astro file manager), then press Back or Home, wh... | android | [4] |
5,355,955 | 5,355,956 | Caused by: java.lang.NullPointerException while trying to call other Activity | <p>I am trying to call, ProductsActivity.java whenever user do click on OK in AlertDialog in ProductInformationActivity.java, but always getting an Error <strong>Caused by:java.lang.NullPointerException</strong> at line number 76th, which is </p>
<pre><code> KEY_CATEGORY = bdl.getString("category");
</code></pre>
<... | android | [4] |
3,878,824 | 3,878,825 | How to display \ in android textview? | <p>I am familiar with using \n in a textview to display on the second line, however I want to display the / in my textview. I get the escape errors in eclipse when trying to display "C:\directorya\directoryb\" is there a code I should be using to display \ instead?</p>
| android | [4] |
1,709,157 | 1,709,158 | Whats the best way to learn java if you have trouble concentrating on what your doing? | <p>I Want to learn java for personal and maybe eventually professional use but every time I pick up book i lose focus forget everyhing and have to read it all over. Is there a better way to learn java or any programming language in general then by using a book like head first java?</p>
| java | [1] |
4,266,054 | 4,266,055 | reasons for php hang | <p>My hosting provider has suspended my account with a notice that php gets hang often.</p>
<p>They have also send usage report.</p>
<pre><code>User | Domain | % CPU | % MEM | MySQL Processes
lufadea1 lufadeal.com 20.88 1.30 0.6
13337 lufadea1 20 0 132m 17m 7656 R 2.3 0.1 0:00.07 /usr/bin/php/hom... | php | [2] |
634,916 | 634,917 | How to create a shortcut for an app from an other app in c#? | <p>I'm trying to make a window's form application with c# that can copy an other application's shortcut to an especial folder.I use this code to copy files but cannot make a short cut...</p>
<pre><code>system.io.file.copy("what","where");
</code></pre>
<p>I use this but it doesn't work</p>
<pre><code> System.... | c# | [0] |
5,830,172 | 5,830,173 | How to get the resolution of image in iphone programmatically? | <p>how can I programmatically get resolution of an image in iPhone?</p>
<p>Thanks. </p>
| iphone | [8] |
217,834 | 217,835 | Testing for presence of UTF-8 character in JQuery string failing | <p>I'm trying to create a JQuery function that will test a string for the presence of a specific UTF-8 Character.</p>
<p>In this case the character is <code>U+00AD</code> (<em>Soft Hyphen</em>). </p>
<p>Here is one variation of the function I've tried, but just can't find a working solution.</p>
<pre><code>var index... | jquery | [5] |
4,318,411 | 4,318,412 | Python permutation difference | <p>Is there something built-in to tell the permutation difference between two list? E.g.</p>
<pre><code>difference("ijk", "ikj") = (0,2,1)
difference("jik", "ikj") = (2,0,1)
etc ...
</code></pre>
<p>oops, nevermind, here is a snippet</p>
<pre><code>[a.index(i) for i in b]
</code></pre>
| python | [7] |
2,134,918 | 2,134,919 | The second .click() function is not working | <p>The first .click function is used to add an element(div) in a container and the second one is used to remove it from the container. The container initially has no elements. The removing of the function by clicking on it is not working</p>
<pre><code>$(document).ready(function(){
$(".class1").click(function(){
... | jquery | [5] |
3,600,525 | 3,600,526 | Android - way to load large data in ListView any cache mechanism on cursors or something which loads listview faster | <p>I have a large dataset in database, I want to load this data in listview as fast as possible.
I have tried a Async task which progressively adds elements from database to list which is bind to list view. But first records get loaded faster but to scroll down to last record it take much time.
Is there any way that an... | android | [4] |
1,430,440 | 1,430,441 | Gauss error function implementation for JavaScript | <p>Is there a free (BSD- or MIT-licensed) <a href="http://en.wikipedia.org/wiki/Error%5Ffunction" rel="nofollow">Gauss error function</a> implementation written in <a href="http://en.wikipedia.org/wiki/JavaScript" rel="nofollow">JavaScript</a>?</p>
| javascript | [3] |
44,789 | 44,790 | How to show the "Who are you with?" and "Where are you?" using the com.facebook.android.Facebook | <p>I'm using com.facebook.android.Facebook to post a message to facebook I can post a message just fine using the code below</p>
<pre><code>// post on user's wall.
Bundle params = new Bundle();
params.putString("name", "app name");
params.putString("caption", "Caption");
params.putStrin... | android | [4] |
2,956,399 | 2,956,400 | TCP client in JavaScript | <p>I am a newbie to java scripting, hence need help. I am looking for a tcp client code written in java script that constantly reads data from a server socket and prints to the console. Any help is highly appreciated.thanks</p>
| javascript | [3] |
5,402,824 | 5,402,825 | issue regarding tokenize.py | <p>In python2.x tokenize() function has two arguments namely, 'readline' and 'tokeneater'. Second argument takes care of the output mechanism for tokenize() and is called once for each token. Now we know that in python3.x second argument 'tokeneater' is not there. How is output mechanism in python3.x being taken care o... | python | [7] |
5,661,238 | 5,661,239 | Can't add project as library to my project | <p>I'm trying to use ABS library in my project. I added library project to my workspace, checked this state ("Is Library" is true in project's settins), added this project to my one "Java Build Path" -> "Projects". But I can't mark this project as library ("Android"->"Libraries" in properties). I had added that, but wh... | android | [4] |
5,265,095 | 5,265,096 | How to hook into all Android click events? | <p>I'm looking for a relatively simple method of hooking into all click events in already existing code. Whenever a click occurs, I want the already assigned click event handler to run, and then I want to run the additional click handler that will do whatever I need it to do. Essentially, I want a simple way of adding ... | android | [4] |
1,175,669 | 1,175,670 | How to remove the white-bar which remains after typing in Android | <p>For some reason, after a user enters text into an EditText within my Android app the white-bar which contains "suggestions" remains at the bottom of my Layout! If you press the "Back" button, it disappears.</p>
<p>How can I stop this from remaining after completing text entry?</p>
<p>EDIT:</p>
<p>Screenshots</p>
... | android | [4] |
4,278,669 | 4,278,670 | Flashing Actionbar Icon | <p>I have an ActionBar icon which is a button to a chat message screen. I have two copies of the icon. One standard grey, and one yellow.</p>
<p>When I display the yellow icon to indicate there is a message waiting, I want it to flash slowly.</p>
<p>Is this possible with an actionbar icon?</p>
| android | [4] |
4,501,881 | 4,501,882 | Returning a reference in JavaScript | <p>Here is the code:</p>
<p><a href="http://jsfiddle.net/GKBfL/" rel="nofollow">http://jsfiddle.net/GKBfL/</a></p>
<p>I am trying to get <code>collection.prototype.add</code> to return a reference such that the final alert will display <code>testing, testing, 123, testing</code>. Is there a way to accomplish what I'm... | javascript | [3] |
1,910,782 | 1,910,783 | Android appstore | <p>Just a quick question, On Android there are various appstore's. For instance Google's own, Amazon's etc.</p>
<p>Is it possible for other 3rd parties to easily create there own app store?</p>
| android | [4] |
1,934,826 | 1,934,827 | change font color of label at time interval in iphone sdk? | <p>I want to change the font color of the label at some time interval. Can anyone tell how to do it?</p>
| iphone | [8] |
5,318,341 | 5,318,342 | JAVA - error variable for do.. while | <p>I having issue when compiling my assignment code.</p>
<p>When I use the scanner input for the switch menu as integer value, the <code>do-while</code> is working fine, but due to assignment requirement, the menu input need to be char, so I alter it as below, but it keeps giving me error stating the variable of <code... | java | [1] |
4,784,470 | 4,784,471 | Is there any jQuery plugin which display an horizontal accordion showing half images? | <p>Basically I need one like this:</p>
<p><a href="http://yogafasting.org/" rel="nofollow">http://yogafasting.org/</a></p>
<p>First, it displays a partial image and then when you hover it, it shows the full image.</p>
| jquery | [5] |
2,902,519 | 2,902,520 | Close android application programmatically | <p>How can i close my application programmatically?</p>
<p>I used</p>
<pre><code> finish();
</code></pre>
<p>Or</p>
<pre><code>rocess.killProcess(android.os.Process.myPid());
</code></pre>
<p>Or</p>
<pre><code>System.exit(0);
</code></pre>
<p>Or</p>
<pre><code>moveTaskToBack(true);
</code></pre>
<p>but it cl... | android | [4] |
2,631,448 | 2,631,449 | Lock screen doesn't cause onStop() to get called | <p>My app uses GPS, so I remove GPS updates in onStop() so it doesn't use up battery when it shouldn't. However, I noticed that the battery on my test phone was running down if my app was open when the lock screen comes on.</p>
<p>So to test it, I added a Log.i(...) to the onStop() method of my activity. Sure enough,... | android | [4] |
1,711,945 | 1,711,946 | C# interface implementation and generic collections question | <p>Suppose I have following code:</p>
<pre><code>public class CBase: AbstractC,IRenderable
{
//code here
}
public class CBaseGroup
{
private List<IRenderable> CCollection;
public CBaseGroup(List<IRenderable> c)
{
CCollection=c;
}
}
public class CGroup:CBaseGroup
{
public CGroup(List<CBase>... | c# | [0] |
3,760,606 | 3,760,607 | Android What Event Is fired when user click on an EditText box? | <p>I am trying to prefill an EditText widget with some instr. but erase the moment the user clicks in the box so they start leftmost point? I tried registering onClickListener(), onKeyListener but I was not able to capture this? Thanks What can I register to detect this first click within the text editing area? </p>
| android | [4] |
3,715,186 | 3,715,187 | How many times is a local var created when instantiating an object? | <p>In the message object below, if I call it like this:</p>
<pre><code>var message_object = new Message( response_element );
message_object.display( 'empty' );
</code></pre>
<p>is the messages array created for each call to new Message()...if so how can I ensure there is only one messages array, as that is all I need... | javascript | [3] |
3,776,836 | 3,776,837 | PHP - Weird characters when disabling error reporting | <p>This is basically all I'm doing</p>
<pre><code>echo @file_get_contents("http://******.org/ti.php?i=".$i."&s=".$s);
</code></pre>
<p>But when I remove the ti.php file from that server to test if it hides the error I get this in my browser where the error would be:</p>
<pre><code>
</code></pre>
<p>What the ... | php | [2] |
2,490,341 | 2,490,342 | Is it possible to replace a part of the settings application on Android? | <p>I am building an application that will make it easier to manage certain settings on an Android device. For now it will just be a separate app in Android market.</p>
<p>But long term I would like the app to actually replace part of the Android settings app. Is it possible to have the app invoked or overwrite a certa... | android | [4] |
5,558,730 | 5,558,731 | Displaying iso-8859-1 encoded content in WebView | <p>I am obtaining HTML coded content from an SQlite database that I would like to display in a WebView . I am currently using:</p>
<pre><code>public class ShowAbstracts extends Activity {
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
Bundle extras = getIntent().getExt... | android | [4] |
3,776,430 | 3,776,431 | Is it possible to send a custom HTTP request | <p>With javascript you can do it with xmlhttp.open, what other ways can do this?</p>
| javascript | [3] |
4,178,246 | 4,178,247 | webview paging and book reading | <p>i am new developer in iphone</p>
<p>how to paging in webview and not scrolling +
i'm trying to implement ibook style like ipad book reading</p>
| iphone | [8] |
1,472,585 | 1,472,586 | Having trouble reading from a file | <p>I have a more complex program that involves using what's written in a text file but it wasn't working at all, nothing was being displayed and everything is dependent on the file. If i just make the string equal to something in my code and get rid of reading from the file then it works. I tried something as simple as... | java | [1] |
2,590,956 | 2,590,957 | How to setup parsing emails? | <p>How do I setup a server so I can get emails and parse them in python?</p>
| python | [7] |
2,307,498 | 2,307,499 | Check active div onload | <p>I'm using something like this in a layout</p>
<pre><code><nav id="main-nav">
<a href="#link1">Link1</a>
<a href="#link2">Link2</a>
<a href="#link3">Link3</a>
</nav>
<div id="link1">
some content goes here
</div>
<div id="link2">
some c... | jquery | [5] |
5,784,457 | 5,784,458 | How can I have one button execute two actions? | <p>Is it possible to have the one “Save” button execute these two actions?</p>
<p>Action 1:</p>
<pre><code><td>
<?php
$target = TRoute::_("index.php?option=com_adsmanager&task=save");
if ($this->nbcats == 1)
{
$this->displaySingleCatChooser(@$this->content->id,$this->c... | php | [2] |
1,390,096 | 1,390,097 | C# : how can i switch between my two network interface | <p>can i switch between my two network cards,i need to use on card to send mails so i need to switch control to it.si there a way to do this by c# code?
any help will be appreciated</p>
| c# | [0] |
3,396,349 | 3,396,350 | Java Class Path | <p>I am learning java at the moment and I am a bit confused on where or how to set a class path?</p>
<p>I am using Jcreator Pro.</p>
<p>Do I set it in the source file or in the IDE or in Windows somewhere?</p>
<p>Any help would be greatly appreciated.</p>
| java | [1] |
750,523 | 750,524 | error in android calcualtor application | <p>hi to all i have android application which is calculator that perform only one operation (addition) the result is always 3.0 whatever the two numbers are
what is the solution???
here is the code </p>
<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View... | android | [4] |
3,950,572 | 3,950,573 | Create file and folders recursively | <p>I got an array containing path names and file names</p>
<pre><code>['css/demo/main.css', 'home.css', 'admin/main.css','account']
</code></pre>
<p>I want to create those files and folders if they are not existed yet. Overwrite them if they are already existed.</p>
| php | [2] |
1,067,503 | 1,067,504 | How create a frame "tap to sign" as SIGNificant Signature Capture? | <p>I want create a signature app on android, but i don't know 'how create a frame "tap to sign" as SIGNificant Signature Capture'.(this tab is a tool of zoom or tab normal..?)help me...</p>
| android | [4] |
286,940 | 286,941 | custom tabbar problem in navigation | <pre><code>@interface CustomTabbarController : UITabBarController
{
}
@end
-(void)tabBarControllerView{
tabBarController.navigationController.navigationBarHidden=YES;
tabBarController.delegate=self;
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
}
- (BOOL)tabBarController:(... | iphone | [8] |
2,159,552 | 2,159,553 | how can i play small music file when i tuch an image in android? | <p>I am New to android, My task is to playing a small audio file when we touch an image?</p>
| android | [4] |
3,481,438 | 3,481,439 | Dimen value not working like expected | <p>I'm having trouble understanding the dimen resource attribute.</p>
<p>I have 3 value folders: value-normal, value-large and value-xlarge.</p>
<p>I have defined the titlesize as 20 for normal, 25 for large and 30 for xlarge, this is my normal value file:</p>
<pre><code><resources>
<dimen name="titleSi... | android | [4] |
2,331,501 | 2,331,502 | SelectedIndex property of a drop down list | <p>In my web application I'm having a drop down list and a text box. I want to disable the text box for certain values in drop down list. I wrote the code for the selectedIndexChanged event of the drop down list. I made the AutoPostBack property of the drop down list true.</p>
<p>But when I'm running the application a... | asp.net | [9] |
5,273,483 | 5,273,484 | replace for loop of javascript using jQuery | <p>I wrote a sample html which retrieves the JSON from servlet and displays. But only the thing is i want to know how to iterate the returned JSON response using jQuery. Currently i'm iteratng using javascript for loop.</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org... | jquery | [5] |
4,465,881 | 4,465,882 | C++ pointers and constructors | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3040868/question-about-copy-constructor">question about copy constructor</a> </p>
</blockquote>
<p>if I have this snippet of the code </p>
<pre><code>A a1(i);
A a2 = a1;
A *pa1 = new A(a2);
</code></pre>
<p>ca... | c++ | [6] |
4,130,650 | 4,130,651 | how to display web view in android | <p>Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);</p>
| android | [4] |
5,646,247 | 5,646,248 | Pop up Window with jQuery | <p>I have implemented a chat solution and I will like to create a pop up window (Not Modal) that drops down from the top when the user visits the website asking them to "Chat with an Agent".</p>
<p>How can I achieve this using jQuery?</p>
<p>Thanks in advance.</p>
| jquery | [5] |
4,105,495 | 4,105,496 | Sorting a sublist within a Python list of integers | <p>I have an unsorted list of integers in a Python list. I want to sort the elements in a subset of the full list, not the full list itself. I also want to sort the list in-place so as to not create new lists (I'm doing this very frequently). I initially tried</p>
<pre><code>p[i:j].sort()
</code></pre>
<p>but this di... | python | [7] |
5,588,090 | 5,588,091 | How do I construct a javascript Date object from string | <p>I have the date value "06/12/2012" in string format. How do I construct a Javascript Date object, so that I can perform before/after comparisons?</p>
| javascript | [3] |
4,939,120 | 4,939,121 | telerik:RadEditor ViewPaths http folder | <p>I want to set <a href="http://subdomain.supersonic2010.com/tut/images" rel="nofollow">http://subdomain.supersonic2010.com/tut/images</a> as ViewPaths of ImageManager in telerik:RadEditor
IT Shows
'http://subdomain.supersonic2010.com/tut/images' is not a valid virtual path.</p>
<p>Description: An unhandled exceptio... | asp.net | [9] |
498,377 | 498,378 | concatenate var in loop | <p>A basic question please, I am trying this code:</p>
<pre><code>var number_questions = postsJSON1[i]['question'].length;
for (a=0; a<number_questions; a++) {
var post+[a] = postsJSON1[i]['question'][a];
}
</code></pre>
<p>this line give an error: <code>var post+[a]</code> </p>
<p>What is the correct way... | javascript | [3] |
4,581,415 | 4,581,416 | How to generate UML diagram for classes using Java existing code? | <p>I have Java project with source code, and I want to get UML diagram for this code automatically. Are there any ways to do it? </p>
| java | [1] |
414,278 | 414,279 | pass connection string to datasource of data grid that created at design time | <p>1-I have created a web page with asp.net and put a data grid on it and have config my data grid in design time.</p>
<p>2-I define individual user in SQL server and define user action for each user(insert, update, delete, select),</p>
<p>3-How could i create connection string at run time and passed this connection ... | asp.net | [9] |
2,341,389 | 2,341,390 | How can set onClickListner fo buttons..? | <p>I am new to android. I want to set OnclickListner for different buttons which are located in different xml layouts.</p>
| android | [4] |
3,635,331 | 3,635,332 | Passing data between functions in PHP | <p>Let's take a simple example:</p>
<pre><code>Class someClass{
function __construct($param1,$param2){
}
function foo(){
}
}
</code></pre>
<p>How do I use $param1 & param2 in foo() function?</p>
| php | [2] |
129,206 | 129,207 | how to append elements to the Div previous to the current element in JQuery | <p>i am having two divs ,</p>
<pre><code> <div id="input text">
<fieldset>
</fieldset>
</div>
<div id=1>
</div>
</code></pre>
<p>in my JQuery i am trying to append some elements to the Div that is previous to #1 how to do so..</p>
<pre><code> $("<... | jquery | [5] |
1,896,680 | 1,896,681 | What is the significance of the return statement inside a method whose return type is void | <p>What is the significance of the return statement inside a method whose return type is void .
For example see this below program (I cant paste my companys code so i pasted some sample )</p>
<pre><code>public class Pavan {
public static void main(String args[]) {
Pavan r = new Pavan ();
r.kiran... | java | [1] |
598,005 | 598,006 | open source code for kids and baby learning games | <p>Does anybody know of any baby or small kids open source games? </p>
| android | [4] |
4,417,114 | 4,417,115 | how to connect sqlite to an android application? | <p>I am trying to connect my android application to sqlite, i dont knw how to configure SD card in emulator to have a database... can anyone help me please?</p>
| android | [4] |
5,976,886 | 5,976,887 | Javascript: Run "document.write" in createElement script failed | <p>I have a problem with <code>document.write</code>. Now, I have a page to load script dynamically. So, I use <code>document.createElement</code> to create a <code><script></code>. And in the javascript file, I use <code>document.write</code> to create a <code>dom</code> or <code>iframe</code> element. But it do... | javascript | [3] |
582,507 | 582,508 | String To integer JavaScript | <p>I want to get the integer in this string <code>xyzabc123</code>.</p>
| javascript | [3] |
5,844,851 | 5,844,852 | Can I Register more than one shutdown function in PHP? | <p>using <code>register_shutdown_function</code> I can register code to execute at the end of a PHP script execution "no matter what".</p>
<p>Can I have more than one function registered?</p>
<p>This question arises since I may not know if someone has already registered one when I'm about to register my own.</p>
<p>... | php | [2] |
2,137,536 | 2,137,537 | why the result is not my object? | <pre><code>var name = "The Window";
var object = {
name : "My Object",
getNameFunc : function(){
return function(){
return this.name;
};
}
};
alert(object.getNameFunc()());
</code></pre>
<p>when i tested the code. the result is The Window. but i think <code>this.name;</code> should be <code>My Obj... | javascript | [3] |
968,552 | 968,553 | Creating an Account with dummy authenticator | <p>I am trying to create an account in Accounts & Sync which doesn't require authentication. I have already referred to <a href="http://developer.android.com/resources/samples/SampleSyncAdapter/src/com/example/android/samplesync/index.html" rel="nofollow">SampleSync</a> example. The key difference between the examp... | android | [4] |
4,078,210 | 4,078,211 | Javascript finding the Maximum | <p>So i have a script with 3 scores, and I want the code to find the highest score and print a message based on which variable is the highest score. I know that <code>Math.max()</code> finds the maximum, but I want it to find the variable name that has the maximum. How do i do this?</p>
| javascript | [3] |
3,907,152 | 3,907,153 | activity stack corrupted after update? | <p>Initial Activity (A) launches activity (B). When the user is on (B), presses home, and then returns to the app, (B) is shown again. If you update the app (I am updating from an email as it is not published yet) and launch it from the update screen, it will no longer remember to return to (B). It just restarts act... | android | [4] |
3,535,955 | 3,535,956 | How can I draw a line between two points in Google map in Android? | <p>I am new to Android. I want to draw a line from one location to another in my application. How can I draw a line between two points in Android? Please help me.</p>
| android | [4] |
776,475 | 776,476 | How to get name of calling function/method in PHP? | <p>I am aware of function <code>debug_backtrace</code>, but I am looking for some ready to use implementation of function like <code>GetCallingMethodName()</code>? It would be perfect if it gave method's class too (if it is indeed a method).</p>
<p>I hope it (not doing it myself) want be taken as normal laziness, but ... | php | [2] |
3,865,247 | 3,865,248 | BMI calculations | <p>The formula for calculating body mass index is weight * 703 / height².
Create a web page that contains three text boxes: weight in pounds, height in inches, and one that will contain the BMI result. Create a script with a function named calcBMI() that performs the calculation using the values in the weight and heig... | javascript | [3] |
5,431,637 | 5,431,638 | Android: how to run video from resource folder | <p>I have already seen the other questions similar to mine, but the problem persists.
Thanks in advance.</p>
<p>Here's the code </p>
<pre><code>package com.akk.mysecondvideo;
import android.app.Activity;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bu... | android | [4] |
4,116,007 | 4,116,008 | How to flick through a deck of cards? | <p>I'm making an iPhone cards game where each use has a deck of cards, I'd like to give the user the option to drag his finger through the cards and each card get's highlighted while his finger is on it. This effect is already done in Uno for iPhone. My cards are put into UIButton, what i tried to do is to set a small ... | iphone | [8] |
870,558 | 870,559 | I want to call a webservice when the application will uninstall. Is it possible with Android? | <p><em>Basically i want to perform some database interaction at the time of uninstall</em></p>
| android | [4] |
5,926,529 | 5,926,530 | Is there an Android Spotify developers API? | <p>I was looking into building an android app that utilizes the Spotify API but when i looked on this page it doesn't list an android API? is there one out there somewhere? if not are there any other streaming music services that have API's for android?</p>
<p><a href="http://developer.spotify.com/en/libspotify/overvi... | android | [4] |
4,521,591 | 4,521,592 | Subtracting known chars or last 7 chars from form attribute using jquery | <p>example</p>
<pre><code><form id='A_forward' name='A_forward' action='/some_url.php' method='POST'>
</form>
</code></pre>
<p>How can I using jquery get name of this form, subtract <code>'forward'</code> chars and alert <code>'A_'</code> ?</p>
| jquery | [5] |
5,330,186 | 5,330,187 | Mouseover during scroll | <p>This fiddle doesn't detect the mouseover on a span if during the scroll the mouse pass over the span : <a href="http://jsfiddle.net/S7tnB/" rel="nofollow">http://jsfiddle.net/S7tnB/</a><br>
How can I detect it?<br>
I test on firefox 12, on a OSX lion.</p>
<p><strong>EDIT :</strong> I thought of something that could... | javascript | [3] |
4,380,273 | 4,380,274 | Can't understand why JavaScript void function is used | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/666936/what-is-the-point-of-void-in-javascript">what is the point of void in javascript</a> </p>
</blockquote>
<p>At many places I have seen <em>Javascript Void</em>, but I am still not able to understand why th... | javascript | [3] |
1,540,875 | 1,540,876 | Jquery and iFrame update | <p>I want to create a page that has a dropdown and an iframe, so that the iframe location will change based on the url in the dropdown. What is the correct syntax to get jquery to update the iframe's url?</p>
<p>thanks</p>
| jquery | [5] |
1,501,164 | 1,501,165 | How to Capture and Set a Webpage as Live WallPapaer within Wallpaper Service And Engine | <p>I want to capture a web page from any website like "www.google.com" and then i want to convert that web page in a bitmap image and then set that bitmap image like "google.jpeg" as live wallpaper..
please help me..</p>
<p>i have tried to get input stream of a web page and then i want to convert it in bitmap and save... | android | [4] |
1,899,460 | 1,899,461 | how to make my win app in windows taskbar's notification area | <p>I've created one win app that exe file run successfully
but now i want to make it all time active when windows start up
and i want to display it in windows task bar' notification area.
how could iachive this thing Pls. suggest me...</p>
| c# | [0] |
1,783,810 | 1,783,811 | Editable div not working on firefox | <p>Hi i am using an dynamic div which is editable for input text. its working fine on IE but not on firefox. I need to show html content in div. can we make div editable for firefox also?</p>
| jquery | [5] |
5,624,672 | 5,624,673 | How to implement this UI | <p>Just curious if the tab bar UI element in screenshots is some built in class or customized.
If it is customized, then please give me a hint on what classes I might check to have something like that.</p>
<p>The first screenshot is initial tab bar. When I tap on the last icon the tab bar smoothly(animated) resize its... | iphone | [8] |
731,886 | 731,887 | slidedown jquery problem | <pre>
function show_destination(country_id,airport_id){
$.ajax({
type: "POST",
url: "function.php",
data: "country_id="+country_id+"&airport_id="+airport_id+"&action=destination",
beforeSend: function() { $("#loader_destination").html(''); },
success: function(msg){
... | jquery | [5] |
3,399,980 | 3,399,981 | Mail function problem in PHP | <p>I am having trouble sending emails with PHP. Can you see any problems in my code?</p>
<p>php.ini mail settings:</p>
<pre><code>[mail function]
SMTP = mail.ntserv.co.in
smtp_port = 26
</code></pre>
<p>Code:</p>
<pre><code><?php
$to = "vijay@gmail.com";
$subject = "Test mail";
$message = "hi, How r u";
$from = ... | php | [2] |
4,305,104 | 4,305,105 | Android:: Calling methods form Broadcasr Receiver class? | <p>I have an SMSreceiver class, I am new to android, now my question is that is it possible to call any methods in other class from that class. Basically what I am trying to do is to add each received message to the linked list of strings. Here is my code...</p>
<pre><code>public class SMSReceiver extends BroadcastRec... | android | [4] |
1,516,768 | 1,516,769 | C++ -- Get internal pointer to a vector | <p>I use the following method to get an allocated memory space without worrying about how to reclaim the allocated resource.</p>
<pre><code>#include <vector>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
vector<int> vecInts;
for(int iInd=0; iInd<10; i++)
vecInts.push_bac... | c++ | [6] |
1,375,378 | 1,375,379 | Refresh page when url hash is present | <p>I have a navigation system on my site that uses javascript to slide horizontally stacked divs left and right into view. I'm trying to make the site function better with javascript turned off, so I have a second navigation system that uses hash values to 'go to' the appropriate section. <br /><br />
The problem aris... | javascript | [3] |
347,933 | 347,934 | Best way to convert query string to dictionary in C# | <p>I'm looking for the simplest way of converting a query string from an HTTP GET request into a Dictionary, and back again.</p>
<p>I figure it's easier to carry out various manipulations on the query once it is in dictionary form, but I seem to have a lot of code just to do the conversion. Any recommended ways?</p>
| c# | [0] |
1,778,690 | 1,778,691 | Remove only the input elements in the List in JQuery | <p>I am having a list like</p>
<pre><code> <li style="display: list-item;" id="listChoices">
<label class="topspace">Enter the Choices</label>
<input value="Choice1" maxlength="150" id="Choice1"/>
<input value="Choice2" maxlength="150" id="Choice2"/>
<input value="... | jquery | [5] |
467,449 | 467,450 | Getting name attribute of an object | <p>I set up a function that gets the name attribute of an object and runs a function. The name of the object is set up as a variable but it's not working when I called it. What am I missing?</p>
<p><a href="http://jsfiddle.net/rexonms/wPUhK/1/" rel="nofollow">http://jsfiddle.net/rexonms/wPUhK/1/</a></p>
| jquery | [5] |
4,093,665 | 4,093,666 | Concept name required | <p>I can't remember the name of this concept.</p>
<pre><code> public interface MainInterface {
public void method1();
public void method2();
}
void testMethod() {
methodMain(new MainInterface() {
@Override
public void method1() {
System.out.println("Thi... | java | [1] |
5,788,973 | 5,788,974 | XObjects in Java? | <p>I am receiving a library and there are quite a lot of Xobjects missing, for example:</p>
<pre><code>XStep
XApplication
XMapping
</code></pre>
<p>Is anyone familiar with these classes? from which library?</p>
<p>Thanks in advance.</p>
| java | [1] |
3,047,431 | 3,047,432 | How to Detect Touch event in UIWebview | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/990870/handling-touches-inside-uiwebview">Handling touches inside UIWebview</a> </p>
</blockquote>
<p>How to Detect Touch event in UIWebview?
i am not able to handle touch event in UIWebview.</p>
<p>Thankyou</p... | iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.