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
821,680
821,681
Making Asynchronous Service Calls in Android
<p>I am trying to make asynchronous service-call in my android app using AsyncTask Class, but for each and every service call in my activity i need to have a subclass in my Application which Extends AsyncTask. Can anyone Suggest me a better way of doing this???</p> <p>In My Scenario Service Calls have different return...
android
[4]
1,105,649
1,105,650
How to serialize Dictionary into base64
<p>I need to serialize the <code>headers</code> object to store it in string format, probably base64. The <code>Dictionary&lt;String, Object&gt;</code> will only have String or Int values, so there should be no problem. </p> <pre><code> Dictionary&lt;String, Object&gt; headers = RequestHeaders.ProcessHeaders(HttpConte...
c#
[0]
4,503,672
4,503,673
Have a Javascript which works in Chrome and Firefox but not IE
<p>I've created a simple javascript to select all check boxes. It works in two browsers but not one. Can anyone help me with this script to make it compatible with IE8 or above.</p> <pre><code>&lt;script language="JavaScript"&gt; function toggle(source) { checkboxes = document.getElementsByName('marked[]'); for...
javascript
[3]
68,587
68,588
Refresh screen from within BillingReceiver
<p>I have an app comprised of multiple activities. There are multiple items that may be purchased. What is displayed within each activity may vary depending on what has been purchased. I have a <code>BillingReceiver</code> with a <code>purchaseStateChanged()</code> method. What I need to do inside <code>purchaseStateCh...
android
[4]
740,259
740,260
C++: call class method from a non-class function
<p>I want to write a help function which calls a class method:</p> <p>foo.h</p> <pre><code>class cls{ public: void fun(); void fun1(); }; </code></pre> <p>foo.cpp</p> <pre><code>void cls::fun(){ helperFun(); } void helperFun(){ fun1();//how to call fun1() here? } </code></pre> <p>How should I do it, or ...
c++
[6]
4,067,305
4,067,306
How do I create a node class with a pointer to a parent node that I can make null
<p>Never mind I am an idiot </p> <p>My current node class </p> <pre><code>class node { public: int xCoord; // current position int yCoord; int gCost; //Cost to travel to node int hCost; int parentX; // parent coordinates int parentY; node* parentNode; node(int x, int y, int g ,...
c++
[6]
1,605,167
1,605,168
Highlight the words in files( doc, excel, pdf etc) using java
<p>I have a web application in which i have a searc functionality. Search results will be different types of files.</p> <p>While opening the file i want to highlight the search words.</p> <p>Can anybody please help me. </p>
java
[1]
5,845,550
5,845,551
Searching for an image element whose src contains a keyword, in an iFrame's HTML using jQuery
<p>I am digging deep into a page's DOM to manipulate a certain image attribute. I have a web page which contains an iFrame. The iFrame contains an image. The image has no id attribute so I am going to locate it using it's src. The src contains the unique keyword 'planet'. How do I locate this image using jQuery?</p> <...
jquery
[5]
3,558,836
3,558,837
PHPmailer's AddEmbeddedImage method not working
<p>I'm trying to test the PHPmailer class to embed image (http://www.google.gr/intl/en_com/images/srpr/logo1w.png) inside an e-mail</p> <p>I'm using this code (along with standard one, that 100% works, mail is delivered):</p> <p><code>$mail-&gt;AddEmbeddedImage($src, 'test', basename($src));</code></p> <p>and this i...
php
[2]
578,430
578,431
is there a way to exclude certain chars from encodeURIComponent
<p>i am building a query string for my url and need to exclude certain chars from the encode.</p> <p>I want to exclude the "&amp;" and the "=" so that I can make a statement as such:</p> <p>first=blah&amp;second=blah and so on....</p> <p>I guess the best way to put it is how do I stop them from being encoded?</p> <...
javascript
[3]
4,701,408
4,701,409
How to capture an event when touching the external buttons of my android device?
<p>I want do an action when the user press the external button of a device.</p> <p>I've googled and don't find many help.</p> <p>Anyone have some idea?</p>
android
[4]
4,742,672
4,742,673
JQuery: Check whether an Element is Hidden from the user
<p>How to check whether a particular element is hidden from the user? In my code, under certain conditions, this code will be called:</p> <pre><code>$("#VersionSelectField").hide('fast'); </code></pre> <p>So I have to make sure that if <code>$("#VersionSelectField")</code> is hidden, then I would not have to validate...
jquery
[5]
1,344,124
1,344,125
Evaluate a simple string mathmatical expression
<p>I've just taken a test for a graduate C++ developer with the question below. It didn't go too well as I couldn't decide on a clear way of completing the task. Time limit didn't help either. I'm interested in how experienced developers would have tackled the follow problem - in pseudo or sample code:</p> <pre><co...
c++
[6]
2,785,264
2,785,265
Jquery Phone number mask
<p>I am using jquery.maskedinput-1.3.js for masking phone number. But I want it to add minus sign dynamically I am using mask <code>$("#phone").mask("999-999-9999",{placeholder:" "});</code></p>
jquery
[5]
2,158,990
2,158,991
Facing Force Close and the problem is in InnerClasses attribute
<p>I built an API and facing a force close in it and this is the following waring that i am getting at console side.</p> <pre><code>[2011-02-04 17:49:05 - RMALiteTesting] warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class wa...
android
[4]
1,653,462
1,653,463
How to print Serial port incomming data to lable
<pre><code> private void cliButton_Click(object sender, EventArgs e) { sp = new SerialPort(); sp.PortName = "COM14"; sp.BaudRate = 19200; sp.Parity = Parity.None; sp.DataBits = 8; sp.StopBits = StopBits.One; sp.Handshake = Handshake.RequestToSend; s...
c#
[0]
5,995,013
5,995,014
what does the '[0]' mean with $('#div')[0]?
<p>What does the [0] mean? Also is there a reference/manual that i can use to prevent asking simple questions like this..</p> <pre><code> var height = $('.string-parent-container')[0].scrollHeight; $('.string-parent-container').scrollTop(height); </code></pre>
jquery
[5]
3,065,615
3,065,616
customize listview Rows
<p>I would like if it's possible to customize each row of listview?. i need to remove the separator line from list box when list box has submenus items and list box does not contains any submenus that time i want show the lines. could you please help me on this. Regards Thilag.</p>
android
[4]
3,081,723
3,081,724
Is !$page == false or $page in php?
<p>I saw the following code which uses if ($page!==false). What are the differences if I use if ($page)?</p> <pre><code>if($id){ // check that page exists $page=dbRow("SELECT * FROM pages WHERE id=$id"); if($page!==false){ $page_vars=json_decode($page['vars'],true); $edit=true; } </code></pre> <p>Thanks in ad...
php
[2]
2,236,253
2,236,254
how to call an Activity through TabBars
<p>I'm making an application in which m using Tab Bars. Now what i need to know is, how to open other Tab through <code>setOnTabChangedListener()</code> in my code</p> <p>for example. i am currently in tab and when i click on the 2nd tab it should call the activity of 2nd tab.</p>
android
[4]
1,807,556
1,807,557
jQuery extend $.fn and calling method syntax
<p>I understand that you call a method like this when you are extending <code>$.fn</code>.</p> <p>( <code>$ == jQuery</code> )</p> <pre><code>//$("div").myMethod(); $.fn.extend({ myMethod: function(){...} }); </code></pre> <p>And like this when you extend the jQuery Object:</p> <pre><code>//$.myMethod2(); $.ex...
jquery
[5]
3,995,794
3,995,795
Converting an uint64 into a (full)hex string, C++
<p>I've been trying to get a <code>uint64</code> number into a string, in hex format. But it should include zeros. Example:</p> <pre><code>uint i = 1; std::ostringstream message; message &lt;&lt; "0x" &lt;&lt; std::hex &lt;&lt; i &lt;&lt; std::dec; ... </code></pre> <p>This will generate:</p> <pre><code>0x1 </code><...
c++
[6]
2,947,271
2,947,272
PhoneSateIntentReceiver.NotifyPhoneCallState in android
<p>Hello can anyone explain the use of <strong>PhoneSateIntentReceiver.NotifyPhoneCallState in android</strong> and when this can be used...?? </p> <p>It would be great if you can give some example also.</p> <p>thanks a lot.</p>
android
[4]
1,071,898
1,071,899
ASP.Net PostBack & Button Internal
<p>i worked for long time with windows apps using .net. for last 2 year i am working with asp.net. we often work with asp.net button control. when we click on button then postback occur and right server side event called by asp.net engine. i how link &amp; image button causes postback when user click on those button.</...
asp.net
[9]
752,864
752,865
jQuery bounce effect
<p>Hi I'm looking to make a modal div appear on a page using a bounce effect like seen on the iPhone for its pop-up messages.</p> <p>By bounce I mean like scale bigger than normal and then become the actual size in an elasticated way whilst fading into view.</p> <p>Any ideas on where to start with this?</p>
jquery
[5]
5,554,804
5,554,805
Should a sync provider be an Android library or application?
<p>Regarding Android >= 2.0.1.</p> <p>This speaks for Application type of project:</p> <ul> <li>The provided sample code makes it an application.</li> <li>Easy testing in dev tools.</li> </ul> <p>This speaks for Library type of project:</p> <ul> <li>From another application wanting to trigger a sync, I would like t...
android
[4]
172,232
172,233
How to include assets for xhdpi devices on Android 2.1 application?
<p>I have a Android application using 2.1. I've gone ahead and created a drawable-xhdpi folder and put assets in it. I've set targetSdk=15, but the drawable in that folder is not being used. Is it not possible to support newer devices and keep an minimum sdk of 7?</p>
android
[4]
1,462,085
1,462,086
Program received signal: “0”
<p>Want to implement the application like Season's Greeting <a href="http://itunes.apple.com/us/app/seasons-greeting/id345499393?mt=8" rel="nofollow">http://itunes.apple.com/us/app/seasons-greeting/id345499393?mt=8</a></p> <p>But i am getting the following error when i have added multiple imagesViews in UIScrollView:<...
iphone
[8]
3,079,589
3,079,590
Jquery: Getting the number from ID
<p>You mentioned this in another question: <a href="http://stackoverflow.com/questions/2427853/jquery-get-number-from-id">jquery get number from id</a></p> <p>You should get in the habit of using delimiters in your attribute names (ie, button-1, button_1). One of the advantages, of many, is that it makes it easier to ...
jquery
[5]
5,370,748
5,370,749
php: timing a script
<p>When running a micro time and catching it at the start of the a script then at the end of a script why does the time change every time you run the script?</p> <p>Does it have to do with other items running? How it was processed?</p>
php
[2]
2,557,724
2,557,725
Android: Working with the Android Calendar
<p>I am trying to add entry to the Android Calendar(2.2),but i have ever got some error. I tried a lot of test but without success.What is wrong please? Sorry for my english.</p> <p>Source code:</p> <pre><code>String calName; String calId = null; String[] projection = new String[] { "_id", "name" }; ...
android
[4]
5,032,966
5,032,967
Count matching brackets in python string
<p>A user types a string containing regular expressions like this one:</p> <pre><code>'I have the string "(.*)"' </code></pre> <p>or</p> <pre><code>'when user enters (\d+) times text "(.*)" truncate spaces' </code></pre> <p>I need to count each matching brackets' occurrence as user types, so above texts would retur...
python
[7]
1,455,916
1,455,917
jQuery delay/disable overlay on hover
<p>I'm working with a simple thumbnail overlay script:</p> <pre><code> // Hover thumbnail overlay $('li.carouselBlock a').hover( function () { // Display the overlay $(this).find('span.carousel-description').stop( false, true ).delay(500).animate( {'top':'0px'}, 500 ).show(); }, function...
jquery
[5]
693,274
693,275
deactivate button on gallery slider
<p>I'm am trying to make my javascript/jquery slider button deactivated when it reaches the the end of the scrolling images( when the images have moved all the way to the right, the MoveRight button must be deactivated and only leave MoveLeft button active, same for the move LeftButton), can anybody help with this ? Im...
javascript
[3]
5,551,849
5,551,850
In Python, given a URL to a text file, what is the simplest way to read the contents of the text file?
<p>In Python, when given the URL for a text file, what is the simplest way to access the contents off the text file and print the contents of the file out locally line-by-line without saving a local copy of the text file? </p> <pre><code>TargetURL=http://www.myhost.com/SomeFile.txt #read the file #print first line #pr...
python
[7]
4,126,214
4,126,215
ASP.Net PostBack & Button Internal
<p>i worked for long time with windows apps using .net. for last 2 year i am working with asp.net. we often work with asp.net button control. when we click on button then postback occur and right server side event called by asp.net engine. i how link &amp; image button causes postback when user click on those button.</...
asp.net
[9]
2,598,714
2,598,715
Make javascript unobtrusive
<p>We all work hard when it comes to javascript and unfortunately there is no way to just hide the js in the browsers, but nevertheless we don't want other people to immediately be able to copy what we have accomplished in hours of work. When I look at Facebook script tags, its just a spaghetti-load of single letter va...
javascript
[3]
5,376,951
5,376,952
Call Class From Python Script
<p>How would you call the below MLStripper class from another Python script? </p> <p><strong>Main Python Script:</strong></p> <pre><code> import ConfigParser import os from HTMLParser import HTMLParser c = imaplib_connect.open_connection() try: config = ConfigParser.ConfigParser() ...
python
[7]
1,425,028
1,425,029
Perform the same action on multiple elements
<p>I have this line:</p> <pre><code>$("#clients-edit-wrapper").height($(window).height()-150); </code></pre> <p>I would like to apply that height function to more than just that specific ID in one line of jQuery. Is there a way to chain elements together and apply that height function once for multiple elements? Basi...
jquery
[5]
4,132,012
4,132,013
What's a suitable html parser for Android?
<p>What's a suitable html parser for Android?</p>
android
[4]
447,818
447,819
PHP $_SERVER['REQUEST_URI'] returning a 404'd file
<p>I'm having a strange issue here. </p> <p>I'm setting a session variable to the value of <code>$_SERVER['REQUEST_URI']</code> on every page of my site except the login page. This way I can redirect the user back to whatever page they were on before logging in. </p> <p>It works fine in every case, except recently I ...
php
[2]
1,982,868
1,982,869
Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files (x86)\EasyPHP-5.3.9\www\Inventory\addavaya.php on line 20
<p>I'm new to PHP and get the message Parse error: syntax error, unexpected T_VARIABLE in .. on line 20. I would be ever so grateful if someone could help me with this error as it's really started to stress me out. Been on dreamweaver and it says error where it says $Username=... But I just can't seem to fix it <...
php
[2]
2,780,177
2,780,178
Android Help! I want to completely finish my activity, and after activity.finish no further code will execute?
<p>Android Help! I want to completely finish my activity, and after activity.finish no further code will execute?</p> <p>exp:</p> <pre><code>Intent scoringOpponentTeam = new Intent(this,TestActivitySecond.class); startActivity(scoringOpponentTeam); this.finish(); Log.i("after Finish Called", "after Finish Cal...
android
[4]
3,015,464
3,015,465
problem to store data into sdcard
<p>i have problem to store image into sd car, there are not display file in sdcard which i want. this is code.</p> <pre><code>package com.sdcard; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; import android.app.Activity; import android.os.Bundle; impor...
android
[4]
2,667,112
2,667,113
Why does my JavaScript not execute in order?
<p>I don't understand why my code isn't running in order... The code below doesn't execute the document.write part, but it executes the part after it just fine. I think it has something to do with the timing, giving the browser to execute the . I tried using setTimeout in some parts, but it's either not working, or I'm...
javascript
[3]
5,744,593
5,744,594
Correct approach to update UI in Android
<p>I'm new to Android stuff. Currently I have someone else code in my hand and I'm trying to understand the functionality. Whoever wrote the code, used Handler and messages in it. For example, if a button is clicked, onClick listener is called which then posts a message to handler. Inside the handler there is a switch ...
android
[4]
1,327,179
1,327,180
flash effect with jquery
<p>i want to fadein and fadeout <strong>backgroud-color</strong> using jquery but, i tried bellow code, it's affect the full div content , i need to add flash effect only for backgroud-color.</p> <pre><code> $('.countbox').css("background-color","#FF0000").fadeIn("fast").delay(800) .fadeout("fast"); &lt;div class=...
jquery
[5]
5,500,194
5,500,195
LinearLayout and GestureDetector
<p>I'm trying to figure out, if it's possible to use GestureDetector for LinearLayout or just ScrollEvent?</p> <p>Any Examples?</p> <p>Thank you,</p> <p>Mur</p>
android
[4]
3,286,523
3,286,524
Loop and comparing each element of array?
<p>I am trying to compare each element from two array <code>$min</code> and <code>$max</code></p> <pre><code>$test = false; $min = array(2,3,3,55,556); $max = array(22,32,4,56,557); foreach($min as $key=&gt;$val){ foreach($max as $k=&gt;$v){ if($val &gt;= $v){ $test=true; break; } } }...
php
[2]
1,596,034
1,596,035
Java direct download link
<p>is there a direct download link to the JDKs and JREs? Maybe even a stable link to the latest JDK? I need to download Java at the command line and don't want to click through the Oracle homepage.</p>
java
[1]
2,858,396
2,858,397
Returning an array from a method with user input in java
<p>I'm getting an illegal start of expression error next to <code>public static double getAverage (double average) {</code></p> <p>I'm also getting an error stating "Variable average is not used" next to <code>double average = sum /(double) arr.length;</code></p> <p>I've been working it for a while, I'm not sure what...
java
[1]
3,074,007
3,074,008
Start android app without launching main gui?
<p>I just want an app that runs some code to shortcut to a certain part of ics. How can I run this code at run time without having to launch the main.xml? I see the manifest launches the main.xml but that is about all I know. </p>
android
[4]
4,559,744
4,559,745
run php script after every 100ms
<p>Is it possible to run a php script after every 100ms ? This script will check a database for changes and then the changes will be reflected into some other database. I am already doing it using Triggers. But I want to know if there is any other way to do it without using Cron and Triggers. I will be using Linux for ...
php
[2]
3,699,498
3,699,499
Is there any difference between if(a==5) or if(5==a) in C#?
<p>Just I would like to know, is there any difference between </p> <blockquote> <p>if (a==5) or if (5==a) </p> </blockquote> <p>in C#, Which one is better? </p>
c#
[0]
1,947,969
1,947,970
How to count with jquery number of elements on remote page?
<p>I would like to count number of elements on remote page: For example remote page:</p> <p>test.html with following structure</p> <pre><code>&lt;div id="Layout"&gt; &lt;div class="product"&gt;...&lt;/div&gt; &lt;div class="product"&gt;...&lt;/div&gt; &lt;div class="product"&gt;...&lt;/div&gt; &lt;/div&gt; <...
jquery
[5]
5,018,964
5,018,965
Should I use a static class for global variables or just use static properties?
<p>I'm building a class to hold some global variables.</p> <p>I'm just curios what would make the diference in using a static or a non-static class for this purpose.</p> <p>Example </p> <pre><code> public class Modules { public static int Modul1{ get { return 1; } } } </code></pre> <p>or </p> <p...
c#
[0]
5,030,915
5,030,916
Code Review Services
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://programmers.stackexchange.com/questions/104975/website-for-code-review">Website for code review</a> </p> </blockquote> <p>As a sole developer on a Sharp Architecture project, I'd like to find a way to get some code review. How do people d...
c#
[0]
2,357,254
2,357,255
How to get parent object from child object dynamically
<p>Is it possible to get the parent object from a child object dynamically? Essentially, all I'm trying to accomplish is to dynamically retrieve the value of a property belonging to a child objects' parent. For example, something along the lines of the following:</p> <pre><code>public T GetParentProperty&lt;T&gt;(obj...
c#
[0]
2,130,982
2,130,983
PHP - Date returning the wrong value
<p>I have a little bit of code, and it doesnt seem to be working correctly.</p> <p>Im trying to put it into the correct format for my database, what im doing is as follows</p> <pre><code>date('Y-m-d H:i:s', strtotime('24/05/2011')); </code></pre> <p>But everytime i echo it, it returns:</p> <pre><code>1970-01-01 10:...
php
[2]
107,393
107,394
Android SDK Setup Problems
<p>Im new to android and am just trying to install the SDK. I have everything else done. When i run the SDK Setup.exe (ive added the ./tools to the path already.) It gives me the famous cannot fetch URL error.</p> <p>Failed to fetch URL <a href="https://dl-ssl.google.com/android/repository/repository.xml" rel="nofollo...
android
[4]
1,845,221
1,845,222
How to copy file from app package path to sdcard?
<p>i want copy pdf file from application path(/data/data/package name) to sdcard.for that i have prepared following ,</p> <pre><code>try { source = new FileInputStream(sourceFile).getChannel(); destination = new FileOutputStream(destFile).getChannel(); destination.transferFrom(source, 0, sour...
android
[4]
445,275
445,276
barebone asp.net
<p>Is it possible to do Web form without using server control or set runat attribute on html control? How do you call the code behind function?</p>
asp.net
[9]
2,537,403
2,537,404
function in python
<p>In a function, I need to perform some logic that requires me to call a funtion inside a function. what i did with this , like :</p> <pre><code>def dfs(problem): stack.push(bache) search(root) while stack.isEmpty() != 0: def search(vertex): closed.add(vertex) for index in sars: ...
python
[7]
3,918,316
3,918,317
Java "\u0001something" doesn't return expected results
<p>I'm trying to put together a string that starts with the ascii "Start of Header" character (0x01). I did this on my home computer simple enough with:</p> <pre><code>String out = "\u0001this"; System.out.println(out); </code></pre> <p>prints a square to the terminal.. Copy and paste to hex editor and I have my 0x01...
java
[1]
641,842
641,843
Deleting an array of classes
<p>Would the following properly destroy everything (all appropriate destructors called and all memory freed)?</p> <pre><code>Class* var[50]; var[0] = new SubClass(); delete[] *var; </code></pre> <p>Similar to</p> <pre><code>Class** var = new Class*[50]; var[0] = new SubClass(); delete[] var; </code></pre> <p>Or s...
c++
[6]
1,824,465
1,824,466
ContentURI cannot be resolved to a type
<p>I am trying to follow an eclipse and android tutorial from ibm. The source code from the tutorial is giving me an error that says ContentURI cannot be resolved to a type..</p> <p>here is the source code line...</p> <p>ContentURI theContact = new ContentURI(android.provider.Contacts.ContactMethods.CONTENT_URI.toUR...
android
[4]
1,455,006
1,455,007
How to lock and unlock a folder in android
<p>I am just starting with Android. And my boss told me to find some good way to lock/unlock a folder with password in Android. Does anybody know how to implement this. Any help will be greatly appreciated.</p> <p>Thank you</p>
android
[4]
5,393,366
5,393,367
convert string to preexisting variable names
<p>How do i convert a string to the variable name in python?</p> <p>e.g. </p> <p>if the program contains a object named, self.post,that contains a variable named, i want to do something like,</p> <pre><code>somefunction("self.post.id") = |Value of self.post.id| </code></pre>
python
[7]
552,765
552,766
How to calculate the total value of input boxes using jquery
<p>I have a list of input boxes, now I need to calculate the total of all values entered in input boxes with the following naming convention pre[0],pre[1],pre[2] etc.</p> <p>Is this possible with Jquery and how?</p>
jquery
[5]
4,693,867
4,693,868
Array inside a Struct in C++
<p>I've been trying to figure out how to add an array into a struct... a struct of ints for example would look like this:</p> <pre><code>struct test{ int a; int b; int c; } test = {0,1,2}; </code></pre> <p>but if I want to have an array for example:</p> <pre><code>struct test{ int a; int b; i...
c++
[6]
1,508,242
1,508,243
jvisualvm Does not list Jboss 5.1.0GA when running as service
<p>jvisualvm does not monitor the jboss when I run it as service? what changes i need to make so that jvisualvm start monitoring the java application (specifically jboss) when running as window service. Moreover, When I run the jboss through command prompt (run.bat) jvisualvm start monitoring it. Please suggest..</p>
java
[1]
5,160,477
5,160,478
MediaPlayer Android Increment on button click
<p>I have created a button and need to increment mp3 tunes on click. </p> <p>So far I have the mp3 playing like: </p> <pre><code> final MediaPlayer sentence = MediaPlayer.create(Options.this, R.raw.indra); </code></pre> <p>and then calling sentence.start(); in onclick. </p> <p>Is it possible to increment more tunes...
android
[4]
5,682,107
5,682,108
Android Application Dashboard with pin/password to exit
<p>Here I'm trying to implement an Android Application Dashboard where user press the exit button to be asked for a pin or a password to exit the application, or go to the home page. </p>
android
[4]
4,602,823
4,602,824
android app keywords
<p>I've already added my app to google play, I used the android develop console and everything is right.</p> <p>But right now you only can access to my app using the name, but I would like to add some keywords, and my app apears easily.</p> <p>how can I do that?</p> <p>Thank you in advance</p>
android
[4]
1,778,477
1,778,478
is there any DC-Hull code in java
<p>Hi I know its algorithm ,is there any code in java for it?there is a code for quick hull in java but there is not any code for this one ,is there? thanks</p>
java
[1]
3,400,871
3,400,872
Get time difference between two specific time zones in iPhone?
<p>e.g. I want the time difference between <strong>asia/kolkata</strong> time and <strong>asia/dubai</strong>.</p>
iphone
[8]
1,933,992
1,933,993
displays float into Text View
<p>I want to display a float into Text View</p>
android
[4]
3,767,770
3,767,771
Want to implement boost like signal template which takes function type as a parameter
<p>Sorry if the question is very basis. I am unable to find somehow to see one simple example code for template implementation as <strong>Boost.signals</strong> like:</p> <pre><code> boost::signal&lt;void ()&gt; sig; </code></pre> <p>What i know is the below:</p> <pre><code> template &lt;class T&gt; TemplateClass ...
c++
[6]
4,770,705
4,770,706
by using UIImagePickerController, i can crop the picture and also save it in iphone directory?
<p>Can any body tell me about how UIIMAGEPICKER can crop picture, and save this crop picture in iphone directory in order to save path of the image in databse and re-use it?</p>
iphone
[8]
5,056,972
5,056,973
How to get IPV6 address from hostname
<p>Can anyone please suggest me how to get IPV6 address fro hostname which contains both IPV4 and IPV6 addresses.</p> <p>I tried to get it using <code>java.net.InetAddress.getHostAddress</code>, but it is only giving me the ipv4.</p>
java
[1]
726,610
726,611
sync android with google biz apps calender
<p>A buddy of mine got a new android phone (i use iphone so im a little new to it) but he can sync his gmail calender but not his google biz apps calender that we use for works.</p> <p>is there any trick to getting it to sync with his phone so he can make edits and have them reflected in his "work" calender</p>
android
[4]
4,499,642
4,499,643
Need help for jQuery
<pre><code>&lt;body&gt; &lt;button&gt; Change &lt;/button&gt; &lt;div id="mydiv" style="margin:25% 0% 0% 37%"&gt; &lt;a href="#" onclick="alert('buhaha');" style="width:50px; height:50px; background-color:#99CC99; padding:10px; margin:5px"&gt;One&lt;/a&gt; &lt;a href="#" onclick="alert('buhaha'...
jquery
[5]
5,388,011
5,388,012
How do you find out how much data has been transferred over Wifi, 3G or EDGE on Android?
<p>I'm trying to write an Android widget that shows how much data has been transferred over 3G/WIFI/EDGE but I can't seem to find the API call, even though other widgets do this. Does anyone know what the API calls are to get the data usage?</p>
android
[4]
5,541,949
5,541,950
How to validate whether the given email address belongs to a corporate company?
<p>How can I validate the email address entered belongs to a corporate company when the user enters his/her mail address.</p> <p>The requirement is not to accept the public emails like gmail or yahoo etc, and to only accept the email id of a CORPORATE(xyx@companyname.com) </p>
java
[1]
2,643,502
2,643,503
RESTful Client API in C++
<p>Is there any open source library available that implements RESTful Client(library for interpreting HTTP requests as REST service calls) in C++ ?</p> <p>My requirement is to connect to Amazon Web Services and get the list of EC2 instances(and their details) available for given user account in C++. </p> <p>I know Am...
c++
[6]
3,748,176
3,748,177
How can I get pixel for rescale bitmap?
<p>I want to rescale bitmap size that suitable to size of ImageView which is place to hold this bitmap but I don't know what pixel that I should fill in method Bitmap.createScaledBitmap.</p> <p>For example my ImageView is set width is fill parent and height is 250dp.</p> <p>How can I calculate pixels from this size ?...
android
[4]
1,559,121
1,559,122
Design a Javascript object to output to console.log as a string as per new Date()
<p>How is it that <code>console.log(new Date());</code> shows a string at the console?</p> <p>How do I imitate that behaviour in my objects?</p>
javascript
[3]
1,642,167
1,642,168
How do I display consecutive AlertDialogs in Android?
<p>I'm trying to port one of my iPhone apps over to the Android. It was all going along swimmingly until I came to AlertDialogs. In the iPhone app, sometimes there will be more than one alert to pass to the user. When this happens, the first alert dialog will come up, and when they click it away the next one will come ...
android
[4]
3,663,696
3,663,697
How can you remove the last character from a wchar_t*?
<p>How can I delete the last character of a wchar_t* and resize accordingly? For example, having the string "test" and bringing it down to "tes"</p>
c++
[6]
834,215
834,216
how to change values between loop
<p>I extracted the values of the array on the foreach loop, but I want when it retrieves a certain <code>'br_title'</code> changed href link to <code>&lt;a href="http://noorresults.moe.sa</code>..how to do that with simple code?..</p> <pre><code> &lt;ul class="riMenu"&gt; &lt;?php foreach ($last_b...
php
[2]
167,081
167,082
How to ensure video is played from website, not a cached version
<p>I have used the below code(read a video from a website and play it on a panel) its working, but this video is stored on my computer.</p> <pre><code>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System...
c#
[0]
5,219,703
5,219,704
In jquery animate, how do I use a custom object instead of a div?
<p>My situation started like this: I wanted to animate the background image of a div, but it seems, with jquery I can't retrieve the individual positions of the background images(background-position). So I thought why not create a object and animate it's values then just put this values in the css, but i can't figure o...
jquery
[5]
1,285,679
1,285,680
fstream doesn't read the input
<p>Somehow fstream doesn't read my input from a file.</p> <pre><code>int main() { ifstream fin("duomenys.txt"); ofstream fout("rezultatas.txt"); int n = 0; fin &gt;&gt; n; cout &lt;&lt; n &lt;&lt; endl; fout.close(); fin.close(); return 0; } </code></pre> <p>duomenys.txt</p> <block...
c++
[6]
266,375
266,376
Delete a dropped item by delete key press
<p>I have created a page droppable and am trying to delete the dragged elements. But I have a problem that I don't know how delete the selected elements from the keyboard delete key. here is my code:</p> <pre><code>$canvasElement.click(function() { jQuery('.canvas-element').removeClass('selectedItem'); jQuery(...
jquery
[5]
843,800
843,801
Subtotaling in jquery function (.click issues?)
<p>This function only subtotals my last value clicked when I use the .hasVal class with a radio button. Any ideas? </p> <p>Update: Here's the jsfiddle link: <a href="http://jsfiddle.net/SUKsM/4/" rel="nofollow">http://jsfiddle.net/SUKsM/4/</a></p> <p>Essentially my HTML form has a fieldset with values:</p> <pre><cod...
jquery
[5]
5,198,628
5,198,629
Using Datapager in case of paged results
<p>Before I explain the problem, let me set the context. I have a stored procedure which returns me paged results. So if I mentioned the page number as 1, I get the first 10 records and if the page number is 2 I get the next 10 set of records and so on.</p> <p>Now in my Asp.Net page I need to show 10 items at a time a...
asp.net
[9]
2,096,963
2,096,964
Redirect page when Javascript is disabled
<p>I need to redirect to another page when the client script is disabled on the browser. Can anyone please help?</p> <p>Thanks</p>
asp.net
[9]
5,277,830
5,277,831
how to auto enable bluetooth base on the android simple code?
<p>This is the code that I'm trying to use. Could you please tell me what the problem is with it??</p> <p>My code:</p> <pre><code> public void onStart() { super.onStart(); if(D) Log.e(TAG, "++ ON START ++"); BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); if (!m...
android
[4]
616,316
616,317
How do I delete an item from my custom base adapter?
<p>I am extending BaseAdapter to make a custom listview row. I have context menu that opens everytime a user holds on the row and prompts if he wants to delete it. However how do I remove the row? The hashmap is only test data.</p> <pre><code>private MyListAdapter myListAdapter; private ArrayList&lt;HashMap&lt;Strin...
android
[4]
5,460,345
5,460,346
Why does this not work? javascript
<p>I have this in Javascript:</p> <pre><code>var inx=[2,3,4,5]; var valarray=[]; for (i=0; i&lt;inx.length; i++) { valarray[i]==inx[i]; } for (i=0; i&lt;inx.length; i++) { var posi=inx.indexOf(3); var valy=valarray[posi-1]+1; valarray[i]=valy; } alert(valarray); </code></pre> <p>valarray keeps returni...
javascript
[3]