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
303,209
303,210
How to make change on the video stream in real time ?
<p>I want to make some change on the video that come from the camera. So i using class that extends the class SurfaceView and implements SurfaceHolder.Callback.</p> <p>Now, i still don't find any way to make this change. How can i do it? </p>
android
[4]
2,317,420
2,317,421
Why is my JavaScript code behaving strange?
<p>Could someone explain why delete works in second function not in first?</p> <pre><code>var myFunction = (function (val) { delete val; return val; })(10); console.log(myFunction); var myFunction1 = (function () { myVar = "test" delete myVar; return myVar; })(); console.log(myFunction1); </code>...
javascript
[3]
4,254,188
4,254,189
reading a php file with javascript on the same domain
<p>What I'm trying to do is simple. I have a <code>read.html</code> on the domain and it has a <code>Javascript</code> code in it that will read a php file on the same domain. I was able to get the code of another html file. But when I try to read a php file I only get what I see in the browser.</p> <p>What I get as ...
javascript
[3]
3,937,128
3,937,129
redirect a user to the homepage when he access a page without logging in
<p>Well I have a question, See for example I have some web pages on my website like <code>profile.php</code> , <code>photos.php</code> and some more</p> <p>Okay when user logs in he will be redirected to his <code>profile.php</code> but i got a question suppose if user enters this url without logging in like www.somew...
php
[2]
3,238,910
3,238,911
Override greyed out effect of element
<p>I have this line of jQuery which disables all buttons once an event has been triggered. </p> <pre><code>$("button").attr("disabled", "disabled"); </code></pre> <p>Disabled buttons are greyed-out by default, but I was wondering if there was a way to override this behaviour so that the buttons are disabled, but with...
jquery
[5]
2,051,863
2,051,864
how to draw custom gallery in android
<p>I want to develop an app based on the image in which thumbnails can move from top to bottom and left to right simultaneously.<img src="http://i.stack.imgur.com/jyBEH.png" alt="enter image description here"></p> <p>please refer the image where gray parts are the thumbnails. I want to know from where i can start </p>...
android
[4]
1,326,436
1,326,437
session_regenerate_id(true) not work
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4345014/close-session-and-start-a-new-one">Close session and start a new one</a> </p> </blockquote> <p>I use wampserver2.1 php5.3.3, I found session_regenerate_id(true) not work in my script,document says when I...
php
[2]
5,273,983
5,273,984
Enable And Disable element rules
<p>I have to enable and disable a element rules in run time, anyone knows how can i do that? I tried to do something like $(element).rules('disable'), but this don't work fine.</p>
jquery
[5]
2,145,577
2,145,578
How to get the images and data stored in the database?
<p>I have created a database namely newwork and table name property. In this database I have stored user details and one image. Now I want to display all the data from one field and stored image from the same field in a new page. Please help me for this program. The fields are property_id, property, location, image. <...
php
[2]
3,910,077
3,910,078
Wordpress to end support for PHP 4?
<p>Recently getting into wordpress plugin development, I started to investigate how to make my code backward compatible to php 4+. I've focused only on php 5.1+ for the past 5 years, so this was an ordeal. </p> <p>Anyway, when looking at some plugins, one of them had this description:</p> <blockquote> <p>IMPORTANT:...
php
[2]
565,871
565,872
Best practices for converting from int to String?
<p>I'm working on a project where all conversions from <code>int</code> to <code>String</code> are done like this:</p> <pre><code>int i = 5; String strI = "" + i; </code></pre> <p>I'm not familiar with Java. Is this usual practice or is something wrong, as I suppose?</p>
java
[1]
4,473,441
4,473,442
How to split using date not using IP address
<p>I have a large string having dates, Ip addresses etc.. I need to split the content with date and did that with </p> <pre><code>[0-9]+[/.-])([0-9]+[/.-][0-9]+ </code></pre> <p>But it also split using the IP addresses. What the only difference between date and IP address is date have 3 numbers and Ip have 4 numbe...
php
[2]
2,437,489
2,437,490
Clicking on a P Tag happens to fast in Jquery?
<p>I have the following Jquery:</p> <pre><code>$('.agendaNav').click(function(event){ $(this).find('.rightArrow').attr('src', '/images/arrowdown.png'); if($('.agendaDay').is(':hidden')){ $('.agendaDay').show(); } else { $('.agendaDay').hide(); } }); </code></pre> <p>Here is the HTML</p...
jquery
[5]
4,644,633
4,644,634
disable GPS signal during location update
<p>I am making location tracker application in android so I call a function locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, listener);</p> <p>So in this example i set 5minute interval. Now my question is why GPS signal is constantly activate, though my interval time is 5minute..</p> <p...
android
[4]
2,426,030
2,426,031
c# add tab to tabControl from separate form
<p>Ok, what I am trying to do is I have a form, MainForm, that has a TabControl and another form called newProject that I'm trying to create a new tab on the TabControl of the MainForm with.</p> <p>This is the code on my newProject Form</p> <pre><code>void wizard1_FinishButtonClick(object sender, CancelEventArgs e) {...
c#
[0]
2,897,365
2,897,366
Exception loading C# StringCollection Setting
<p>In a C# app a client is getting following error</p> <pre><code>The property 'PlayLists' could not be created from it's default value. Error message: Could not load file or assembly '0 bytes loaded from System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. An attempt ...
c#
[0]
2,258,776
2,258,777
Custom DatePicker
<p>I have two queries... I am about to write a custom DatePicker where in could control the number of components as well. Like Date and Month only and no Year.</p> <p>Q1) Do you have any custom code already available which takes care of leap year logic? Q2) I thought of writing separate arrays of days... but writing n...
iphone
[8]
4,759,588
4,759,589
Returning an array of tm* structs from a function
<p>Im trying to create an array of tm* structs, and then return them at the end of the function. This is what i have at the moment:</p> <pre><code>struct tm* BusinessLogicLayer::GetNoResponceTime() { struct tm* time_v[3]; struct tm* time_save; int s = 3; time_save = LastSavedTime(); time_v[0] = time_s...
c++
[6]
1,289,029
1,289,030
Self hosted jquery OR Google hosted jquery?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2859612/should-i-use-a-hosted-version-of-jquery-which-one">Should I use a hosted version of JQuery? Which one?</a> </p> </blockquote> <p>I have been thinking of this for a while now because I am wondering if whi...
jquery
[5]
2,935,489
2,935,490
Play a melody on click
<p>When I click on a view, I want to play a melody. The problem is that when I click very fast, the melody starts from the beginning and I want it to play to the end and at this time screen must not react to clicks (because I don't want the melody to be played 10 times if I clicked very fast 10 times). I wrote somethin...
android
[4]
2,791,722
2,791,723
Have a variable exist in all functions of a class?
<p>I have a small problem - I want to decrease code duplication in my site, and the best way that I can see of doing that is to remove a lot of unnecessary instances of variable setting.</p> <p>One of the most common is the $baseUrl variable, which contains the http host and php self values, for convenience. However, ...
php
[2]
2,344,558
2,344,559
trouble catching enter keystroke in javascript
<p>this seems simple, but i can't make it work.</p> <p>i'm trying to catch an enter keystroke, and run some code, but when i hit enter, the page refreshes and nothing happens.</p> <p>here's my script</p> <pre><code>function GetChar(event) { var keyCode = ('which' in event) ? event.which : event.keyCode; if (...
javascript
[3]
4,540,421
4,540,422
Can't run Hello World on my Android device
<p>What's with the downvote? I know this is a dumb question but is it not a "good" question?</p> <p>I've never done any Android programming but thought it might be fun to put together a toy app for my morning and evening commutes.</p> <p>So I'm going through <a href="http://developer.android.com/training/basics/first...
android
[4]
3,996,473
3,996,474
Populating a PHP variable from a form post
<p>I am trying to pass over a value from an HTML form. Basically I have 1 text box in the form, and the form posts to itself. I am using this to check to see if a coupon code is valid. If I enter a valid coupon in to the text field and hit the enter key on keyboard, it calls the page (posts to same page), passes ove...
php
[2]
121,638
121,639
create a string of variable length in python
<p>i need to create a string consisting of spaces, and the length of the string needs to be determined at runtime.</p> <p>here is what i am doing:</p> <pre><code>suffix = "".join([' ' for x in range(0, max)]) </code></pre> <p>There must be a <strong>better</strong> way, a more <strong>clever</strong> way, and an <st...
python
[7]
5,406,238
5,406,239
USB modem serial port
<p>I have made an application that is depends on connecting to a serial port then reciving SMS and reading it from GSM module by C#. When i run this code by GSM module it works well but when i run this code by USB module it dosen't see the SIM card and when i connect to the port that USB operates on it tell me that t...
c#
[0]
3,946,814
3,946,815
bitmap convert small jpg images not heavy images
<p>hi i finally get the problem this is my code which i post earlier <a href="http://stackoverflow.com/questions/13910206/sqllite-database-work-in-emulator-but-not-work-in-real-device">Sqllite database work in emulator but not work in real device</a> when i run my application in emulator is work fine and load images wh...
android
[4]
2,293,541
2,293,542
ASP.NET development server cannot find localhost ?
<p>I have a web site opened in VS 2008 . I try to run it from VS2008 and the asp.net development server starts up.But the browser returns the following error Firefox can't find the server at www.localhost.</p> <p>The web address in browser is <a href="http://localhost:2921/WebSite2/Default2.aspx" rel="nofollow">http:/...
asp.net
[9]
1,586,864
1,586,865
Storing file path and mapping
<p>I am new to C# so what I want is to map the file path and compare it with </p> <pre><code>"./non-XFA.pdf" and "./XFA.pdf" </code></pre> <p>So, this is what I wrote</p> <pre><code>string[] testFiles = {"./non-XFA.pdf", "./XFA.pdf"}; </code></pre> <p>I was thinking to write a foreach loop for this but I could not ...
c#
[0]
1,341,563
1,341,564
Android wireless display
<p>I'm a fairly new android programmer and I've been having a rummage online about displaying an android screen over the network. I know it is possible to mirror the display using apps such as MirrorOp Sender. What I'm looking for is the android device to display one thing on the android device itself and something com...
android
[4]
5,822,899
5,822,900
Interesting javascript quirks
<p>I have this following if statement:</p> <p>RG is "100" and max is "85"</p> <pre><code>if (RG == "" | RG &gt; max) { //Doesn't execute } </code></pre> <p>Since RG isn't "" and RG is larger than max why isn't the code executing? I believed the operator was short circuiting (hence only the one p...
javascript
[3]
535,435
535,436
How to implement a if test in a customized class
<p>Is there something like <strong>_<em>if</em>_</strong> or <strong>_<em>not</em>_</strong> methods implemented in a customized class? So when I instantiate a new class, I can use </p> <pre><code>if myobject: return True </code></pre> <p>or</p> <pre><code>if not myobject: return False </code></pre>
python
[7]
5,174,397
5,174,398
NimbleKit: call objective c method from javascript method
<p>i am new in NimbleKit.I use the following code to call a objective c method from javascript using NimbleKit</p> <pre><code>NKRegisterClass("MyObjectiveCClassName"); function removeCarouselView() { CallNKitAction("methodName?className=MyObjectiveCClassNam"); } removeCarouselView...
javascript
[3]
2,545,966
2,545,967
How to declare arraylist to store integers and strings in android?
<p>I am new to arraylist concept. Please help me how to declare arraylist and add strings and integers to it.</p> <pre><code>String str = quesid+","+k1; ArrayList&lt;Object&gt; arl=new ArrayList&lt;Object&gt;(); arl.add("str"); </code></pre> <p>In the above co...
android
[4]
2,016,195
2,016,196
how to turn off phone ringer for incoming calls?
<p>How does one turn off phone ringer for incoming calls? Can this be done programmatically? Right now I am using below code but it's not working:</p> <pre><code>AudioManager am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); am.setRingerMode(AudioManager.RINGER_MODE_SILENT); </code></pre>
android
[4]
3,631,514
3,631,515
how to get selected option from a dropdownlist using jquery?
<p>My dropdownlist has an ID of ID=ddltest</p> <p>How can I reference the selected item in the drop down using jquery?</p>
jquery
[5]
4,533,707
4,533,708
How do I construct a javascript Date object from string
<p>I have the date value "06/12/2012" in string format. How do I construct a Javascript Date object, so that I can perform before/after comparisons?</p>
javascript
[3]
685,523
685,524
Incrementing characters being read
<p>I am trying to decode an input file that looks something like this: </p> <pre><code>abbaabbbbaababbaabababaabababaabbababaabababababababa... </code></pre> <p>and compare it to a makeshift mapping I have made using two arrays</p> <pre><code>int secretNumber[10]; string coding[10]; coding[0]="abb"; coding[1]="aabb...
c++
[6]
4,101,663
4,101,664
AudioTrack class with enqueue, play, stop, pause, resume
<p>I need to create a class to handle audio AudioTrack.</p> <p>In this class must have methods that enqueue audiotracks and play them in sequence synchronously.</p> <p>Could anyone help me?</p> <p>I do not know dequeue synchronously and play each part of the audio.</p> <p>I need to use it because the data is passed...
android
[4]
5,549,500
5,549,501
Else statement for Login Function not Always Working Correctly
<p>The code below is part of a PHP / MySQL login system that I am using. It determines whether or not the login fields are displayed, and it is supposed to only display them when the user is not logged in. Sometimes it displays them when is user is logged in, logging the user out. </p> <p>Any ideas on what I should...
php
[2]
1,487,219
1,487,220
move_uploaded_file()
<p>file1.php - This file gets $_FILES['foto'] and upload it to $Dir_Upload</p> <pre><code>$Dir_Upload = "httpdocs/upload/"; ini_set('post_max_size', '8M'); ini_set('upload_max_filesize', '8M'); .... if (isset($_FILES['foto']) AND ($_FILES['foto']['size'] != 0) ) { $file_temporaneo = $_FILES['fo...
php
[2]
4,780,907
4,780,908
What is $(0) and $(1) used for in jQuery?
<p>While reading the following performance test, I noticed the author used <code>$(0)</code> and <code>$(1)</code>. What is the purpose of this?</p> <p><a href="http://jsperf.com/scriptjunkie-premature-3">http://jsperf.com/scriptjunkie-premature-3</a></p> <pre><code>var $a = $(0); function fn_1() { var $a = $(this)...
jquery
[5]
5,117,790
5,117,791
Reveal content by animating height (not hiding all content)
<p>I want to to partially display a list and then when a button is clicked i'd like to change the class of the button and show the full list by using the full height of the div, then when the button is clicked again i'd like it to start from its initial reveal, not hide the whole thing.</p> <p>HTML:</p> <pre><code>&l...
jquery
[5]
3,697,278
3,697,279
Asp.net filebase syste to local host in window7
<p>I have a problem while I'm trying to convert my file base web application into local host. I use VS 2008, Win 7 Ultimate. Fist create site with IIS Manager. Then when I'm trying to open that site from VS, it show "Unable to open the Website '<a href="http://www.example.com" rel="nofollow">http://www.example.com</a>'...
asp.net
[9]
3,420,970
3,420,971
Correct way to pause Python program
<p>I've been using the input function as a way to pause my scripts</p> <pre><code>print("something") wait = input("PRESS ENTER TO CONTINUE.") print("something") </code></pre> <p>is there a formal way to do this?</p>
python
[7]
2,883,010
2,883,011
calulating javascript event on keyup
<p>the following works in Jfiddle-but when i use it in original form, the total_full and total_half fields are calculated automatically from other fields, and therefore do not have a keyup or keydown event? therefore the "sub_total" field is not calculating when the "total_full" and total_half fields are updated?</p> ...
javascript
[3]
1,008,466
1,008,467
Detecting if browser navigating to another page
<p>I need to check if browser is navigating to another page or closing. My idea is;</p> <ol> <li>Create global variable <code>var isNavigating = false;</code></li> <li>Bind click event to make <code>isNavigating = true</code> of every anchor which will navigate to another page </li> <li>Check if <code>isNavigating</co...
javascript
[3]
1,342,535
1,342,536
jQuery stop(); question
<p>Im working on some hover effects on thumbnails. The function that im using are slideup and slidedown. Ive added the stop(true, true); to stop queuing of the animation. But it looks kinda bad when you move the mouse over the object fast. I would like a similar effect to the thumbnails on <a href="http://www.mio.se/" ...
jquery
[5]
1,115,797
1,115,798
How to ensure that one time is always less than another
<p>I've got two times that need to be stored into a database. The time format is hh:mm:ss with NO DATE. These times can be changed by the users on the system. One is a time on and the other is a time off. The time off should always be greater than the time on within a 24 hour cycle.</p> <p>Here is the part that I'm ha...
php
[2]
3,709,002
3,709,003
Is it OK to have an empty constructor?
<p>For the code below, I want to use module pattern to keep the members private and access them through a getter. It is so simple there is no need to put any initialization in the constructor. Is this O.K?</p> <pre><code>/** *Global - in process of removing */ var Globals = ( function () { var globals = ...
javascript
[3]
1,658,589
1,658,590
Get value for Textbox with separator
<p>I'd like get a string with the value from some Textbox (with a specific class) and the values should be separate by a comma.</p> <p>Any idea ?</p> <p>Thanks,</p> <p>Update1 :</p> <p>I have this </p> <pre><code> &lt;input type="text" id="A" class="test" value="aa"&gt; &lt;input type="text" id="B" class="tes...
jquery
[5]
4,452,427
4,452,428
Exception in thread "main" java.lang.noClassDefFoundError org/jdom/input/SAXBuilder
<p>Hello this is Lonnie Ribordy,</p> <p>I have a program i am trying to write and part of it uses a 3rd party api called JDom, when i compile my program the it compiles perfectly fine.. but, when i try to run it i get the Exception in thread "main" java.lang.noClassDefFoundError org/jdom/input/SAXBuilder</p> <p>my p...
java
[1]
4,485,623
4,485,624
How do I get part of a URL and redirect the user to a URL with that part of the URL in?
<p>I want to create a bookmark that runs javascript. It will get part of a URL from a game's forum that I use and take the user to an edit page for it.</p> <p>The url for the post could be something like this for example - <a href="http://www.roblox.com/Forum/ShowPost.aspx?PostID=78212279" rel="nofollow">http://www.ro...
javascript
[3]
3,589,399
3,589,400
How to play audio from audio array on click in xml in android
<pre><code> public void getSound(String file) { MediaPlayer mp; try{ String SoundFile=file; System.out.println("Here is the File"+SoundFile); mp = MediaPlayer.create(getActivity().getBaseC...
android
[4]
937,196
937,197
How to use android third party library twitter and myspace in same application?
<p>I am Integration Twittor which uses signpost core 1.2 and signpost commons 4.1.2 signpost commons 4.1.1-snapshot for authorization.</p> <p>But problem arises when i integrate it with MySpace app which use signpost core 1.1 sanpshot and signpost commons 4.1.1-snapshot for authorization. </p> <p>it shows error java....
android
[4]
746,179
746,180
How to use function with parameters and check the parameters value "if condition" using JQuery
<p>Below function was not working. please correct my mistake.</p> <pre><code>function setupScript() { OtherOnchanged('call_response', 'SPAN_Other', 'Other'); } function OtherOnchanged (onChangedId, spanId, valueToCheck) { if ( $("#" + onChangedId).val() == valueToCheck) { alert ("Working"); } } <...
jquery
[5]
3,236,591
3,236,592
Form without a border style
<p>I've stumbled upon a problem. I'm using 'FormBorderStyle.None', and when I click the icon of my running application on the taskbar it does not minimize like it should, although when I use anything BUT 'FormBorderStyle.None', it seems to work perfectly. Please advice me of a good way to tackle this problem. Thanks!</...
c#
[0]
1,526,929
1,526,930
to which activity ,the child activity will return the result in tabActivity Android
<p>I Created the TabActivity Like this. TabGroupActivity -> A -> B -> C. If i write function to pick a contact in Activity C means..... to Which activity the data will return. .? i am total confusion in this. please solve this issue</p>
android
[4]
4,663,585
4,663,586
Hide the url opened using action view in android
<p>Hello In my android application i would like to open for suppose <a href="http://www.google.com" rel="nofollow">http://www.google.com</a> using intent.But i would like to hide the link that is being passed. Is there any way that i can achieve this in android.</p> <p>I am using the below code.</p> <blockquote> <...
android
[4]
98,133
98,134
__coerce__ vs. __ihook__ difference?
<p>in python, you have <code>__coerce__</code> and <code>__ihook__</code>. According to <a href="http://www.python.org/dev/peps/pep-0203/" rel="nofollow">PEP 203</a> (Augmented Assigments) they are both invoked, in this order to perform in place operations on objects, with <code>__coerce__</code> called first, and <cod...
python
[7]
524,797
524,798
PHP List Structure
<p>Let's say I have an array containing these items:</p> <pre><code>$test = array(Item1, Item2, Item3, Item4, Item5, Item6, Item7, Item8, Item9); </code></pre> <p>How can I print this structure using for, or foreach?</p> <pre><code>&lt;ul&gt; &lt;li&gt; &lt;ul&gt; &lt;li&gt;Item 1&lt;/li&gt; ...
php
[2]
2,382,389
2,382,390
Do Jquery have any plugin for Date & Time pick
<p>I need a jquery datepicker in 24 hour pattern.</p> <p>mm-dd-yy hh:mm:ss</p> <p>08-20-2010 14:45:33</p> <p>I found so many date pickers in jquery , but no one is giving time!!!</p> <p>Any body know about both date and time picker.?? jquery jquery ui anything</p>
jquery
[5]
5,981,361
5,981,362
list datatype in java which dosen't add duplicates
<p>Is there any list datatype in java which dosen't add duplicates. I am not worried about the order in which they are inserted in the list but I would like to have a list which dosen't add duplicates. Or might be the case if the same element is present it just overrites it. Is there something already build in JDK or m...
java
[1]
5,027,392
5,027,393
Visual C#, process grows until I get memory errors relating to a UserControl using a loop to draw graphics
<p>Using Visual C# 2008 Exp Edition, I've noticed that with my project loaded the process is consuming ~70,000K of memory. After a few hours this builds up to about ~500,000K.</p> <p>At this point a <code>UserControl</code> containing a <code>PictureBox</code> (within a <code>Panel</code>) shows a memory error in Visu...
c#
[0]
4,047,958
4,047,959
How to find url using preg_match in php
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2762260/detecting-a-url-using-preg-match-without-http-in-the-string">Detecting a url using preg_match? without in the string</a> </p> </blockquote> <p>I want to find url like,</p> <pre><code>1. www.test.com 2...
php
[2]
1,060,020
1,060,021
auto boxing and boxing of wrapper classes
<p>in wrapper classes we have two types of methods parseXxx() and valueOf() in every wrapper class for interconversion between primitive and wrapper objects.recently java 1.5 introduced auto boxing and boxing.so why they didn't deprecate those methods.</p>
java
[1]
621,555
621,556
How to check if LocationManager.NETWORK_PROVIDER is available?
<p>How to check if LocationManager.NETWORK_PROVIDER is available ? I enabled in AndroidManifest.xml but I need to check that in code and if is not available to use GPS_PROVIDER. Can someone help me ?</p>
android
[4]
5,465,755
5,465,756
Warning, page expired page in ASP.Net
<p>I want to protect the users by not going back to the previous pages, consider the ex in banking sites where if we click "back" button, it shows "warning page expired" page.</p> <p>In Asp.Net, how to do that.</p> <p>I tried with the following options, but it doesnt work.</p> <p>Option 1:-</p> <pre><code>&lt;meta ...
asp.net
[9]
1,822,089
1,822,090
target schema for validation to ie7 in asp.net 2.0
<p>i am trying to use dojo in my latest project in asp.net 2.0 i keep get error message validation (internet explorer 6) attribute 'djconfig' is not a valid attribute of element 'script' how do i resolve this error</p>
javascript
[3]
1,052,254
1,052,255
interactive graph python wx.lib.plot. selecting some points
<p>I have question and want to see if it can be realized in wxpython. I would like to plot data on wxpython, and then use the mouse to select some points which are plotted, using the mouse. At the moment i am using wx.lib.plot and using the PlotMarker</p> <p>Is there a way of doing this with wx.lib.plot or do i hav...
python
[7]
4,773,750
4,773,751
how can I submit form without one field (no ajax)
<p>I have a form. I would like to submit form and send all data without one input in this form with id: someField. How can I do that. My jquery code is now:</p> <pre><code> $("#mForm").submit(); </code></pre>
jquery
[5]
1,114,526
1,114,527
How to get a variable with multiple form inputs
<p>I just started learning jQuery and I got stuck on something. I have a form which ask for a name, adress, email and phonenumber. Now I would like to get all this info in just 1 variable when the submitbutton is pressed. Then I would like to show this variable in the next tab.</p> <p>Can someone help me out?</p>
jquery
[5]
2,840,043
2,840,044
jQuery not filtering divs as nth-childs?
<pre><code>&lt;head&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;script&gt; &lt;script&gt; $(document).ready(function() { $('.sss').filter(':nth-child(n+2)').hide(); $('.sss').on('mouseenter', '.question', function() { $(this).next().slideDown(20...
jquery
[5]
5,211,263
5,211,264
Convert emails to buttons inside contentEditable
<p>I'm trying to convert emails to buttons inside a contentEditable using Regex, but I'm realizing it will need too much time for me to handle cursor location, to add a delete functionality, etc. What I expect look like it:</p> <p><img src="http://i.stack.imgur.com/TADdP.png" alt="enter image description here"></p> <...
javascript
[3]
860,919
860,920
How to play media files (3GP/swf files) locally inside webview
<p>Iam looking for playing media files inside webview Can you please help me out ..what iam missing..I loaded webview as : <code>_webview.loadUrl("file:///android_asset/3gp.html");</code> and the code inside my html file is as: </p> <pre><code>&lt;body&gt; &lt;object width="550" height="400"&gt; &lt;param name="movie"...
android
[4]
5,222,102
5,222,103
how to detect voice when applicaion is in sleep mode?
<p>I am implementing one iphone applicaiton.In which I have added voice recoding functionality. It works fine when applicaion is open.But when applicaion started recording voice and I press home button then it goes in sleep mode.at that time sound is not recored..</p> <p>But I want to record sound when applicaion is i...
iphone
[8]
986,098
986,099
PHP mail() attachment wasn't correctly decoded
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1438594/php-mail-attachment-is-corrupt">PHP mail() attachment is corrupt</a> </p> </blockquote> <p>I am trying to send email with attachment using PHP mail() function. Email goes through properly and attachment ...
php
[2]
1,725,699
1,725,700
How to overload stream operators in C++
<p>I need class to overload stream operators &lt;&lt; (inserter) and >> (extractor) that insert or extract a private integer variable</p>
c++
[6]
4,503,910
4,503,911
Android Intent Action "ACTION_CALL" - Correct way of getting back to own application after call?
<p>I got one question regarding the intent action "ACTION_CALL". </p> <p>What is the correct way of getting back to the own application/activity after the user ends the call? </p> <p>The only way that came to my mind uses a PhoneStateListener in a background services that waits for the CALL_STATE_IDLE event starting ...
android
[4]
4,868,407
4,868,408
Regarding Activity.getApplicationContext()
<p>I have created a custom adapter for a list view. In the constructor of the adapter i do the following:</p> <pre><code>public CustomListAdapter(Context context, int textViewResourceId, ArrayList&lt;CatalogueItemListData&gt; items,int width) { super(context, textViewResourceId, items); this.context =c...
android
[4]
5,828,292
5,828,293
the activity restarts when the phones View Mode is changed
<p>In my application while playing a video if i change the phone's mode the video does not continue to play but it starts from the beginning. all i understand is the activity is recreated when the mode is changed,how do i fix this i have no idea please someone help me fix this. thanks in advance </p>
android
[4]
5,978,805
5,978,806
Array of string not working
<p>I use a simple array: contentHouseOne[] that contains strings. But in the Do/While loop it isn't working! It seems like the code don't understand that it's a string when a new object is to be created!? It works when I hardcode the string like I show below. Help is preciated! Thanks!</p> <p>This isn't working:</p> ...
c#
[0]
2,069,442
2,069,443
Undefined offset error in PHP from json response
<p>The code I wrote supposed to do two things: 1- shows the latest post from a twitter user 2- searches for a specific keyword. For the first part, it works perfectly but it fails in case of 'search' option by dumping this error message:</p> <blockquote> <p>PHP Notice: Undefined offset:</p> </blockquote> <p>I run ...
php
[2]
4,784,541
4,784,542
Run my jQuery function before/after plugin for the same event listener?
<p>Im using a jQuery plugin and separately im writing my own jQuery which is initialise on dom ready. If both the plugin and my code do something on an event (say a div is clicked) how can I tell which code is run first? </p> <p>Also, is there a way I specify which code I want to run first? Thanks </p>
jquery
[5]
3,252,632
3,252,633
space in path using java
<p>Hi, I have a big problem. I'm making a java program and I have to call an exe file in a folder that have whitespace. This program also has 2 arguments that always have whitspace in the path. Example:</p> <p>C:\Users\Program File\convert image\convert.exe C:\users\image exe\image.jpeg C:\Users\out put\out.bmp</p> <...
java
[1]
4,727,517
4,727,518
how to reload UIPicker elements - iPhone
<p>I have seen many application reloading table data &amp; table.</p> <p>My Question is "Is it possible to re-load a picker view elements?"</p> <p>[tableView reloadData];</p> <p>this statement - refreshes the tableView,</p> <p>How this is possible in UIPickerView elements?</p>
iphone
[8]
150,910
150,911
in c# are methods private by default?
<p>If I have a method that does not specify its Accessibility Level will it be Private by default?</p> <pre><code>void Item_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { throw new NotImplementedException(); } </code></pre> <p>Is the above method private?</p>
c#
[0]
4,659,539
4,659,540
Jquery: Find Text and replace
<pre><code>&lt;div id="id1"&gt; &lt;p&gt; apple &lt;/p&gt; &lt;p&gt; ball &lt;/p&gt; &lt;p&gt; cat &lt;/p&gt; &lt;p&gt; dogsss &lt;/p&gt; &lt;/div&gt; </code></pre> <p>How Do I change <code>dogsss</code> to <code>dollsss</code> using <code>jquery</code>?</p>
jquery
[5]
4,647,538
4,647,539
Forward button functionality
<p>Can i give functionality of a forward button in my android app. In case of web app, the URLS and session id is stored in the stack so we can provide this functionality. But can we provide a similar kind of functionality in our mobile app using activities.If yes then how and what would be the implications of the same...
android
[4]
5,139,707
5,139,708
Reading table values per column
<p>I have two columns in my table and the rows are created dynamically. </p> <pre><code>&lt;table id ="datatable"&gt; &lt;tr&gt; &lt;td&gt; &lt;input type ="text"&gt; &lt;/td&gt; &lt;td&gt; &lt;input type ="text"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>For eac...
jquery
[5]
131,144
131,145
Start application in background on bootup
<p>I would like to start my application when the phone boots up. But the user should not know that the application has started. I am doing the boot up by receiving the BOOT_COMPLETE event in a broadcast receiver and am able to minimize the application by using moveTaskToBack(true). But my application is visible for a s...
android
[4]
3,085,985
3,085,986
Indent Selected Text With Javascript
<p>How can I indent each line of the selected text in a textarea control using JavaScript. Something similar to the <strong>Code Sample</strong> button of the <strong>Stack Overflow</strong>'s editor.</p> <p><strong>UPDATE:</strong> Viewing the code of <strong>And</strong>, I wrote a solution, but only works with Fire...
javascript
[3]
2,877,280
2,877,281
Incorrect variable when calling callback in JS
<p>I am getting the wrong filename in the following code. I'm sure its obvious what the mistake is but i dont see it. I get the correct amount of errors however all the filename are the same rather then the filename in error.</p> <pre><code>for(var i=0; i&lt;this.files.length; ++i){ var f = this.files[i]; var ...
javascript
[3]
3,317,876
3,317,877
Creating a Spinner from an ArrayList<Object>
<p>I am wanting to create a Spinner from an ArrayList of Objects I have created and therefore when one is selected I can go back to that ArrayList and get the rest of the information from it</p> <p>Example</p> <pre><code>public class ObjectName { private int ID; private String name; private String name2; ...
android
[4]
3,034,025
3,034,026
PHP Not Throwing Any Errors
<p>Today I noticed that for some reason, my PHP dev environment is not displaying any errors, for syntax or otherwise.</p> <p>Was working on a WordPress plugin (with debug on for WordPress), and tested it by putting in a file</p> <p>Nothing. No errors, no warnings, nothing. I know the file is being called, because ...
php
[2]
2,516,949
2,516,950
javascript videos duration
<p>Hi friends I have got requirement for finding the duration of Videos using JavaScript. Can any one please help.</p>
javascript
[3]
2,872,373
2,872,374
Convert a number to the shortest possible character string while retaining uniqueness
<p>I have a number, say "123456", and I need to map it to a string, any string. The only constraint on the map functions are:</p> <ul> <li>each number must map to a unique character string (this means the string can be arbitrarily long)</li> <li>character string can only contain 0-9, a-z, A-Z</li> </ul> <p>What map f...
javascript
[3]
1,204,907
1,204,908
Push array while defining the key
<p>I have an array that looks like this:</p> <pre><code>$daysArray = array(2=&gt;array('#linkhere','linked-day')); </code></pre> <p>I need to push another array into here but define the key.</p> <p>I have tried:</p> <pre><code>$value= $key.'=&gt;array("#$event","linked-day")'; //$value= 2=&gt;array('/weblog/archive...
php
[2]
4,242,923
4,242,924
Video not playing in Android Device
<p>I have used videoview for playing the video from the url.. while trying it out in emulator i got the error msg as "Sorry this video cannot be played". i though that the error occurs because i am trying to run in emulator.. but even after installing into Android device, am getting the same error msg... Plz help me o...
android
[4]
563,673
563,674
python: list assignment index out of range
<pre><code> for row in c: for i in range(len(row)): if i not in keep: del row[i] </code></pre> <p>i am getting this error on the last line:</p> <pre><code>IndexError: list assignment index out of range </code></pre> <p>i dont understand how it can be out of range if it exists! please help</p>
python
[7]