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,611,991
3,611,992
Disable keypad or whole keyboard support on android activity?
<p>I have a layout with lots of different imagebuttons on it.<br> Application is developed in full-touch, so there should be no response to keyboard or keypad on all activities except one, where user can input his name.<br> Is there a way to achieve that? </p> <p>I've checked on debug, keypress and keypad press resul...
android
[4]
3,548,184
3,548,185
Loop through list from specific point?
<p>I was wondering if there was a way to keep extremely large lists in the memory and then process those lists from specific points. Since these lists will have as many as almost 400 billion numbers before processing we need to split them up but I haven't the slightest idea (since I can't find an example) of where to ...
python
[7]
3,699,097
3,699,098
Display multiple anchor links within a single div container
<p>I'm trying to display multiple anchor links within the same div container...specifically pdf files. I'm fairly new to jQuery and was hoping there'd be a way to do it. </p>
jquery
[5]
4,030,350
4,030,351
How can i get timezone by IP address in US?
<p>In example,<br> I have an IP address from US.<br> I'm using this function : </p> <pre><code>$timeZone = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, "US"); </code></pre> <p>to get the location.<br> I'm getting an array : </p> <pre><code>0 =&gt; string 'America/Adak' 1 =&gt; string 'America/Ancho...
php
[2]
2,500,235
2,500,236
Unable to find dtw_std in mlpy 3.5.0
<p>I was trying to use the mlpy-3.5.0 on Ubuntu 10.04.4 LTS ( Python 2.6.5 ), but after the packages import, at the point I will perform the DTW instruction, an error happens and the following log is shown:</p> <p><strong>Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no ...
python
[7]
2,855,114
2,855,115
string to encode in CodePage 857
<p>I need a function that can print Turkish characters.</p> <pre><code>public String convert(String input) { String output = new String(s.getBytes(input), "CodePage-857"); return output; } </code></pre> <p>Is there anyone out there can show me how to achieve this?</p> <p>Thank you</p>
java
[1]
1,993,223
1,993,224
the chk_all dosnt work to enable all other child boxes for the first attempt
<pre><code>&lt;input type="checkbox" id="checkMain" /&gt; &lt;p&gt;&lt;input type="checkbox" id="checkMain1" /&gt; &lt;p&gt;&lt;input type="checkbox" id="checkMain2" /&gt; &lt;P&gt;&lt;input class="child" type="checkbox" id="chk1" disabled="true" /&gt; &lt;input class="child" type="checkbox" id="chk2" disabled="true" ...
jquery
[5]
1,076,770
1,076,771
Beginner Issue (Python) - How do I remove words from a list under a certain length
<p>This is what I do:</p> <pre><code>for word in doc: if len(word) &lt; 3: doc.remove(word) </code></pre> <p>But, if I do this:</p> <pre><code>for word in doc: if len(word) &lt; 3: print word </code></pre> <p>The results returned are: 'O,' 'Of' '30' '4.' 'I.' 'IF' and more.</p> <p>Most two ...
python
[7]
5,957,163
5,957,164
Server for streaming from android to web
<p>I am trying to develop an android application that will stream the video from android mobile to the web (similar to Qik). I had gone through RED5, MAMMOTH and RTMPD servers. </p> <p>My question is which web server I should use? Which is the best supported on android? Is there any other alternative to do this?</p> ...
android
[4]
2,598,525
2,598,526
How rotate image with different angle?
<p>I have implemented speedometer i have one arrow image.i want to rotate 0 to 180 very smoothly.how it possible?</p>
iphone
[8]
651,936
651,937
How to create periodic table in android?
<p>I am trying to create periodic table in android for my app , creating all buttons for each element is not so efficient. please suggest !</p>
android
[4]
2,770,095
2,770,096
find out if url is compressed
<p>I just have a question thats been pozzling my head all morning.</p> <p>I want to get all http headers thru CURL ... and find out, if pinged url is compressed, or not. (either one of: gzip / x-gzip / deflate / compress) </p> <p>But all I can get from CURL is this:</p> <pre><code>[url] =&gt; http://www.url [content...
php
[2]
2,810,423
2,810,424
ContentLength field 0 on client web service
<p>I am using this to get started on returning a stream:</p> <pre><code>[WebGet(UriTemplate = "GetTestData/{file}")] public Stream GetTestData(string file) { string fileName = "\\testdirectory" + file; if (File.Exists(fileName)) { FileStream stream = File...
c#
[0]
4,556,950
4,556,951
My code works in Firefox but not Internet Explorer
<p>This code works fine in Firefox but IE9 returns an error of '_area' is undefined</p> <pre><code>function dbasetype(){ var dbasedata = document.forms[0]._dbase_name.value; dbasedata = dbasedata.toUpperCase(); dbasedata = dbasedata.replace(/\s/g, ""); if (dbasedata.indexOf("UK_CONTACTS")==-1) { ...
javascript
[3]
5,367,866
5,367,867
to send a text file to server using javascript
<p>I need to send a text file to server and get it saved. how can i do it using javascript???</p>
javascript
[3]
2,284,674
2,284,675
Unselecting values in multiselect using val() and prop
<p>Look at this fiddle: <a href="http://jsfiddle.net/imparator/XPGa8/1/" rel="nofollow">http://jsfiddle.net/imparator/XPGa8/1/</a></p> <p>First, I am selecting the value "Volvo" of the select list: </p> <pre><code>$("select").val('volvo'); </code></pre> <p>Later, when I try to unselect it like this: </p> <pre><code...
jquery
[5]
5,425,711
5,425,712
out parameter - why does it not work
<p>The following is a failing unittest explaining a bug I found today:</p> <pre><code> [TestMethod] public void WFT() { string configDebug = "false"; bool configDebugEnabled = bool.TryParse(configDebug, out configDebugEnabled); Assert.AreEqual(false, configDebugEnabled); } </cod...
c#
[0]
5,987,652
5,987,653
generators that defer to sub-generators
<p>I yould like to have generators that defer to other generators, e.g.</p> <pre><code>def gx(): for i in [1, 2, 3]: yield i def gy(): for i in [11, 12, 13]: yield i def gz(): """this should defer to gx and gy to generate [1, 2, 3, 11, 12, 13]""" for i in gx(): yield i for ...
python
[7]
3,709,198
3,709,199
Regarding scanner class
<p>I am currently using StringTokennizer class to split a String into different token as by defined delimiter..</p> <pre><code>public class App { public static void main(String[] args) { String str = "This is String , split by StringTokenizer, created by Neera"; StringTokenizer st = new Stri...
java
[1]
3,838,874
3,838,875
PHP coding competition
<p>I would like to know if there are any competitions like Sharp Coder for C and Java which are organized for PHP. Does anyone know where I can find some tasks in which to compete?</p>
php
[2]
332,551
332,552
Calling the base class's implementation from the derived?
<p>I want to do what the base does, but then I want to add some derived stuff.</p> <p>I tried the following but it did not work: (this function is virtual in AguiWidget)</p> <pre><code>void AguiLabel::onSizeChanged( const AguiSize &amp;size ) { AguiWidget.onSizeChanged(size); updateLabel(); } </code></pre> <...
c++
[6]
1,527,247
1,527,248
jQuery check image file exists
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/3327655/jquery-check-if-image-exists">jQuery: Check if image exists</a><br> <a href="http://stackoverflow.com/questions/92720/jquery-javascript-to-replace-broken-images">jQuery/Javascript to replace broken images...
jquery
[5]
4,336,471
4,336,472
jquery calculation question
<p>I have this code: </p> <pre><code>&lt;div&gt; &lt;input id="number" type="text" /&gt; &lt;select id="Selection" name="D1"&gt; &lt;option&gt;Plus 1&lt;/option&gt; &lt;option&gt;Minus 1&lt;/option&gt; &lt;/select&gt; &lt;input id="result" type="text" /&gt; &lt;/div&gt; </code></pre> <p...
jquery
[5]
1,203,389
1,203,390
Would you prefer coding PHP using a framework or on its own?
<p>Would you prefer coding PHP using a framework or just PHP? I started using CodeIgniter and now I am back to just PHP for my clients' projects.</p>
php
[2]
5,813,845
5,813,846
Converting an array with 50,000+ entries into a mysql database
<p>Ok, so I am helping someone with their site. Their original coder thought it would be a great idea to put their entire database in an array.</p> <p>I am looping through each piece of data in the array and inserting it into a new mysql table I created, the rows are getting inserted just fine but the problem is that ...
php
[2]
2,238,226
2,238,227
PHP: What if one variable return from server with different value?
<p>I have a problem with variable (for example $foo), because when first part of the PHP script execute, variable $foo has value "123" ($foo = 123) but second part of the same script execute another action and also return $foo with a new value.</p> <p>I need to enter the following data to my database:</p> <p>The firs...
php
[2]
2,806,985
2,806,986
Get DNS request from service
<p>Is it possible to capture the current dns request via a service in android? I would like to drive some logic in my backend process depending on what URL the user is currently trying to access.</p>
android
[4]
5,470,642
5,470,643
Java upcast scope resolution issue
<p>I have a base class "Shapes" and an extended class "Circle". Both have a getName method. My test class is the "Driver" class. </p> <p>I upcast a Circle object to Shapes and pass it to a function called polyTest. In that function I want to call getName but I do not want the circle objects implementation of get name...
java
[1]
643,468
643,469
SMB Directory Listing with C#
<p>I am trying to do a remote directory listing of an SMB web server.</p> <p>My method however doesn't work. The call to <code>DirectoryInfo()</code> complains that I can't give it a string in a URi format.</p> <p>This is what I have come up with:</p> <pre><code>string smbDirectory = @"\\SERVER\MYSHARE"; Uri request...
c#
[0]
4,258,929
4,258,930
About the global keyword in python
<pre><code># coding: utf-8 def func(): print 'x is', x #x = 2 #if I add this line, there will be an error, why? print 'Changed local x to', x x = 50 func() print 'Value of x is', x </code></pre> <ol> <li>I dont't add the <code>global x</code> in func funtion, but it can still find <code>x</code> is 50,...
python
[7]
1,975,351
1,975,352
Error when installing python settuptools - No such file or directory: '/usr/local/lib/python2.7/site-packages/test-easy-install-8811.pth'
<p>I'm trying to install settuptools on a linux machine that I don't have root access. I already create the virtual python.</p> <pre><code>dgomez:~/download&gt; which python /home/dgomez/bin/python </code></pre> <p>when I do the following, I get an error:</p> <pre><code>/home/dgomez/bin/python ez_setup.py Downloa...
python
[7]
577,849
577,850
Error in parameter that i use in update command in sqlDataSource
<p>I use below code : </p> <p><strong>.aspx</strong></p> <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource1" ConnectionString="&lt;%$ConnectionStrings:Con %&gt;" runat="server" SelectCommand="select * from DorePayvar" OnSelecting="selecting" UpdateCommand="update DorePayvar set Name=@name" OnUpdati...
asp.net
[9]
5,554,248
5,554,249
Android: application settings lost when updating to new version?
<p>I recently released a new version of my app. When users update to the new version (through google market), the settings for their application are cleared -- I am fairly confident this did not happen in previous versions. </p> <p>Can anyone suggest a reason why this might occur? I added an additional permission i...
android
[4]
1,461,335
1,461,336
Using different cipher than default
<p>i need to connect to a server using only one cipher - "ADH-RC4-MD5". i'm looking for a generic solution which will enable me to check what cipher the server is using (i'm a provisioning server that acts as a client to many other application servers and need to connect and get data - each time it can be a different s...
c#
[0]
1,120,601
1,120,602
Do I have to check whether a String object is null?
<p>If the compiler is going to complain that a String object is not initialized then is it appropriate to check in my method whether the String object is null or not?</p> <p>Is there a place that the compiler will not check that for me?</p>
java
[1]
229,299
229,300
Plot Experimental Data Distribution
<p>I'm working on a clustering task and I've built the dataset similarity matrix M, repeating N times the clustering algorithm and chosing as element m_{ij} the the number of times the elements i and j have been on the same cluster, divided by N.</p> <p>Now I'd like to have a graphical way to check my results, so i wa...
java
[1]
5,855,336
5,855,337
Accessing HttpApplicationState
<p>Can it be done outside of Global.asax? I stored some app state info on app_start that I want to grab in a controller action. </p>
asp.net
[9]
425,557
425,558
PHP - limiting <li> tags in a <ul>
<p>I have the following HTML output;</p> <pre><code>&lt;ul&gt; &lt;li&gt;Test 1&lt;/li&gt; &lt;li&gt;Test 2.&lt;/li&gt; &lt;li&gt;Test 3&lt;/li&gt; &lt;li&gt;Test 4&lt;/li&gt; &lt;li&gt;Test 5&lt;/li&gt; &lt;li&gt;Test 6&lt;/li&gt; &lt;li&gt;Test 7&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>What I need to do, is ...
php
[2]
3,264,812
3,264,813
"download" of client-side data from JS (without a new server round-trip)
<p>I've got a bunch of data on the client side, in JS. I want to allow the user to save that data to the local hard drive in text (CSV actually) format.</p> <p>I can easily accomplish this by posting all of this data up to the server using ajax, then initiate a GET from the client to download the data. But that seem...
javascript
[3]
5,622,020
5,622,021
Launch "Recent apps" NOT from holding on home button
<p>I want to launch from my application the activity recent apps, without holding on home button. How can i launch that dialog activity? Is that possible ? Thank you very much.</p>
android
[4]
355,473
355,474
Problem displaying ShapeDrawable in an ImageView
<p>I am writing an app which will create drawable shapes and add them to other drawables. (Think Tetris pieces onto a Tetris board.) As a test, I want to have a particular shape appear when my activity is loaded, but I cannot get a Drawable to appear in the ImageView I created. Could anyone explain why the following co...
android
[4]
3,556,308
3,556,309
What can I do with urllib?
<p>I grasp that it can fetch internet resources, but I'm not really fully appreciating what that means. I was doing the challenges at pythonchallenge.com, and I got past the one that requires urllib to fetch the page and read the source, but I don't see how this is useful quite yet. And examples are kind of lacking in ...
python
[7]
931,783
931,784
Retreiving data from SQLite database in another Activity
<p>I have created 3 activities including DBAdapter for database. One is for saving the data and another is for retreiving the data from the SQLitedatabase created in DBAdapter class. The creation of database has completed successfully.</p> <p>mainActivity code for saving:</p> <pre><code>DBAdapter db=new DBAdapter(thi...
android
[4]
5,803,183
5,803,184
Javascript: td value == td value
<pre><code>&lt;tr&gt; &lt;td class = "nowrap cr" id="cr1"&gt;123123&lt;/td&gt; &lt;td class = "nowrap ch" id="ch1"&gt;123123&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class = "nowrap cr" id="cr2"&gt;123123&lt;/td&gt; &lt;td class = "nowrap ch" id="ch2"&gt;123123&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class = "nowrap c...
javascript
[3]
3,017,456
3,017,457
Jquery + Toggle with double callback
<p>Hi I'm trying to use a toggle() with a callback for on/off:</p> <pre><code>instantMsgTabOptions.click(function() { instantMsgOptions.toggle(function() { $('table.instantMsgTabs td.instantMsgTabOptions').css('color','#849C00').css('text-decoration', 'underline'); },function() { $('table.instantMs...
jquery
[5]
4,488,203
4,488,204
Basic Java Syntax Questions
<p>I am doing a homework assignment (I am not one to lie) and I am honestly stumped at the questions. I have 3 years of programming experience but am stumped on some of the simplest problems in the class, lol. New to Java, not new to programming rather. I would like to discuss why the questions result in an answer a...
java
[1]
5,193,212
5,193,213
onHover effect with textarea
<p>I am trying to create an hover effect, so when a user moves his mouse over a button, a textarea will be displayed below the button where the user can insert text before submitting a form. If the user leaves the textarea after it was was opened, I would like it to be closed again.... The problem with the code I've u...
jquery
[5]
1,721,270
1,721,271
Java IO - Folder Creation Error
<p>I am not able to create a folder using following code. </p> <pre><code>import java.io.File; public class Fileupload { public static void main(String[] args) { File f = new File("C:\\BOS\\BOS-5.8-Tomcat-6.0.35\\webapps\\bonita\\ECR-DZ-00013\\Ranjeet\\"); if (f.exists()) { Sy...
java
[1]
2,815,118
2,815,119
How to check if a String[] index exists?
<p>I have a <code>String[]</code> and I would like to check if an index exists in it (such as String[3]).</p> <p>How can I go about doing this?</p>
java
[1]
4,611,163
4,611,164
Regarding Multiple Language Application for Android?
<p>I am trying to make small app for android. My idea for app is that user can change the language whichever they want ...etc french , german,chinese , english etc... how to force the locale language in my app or how to get access to the language used by user on their device and with respect to that I can change my ap...
android
[4]
379,620
379,621
Resume Activity with back button
<p>I have an application I am creating with a DashboardActivity &amp; a SettingsActivity. On the dashboard, I have one object displayed, but when I go into settings, I want to be able to select/deselect X options. Once the user clicks the back button, I save that data locally and to the server. Once the phone receives ...
android
[4]
3,625,937
3,625,938
Open Page in ReadOnly mode
<p>I have to open page in read only mode where all the controls are disabled and no body can perform any action on page.</p> <p>I tried to use Panel / div overlap.</p> <p>is there any other smart solution for this?</p> <p>Thanks</p>
asp.net
[9]
980,580
980,581
What is wrong with this JavaScript function?
<p>I do not usually use JavaScript, and cannot see why this is not working. Thanks.</p> <pre><code>function testYear() { var dObject = new Date(); var dRegEx = /^[0-9][0-9]00$/; var d = dObject.getFullYear(); if (d.match(dRegEx) &amp;&amp; d % 400 == 0) { alert("The year "+d+" is in fact a leap ye...
javascript
[3]
4,045,805
4,045,806
Confused with the output related to character and wchar_t
<p>Not able to understand whats happening in the below code </p> <pre><code>wchar_t wc; wc =L'ab'; char ch = 'ab'; </code></pre> <p>When i am debugging the above code , i found that a is stored in <code>wc</code> where as <code>b</code> is stored in <code>ch</code> . I dont understand why <code>a</code> is not bei...
c++
[6]
98,373
98,374
What is the simplest method to write a file with Chrome file interface?
<p>Chrome implements the file interface as described here <a href="http://www.html5rocks.com/en/tutorials/file/filesystem/" rel="nofollow">http://www.html5rocks.com/en/tutorials/file/filesystem/</a>, just adding the <code>webkit</code> prefix. The documentation covers several aspects of the interface, but what are the ...
javascript
[3]
219,853
219,854
Get the control id of usercontrol in aspx page
<p>I'm working on asp.net website. In my project I'm using the usercontrols. I have placed the radgrid inside the user controls. I need to get the id of radgrid of usercontrol and need to enable the scrolling for the grid. How can I achieve this. please help me</p>
asp.net
[9]
5,609,709
5,609,710
Losing click information after page refresh
<p>I came up with the following for my NavBar. Well, after refreshing the current page using F5 I am losing my click information, everything according to my NavBar falls back to default, like u've never clicked on a link :/</p> <pre><code> &lt;script&gt; "use-strict"; $(document).ready(function() { ...
jquery
[5]
4,780,723
4,780,724
Echo multiple variables to one div class
<p>I'm trying to echo a user name and a greeting from IF statement i made.</p> <pre><code>&lt;?php global $current_user; get_currentuserinfo(); echo get_avatar( $current_user-&gt;ID, 64 ); $hour = date('G'); if ($hour &lt; 12) { ...
php
[2]
4,387,252
4,387,253
Creating an instance of collection in JAVA
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/147468/why-should-the-interface-for-a-java-class-be-prefered">Why should the interface for a Java class be prefered?</a><br> <a href="http://stackoverflow.com/questions/3356113/what-is-the-benefit-of-polymorphism-...
java
[1]
1,662,196
1,662,197
Android: Whats the maximum size of app that i can upload to the market?
<p>I have 3 video files each of 70 MB in my raw folder besides other audio files of few KBs. I am getting an installation error of insufficient space on the DROID while testing my app. I tried uninstalling apps and am now left with apps that are essential to the device.</p> <p>What needs to be done to resolve this iss...
android
[4]
3,693,564
3,693,565
How to integrate a modal dialog
<p>I want to show AJAX error messages for form validation and want these messages centered on the screen. I was advised to use a modal window for this. I have the following code but I'm not sure how to do this. I know that I need to call the modal in the success function but unfortunately that's about the extent of my ...
jquery
[5]
428,698
428,699
How do I order an array of objects based on one of their attributes?
<p>I have an object called a Contact that has a bunch of attributes. I also have an array of Contacts called Contact_List, and I have to write a method for the Contact_List that will add a Contact object to it. That part is easy, but it has to ensure that all of the Contacts within it are in order based on their last n...
java
[1]
5,900,995
5,900,996
What is the difference between a += b and a =+ b , also a++ and ++a?
<p>As I mentioned in the title,</p> <p>What is the difference between a += b and a =+ b , also a++ and ++a ? I'm little confused</p>
java
[1]
5,248,156
5,248,157
How i can use Funcunit or Qunit to test my jQuery code in ASP.NET MVC?
<p>How i can use FuncUnit or qunit to test my jQuery code.Can anyone exaplain how i can use one of them to test the jQuery code i write ?</p>
jquery
[5]
2,561,484
2,561,485
empty() does not work when passing data from an object. Why?
<p>I just discovered that <code>empty()</code> does not work when passing data from an object. Why is that?</p> <p>This is my code:</p> <pre><code>// This works $description = $store-&gt;description; if (!empty($description) ) echo $description; //This is not working if (!empty($store-&gt;description) ) echo $st...
php
[2]
36,150
36,151
any one can help me how to handle global event in android?
<p>i am firing golbal event from one apps and another apps recieve it which is running in background when user open or view it display message. i want to add notification like Blinking LED or play alert etc...</p>
android
[4]
1,976,998
1,976,999
Why is it good practice to use if (myBoolean === true) in JavaScript?
<p>As a follow-up to this question: <a href="http://stackoverflow.com/questions/13250176/is-there-ever-a-reason-to-write-if-myboolean-true-in-a-javascript-conditi">Is there ever a reason to write &quot;if (myBoolean == true)&quot; in a JavaScript conditional?</a> -</p> <p>Why is it good practice to use if (myBoolean =...
javascript
[3]
744,290
744,291
jquery ajax call with xml query not working. Need advice
<p>I've written some code that is supposed to load an xml file via AJAX, parse a couple variables, and alert them to the screen. It isn't working... Can any guru's out there tell me what I've done wrong?? </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax...
jquery
[5]
2,730,034
2,730,035
jQuery Flickr feed Plugin: How to open an image in new window?
<p>Using a jQuery Flickr Feed Plugin from <a href="http://www.gethifi.com/blog/a-jquery-flickr-feed-plugin" rel="nofollow">http://www.gethifi.com/blog/a-jquery-flickr-feed-plugin</a>. </p> <p>They are using "opening image in parent window" where we can see only image and in lightbox. </p> <p>But how can we open a fli...
jquery
[5]
4,654,058
4,654,059
Exporting flash content to PDF?
<p>I am using fpdf.php to export the PDF document from PHP. I'm still facing the problem that I couldn't export flash content in to the PDF</p>
php
[2]
3,726,743
3,726,744
Check real internet connection
<p>In my application I need to check whether device is connected to Internet. I tried using ConnectivityManager but it doesn't give a 100% precise result. For instance, I might have a wi-fi connection but still don't have access to internet resources. In my case I've got to open a VPN connection, after I've connected t...
android
[4]
5,483,902
5,483,903
show js array in html table
<p>I have a javascript array and I want to show parts of it in HTML.</p> <p>For example what html code would I use in the body to show a table of just the info from QR4 - the number and the country? There are other parts to the array so to show the whole QR4 array would be fine, but Id also like to know how to select...
javascript
[3]
1,054,601
1,054,602
Adding ScrollSpy to multiple Divs
<p>I have a div that un-hides according to the scroll spy parameters, but what if I want to add another div that appears under different conditions? I dont want both divs to appear at the same time, only after they are scrolled upon.</p> <p>below is my JQ:</p> <pre><code>&lt;script type='text/javascript'&gt; $(do...
jquery
[5]
5,246,670
5,246,671
get web page text via javascript
<p>Is there a JavaScript statement that will retrieve the contents/text from a web page?</p>
javascript
[3]
868,699
868,700
Instructions Page
<p>I have just finished my first app in Android and now I want to build a small instructions page that will open when the application opens. Id like the user to be able to read a small set instructions and then just click a close button on the same screen to close the screen and begin using the application.</p> <p>Sho...
android
[4]
27,123
27,124
Need to post JSONObject to PHP server through parameter
<p>From past couple of hour I was trying to send JSONObject to a PHP server. I need to send this object through a parameter.</p> <p>Some what like this:</p> <pre><code>message={"name":"Firstname","email":"test@test.com"} </code></pre> <p>here message is my parameter name.</p> <p>Yes I am using HttpClient for postin...
android
[4]
364,968
364,969
Get value from input
<p>I'm very new to jQuery so this might be a stupid question. I'm using a jQuery datepicker and I'm trying to fetch the date from an input to a simple <code>&lt;div&gt;</code>.</p> <p>The page works like this:</p> <ol> <li>You select a date with jQuery datepicker.</li> <li>You select a time with jQuery timepicker.</l...
jquery
[5]
397,682
397,683
how to retrieve .keydown() function
<p>How is it possible to retrieve all functionality from a .keydown() function?</p> <p>I need to retrieve the function, clear it and add a new function and in the end roll back to the origin function</p> <p>I don't have the origin function as a handler function so I can't use bind() and unbind() I think..</p>
jquery
[5]
4,124,620
4,124,621
ipod not loading proper date and time
<p>hey in my application i use date time picker to pick up the date and time, it runs perfectly on the simulator but when run on device the date and time changes and is not the one entered by the user. Can some one help as to what might be wrong!</p>
iphone
[8]
6,026,654
6,026,655
splitting by white space or multiple white spaces
<p>Right now I split words by one whitespace and store in an array: <code>var keywds = $("#searchquery").text().split(" ");</code></p> <p>The problem is there can/might be multiple white spaces. For example : </p> <pre><code>"hello world" </code></pre> <p>How would I still have the array = <code>[hello, world]<...
jquery
[5]
2,122,048
2,122,049
why destructor called twice when exception is thrown?
<p>I am very confused why the destrctor is called twice when excpetion is thrown and which point they are called??</p> <pre><code>#include &lt;iostream&gt; using namespace std; class base { public: base(){cout&lt;&lt;"constructor called"&lt;&lt;endl;} ~base(){cout&lt;&lt;"destructor called"&lt;&lt;endl;} }...
c++
[6]
4,637,125
4,637,126
Removing labels in Google Apps Account
<p>I wanted to ask that how do I remove the labels which are present in google apps account at one stroke.Now I can remove the labels but i need to do it one by one.How can i remove all the labels at one stroke.Thanx in advance.</p>
c#
[0]
4,482,363
4,482,364
how to disable outlook blank subject prompt in C#
<p>I want to disable default outlook subject pop up because its making subject optional.I want to have my own pop up which makes the subject mandatory. I am outlook developer and using C#.Net. Can anyone tell me how can i disable outlook blank subject pop up in C#?</p> <p>Thanks, Nidhi</p>
c#
[0]
3,201,658
3,201,659
Loading content in jquery scrolldown in firefox not working
<p>Here is my code it is working in chrome but not in firefox.</p> <pre><code>$(window).scroll(function(){ if($(window).scrollTop() == $(document).height() - $(window).height()){ alert(3); } }); </code></pre>
jquery
[5]
4,463,291
4,463,292
iPhone Developer account: Multiple Admins?
<p>I am doing some dev work for a client. She has a Dev License should would like to put the app under but since she is non-technical it has been frustrating since she has to be the one to submit the final app. </p> <p>Is there a way for a Dev License to have multiple Admins? I have it configured so I am a developer b...
iphone
[8]
4,643,763
4,643,764
How does milliondollarhomepage work?
<p>I noticed the pixel array is only one image, I wonder if it is dynamically created on a page request and then cached? Is that possible to do with .NET?</p>
asp.net
[9]
1,251,862
1,251,863
How do I commit changes to a text file on button press?
<p>I've written a small <a href="http://www.reddit.com/r/ubuntuappshowdown/comments/vbo7y/my_app_idea_ushare_gui/" rel="nofollow">app that creates a GUI</a> for setting up uShare. Currently it depends heavily on the 'w' (write) and 'a' (append) functions to generate/edit ushare.conf file. But I've been trying to find a...
python
[7]
275,549
275,550
Receiving memory leak
<p>I am new to iPhone Development. I am displaying lots of images on view.also i put button named LOAD MORE for more images.I am also downloading images on LOAD MORE event. Here is my code:`</p> <pre><code>-(void)btnLoadMorePressed { [appdelegate showLoader:MBProgressHUDModeIndeterminate]; RequestResponseMan...
iphone
[8]
1,238,004
1,238,005
How to create a Soundex function in PHP?
<p>I have the task of creating a PHP function that does the same exact thing as the built in PHP <code>soundex()</code> function, but I am unable to use the built in function. What would be a custom PHP function that would do the exact same thing as the <code>soundex()</code> function</p>
php
[2]
2,612,135
2,612,136
Android: Possible to have multiple distinct Shared Preferences per app?
<p>Is it possible to have multiple Shared Preferences per app? If you create a PreferenceActivity, the values by default are persisted to /data/data/[PACKAGE_NAME]/shared_prefs/[PACKAGE_NAME]_ preferences.xml</p> <p>Is there a way to have multiple such files and which one to use for a given PreferenceActivity?</p>
android
[4]
4,934,015
4,934,016
jQuery on() method does not bind events like live() did
<p>As described on <a href="http://api.jquery.com/live/"><code>http://api.jquery.com/live/</code></a>:</p> <blockquote> <p>As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. </p> </blockquote> <p>Right. <strong>So instead of</strong> </p> <pre><code>$('.dynamicallyCreatedElemen...
jquery
[5]
1,782,320
1,782,321
jQuery percentage width has up tick when animating down.
<p>Does anyone know why jQuery has an uptick in the width percentage when using animate to scale down the width of an image. This only seems to happen when you are scaling down a div with a percentage based width that is within a div that is also using a percentage based width. See <a href="http://jsfiddle.net/buz9L/" ...
jquery
[5]
2,310,505
2,310,506
android market is not showing my published application
<p>i have published android app but not appearing in android market.i m using android 2.2 and i have tried in samsung galaxy that is not showing my application so just give me some idea to fix this problem.</p> <p>this is my manifest.xml file:</p> <p> ...
android
[4]
731,405
731,406
sending and recieving files with php jquery
<p>how can i send and recieve files live like in yahoo chat..i.e if i send the file than the user on the other end will only get that file if he click on the accept button and if he click deny than the file should not upload and should be deleted from the server...i want to that via php jquery $.ajax()</p>
php
[2]
4,406,338
4,406,339
What is the Difference Between file:\D:\Interactives\Pallete\dist and Normal D:\Interactives\Pallete\dist
<p>This might be very basic Question for you. I am getting</p> <p><code>1).file:\D:\Interactives\Pallete\dist</code> as Output from the </p> <p><code>String jardata_path_parent=jarFile1.getParentFile().getParentFile().getPath(). toString();</code></p> <p>Can any one tell me Is there any Difference between Both of th...
java
[1]
1,158,846
1,158,847
Simple hello world for Android app won't display text
<p>I recently bought an Android phone and am trying to learn to code my own apps. Unfortunately after the first ten seconds I ran into the problem where I can't even get the <a href="http://developer.android.com/resources/tutorials/hello-world.html" rel="nofollow">"hello world" tutorial</a> to display "hello world."</p...
android
[4]
4,470,381
4,470,382
Java JPane Option Window Problems
<p>This last program we did, stupid simple, was to just use a jpane and graphics to draw 3 non primative shapes but I need a way so that a message (JOptionPane) shows up AFTER the JPane is closed> if you have it after in the code, they both go at the same time</p>
java
[1]
3,567,210
3,567,211
JQuery - Fadein an ajaxForm() page call
<p>I have this script that opens a new page inside a span:</p> <pre><code>$(document).ready( function() { $('#botao').click( function() { $('#pesquisar').ajaxForm({ type: 'POST', target: '#resultado' }); }); }); </...
jquery
[5]
4,127,114
4,127,115
Intent_filter splash screen manifest Android
<p>I have a main class and a splash screen. the splash doesn't want to show and I'm fairly certain its the manifest.</p> <p>Any thoughts?</p> <pre><code> &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:debuggable="true"&gt; &lt;uses-library android:name="...
android
[4]
3,659,597
3,659,598
custom implementation of interface methods
<p>I have a doubt in this scenario, I have posted some example code here....</p> <pre><code>public interface a{ public void m1(); public void m2(); public void m3(); . . . public void m100(); } public class A implements a{ public void m3(){ // i...
java
[1]