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
3,639,994
3,639,995
java: save and retrieve objects as objects rather than text information?
<p>I have a program that actually stores inputted data into an array. These data will then be displayed through a text file from the array. I was asked to modify these program so that it is saving and retrieving objects as objects rather than a text information and i don't really know how to do that.. Need some advice ...
java
[1]
5,995,047
5,995,048
Show winning success rate based on wins/loses count
<p>I want to show the winning success rate between wins and loses I had a go with this</p> <pre><code>$percent = ($row['wins'] - $row['loses'] / (($row['wins'] + $row['loses']/2))* 100); </code></pre> <p>based on <a href="http://www.calculatorsoup.com/calculators/algebra/percentagedifference.php" rel="nofollow">calcu...
php
[2]
4,587,173
4,587,174
How to determine when the text of an html element is changed
<p>I have an error message like this:</p> <pre><code>&lt;span class="errorMessage"&gt;Your input sucks!&lt;/span&gt; </code></pre> <p>and I need to determine when it changes. the validation framework I'm using sets the text when there's an error and removes it when it's complete. I'm hoping to tap into that by watchi...
jquery
[5]
1,876,853
1,876,854
How to set the value for an HTML element from external javascript
<p>I'm using an external javascript file (eg:<code>myjs.js</code>) with function <code>setval()</code> to set the <code>innerText</code> property of a HTML lable.</p> <p>I have PHP page with <code>&lt;lable id="abc"&gt;&lt;/lable&gt;</code> and I have included <code>myjs.js</code> in <code>&lt;head&gt;</code> section....
javascript
[3]
830,834
830,835
Android.mk read values from BoardConfig.mk
<p>I am tweaking ClockworkMod and I need to read a custom recovery_ui.c In my device's BoardConfig.mk I have set:</p> <pre><code>BOARD_USES_CUSTOM_RECOVERY_UI := true BOARD_CUSTOM_RECOVERY_UI := device/hp/tenderloin/recovery_ui.c </code></pre> <p>In bootable/recovery/Android.mk I have added</p> <pre><code>ifeq ($(BO...
android
[4]
80,833
80,834
Android - getSystemService error?
<p>I have followed this tutorial to get my ListView populating data -- <a href="http://android.amberfog.com/?p=296" rel="nofollow">http://android.amberfog.com/?p=296</a>. </p> <p>But it only works if I subclass my custom list adapter (MyCustomAdapter) like the tutorial does. However I would like to put this in a separ...
android
[4]
1,155,592
1,155,593
How to program a double tap action in Android?
<p>View_B is implemented to listen double tap action. In View_A, I need to send a double tap action to View_B. </p> <p>How to send a double tap action by code ??</p> <p>Thanks.</p>
android
[4]
4,271,659
4,271,660
Logging and Storing Values in XML or SQL CE?
<p>i have an C# application that is writing status information from a PLC device, the program accepts parameters stored in an XML file with a config editor to edit these parameters, the program checks the Memory address of the PLC using the config file to tell the program the address name and datatype etc. if the valu...
c#
[0]
4,420,621
4,420,622
Why is MaybeChannelBound callable?
<p>The Queue class in the python kombu library inherits from MaybeChannelBound, which in turn implements the <strong>call</strong> method (making it callable). The <strong>call</strong>() method itself is a thin wrapper around the bind() method.</p> <p>It is not clear why this was done, as calling the bind() method se...
python
[7]
667,187
667,188
Call a third party app from another app
<p>Is it possible to launch any iPhone/iPad application from within another app? For example in my application if I want the user to read a document say a pdf file from any of the installed apps on iphone or an ipad say PDFReaderLite. How can i launch this app from my app.</p> <p>How can we know which all installed ap...
iphone
[8]
1,714,227
1,714,228
Adding methods to native JavaScript objects
<p>Adding methods to native JavaScript objects like Object, Function, Array, String, etc considered as bad practice. </p> <p>But I could not understand why? </p> <p>Can some body shed light on this? </p> <p>Thanks in advance.</p>
javascript
[3]
3,799,676
3,799,677
what is message box in asp.net
<p>what in asp.net similar to message box </p> <pre><code>if (s != "null") MessageBox.Show("your in "); else MessageBox.Show("wrong user "); </code></pre> <p>i want to replace message box here in c# code </p>
asp.net
[9]
4,585,936
4,585,937
Calling a function from a string with the function's name in Python
<p>What is the best way to go about calling a function given a string with the function's name in a Python program. For example, let's say that I have a module <code>foo</code>, and I have a string whose contents are <code>"bar"</code>. What is the best way to go about calling <code>foo.bar()</code>?</p> <p>I need to...
python
[7]
283,993
283,994
jQuery add class for certain time
<p>How I can add a css class to an element for only 10 seconds ?</p>
jquery
[5]
2,336,472
2,336,473
How to store one string and arrayvalue in sharedpreference?
<p>I have array values of up[]={0,0,0,0,0} and view="adult" thesetwo value i want to store and retrieve in from sharedpreference how to do that...</p>
android
[4]
4,169,091
4,169,092
diference between return , echo and print keyword in PHP
<p>What is the difference between these three?</p> <p>return , echo and print keyword in PHP</p> <pre><code>function theBand($abc,$bac) { return $abc; echo $abc; } </code></pre> <p>Both does the same, it does show or return me the value holding in the variable abc. Now return exists the function and echo continues...
php
[2]
3,542,470
3,542,471
Python while loop/range
<p>I need to ask a number from the user and have then if it is in the range of the low/high number then it returns the number and if it isnt in the range, it loops until the number entered is in the range. I don't really know how exactly to do this but I think I have part of it right. My main concern is the line "whi...
python
[7]
4,848,800
4,848,801
How to work with initialize.php?
<p>I want to learn and work with <strong>initialize.php</strong> so I try to build simple php file like <strong>index.php</strong> and just to see if it call to <strong>hello.php</strong> I got some truble on my local host using windows xp.</p> <p>the details are:</p> <p><strong>http://127.0.0.1/www/oop/shape2/index....
php
[2]
5,976,548
5,976,549
Does BroadcastReceiver.onReceive always run in the UI thread?
<p>in my App, I create a custom <code>BroadcastReceiver</code> and register it to my Context manually via <code>Context.registerReceiver</code>. I also have an <code>AsyncTask</code> that dispatches notifier-Intents via <code>Context.sendBroadcast</code>. The intents are sent from a non-UI worker thread, but it seems t...
android
[4]
5,175,163
5,175,164
Can bit-fields be used as a «poor man's» fast integer type?
<p>I've just noticed an interesting property of gcc with regard to bit-fields. If I create a <code>struct</code> like the following:</p> <pre><code>template &lt;int N&gt; struct C { unsigned long long data : N; }; </code></pre> <p>Then on amd64:</p> <ol> <li>with <em>-m64</em>, for N ∊ &lt;1, 64>, <code>sizeof(C...
c++
[6]
5,947,831
5,947,832
How do specify which EditText should get focus on Activity starts and auto bring up keyboard?
<p>I want to immediately highlight give focus to a particular edit box when the activity loads and bring up the softkeyboard. how can I do this? Also should there be anything in onStart()?</p>
android
[4]
3,651,983
3,651,984
How to keep session alive for 1week without logout PHP, overwriting default server values?
<p>How to keep session alive for 1week without logout PHP, overwriting default server values?</p> <p>I need to do this in the PHP code.</p>
php
[2]
5,586,941
5,586,942
Choose multiple random integers with input
<p>I've been trying to solve this problem. I would like to input a number between 1 and 5. So for example if I choose to input number 3, I want to then randomly choose 3 numbers from a category of numbers between 1 and 10.</p>
python
[7]
2,322,286
2,322,287
The type `T' must be convertible in order to use it as parameter `T' in the generic type or method
<p>I have these two main classes. First the FSMSystem class:</p> <pre><code>public class FSMSystem&lt;T&gt; : MonoBehaviour where T : FSMSystem&lt;T&gt; { private T m_Owner = default(T); protected FSMState&lt;T&gt; currentState; private Dictionary&lt;int, FSMState&lt;T&gt;&gt; m_states; public FSMSy...
c#
[0]
1,886,244
1,886,245
Network manager with NSURLConnection
<p>I am trying to create something like a Network Manager using NSUrlConnections. For that, I want to be able to send multiple requests, but I also want to be able to identify the client(delegate) that made the request when the response arrives. I have created a NSDictionary like this:</p> <pre><code>NSMutableURLRequ...
iphone
[8]
3,077,798
3,077,799
When call by value is used, actual parameter values are pushed into the stack. What about call by reference?
<p>When call by value is used, actual parameter values are pushed into the stack. What about call by reference? What is pushed onto the call stack?</p> <p>EDIT:</p> <p>Nice to know that java does not use call by reference, ever. How about in C++. I changed the tag to c++ from java. Sorry for the confusion.</p>
c++
[6]
600,265
600,266
Get Text and post to an included file
<p>What I'm trying to do:</p> <p>I have two files: One is the <strong>header.php</strong> which is included (<em>by php include</em>) into my second file <strong>content.php</strong></p> <blockquote> <p><em>I am going to be use my <strong>header.php</strong> with many different 'content' files, just so you know</em...
php
[2]
3,223,990
3,223,991
storing the value of dynamically created textbox in session
<p>I have done a project in ASP.Net that asks to input a number in textbox. After typing a number in it and click a button it generates the number of textbox according to the value given in the textbox. Like if I type 5 in the textbox it dynamically generates 5 textboxes below. </p> <p>I want all the value of dynamica...
asp.net
[9]
4,360,378
4,360,379
Canvas clears when resizing window
<p>I am trying to make a paint program and I have this problem with my canvas, it clears every time I resize or maximize the window containing it. I really have no ideea where is the problem, the paint() and repaint() methods are not overriden in the canvas class, and I don't use any addapter for resizing the window. A...
java
[1]
3,001,742
3,001,743
concat function in javascript?
<p>i want to pick highest value from an array so i use math.max function it is working well when i run this only with one array but as i have two different array to first of all i want to join them together so i use concat function but it is not working. </p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt...
javascript
[3]
4,674,996
4,674,997
Map's equals() for keys that are arrays
<p>I'm using a TreeMap (SortedMap) whose keys are Object[] with elements of varying types.</p> <p>TreeMap's equals() doesn't work on Object[] like Arrays's equals() would do -- which means it won't work when using its methods like containsKey() and get() unless I workaround it.</p> <p>Is there somewhere a solution fo...
java
[1]
3,969,091
3,969,092
Javascript - get the form if of current control location
<p>I have a form and it has 4 input elements. if the user enters just two entries and clicks anywhere on the screen (out the form)...i would like to save the details..it is like auto-save.</p> <p>I have id of my form..i want to compare with form id of the current control on the screen..so that i can ssave the data if ...
javascript
[3]
4,626,979
4,626,980
how to solve this exception Illegal character in path?
<p>i am displaying images from url using xml parsing,some images are displaying very well,some time i got exception like </p> <pre><code>Illegal character in path at index 113: http://www.theblacksheeponline.com/party_img/thumbspps/12390867930_15951_186997180114_709920114_4296270_6115611_n[1].jpg </code></pre> <p>Ho...
android
[4]
5,558,141
5,558,142
Android Email(exchage server) takes more time on SSL while account configuration
<p>I observed that Android Email application takes more time while configuring the account <strong>on SSL</strong>. On SSL it takes 10 seconds to get the response back of OPTIONS command. Once the account is configured everything works fine. Anyone have any idea??? Thanks in advance...</p>
android
[4]
5,573,824
5,573,825
Internal Error in .NET Runtime?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4367664/application-crashes-with-internal-error-in-the-net-runtime">Application Crashes With &ldquo;Internal Error In The .NET Runtime&rdquo;</a> </p> </blockquote> <p>I have a Windows service that runs 24x7. On...
c#
[0]
1,656,919
1,656,920
nivo slider pause on last slide
<p>Client has 5 sliders that will switch over at random times, but pause for two or three seconds when the last one has changed over. There are only 2 images per "slider"</p> <p>I figured I would use nivo slider as it looked promising.</p> <p>I have set up the different divs and sizing for each slider and got positio...
jquery
[5]
4,176,474
4,176,475
How to customize the JavaScript prompt?
<p>I am trying to use the JavaScript prompt for entering text that will be enclosed between tags e.g</p> <p>[url]http://www.yahoo.com[/url]</p> <p>The problem is that the prompt always appear in the top left corner of the browser.</p> <p>How do I position such that it only display the prompt around the text area whe...
javascript
[3]
1,577,526
1,577,527
A smart way to implement the same functions
<p>I have a lot of views and have same function <code>postInvalidate()</code>.</p> <pre><code>regenerate.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub img01.postInvalidate(); img02.postInvalid...
android
[4]
5,225,971
5,225,972
immediate children of a list
<p>Hey, A quick question.. what's the JAVASCRIPT statement to get the immediate children of a LIST? I tried:</p> <pre><code>document.getElementById(id).getElementsByTagName('li'); </code></pre> <p>which gives me all of the child nodes.</p>
javascript
[3]
3,776,888
3,776,889
jQuery Checkbox Error
<p>I am working on a jQuery-based todo list interface, and have hit a bit of a wall. The jQuery I am working with is a bit hacked together from various tutorials I have read, as I'm a bit of a beginner.</p> <pre><code>$('#todo input:checkbox').click(function(){ var id = this.attr("value"); if(!$(this).is(":checked...
jquery
[5]
1,935,714
1,935,715
Not relying on a number being stored at index. method help
<p>I've been asked to change the 'getlot' method in this class so that it doesn't rely on a lot with a particular number being stores at index [number -1] in the collection. e.g, if lot # 3 was deleted, then lot # 4 would have been changed from index 3 to 2. I've tried recoding but to no avail. Any help is appreciated....
java
[1]
813,181
813,182
Store real time data of Acceleration sensor in android & input it in Kalman code
<p>I have Kalman filter code correctly executing in Android . Kalman filter had a parameter XDD which stands for acceleration. I have written android acceleration sensor code. </p> <p>1) I want the android acceleration sensor real time data to be passed to the parameter XDD of kalman filter. How to do it. Please expl...
android
[4]
1,854,537
1,854,538
how can i initialize a dynamically allocated array of characters so i don't get those weird characters?
<p>I want to use that array of characters in my game of "hangman" to view to tha user his current progress. </p> <pre><code>#include &lt;iostream&gt; #include "randword.h" #include &lt;fstream&gt; #include &lt;time.h&gt; #include &lt;cstdlib&gt; using namespace std; int main() { InitDictionary(); string tixaio=Ran...
c++
[6]
3,713,520
3,713,521
How to divert the iPhone on Voice Mail programmatically?
<p>In my iPhone application I want to divert my phone on voice mail if any callers call me, which I have to do programmatically for my app. </p> <p>Is it possible in iPhone? If so please guide me.</p> <p>Thanks,<br> Panache</p>
iphone
[8]
2,850,131
2,850,132
Python - Program not displaying as intended
<pre><code>#Hex Check def Check(HexInput): while HexInput!= Valid: print('That is an invalid hex number.') else: print('That is an valid hex number.') return HexInput HexInput=input('Enter a hex number: ') Valid='1234567890ABCDEFG' </code></pre> <p>When run, it outputs nothing when...
python
[7]
1,117,682
1,117,683
jQuery load doesn't work as I expected
<pre><code>$(".content") .load("content/intro.html #bt") .hide() .fadeIn(2000) .delay(2000) .fadeOut(2000) .load("content/intro.html #ofm") .fadeIn(2000) .fadeOut(2000) .load("content/main.html") .fadeIn(800); </code></pre> <p>I would expe...
jquery
[5]
4,654,024
4,654,025
How to know the one selected row in the tabs containing the datagridview
<p>I have a project with a form with 3 tabs, each contains 1 datagridview. I disabled multiselect and can only select a row.</p> <p>I need to Add new data rows or Modify rows of datas from these three datagrids, so I have a MenuStrip on top of the window with a menu with a "Add", "Modify" and "Delete Selected Row" opt...
c#
[0]
1,685,862
1,685,863
How can i delete image file in SD cardafter email sent?
<p>I want to delete image file in SD card after sending email...anybody knows,please give sample code for me...</p> <p>Thanks All</p>
android
[4]
2,018,117
2,018,118
How to use javascript templating rather than raw HTML in javascript string?
<p>I am creating a web app that requires me to render new elements on the page many, many times. It is getting out of hand for me to add HTML by putting it into a Javascript string. Mostly because it's hard to edit it especially when it spans multiple ways. What's the best solution for this? And what's the best way to ...
javascript
[3]
1,943,306
1,943,307
extending jquery on the main element object
<p>I've seen some jquery code where people extend the main object like:</p> <pre><code> $('someId').myCustomObject(); </code></pre> <p>Is this possible or am I mistaken? (if yes, how?)</p>
jquery
[5]
3,016,326
3,016,327
I used heredoc syntax to cover my string. But It displays error. Below is my code:
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2305869/heredoc-interfering-with-code-indentation">HEREDOC interfering with code indentation</a> </p> </blockquote> <pre><code>&lt;?php $my_string = &lt;&lt;&lt;TO Everything in this rather unne...
php
[2]
4,620,921
4,620,922
Form Validation with Functions
<p>I purchased a template that included many files and one of them was for jquery form validation. </p> <p>I'm using their template to create a register form. I also had created a validation code as well but what I would like to do is have my register form use the original validation code which is the script.js file. ...
jquery
[5]
1,919,539
1,919,540
Getting appropriate hash index C++
<p>I've tried everything. Even java's forumla: </p> <p>java.lang.String.hashCode():</p> <pre><code>s[0]*(31^(n-1)) + s[1]*(31^(n-2)) + ... + s[n-1] </code></pre> <p>I've interpretted this as a sum: Although I am not quite sure what to do with the s[n-1];</p> <pre><code>int hashmap::hashstr( const char*const str ) {...
c++
[6]
3,265,473
3,265,474
how to clear a graphic object without using clear() method in c#?
<p>is it possible to clear the graphic object without a clear method?</p>
c#
[0]
5,028,429
5,028,430
what is the most proffessional way to make an android app
<p>I am creating an app (not a game), and I want to make it look professional. I have two options right now of how to make it. The first one, goes straight into my app and then has a menu when you hit the menu button on the phone. The second is, that when you open the app, it goes into a “main menu” like the kind that ...
android
[4]
2,261,514
2,261,515
jQuery : mousemove on 'body', and avoid 'menu' element
<p><br> is there a possibility to use the mousemove on the 'body', and avoid at the same time an element of the DOM, like the div 'menu' ? The idea is to show the 'prev' or 'next' arrow in the background, but hide it -> if we enter in the menu element. </p> <p>I tried this :</p> <blockquote> <p>$('body').not('#m...
jquery
[5]
5,890,032
5,890,033
how to get value of a div in jQuery
<p>I have this sample code but why is messageA always null?</p> <pre><code>var test = "&lt;div id='message2'&gt;My Message 2&lt;/div&gt;" var $response1 = $('&lt;div/&gt;').html(test); var messageA = $('#message1', $response1).html(); alert ('message: ' + messageA); </code></pre> <p>it should come back as 'My Messag...
jquery
[5]
1,570,737
1,570,738
the function written in javascript works after refresh the page in firefox, I really can not figure not why
<p>I am now programming, using Jquery, to render the preview page before submitting a form. I fill in some of the fields and click the 'preview button' to preview. the result is not what i want, I think there are some bugs, but the strange thing is : when i refresh the page in firefox, which will keep the filled values...
javascript
[3]
2,963,873
2,963,874
append li in ul which contain multiple spaces
<p>I want to append <code>&lt;li&gt;</code> in <code>&lt;ul&gt;</code> using jQuery. I've done it successfully with the following line:</p> <pre><code>var ChosedItem = $("#chosedItem"); ChosedItem.append('&lt;li id=' + $(this).attr('id') + ' limit=' + $(this).attr('limit') + ' &gt;&lt;span&gt;' + $(this).children(0) +...
jquery
[5]
2,068,076
2,068,077
Android Anatomy by Edward T Kim
<p>Any idea where can i find this book. Analysis of Operating Principles of the Android Platform. #Part 2 : Android Anatomy</p> <p>Link from where i found this: <a href="http://www.kapg.org/E_Android_Anatomy" rel="nofollow">http://www.kapg.org/E_Android_Anatomy</a></p> <p>Thanks. Suren</p>
android
[4]
5,324,527
5,324,528
How to detect errors from compileall.compile_dir?
<p>How do I detect an error when compiling a directory of python files using compile_dir?</p> <p>Currently I get something on stderr, but no way to detect it in my app. py_compile.compile() takes a 'doraise' argument, but nothing here.</p> <p>Or is there a better way to do this from a python script?</p> <p>Edit:</p>...
python
[7]
3,364,974
3,364,975
How can i apply jquery on all elements with same id attribute?
<p>How can i apply jquery on all elements with same id attribute ?</p> <p>i want to apply a <code>focus()</code> and <code>blur()</code> function on a <code>textarea</code> elements that have same id?</p>
jquery
[5]
563,344
563,345
what is the best way define array cell if it's not defined?
<p>I have a 2nd level array, that at a cetain point in the code can be ether undefined or contain value. If it is undefined I need to define it, without giving it any value. this is what i did:</p> <pre><code>arr[arr2["stripID"]] = typeof(arr[arr2["stripID"]]) === 'undefined' ? [] : arr[arr2["stripID"]]; </code></pre>...
javascript
[3]
6,031,139
6,031,140
Android Getting Current date+ specfied integer time?
<p>Currently, I have a time represented by a four character string (Example 2328). Is it possible to get android current date only + the time represented in string?</p> <p>So that it will be represented in "yyyy-MM-dd HH:mm"</p>
android
[4]
5,113,180
5,113,181
What's wrong in this small code?
<p>There is no any error in this code but when I run it, it doesn't give any result?</p> <p>Please help me?</p> <pre><code>#include &lt;iostream.h&gt; int x; int count; char a[50]; char b[50]; int strlenn(char *str); void strcpyy(char *str1,char *str2); void main(){ int count1,count2; cin&gt;&gt;a; cin&g...
c++
[6]
4,419,817
4,419,818
Dynamically Controls
<p>I have dynamically generated a button an its event too.Now want to access a textbox (Generated Dynamically) into the onClick event of the Button.How can i do this?</p>
asp.net
[9]
4,837,787
4,837,788
What are the current best practices of Object ownership and transfers in C++? NOT C++0x
<p>Especially for large scale projects where maintainability is important. Explanations, links/references are also welcome.</p>
c++
[6]
2,135,980
2,135,981
PHP Doesn't Display Errors or Warnings
<p>I don't know how php.ini was configured since I don't have access to it. But on top of my php code file I have </p> <blockquote> <p>error_reporting(E_ALL); ini_set('display_errors', '1');</p> </blockquote> <p>But still, if there is an error, e.g. missing a ")", the page is blank. It is so painful to debug with...
php
[2]
1,063,582
1,063,583
Download the file from web using DefaultHttpClient
<p>Any one knows how to download a file from web using the DefaultHttpClient in android?<br> I tried most of the possible options, is openurl connection but I need to use the DefaultHttpClient </p> <p>Thanks in advance </p>
android
[4]
3,769,756
3,769,757
What is the difference between include() and calling a function in PHP?
<p>What is the difference between include() and calling a function in PHP? For example :</p> <p>1-</p> <pre><code>&lt;?php $foo = '&lt;p&gt;bar&lt;/p&gt;'; return $foo; ?&gt; &lt;html&gt;&lt;body&gt;&lt;?php echo $foo; ?&gt;&lt;/body&gt;&lt;/html&gt; </code></pre> <p>2-insert above php code in a php file and...
php
[2]
1,938,510
1,938,511
Abstracting threading and multiprocessing in Python?
<p>Is there a module that abstract threading and multiprocessing in Python? I want to have an option of switching between them in future. </p>
python
[7]
4,196,071
4,196,072
RPC:S-5:AEC-0 keep on getting it,after doing everything thats advise to do
<p>Got a senua tablet and keep getting error message RPC:S-5:AEC-0. Have been doing what has been advised, it works for 1 download and then it gives me that message again. Can anybody help???? </p>
android
[4]
3,314,201
3,314,202
How to recieve data from the server?
<p>I am trying to fetchg data from server like MP3 files, video files, etc. in my application. The application should show the list of video files received from the server. </p> <p>How can I do this?</p>
android
[4]
5,306,316
5,306,317
how can i change the password length in create user wizard of visual studo in asp.net
<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt; &lt;head runat="server"&g...
asp.net
[9]
2,124,374
2,124,375
Override of Graphics.DrawLine
<p>I seek to <code>@override</code> the <code>DrawLine</code> method of the <code>Graphics</code> class, but I am unsure if this is possible?</p> <p>I seek to put a validation in the method so that it stops drawing at a certain Y variable that I would provide, effectively adding a new parameter to the method.</p> <p>...
c#
[0]
4,107,278
4,107,279
use of "this" and "class" as members
<p>I have seen Java code that says something like:</p> <pre><code>SomeClass.this.someMethod(someArg); Blah(AnotherClass.class); Blah(YAClass.this); </code></pre> <p>What do "this" and "class" mean here? I am used to them as keywords to refer to the current object and to define a class, but this is different. My Jav...
java
[1]
165,713
165,714
How do I determine if a request is the result of a postback?
<p><strong>Update</strong></p> <p>I'm implementing a custom page caching solution and I don't want the request to be cached or retrieved from the cache if it's in response to a form submission or some sort of asp.net postback.</p> <p>I'm trying to figure out if the current HttpRequest is a postback. Is there a way of...
asp.net
[9]
414,528
414,529
PHP crashing on occasion - APC error?
<p>Any thoughts on this? We've had this happen twice recently. Basically, every page throws a fatal error, fixed by an apache restart. Here's what's in the log, repeated over and over.</p> <p>[Tue Apr 13 15:18:12 2010] [error] [client 10.0.0.2] PHP Fatal error: Internal Zend error - Missing class information for ...
php
[2]
967,846
967,847
Is there a way for me to get detailed formatted information on a Python class?
<p>So, I know I can use dir() to get information about class members etc. What I'm looking for is a way to get a nicely formatted report on everything related to a class (the members, docstrings, inheritance hierarchy, etc.).</p> <p>I want to be able to run this on the command-line so I can explore code and debug bett...
python
[7]
3,982,472
3,982,473
Python - test whether object is a builtin function
<p>Is there a nice way to check whether object o is a builtin Python function?</p> <p>I know I can use, for example</p> <pre><code>type(o) == type(pow) </code></pre> <p>because type(pow) is 'builtin_function_or_method'.</p> <p>But is there some nicer way?</p>
python
[7]
2,498,474
2,498,475
display custom selection area on html page using javascript
<p>On an html page, can I calculate an invidual character's x,y coordinates and its render size on screen ? </p> <p>I am asking this question because I was wondering how google docs does it ? If you look inspect selected region in google docs, it places an overlay on the selected region. I couldn't figure out how they...
javascript
[3]
5,495,049
5,495,050
jquery :contains selector in child window
<p>I have a child window that I am trying to use jquery :contains selector, but it does not work.</p> <pre><code>var child = window.open("index.html", null); child.document.close();//I saw somewhere this was necessary... $(child.document).ready(function() { setTimeout( function() { // necessary to wait a few secon...
jquery
[5]
3,576,451
3,576,452
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]
5,445,921
5,445,922
Deploying Python via CGI
<p>How do I deploy a Python project to a webserver that supports Python via CGI? I'm well versed in PHP, but do not understand CGI's relation to Python in the deployment process.</p> <p>Any resource links are appreciated.</p> <p>The web host in question is GoDaddy.</p>
python
[7]
4,504,696
4,504,697
Android POST JSON OBJECT - How to set $_POST Index
<p>i have a JSONObject which i want to POST to a server. </p> <p>Here is the Code:</p> <pre><code>JSONObject obj = new JSONObject(); for(int k = 0; k&lt;len;k++){ obj.put("nachrichten_ids", params[k]); } HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost("xxxxx"); HttpEntity entity;...
android
[4]
1,962,724
1,962,725
Changing CSS margin in jquery as a negative percentage
<p>I have this in CSS:</p> <pre><code>.inner{ margin-left: -100% }; </code></pre> <p>How would I assign this in jquery?</p> <pre><code>$('.inner').css("margin-left", -100%); </code></pre> <p>doesn't work.</p>
jquery
[5]
1,148,307
1,148,308
How do I default to numeric keyboard on EditText without forcing numeric input?
<p>This has been asked elsewhere online to no avail. Is there any way in Android to display the numeric soft keyboard when focusing on and <code>EditText</code>, but still allow any text to be entered? </p> <p>I'd like to let the user enter quantities (e.g. "1 kg", "2 L"), so just setting <code>inputType="number"</cod...
android
[4]
2,171,612
2,171,613
Android Service classes
<p>why it is not showing me a messageboxdialog when the Service is being activated.</p> <pre><code>@Override public void onStart(Intent intent, int startid) { Toast.makeText(this, "My Service Started", Toast.LENGTH_LONG).show(); Log.d(TAG, "onStart"); player.start(); AlertDialog.Builder builder = new ...
android
[4]
1,470,687
1,470,688
How does sensorlistener consume power?
<p>I run an android app using my google phone and then get the time it keeped the sensorlistener on. After one night, I noticed that the sensor usage is more than 5 hours, but it seems the sensor did not kill the battery at all. So I am very curious about what will sensorlistener do if I leave the phone idle? Does list...
android
[4]
5,830,359
5,830,360
ACL not getting inherited
<pre><code>var ac = directoryInfo.GetAccessControl(); var wid = WindowsIdentity.GetCurrent(); IdentityReference securityIdentifier = (wid == null) ? new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null) : wid.User; bool result = false; ac.ModifyAccessRule(AccessControlModification.RemoveAll, new FileSystemAcce...
c#
[0]
5,416,470
5,416,471
Reading data from a various terminals using PHP
<p>I would like to know if there's by any chance a way to communicate with a POS device, a cash register and a magnetic card reader with PHP. By communications I mean reading the output of that device.</p> <p>Thank you.</p>
php
[2]
5,273,834
5,273,835
Android public void search(View view)
<p>I am using the code found here.</p> <p>The summary is that there is an xml file with an EditText and a Button called search. When search is clicked it is meant to search an SQLite db. I have added Log tracking to the oncreate and search methods but only the oncreate is running. This leads me to think that the searc...
android
[4]
5,516,615
5,516,616
How to convert Integer to string
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/228005/alternative-to-itoa-for-converting-integer-to-string-c">Alternative to itoa() for converting integer to string C++?</a><br> <a href="http://stackoverflow.com/questions/5290089/how-to-convert-a-number-to-str...
c++
[6]
4,619,797
4,619,798
Motion detection using iPhone
<p>I saw at least 6 apps in AppStore that take photos when detect motion (i.e. a kind of Spy stuff). Does anybody know what is a general way to do such thing using iPhone SDK? </p> <p>I guess their apps take photos each X seconds and compare current image with previous to determine if there any difference (read "motio...
iphone
[8]
5,198,434
5,198,435
Any way to redirect to another page on my site with PHP, besides header()?
<p>I am programming my first PHP web app and I have a question:</p> <p>If I want to redirect the user to another page on the same site, under x conditions, how can I do it?</p> <p>Is there a way, besides using header ()? I want to use relative paths so I was wondering if there is another way.</p> <p>Basically my pag...
php
[2]
339,676
339,677
Is it possible to access the NMEA information of the devices using PHP?
<p>Hi How can we get the NMEA data of the device using PHP so it can be use to identify its location using WEB that don't have javascript turned on.I know HTML 5 geolocation can be use to gather the location but it is limited to other mobile without with javascript turned off. The skyhook provides also an API for gathe...
php
[2]
5,989,263
5,989,264
Programming in java swings
<p>I need your help.In my project if iI click on the button it should open an open dialog box I am very confused in the code so please help to get exact code for it.I am doing my project based on swings so please send me the answer as fast as possible.</p>
java
[1]
4,047,671
4,047,672
Can this javascript be written more efficiently?
<p>I'm using these two functions to control the height of separate drops on a navigation bar. It's working, but I'm sure it could be written as one function ... i just don't know how. Thanks in advance for any suggestions:</p> <pre><code>&lt;script type="text/javascript"&gt; function nav() { $('.nav li').hover(funct...
javascript
[3]
3,739,190
3,739,191
list all files in the folder and also sub folders
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2534632/list-all-files-from-a-directory-recursively-with-java">List all files from a directory recursively with Java</a> </p> </blockquote> <p>How can i return a file array that include all files on the folder a...
java
[1]
4,354,670
4,354,671
What's the difference between 'state' and 'status' in function name?
<p>readyState<br/> statusText<br/> onreadystatechange<br/> window.status<br/></p> <p>What's the difference between 'state' and 'status' in English ?</p>
javascript
[3]