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,632,468
2,632,469
How to make event for specific date?
<p>Where event detail should store?How to make alarm for specific event that i don't know.Please help with code or give link for that type of example. Thank in Advance.</p>
iphone
[8]
2,940,869
2,940,870
Search a word which exactly match using python
<p>I have Paragraph contains "I have a good python book so will become pythonist" my aim is to search only "python" not pythonist how can I do it using python and not take any extra characters before and after</p>
python
[7]
268,480
268,481
How to set Multiple SelectedItem on Listbox?
<p>The sample code like this:</p> <pre><code>&lt;asp:Listbox ID="ddlCat" runat="server" SelectionMode="Multiple" /&gt; ddlCat.Items.Insert(0, new ListItem("Item1", "1")); ddlCat.Items.Insert(1, new ListItem("Item2", "2")); ddlCat.Items.Insert(2, new ListItem("Item3", "3")); ddlCat.Items.Insert(3, new ListItem("Ite...
c#
[0]
5,344,017
5,344,018
problem to draw and fill rect after cgcontextclip
<p>I want to clip a rectangle from cgpath with the following code. I don't get any output. What's wrong?</p> <pre><code> CGContextRef context = UIGraphicsGetCurrentContext(); CGMutablePathRef thePath = CGPathCreateMutable(); CGPathMoveToPoint(thePath,NULL,(self.x1),(self.y1)); CGPathAddLineToPoint(thePa...
iphone
[8]
705,111
705,112
want to show icon for settings on UIToolbar
<p>Want to show icon for settings UIBarButtonItem on UIToolbar than text button </p> <pre><code>UIBarButtonItem *settingsButton = [[UIBarButtonItem alloc] initWithTitle:@"Settings" style:UIBarButtonItemStyleBordered target:self action:@selector(se...
iphone
[8]
1,605,191
1,605,192
SystemTray Icon Coordinate - C#
<p>How can I get those coordinates of Application Icon which is find in the Window taskbar's status area (a.k.a. System Tray) in C#?</p>
c#
[0]
3,661,575
3,661,576
help with show/hide jquery script
<p>I need a js script show / hide with only shown one div at time others closed. By default any (only one) must be shown.</p> <p>I have got this script: <a href="http://jsfiddle.net/kolxoznik1/BFV9k/" rel="nofollow">http://jsfiddle.net/kolxoznik1/BFV9k/</a>.</p> <p>I want to add some class like <code>show</code>: </p...
jquery
[5]
1,061,830
1,061,831
Question about the NSArray
<pre><code>groupContentList = [[NSArray alloc] initWithObjects: [Product productWithType:@"Device" name:@"iPhone"], [Product productWithType:@"Device" name:@"iPod"], [Product productWithType:@"Device" name:@"iPod touch"], [Product productWithType:@"Desktop" name:@"iMac"], [Produc...
iphone
[8]
3,018,830
3,018,831
xml parsing in android
<p>when i run my program in out put value shown is null.</p>
android
[4]
1,334,257
1,334,258
how to set view in dialog interface? It is overriding onClick(DialogInterface dialog,int which) method but not with onClick(View v)
<pre><code>@Override public void onCreate(Bundle savedInstanceState) { Button saveButton = (Button) findViewById(R.id.saveButton); saveButton.setOnClickListener(saveButtonListener); } public OnClickListener saveButtonListener = new OnClickListener() { @Override public void onClick(DialogInterface dialog, int ...
android
[4]
432,065
432,066
Checking for empty number as input
<p>Consider this code:</p> <pre><code>&gt;&gt;&gt; num = int(raw_input('Enter the number &gt; ')) </code></pre> <p>If the user types nothing and presses 'Enter', I want to capture that. (Capture an empty input)</p> <p>There are two ways of doing it:</p> <ul> <li>I do a simple <code>num = raw_input()</code>, then ch...
python
[7]
1,478,015
1,478,016
Remote Mysql Server connection by PHP
<p>While i execute following code:</p> <pre><code>$db_host = "&lt;IP&gt;"; // Host name $db_user = "&lt;usr&gt;"; // User name of your database $db_password = "&lt;pass&gt;"; // Password of your database $db_name="&lt;db name&gt;"; // Database name $con = mysql_connect($db_host,$db_user,$db_password); mysql_s...
php
[2]
4,117,821
4,117,822
backlight manipulation in Android
<p>Could someone show me in a snipet of code how to set the backlight always on in android ?</p>
android
[4]
4,586,088
4,586,089
Interface does not have constructor, then how can it be inherited?
<p>&amp; i have this doubt</p> <p>As i know the subclass constructor calls the super class constructor by using super();. But since interface doesn't have any constructor how can inheritance take place??</p> <p>Please let me know the answer</p> <p>Thank you </p>
java
[1]
5,517,744
5,517,745
SoapHttpClientProtocol Versus HttpWebRequest
<p>I'm doing some performance testing and ran across something puzzling to myself and I was hoping someone could shed some light.</p> <p>I'm comparing the performance between an HttpWebRequest and a SoapHttpClientProtocol. In my tests I see the SoapHttpClientProtocol class performing twice as fast. However, I expected...
asp.net
[9]
5,835,682
5,835,683
Conditional Rule Validation in JQuery
<p>I am using <a href="http://docs.jquery.com/Plugins/Validation#API%5FDocumentation" rel="nofollow">JQuery Validation</a>. Now I want my rules to be invoked only when certain condition is satisfied, namely, I want <code>$("#AppSelectField").is(':hidden')</code> to return <code>false</code>, only then I invoke the rule...
jquery
[5]
4,906,231
4,906,232
Sound Loudly when Push notification arrives
<p>What i am wondering is to ring the Phone Loudly even if Its on Silent mode when any push notification arrives. The Phone may have opened that Application / in Background / not Opened but it should Ring loudly when a Push notification for this application arrives.</p>
iphone
[8]
4,512,544
4,512,545
Android : To Find Meaning for the word
<p>i want to find meaning for the English word. For that what can I do in android? any predefined db is using inside android for finding the meaning for the word</p>
android
[4]
2,407,257
2,407,258
Global variable is NULL in class method
<p>My first line in my script I have:</p> <pre><code>$db = new db_class(); </code></pre> <p>This is just an example to start the db object. Then I have:</p> <pre><code>class main { function init() { $this-&gt;session_start(); } protected function session_start() { $sh = new session_hand...
php
[2]
3,883,640
3,883,641
Why do PHP's built in functions use constants instead of just strings as parameters?
<p>I noticed that PHP's internal functions never use strings for pre-defined or limited values, only constants.</p> <p><a href="http://hu2.php.net/manual/en/function.str-pad.php">For example</a>:</p> <blockquote> <p><strong>pad_type</strong>:</p> <p>Optional argument pad_type can be STR_PAD_RIGHT, STR_PAD_LEFT...
php
[2]
3,576,328
3,576,329
built-in icons for most popular types of files
<p>Whether there is in Android system a database of icons for the most popular types of files? Something like imageres.dll in Windows. Or any application should have its own icons for every file type?</p>
android
[4]
3,817,563
3,817,564
PHP site keeps opening to blank page, no errors
<p>First, the premises: PHP loaded on IIS6 on Win2003 STD R2 SP2, PHP_5213 using FastCGI, MySQL_5145.</p> <p>Customer sent me the site files, which I unzipped to <code>C:\InetPub\wwwroot\&lt;site root&gt;</code>, then I created a new site in IIS, pointed to <code>&lt;site root&gt;</code>, added <code>test.php</code> t...
php
[2]
1,754,663
1,754,664
How to overwrite a convenience constructor the proper way?
<p>For example I want to overwrite from UIButton:</p> <pre><code>+ (id)buttonWithType:(UIButtonType)buttonType </code></pre> <p>So I would do:</p> <pre><code>+ (id)buttonWithType:(UIButtonType)buttonType { UIButton *button = [UIButton buttonWithType:buttonType]; if (button != nil) { // do own config stuf...
iphone
[8]
1,224,903
1,224,904
Split and parse window.location.hash
<p>I'm facing issues with splitting and parsing window.location.hash correctly.</p> <p>First of all, we get few parameters in hash, ex:</p> <pre><code>#loc=austria&amp;mr=1&amp;min=10&amp;max=89 </code></pre> <p>As you surely see it's been created for search. When user clicks on pagination link page is being reloade...
javascript
[3]
5,489,341
5,489,342
Switch Error Codes
<p>How do I create an error handler in Android. In .Net I would simply create a handler the switch the error codes to relay the correct response required to the user.</p> <p>In this case I am using a SAX parser surrounded by try and catch, when an error is raised I obviously get a message but no unique error ID. there...
android
[4]
1,855,024
1,855,025
Field testing iPhone for Cell ID and RSSI
<p>I need to write a testing application to retrieve info about <code>cell id</code> and <code>rssi</code> on iphone4 IOS 4.2.1, like FieldTest application (Calling <em>3001#12345#</em> view UMTS Cell Enviroment/GSM Cell Enviroment).</p> <p>I have tried to import CoreTelephony framework and using private API (<code>CT...
iphone
[8]
5,502,388
5,502,389
why delay() function not delaying the .load() function?
<p>$("#hastable").delay(2000).load("tbl_clients.php?page="); It is not working for me.</p> <p>But otherwise all effect delay successfully for this .delay() function like .hide(),.show()</p>
jquery
[5]
2,987,365
2,987,366
escape HTML chracters
<p>I need to HTML encode chracters like my input is <code>&lt;test&gt;</code> my expected output is <code>&amp;lt;test&amp;gt;</code>.</p> <p>How can I do this?</p>
javascript
[3]
4,132,923
4,132,924
android GPS enable progrmmatically
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4721449/enable-gps-programatically-like-tasker">Enable GPS programatically like Tasker</a> </p> </blockquote> <p>I want to get latitude and longitude programmatic in android app. But it depended upon whether the...
android
[4]
1,695,833
1,695,834
not able to make TextView as focusable
<p>hi im using 3 text views ..i have made them as clickable and i have written action part for those ..but theyr not focussing ...even i have set android:focusable to true ..please help </p>
android
[4]
3,520,540
3,520,541
Dynamic VariableFromString in objective C
<p>I want to dynamically create variable from string in objective C.</p> <p>Like <code>NSClassFromString</code> thats way. In that I want to access variable.</p> <p>Any idea about this?</p>
iphone
[8]
5,253,934
5,253,935
Create classes and compile it from c#
<p>I am creating a custom code generator using c#... this generator now only creates the bussiness entity from tables of a database. But Now what I want is to create a project that contains this classes and after its creation.... Generate the dll from the project.</p> <p>Is there a way to do this job?</p>
c#
[0]
246,434
246,435
C# find first match of string in string array
<p>I have to search for the first match of any string in an string array in a textbox starting from a certain position. Like if I have this string array: </p> <pre><code>string[] s = { "RTS", "RTL" }; </code></pre> <p>And this code:</p> <pre><code>LDA #$43 STA $1000,x CMP $00 BEQ .main .return RTS .main add $01 RTL...
c#
[0]
859,178
859,179
ABPersonVIewController at DidSelectRowAtIndex - method
<p>i am trying to open ABPersonViewController at 'didSelectRowAtIndexPath:' method. But when i click on one of my record in table view it donot show anything.I am not able to configure out where is the problem. Where 'people' is array having contact name. here is my code:</p> <pre> (void)tableView:(UITableView *)tab...
iphone
[8]
702,132
702,133
Assigning variable OnClick random action
<pre><code>var Rand1 = Math.floor(Math.random()*3); var Rand2 = Rand1; while ( Rand2 == Rand1 ){ var Rand2 = Math.floor(Math.random()*3); } var step1 = Rand1; var step2 = Rand2; function moveto(step1, step2) { var w = $(document).width(); $('#full').animate({ left: -(step1*w) }, { duratio...
javascript
[3]
5,135,497
5,135,498
Secure function for validate forms with PHP
<p>I want to know is there a way to check inputs securely with php?</p>
php
[2]
829,381
829,382
jQuery - fire click event on live loaded elements
<p>I've an ajax modal with profile data, splitted by special categories, which are folded.</p> <p>In my global.js, i'm loading the following code:</p> <pre><code>$(document).on('click', '.msg-head', function() { if($(this).hasClass('msg-close')) { $(this).next('.msg-body').show(50); $(this).removeClass('msg-c...
jquery
[5]
2,920,752
2,920,753
Creation of viewmodel for treeview in WPF with grouping of objects
<p>I am creating an application for chatting in WPF(C#.net). I have created a class User with following attributes: 1.Company_name 2.Branch 3.Designation 4.User_name I am getting the list of objects of class user. I want to display the users in treeview as:</p> <p>Company name1 -Branch1 -:Designa...
c#
[0]
3,606,877
3,606,878
extend onclick function
<p>I have a onclick function like this</p> <pre><code>onclick = function(){alert('hello')} </code></pre> <p>I want to add an additional function to it base on the server response so that I can display more, like not only display hello but also 'you are welcome', how to writ this without jquery?</p> <pre><code>onclic...
javascript
[3]
772,268
772,269
AudioManager and system volume change receiver
<p>I've followed instructions on <a href="http://android-developers.blogspot.com/2010/06/allowing-applications-to-play-nicer.html" rel="nofollow">this page</a> until "Preparing your code for Android 2.2 without restricting it to Android 2.2". Even if I'm building against 2.3 version, I guess it should be working at thi...
android
[4]
971,550
971,551
Casting an object's class
<p>My previous OOP experience has been with Objective-C (which is dynamically typed), however, I am now learning Java. I want to iterate over an ArrayList of objects and perform a certain method on them. Every object in the ArrayList is of the same class. In Objective-C, I would just check in each iteration that the ob...
java
[1]
3,443,177
3,443,178
Blank page when run php file
<p>When I run the bellow php code &amp; fill all data and submit it I get blank page, so where the problem here ?</p> <pre><code>&lt;br&gt;&lt;br&gt; Create New User : &lt;br&gt;&lt;br&gt; &lt;table width="90%" border=0&gt;&lt;tr&gt;&lt;td&gt; &lt;FORM ACTION="user_login.php" METHOD=POST&gt; &lt;INPUT TYPE=HIDDEN ...
php
[2]
3,076,623
3,076,624
To get URL From Safari Browser
<blockquote> <p><strong>Exact Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3482750/how-to-get-url-from-safari-browser">How to get URL from Safari browser </a> </p> </blockquote> <p>I m creating a program which can access the current url being used. How can i do such in Safari Browser?</p>
c#
[0]
4,893,493
4,893,494
file_get_contents memory issue
<p>I'm using file_get_contents just to call a php file (which returns some data); like that:</p> <p><code>file_get_contents('http://example.com/foo.php');</code> and NOT e.g. <code>$holding_var = file_get_contents('http://example.com/foo.php');</code></p> <p>Will it use the assigned memory of 20kB (let's say the mean...
php
[2]
2,939,268
2,939,269
php file_exists does not work for array
<p>I posted this question earlier but I have now used the feedback and simplified the php program to show how it still fails. using the file_exists with an array always fails: Here is a simple program I wrote that shows the failure:</p> <pre><code>[root@dsmpp1 steve]# ls -l data total 4 -rw-r--r-- 1 root root 0 Sep 1...
php
[2]
4,321,127
4,321,128
str.format() problem
<p>So I made this class that outputs '{0}' when x=0 or '{1}' for every other value of x.</p> <pre><code>class offset(str): def __init__(self,x): self.x=x def__repr__(self): return repr(str({int(bool(self.x))})) def end(self,end_of_loop): #ignore this def it works fine if s...
python
[7]
1,010,798
1,010,799
Get property into abstract class
<p>Here's what I have right now: </p> <pre><code>public abstract class SampleClass { public abstract void ShowAll(); public abstract void ExecuteById(int id); public string sampleString{get;} } public sealed class FirstClass : SampleClass { public override string sampleString { get { retu...
c#
[0]
3,735,922
3,735,923
java how to count the sum of all digits in double variable
<p>I've this code and I managed to count <code>77!</code> number. However I'm a bit confused how to count the sum of all digits in double variable ?</p> <p>77!= 1.4518309202828584E113. And I can't use integer data types here. What should I do?</p> <pre><code>package org.kodejava.example.io; import java.io.FileOutput...
java
[1]
328,782
328,783
document.ready is to slow, it takes like 2min to load
<p>I have some problem using document.ready, it slows down the loading time with sometimes up to two minutes.</p> <p>I saw this link : <a href="http://encosia.com/dont-let-jquerys-document-ready-slow-you-down/" rel="nofollow">http://encosia.com/dont-let-jquerys-document-ready-slow-you-down/</a></p> <p>So my question ...
jquery
[5]
2,585,816
2,585,817
"Missing method body" error
<pre><code>import java.util.Scanner; public class Rpn_calculator { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); double ans = 0; double n = 0; double r = 0; String j; System.out.println(); System.out.println(); ...
java
[1]
2,982,733
2,982,734
success or fail popup
<p>i have a php class to show a suceess message or fail message after an action (posting a form/updating a page) currently refreshes the page and psts either 1 or 0 and then the following code - - how can i get this to just pop up and auto close...just like a green tick or cross.....assume need to use jquery - - totall...
jquery
[5]
4,850,586
4,850,587
string replace javascript/jquery
<pre><code>[{"field":"Comment","message":"Message cannot be empty"}] </code></pre> <p>In the above string i want to replace the word <strong>comment</strong>. I dont wish to use any other external libraries expect jquery</p>
javascript
[3]
3,035,853
3,035,854
Android Fragment stack empty after rotate
<p>I'm using a <code>FragmentActivity</code> to display a stack of <code>Fragments</code> in a single activity app. This is working fine and I can move through the fragments and hit back to go back up the stack until I rotate the device when I end up with the <code>Fragment</code> on the top of the stack rotated but hi...
android
[4]
386,384
386,385
improving a routing class*
<p>I use the class below to route all requests for php on my web application. Can I improve upon this?</p> <pre><code>/*route*/ class route { function __construct($a) { if(isset($_FILES['ufile']['tmp_name'])) // handles file uploads { new upload(); } elseif(isset($_POST['a'])) // ...
php
[2]
4,718,298
4,718,299
how to enable vertical scroling of web view layout with in scrollview tag
<p>I have problem in scrolling of webview vertically when it's scrolled along vertically,where this webview is with in scrollview tag,how can i enable the scrolling for webview and to disable the scrolling of whole layout when its on webview contained layout.</p>
android
[4]
4,242,550
4,242,551
Preventing cell reordering for particular cells in iPhone SDK
<p>I have 2 sections in my UITableView. I want the 2nd section to be movable but the 1st section of cells not. Specifying canEditRowAtIndexPath and canMoveRowAtIndexPath doesn't help - the first section cells although not showing drag controls, they still change places if a cell from the 2nd section is dragged over. Is...
iphone
[8]
4,889,798
4,889,799
PHP switch issue
<p>Is this method right?</p> <pre><code>switch ($_GET['get']){ case 'show': echo 'show'; break; case is_numeric($_GET['app']): echo $_GET['app']; break; } </code></pre>
php
[2]
4,623,932
4,623,933
Tigger alertBox from c2dm listener events
<p>I want to add progress and alert dialogs to whatever the active context may be, whenever the listener receives a message. With this code:</p> <pre><code>public class C2DMMessageReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { ...
android
[4]
3,023,468
3,023,469
Where should you store variables for a search program in java?
<p><strong>I'm wondering which is a more effective storage method in java.</strong> Would be better to save constants in a class or a resource? The constants will be searched later by my Search program which will go through the list of constants so as to recognize possible options. Also if there is a more efficient me...
java
[1]
3,653,793
3,653,794
C++ memory cache data structure
<p>I was wondering if there is an equivalent of the MemoryCache class from .net in C++? (http://msdn.microsoft.com/en-us/library/system.runtime.caching.memorycache.aspx) </p> <p>I'm loading audio files/images frequently in my program and I'd like to avoid reloading audio/video if I've recently used it by keeping it in...
c++
[6]
2,488,971
2,488,972
Object returning NaN when sum values
<p>I'll admit I'm weak in JavaScript and JSON. I've spent a lot of time attempting to figure out why numbers from my objects returns NaN when they are added together. With that in mind, below is my JSON, stored to a variable:</p> <pre><code>var data = [ { "acc_ext_id": null, "cat_code": 10002, ...
javascript
[3]
5,401,899
5,401,900
How do you apply htmlentities selectively?
<p>Whenever display text in an HTML document I always put it through htmlentities for a number of reasons. One of the reasons is that if the text contains HTML, I want the browser to display the HTML code, not render it.</p> <p>The application I am writing requires that I still encode using htmlentities but hyper lin...
php
[2]
5,137,457
5,137,458
Select next first element in jQuery
<pre><code> &lt;fieldset id="fs1"&gt; &lt;legend id="leg1"&gt;First Legend&lt;/legend&gt; &lt;div id="div1"&gt; "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore ...
jquery
[5]
235,859
235,860
php max() and min() on associative array
<pre><code>print_r($pages); print max($pages); print min($pages); </code></pre> <p>shows me</p> <pre><code>Array ( [0] =&gt; 1 [1] =&gt; 2 [2] =&gt; 3 ) 1 2 </code></pre> <p>While I was expecting the last two numbers to be 3 and 1. How come?</p> <p>EDIT: further info</p> <pre><code>$pages = $v-&gt;plaintext; va...
php
[2]
2,333,451
2,333,452
How do I edit a class within a dll with one program in order to have the information accessed in another?
<p>I am trying to create 2 programs that have common code. I need one to add or delete data to/from an array that can be read by the other. Right now I have created a dll that has the class, but my problem is that I don't know how to properly instantiate it so that both programs will be using the same data. Both proces...
c#
[0]
2,517,378
2,517,379
If condition not working in android intent activity
<p>I'm new to Android. I need to start a new intent activity based on if condition, but the if condition is not working, but the value gets printed in the log file.</p> <p>the code that I use is given below:</p> <pre><code>package com.example.helloandroid; public class Main extends Activity { /** Called when the...
android
[4]
1,931,941
1,931,942
Trouble with Java Clock
<p>I am doing a java clock for class and I am having some trouble with the tickDown() and addClock(Clock cl) parts of my program. I also need a Tester class but I would like to have this compile first. Any other help would be great.</p> <p>Here is what I have so far...</p> <pre><code>public class Clock { private sta...
java
[1]
5,198,956
5,198,957
how to add 4 buttons in UInav bar for iphone
<p>i want to add 4 buttons in UINAV bar how to do that should i make them in UINAVBAR controller or navItem or UIBarbutton???</p> <p>any code will be appreciated Thanks</p>
iphone
[8]
210,989
210,990
how to unlock android phone from service
<p>how to unlock android phone from service(android.app.Service;) when phone is in locked sate</p>
android
[4]
1,370,095
1,370,096
Trying to Print List: Getting Empty
<p>Here is my code:</p> <pre><code>&gt;&gt;&gt; f=open('list.txt') &gt;&gt;&gt; print list(f) ['bird\n', 'cat\n', 'cat\n', 'cat\n', 'tree'] &gt;&gt;&gt; mylist=list(f) &gt;&gt;&gt; print mylist [] &gt;&gt;&gt; print list(f) [] </code></pre> <p>Why is the list empty??? Earlier in the code it shows the list is the c...
python
[7]
16,912
16,913
append list within classes (python)
<p>I've run into a problem with inheritance in python that I know how to avoid, but don't completely understand. The problem occured while making a menu but I've stripped down the code to only the real problem. code:</p> <pre><code>class menu: buttonlist=[] &gt;&gt;&gt; class av(menu): def __init__(self, num)...
python
[7]
5,082,463
5,082,464
what's wrong with this jQuery method?
<p>I have this method:</p> <pre><code>function replaceRightClickIcefacesMethod() { var oldName = jQuery(".singlePaneOfGlassBlock").attr("oncontextmenu"); oldName = oldName.replace('Ice.Menu.contextMenuPopup', 'contextMenuPopupUpdated'); jQuery(".singlePaneOfGlassBlock").attr("oncontextmenu", oldName); } <...
jquery
[5]
5,765,359
5,765,360
Switching between views in android data retained if any
<p>I am new to android development (and also a java newbie) and I noticed that when I switch between views I noticed that any variables declared as static in the view class retains its value but the rest are gone. So I have the following questions if some one is kind enough to answer --</p> <ol> <li><p>When to use sta...
android
[4]
1,801,630
1,801,631
How to hide the x/x display from ProgressDialog?
<p>The <code>ProgressDialog</code> displays the percentage and to right of the TextView there is another TextView which displays texts like x/100 where x = 1,2,3...100. Does anyone know how to hide the x/100 TextView and show only the progress in percentage.</p>
android
[4]
433,922
433,923
Error while renaming file
<p>I have used a particular script for renaming the picture the if the file field is empty and username is changed. Username is what I need to save my image. Problem is arising on edit page... that if user don't want to change image and same time want to alter username, than according to me image should be renamed. But...
php
[2]
4,683,457
4,683,458
How can I open pdf from my app from remote URL in android
<p>I want to open PDF in my app from Remote URL. Please help me.</p> <pre><code> Uri path = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.wsa); final String googleDocsUrl = "http://docs.google.com/viewer?url="; Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(google...
android
[4]
4,273,171
4,273,172
JavaScript with servlet Get method
<p>I have the following form element in JSP:</p> <pre><code>&lt;form name="testForm" action="./test.do" method="post"&gt; &lt;/form&gt; </code></pre> <p>Now I want to submit a form with a servlet get method using JavaScript.</p> <p>Any help is appreciated.</p>
javascript
[3]
3,474,733
3,474,734
Link to php script
<p>I have a script which I can run from windows console writing "php backup.php". How to create a link to run it directly from desctop?</p>
php
[2]
3,232,380
3,232,381
how select contact detail with widget
<p>i need to select and give detail of contact with this but i don't know how can get detail back (how find result of intent)</p> <pre><code>public class MainActivity extends AppWidgetProvider { Context context; @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) ...
android
[4]
1,531,571
1,531,572
PHP isset function
<p>I believe I am a bit confused with the <code>isset</code> function in PHP. I'm trying to use this function to determine is a field in a form is <code>null</code>... I was under the impressions that the <code>isset</code> function checks to see if a field has a value in it... but I believe the <code>isset</code> func...
php
[2]
3,453,893
3,453,894
Delimiter causing w3c validation error
<p>I want my home clear of all W3C errors. I have one final error:</p> <p><a href="http://validator.w3.org/check?uri=http://storeboard.com" rel="nofollow">http://validator.w3.org/check?uri=http://storeboard.com</a></p> <p>Here is the code for that error:</p> <pre><code> if (ErrorFound == 0) { if (document.fr...
javascript
[3]
4,747,727
4,747,728
Auto Complete with locations like the one from Google Maps
<p>I im building a home project and i want to create a auto complete text view used to suggest addresses.To make the story short i world want it to be just like the one in google maps.I am familiar with java and webservices but i realy dont know where to start.</p> <p>Thank you.</p>
android
[4]
4,546,204
4,546,205
Overhead: method call vs. object creation
<p>As far as I understand the JVM, it should generally be cheaper to invoke a method (i.e. allocate a new stack frame, etc), than to create a new object. </p> <p>However, can we estimate just how big the difference in overhead between the two generally is, assuming that both the method and the object declare the same ...
java
[1]
1,294,496
1,294,497
Jquery checkbox issue
<p>I have a checkbox in a page and on page load it is unchecked. When the checkbox is being checked, the value TRUE is being passed correctly, though when the checkbox is remained unchecked on load of the page, the value FALSE is not being passed. I am using the following code to do this.</p> <pre><code>$(document).re...
jquery
[5]
279,429
279,430
Conditional operator
<p>What is wrong in this code<br><code>if(getResponseDataMap().containsKey("A"){ a.setText(getResponseDataMap().get("A").toString); }</code></p> <p>Converted like this .</p> <p><code>getResponseDataMap().containsKey("A")?a.setText(getResponseDataMap().get("A").toString()):""</code></p> <p>where getLocalReq...
java
[1]
939,866
939,867
Compiling in Debug Mode versus Release Mode
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/90871/debug-vs-release-in-net">Debug VS Release in .net</a> </p> </blockquote> <p>We send out releases almost weekly due to changes and bug fixes in our software.</p> <p>Granted, that is problem not he best pra...
c#
[0]
5,842,886
5,842,887
Parameter $now in php function strtotime()
<p>I'm trying to understand what $now parameter is doing in php function </p> <blockquote> <p>strtotime(string $time [, int $now = time() ])</p> </blockquote> <p>Everybody seems to simply ignore the $now parameter and the documentation for it is not very clear.</p> <p>How does that parameter really affect the retu...
php
[2]
3,936,883
3,936,884
How to install Python with Wampserver
<p>I want install Python with Wamp or Appserv on windows, how to install ? can it run together ?</p>
python
[7]
1,694,264
1,694,265
jquery list confusion
<p>I'm a new to the jQuery world and I'm having a problem that I just can't solve. I have an unordered list with multiple li's. I'm trying to make it so when the user clicks a row, the bg color on the row changes. And when another row is click, that row's bg color changes and the previous on goes back to the default...
jquery
[5]
5,272,412
5,272,413
how to get string from a line of strings?
<p>I have following string:</p> <pre><code>"hw_core_detectionhook::Iocard const*" </code></pre> <p>I have to get only first part, i.e all text present before space, i.e I need the <code>"hw_core_detectionhook::Iocard"</code> part only.</p>
c++
[6]
1,964,151
1,964,152
how to find direction of device movement?
<p>I am implementing one iphone application in which i want to find direction of device on movement.I dont know how to find.Can u help me for this query.Thnks in advance.</p>
iphone
[8]
4,077,272
4,077,273
iPhone app size limit
<p>In AppStore Review Guidelines, the following point is given</p> <p>Apps larger than 20MB in size will not download over cellular networks (this is automatically prohibited by the App Store)</p> <p>Please clarify me is it .app file size or whole application file size </p>
iphone
[8]
1,264,625
1,264,626
time.sleep and suspend (ie. standby and hibernate)
<p>For example, if I do time.sleep(100) and immediately hibernate my computer for 99 seconds, will the next statement be executed in 1 second or 100 seconds after waking up?</p> <p>If the answer is 1 second, how do you "sleep" 100 seconds, regardless of the length of hibernate/standby?</p>
python
[7]
1,723,231
1,723,232
writing into ABAQUS odb file
<p>I have generated a python script that writes data into the odb file by creating a new step. the code works well for the first time but when I try to run it again Abaqus shows a kind of error message that the step name already exists. Does anyone know how to solve this or I will change the step name everytime in the ...
python
[7]
3,461,591
3,461,592
Why it is showing different output?
<pre><code>x=4 def func(): print("HELLO WORLD") y=x+2 x=2 print (y) print (x) # OUTPUT IS 6,2,2 global x # global declaration is done here func() print (x) # outputs as 2 but why???? why not 4???? </code></pre> <p>Why it shows th...
python
[7]
5,253,056
5,253,057
Base 64 fwrite using php
<p>I want to use fwrite to post $username in base64 encoded Here is my current source </p> <pre><code>$fp = fopen("id.txt", "a"); fwrite($fp, " $username\r\n"); fclose($fp); </code></pre>
php
[2]
1,191,145
1,191,146
How do I enumerate() over a list of tuples in Python?
<p>I've got some code like this:</p> <pre><code>letters = [('a', 'A'), ('b', 'B')] i = 0 for (lowercase, uppercase) in letters: print "Letter #%d is %s/%s" % (i, lowercase, uppercase) i += 1 </code></pre> <p>I've been told that there's an enumerate() function that can take care of the "i" variable for me:</p>...
python
[7]
1,234,799
1,234,800
no Error Messages in imported python classes
<p>i have a couple of python classes, which i import and use in my main program. </p> <pre><code>## path to classes sys.path.append(basePath + "classes") ## import some classes import mainmod mainModHandler = mainmod.Mainmod() </code></pre> <p>I have no problem, working with them, but i wonder, if i have a error in...
python
[7]
4,294,498
4,294,499
Creating a Temp Dir in Java
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/617414/create-a-temporary-directory-in-java">Create a temporary directory in Java</a> </p> </blockquote> <p>I have a test for a create DB method and I need a temp directory to put it in. The directory will be re...
java
[1]
486,807
486,808
Android Browser output download time
<p>I'm looking for a way to output the total download time every time a new page is opened in the Android browser.</p> <p>I've looked around, but can't find a place to put a timestamp for downloading a web page. There's a performance monitor in onPageStarted and onPageFinished measuring the page loading time, but not...
android
[4]