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 |
|---|---|---|---|---|---|
4,151,698 | 4,151,699 | Getting trouble while uploading a file in PHP | <p>I'm using PHP as server side programming,I'm facing a different type of problem while uploading the images.If the uploading image is having below 8MB is uploading fine but if image size is increases then its not uploading.What might be the problem.I know I've to change in php.ini file,but where I don't know.please h... | php | [2] |
5,118,218 | 5,118,219 | Can we overide the popup that come when we click the red underline word in textview with Custom keyboard | <p>I'm working on custom keyboard , What I want to do is select a word from the currentInput and display a popup .</p>
<p>I'm not getting how to have to have click event on the word in CurrentInput view.</p>
<p>I have tried using onViewClicked , I can find a way to overwrite the exciting popup that opens.</p>
<p>Thi... | android | [4] |
278,549 | 278,550 | Remove unwanted words from string | <p>I have a csv file to read, but in one column there are some unwanted words.
It's easier to write the needed words into an whitelist array, than to make a blacklist.
This is what I tried, but i get an empty cell.
The following script is only used when the cell index is 5 (the column that I need to modify).</p>
<pre>... | php | [2] |
3,301,168 | 3,301,169 | Use javascript to hide element based on ALT TAG only? | <p>I have a wordpress site, and a plugin uses cufon text replacement. (I'm not entirely sure the actual way it does this, but it's not important).</p>
<p>I'd like to use a "display:none" on only a specific word or two. For example, on the mobile theme, I'd like to change "Contact Us" to only "Contact". The only way to... | javascript | [3] |
409,544 | 409,545 | wait a little before finish my activity | <p>What's the best way to wait before my activity is finished?</p>
<p>In fact I launch a new activity named MasterNumber from MainActivity with "startActivityForResult". MasterNumber send a SMS and shows a Toast to say "SMS Sent", but MasterNumber activity is closed so quickly that the Toast is showed in MainActivity... | android | [4] |
2,446,924 | 2,446,925 | Request source code from internal page using jquery same domain | <p>I'm trying to get the source of an internal domain page can have it basically cloned into a js file.</p>
<p>I'm not sure if it's possible, but I have attempted to start what the code might look like.</p>
<p>I realize the var source is probably where I go wrong as that will not function correctly.</p>
<p>Hopefully... | jquery | [5] |
4,337,809 | 4,337,810 | Is there a way to recognize an item is a file or a directory? | <p>I hope to know if there is a way to detect an item is a file or directory?</p>
| iphone | [8] |
639,200 | 639,201 | Casting from IEnumerable<Object> to IEnumerable<string> | <p>Recently I found a very surprising behavior in c#.
I had a method which takes <code>IEnumerable<Object></code> as a parameter and i was passing
<code>IEnumerable<string></code> but it's not possible.
While in c# everything can be upcast to Object than why this is not possible?
It's totally confusing for ... | c# | [0] |
2,278,384 | 2,278,385 | String Handling Issue | <p>On my client-server system, a user can change a value of a <strong>Variable</strong>, say "System Power" in a drop-down box ("ON", "OFF", "STANDBY"). </p>
<p>When clicking an index, a message gets passed to the server to change the variable that captures the state of "System Power" in this case.</p>
<p>Currently, ... | asp.net | [9] |
2,968,012 | 2,968,013 | Totalling up numbers within ArrayList out displaying | <p>I want to output the total of some numbers in a text file, with the use of an <code>ArrayList</code> to seek them out etc, I am unsure of how I would do this? here is my code:</p>
<pre><code>import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public clas... | java | [1] |
4,607,011 | 4,607,012 | using header() is good in this context | <p>I have a user who registered on my website with some email and password. As soon as he registers we will send a confirmation code to his email and ask him to enter the number to sign up.</p>
<p>Unfortunately there is a possibility that the user may fill the data and may logoff today without entering the confirmatio... | php | [2] |
113,575 | 113,576 | c# Time formatting | <p>I have a time field as such: 06:30 PM.
What formatting do I need so that it shows up as 6:30 PM.
I tried:</p>
<pre><code> String.Format("{0:t}", data.PgTime)
</code></pre>
<p>but still getting 06:30 PM</p>
| c# | [0] |
1,702,024 | 1,702,025 | Avoid button multiple rapid clicks | <p>I have a problem with my app that if the user clicks the button multiple times quickly, then multiple events are generated before even my dialog holding the button disappears</p>
<p>I know a solution by setting a boolean variable as a flag when a button is clicked so future clicks can be prevented until the dialog ... | android | [4] |
2,100,641 | 2,100,642 | php include from a subfolder | <p>I have been using to get my files</p>
<pre><code><?php include 'example.html'; ?>
</code></pre>
<p>however how do you get them if they are in a subfolder: For example</p>
<pre><code>pictures/example.html
</code></pre>
| php | [2] |
2,862,276 | 2,862,277 | Get Selected HTML in browser via Javascript | <p>I have a requirement for my web app to allow the user to "Print Selected Only". In other words, a user selects text and potentially images and then clicks this option. I've seen examples of getting selected text with Javascript, but haven't found a solution for getting the selected html itself. </p>
<p>As an exampl... | javascript | [3] |
2,972,748 | 2,972,749 | How to specify path relative to site root? | <p>i want to specify a path to a file relative to the root of the web-site. e.g.</p>
<pre><code><script type="text/javascript" src="/Scripts/jquery-1.7.2.min.js"></script>
</code></pre>
<p>In ASP.net that causes problems because the <em>"root"</em> of the <strong>site</strong> can be different from the ro... | asp.net | [9] |
1,826,555 | 1,826,556 | why this happens in java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/565634/integer-with-leading-zeroes">Integer with leading zeroes</a> </p>
</blockquote>
<p>I'm very new to Java. I did this :</p>
<pre><code>System.out.println(01111);
</code></pre>
<p>which prints <code>4680</... | java | [1] |
2,409,944 | 2,409,945 | Change call type programatically | <p>How change a type of call programatically using Content Providers?
From missed call to received call?</p>
<p>Thanks!</p>
| android | [4] |
3,184,464 | 3,184,465 | iPhone SDK location on hard drive | <p>I attempted to reinstall the iphone sdk on my mac. I figured the reinstallation would just override my previous installation but it seems that more hard drive space was eaten up after the second install. Does anyone know how I can refresh my installation and start from scratch to free up all the lost space?</p>
| iphone | [8] |
6,308 | 6,309 | Getting FULL URL with #tag | <p>Tried to print the $_SERVER array in PHP, yet I can't find what I want:</p>
<p><a href="http://www.domain.com/#sometaginpage" rel="nofollow">http://www.domain.com/#sometaginpage</a></p>
<p>I want the "sometaginpage".</p>
<p>Help. Thanks!</p>
| php | [2] |
1,959,097 | 1,959,098 | Converting VB.NET Web Form to C# and wiring up events | <p>In My VB.NET web page, I have this standard event. Note the "Handles" clause on teh event declaration.</p>
<pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
</code></pre>
<p>In my C# web app, I have this:</p>
<pre><code>protected void Page_Load(object ... | c# | [0] |
195,991 | 195,992 | DoubleTap in android | <p>I need to create a small text area.Within that text area when i double click,it will move to next activity.How could i do this?</p>
| android | [4] |
4,273,998 | 4,273,999 | How to get a mobile number for my application using an API? | <p>How do get the mobile number from an Android application? After installing the application on the mobile, I want to get the mobile number of the phone. Is there any API available in Android?</p>
| android | [4] |
1,700,636 | 1,700,637 | Getting 'this' object in javascript without using the word 'this' | <p>What I am trying to do is getting the same result as clicking on this following submit button.</p>
<pre><code><input id="submit_http:" class="add_submit" type="button" onclick="return dex.forms.form_ajax_submit(this,function(res) { alert('posting failed'); },function(res) { alert('posting success'); });" value="... | javascript | [3] |
1,925,086 | 1,925,087 | Saving listbox items to file | <p>I am trying to save the items from a listbox to a file. So I started writing this code:</p>
<pre><code>private void mstri_SaveLog_Click(object sender, EventArgs e)
{
Stream s;
this.sfd_Log.Filter = "Textfiles (*.txt)|*.txt";
DialogResult d = this.sfd_Log.ShowDialog();
if ((d == DialogResult.OK) && (... | c# | [0] |
718,085 | 718,086 | Game engines for IPhone game development | <p>I am totally new to IPhone game development enviornment. Kindly suggest me with some common game engines used for developing games on IPhone. </p>
<p>Jimmy</p>
| iphone | [8] |
2,309,141 | 2,309,142 | Need to wait for'KeyDown' Enter to accept TextBox text | <p>I need to have a way to set an integer in a method by taking the users input from a textbox. The problem is that I need to pause the code to allow input to be typed then to resume when 'Enter' is keyed. Keydown method works but not for setting a variable local to an outside method.
For instance:</p>
<pre><code>....... | c# | [0] |
5,761,377 | 5,761,378 | What is good practice when u create a method whose parameter contains 2 objects but it only changes 1 | <p>for example:</p>
<pre><code> void FilterA(Hashset<T> blackList, List<T> myList)
{
blackList.UnionWith(myList);
}
</code></pre>
<p>I don't know if there would be some good coding styles that separates <code>blackList</code> and <code>myList</code> apart. Or is it... | c# | [0] |
4,976,627 | 4,976,628 | Calling a changing function name on an object with PHP : how? | <p>How would I do something like this :</p>
<pre><code>class Test
{
public function test($methodName) {
$this->$methodName;
}
private function a() {
echo("a");
}
private function b() {
echo("b");
}
}
$testObj = new Test();
$testObj->test("a()");
$testObj->test("b()"... | php | [2] |
3,805,120 | 3,805,121 | I cannot use IF-THEN-ELSE and $_SERVER variables in PHP class definition | <pre><code>class MY_CONFIG {
if ( $_SERVER["SERVER_ADDR"] == "127.0.0.1" ) {
var $default = array( 'foo' => 1, 'bar' => 2 );
} else {
var $default = array( 'foo' => 3, 'bar' => 4 );
}
}
</code></pre>
<p>I am new to PHP. What's wrong with my code above?</p>
<p>The system keeps s... | php | [2] |
4,570,537 | 4,570,538 | Place a footer for each activity | <p>I'm trying to place a TextView at the bottom of every activity by using the include... My code is below... I don't know why, but it remains at top... Although it works fine for TextView.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="schemas.android.com/apk/res/and... | android | [4] |
4,171,578 | 4,171,579 | Change textSize based on screen res/density? | <p>I have a grid of 18 buttons, apparently this is too big as my text is getting messed up between different res/densities.</p>
<p>50sp looks right on 240 hdpi WVGA800, 30sp looks right on 120 ldpi QVGA and 160 mdpi HVGA. How can I adjust the sizes based on whatever screen is being used?</p>
| android | [4] |
112,847 | 112,848 | Calling inflate() multiple times in an Android view | <p>I have a View that inherits from LinearLayout that inflates itself. After it has been created and inflated I wanted the ability to inflate a different layout. However, calling inflate() a second time seems to have no effect. Only if I close the activity and open it again is the state reflected in the UI.</p>
<p>... | android | [4] |
2,180,856 | 2,180,857 | How to get the last four characters of a string whose length may change in Python | <p>My string coming in could be really any length i just need the last four characters:</p>
<pre><code>string = asdfPALD
string = asddasdfBLCA
</code></pre>
| python | [7] |
612,709 | 612,710 | Selecting paticular class in jquery | <p>I was wondering how i would go about selecting this class and changing it to a span12 once the screen size is below 1000px using jquery</p>
<pre><code><div class="span4 minus65">
</code></pre>
<p>I am using </p>
<pre><code>$(window).resize(function(){
if($(this).outerWidth() < 1000){
$('.span... | jquery | [5] |
3,048,140 | 3,048,141 | Session expiration issue in ASP.NET MVC | <p>Hi I have some issues with ASP.NET MVC session state which is not expiring after I implement the following piece of code and put the attributes over the methods.</p>
<pre><code>public sealed class SessionActionFilterAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingConte... | asp.net | [9] |
2,954,859 | 2,954,860 | Timezone issue - android | <p>I'm trying to get the timezone in android </p>
<pre><code> Calendar cal = Calendar.getInstance();
TimeZone tz = cal.getTimeZone();
System.out.println("timezone = " + tz.toString());
</code></pre>
<p>I should be getting</p>
<pre><code>sun.util.calendar.ZoneInfo[id="Europe/London",offset=0,dstSavings=3600000 ...... | android | [4] |
1,616,017 | 1,616,018 | Simulate low battery & low memory in Android | <p>In order to generate the notifications i need to know about how to generate the low battery and low memory interrupts programmatically. Can any one please provide your suggestions.I am aware of Intents.</p>
| android | [4] |
4,478,154 | 4,478,155 | What are the performance implications of disabling the lock-screen? | <p>I am working on a timer application (it's my first app to try and learn the ropes). While the timer is running, I want to offer the user the ability to prevent the screen from locking.</p>
<p>Since the screen is always displaying something (and refreshing the clock every second), what would the performance penalty... | android | [4] |
4,048,557 | 4,048,558 | Unique setTimeout timer for each element? | <p>I'm trying to make a menu where there are elements shown in plain text, and when you hover over them there are fields revealed to edit the plain text.</p>
<p>You can see an example here: <a href="http://jsfiddle.net/Bx7vX/9/" rel="nofollow">http://jsfiddle.net/Bx7vX/9/</a></p>
<p>The timer variable is declared glo... | jquery | [5] |
201,367 | 201,368 | draggable element color changed back when refreshing | <p>The draggable elememnt color will be changed to #DF2525 when stop dragging. But the color is changed back to original one when page is refresh. I want color won't be changed back when refreshing.
Is there anyone know solution? Thanks in advance. </p>
<p>$(function() {</p>
<pre><code> $( "#draggable" ).dragg... | jquery | [5] |
5,030,641 | 5,030,642 | transparent panel with visibility criteria-Android | <p>I want to create a transparent panel with two buttons , previous and next.</p>
<p>As i am using two edittext box. if i click on any edit text box that panel become visible and i can move in edittext through previous and next button.</p>
<p>How Can i do this?</p>
| android | [4] |
709,726 | 709,727 | Invoking Java EE web services from iPhone | <p>Is it possible to invoke Java EE web services from iPhone? and how?</p>
| iphone | [8] |
5,049,720 | 5,049,721 | Coding a BBS Server in java | <p>After looking at the Google BBS project the other day I quite liked the idea of coding a new front end for our enterprise app that would be a bbs.</p>
<p>This bbs server would then call various webservices etc.. all fine, all done before.</p>
<p>The question I have is that I have made a telnet server before, conne... | java | [1] |
777,133 | 777,134 | Increasing the memory capacity of the android emulator? | <p>How can the Android emulator's memory capacity be increased? I have a 16MB binary file which I have to parse. But when I execute a second time it says:</p>
<pre><code>Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE.
</code></pre>
<p>Can anybody help please?</p>
| android | [4] |
2,768,572 | 2,768,573 | unexpected T_RETURN in C:\Program Files (x86)\xampp\htdocs\ss\admin.php on line 3 | <p>code is</p>
<pre><code><?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
set_magic_quotes_runtime(0);
include("include/dbcommon.php");
##if @BUILDER.m_bCreateLoginPage##
if(!@$_SESSION["UserID"])
{
header("Location: login.php");
return;
}
##endif##
##if @BUILDER.arrLanguages.... | php | [2] |
2,688,670 | 2,688,671 | get selected element containing specific word on text - jquery | <p>i want to check if selected item contains specific word. Ex:</p>
<pre><code> <select name='project_type' id='type'>
<option value='1'>Interpretation - S</option>
<option value='2'>Interpretation - K</option>
<option value='5'>Editing</option>
<option value='7'&g... | jquery | [5] |
2,544,987 | 2,544,988 | Delete everything between "quote" tags ([quote]) | <p>I have nested quotes enabled in my private message system, but now I want to show the user a part of the message when they hover the title of the message.</p>
<p>To get the relevant text out of the message I want to delete the quote parts.</p>
<p>The quote structure is as follows:</p>
<pre><code>[quote]
[quote]... | php | [2] |
4,881,425 | 4,881,426 | Where can I get comdef.h? | <p>I downloaded some example code from the internet, but when I compiled it I ran into some trouble. My compiler tells me: comdef.h: No such file or directory.</p>
<p>I searched a bit on the internet, but I couldn't find anyone else with the same problem and I have no clue where I can obtain this header file.</p>
<p>... | c++ | [6] |
741,949 | 741,950 | Android Scroller Issue | <p>i've done a custom view group to display my menu in a different way : </p>
<p>it comes from the right of the screen.</p>
<p>I use scrollTo right now and it works fine, but i would like to get the scroll action animated, so i decided to add a scroller. but when i call :</p>
<pre><code>mScroller.startScroll(0, 0, 1... | android | [4] |
3,090,577 | 3,090,578 | Set Contact Number in Contact Uri | <p>In my application i want to add the contact number . So here i called the Below code . It call the Add contact screen but i want to set the contact number using code . can any one help me to solve my problem ?</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_INSERT,People.CONTENT_URI);
startActivityForResult... | android | [4] |
4,869,021 | 4,869,022 | How to pass escaped string to shell script in Python | <p>I am attempting to create a Python script that in turn runs the shell script "js2coffee" to convert some javascript into coffeescript. </p>
<p>From the command line I can run this, and get coffeescript back again...</p>
<p><code>echo "var myNumber = 100;" | js2coffee</code></p>
<p>What I need to do is use this sa... | python | [7] |
5,753,083 | 5,753,084 | MediaPlay won't play a sound, why? | <p>Here's my code </p>
<pre><code>MediaPlayer mp = new MediaPlayer();
...
try {
mp.setDataSource( getString(R.raw.click));
mp.prepare();
mp.start();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalStateException e) {
... | android | [4] |
5,424,395 | 5,424,396 | How do I get rid of this weird gray drop shadow thing on my EditTexts? | <p>I'm not even sure what it's actually called.. but it looks really bad on some devices.</p>
<p><img src="http://i.stack.imgur.com/YZGrJ.png" alt="weird gray thingy"></p>
| android | [4] |
1,474,498 | 1,474,499 | Drag and drop functionality of android | <p>Am working on implementing the Drag and Drop functionality in android
Here is my code.</p>
<pre><code> public class DragnDropActivity extends Activity implements OnTouchListener,OnDragListener
{
}
</code></pre>
<p>am unable to reach onDraw call back function</p>
| android | [4] |
2,982,724 | 2,982,725 | Cannot imitate a web request with request parameters : "X-Socket-Transport", "xhrPolling" / "X-Requested-With", "XMLHttpRequest" . java | <p>I am trying to create a parser and my request looks like : =1367664318243">https://www.example.com/method?sessionId=VFVSXxDBCjCDZ2QADWJ1bGxldEBwaG9ib3MAAAkBAAAd1wM.&=1367664318243. I'm creating a HttpURLResourceConnectionConfig, setting all the parameters, but when i loaded in Eclipse it does not work. I've sear... | java | [1] |
1,074,891 | 1,074,892 | I need to define __setattr__ for assignment of fields without properties, but use the setter/getter functions for fields with a property defined | <p>Defining <code>__setattr__</code> overrides all setter methods / properties I define in a class. I want to use the defined setter methods in the property, if a property exists for a field and use <code>self.__dict__[name] = value</code> otherwise.</p>
<p>Help! I found one solution that used <code>__setitem__</co... | python | [7] |
1,282,496 | 1,282,497 | Getting a value of object for user-defined classes for while, if and for statements | <p>I am trying to get a bool value out of user defined object.
For example with float or int I can do something like</p>
<pre><code>float a = 3.5
if (a) doSomething();
</code></pre>
<p>I want my class to look like this:</p>
<pre><code>class Socket {
...
...
};
...
Socket T;
if (!T) cout << "Error occured";
el... | c++ | [6] |
5,483,514 | 5,483,515 | Android SMS_RECEIVED broadcastreceiver not getting called | <p>The onreceived function in my bradcastreceiver is not being triggered.</p>
<p>I tested this by sending a sms message from different phones, but the log does not seem to show any Activity.</p>
<p>here is the receiver class</p>
<pre><code>package nz.co.smstopc;
import android.content.BroadcastReceiver;
import andr... | android | [4] |
3,096,731 | 3,096,732 | 3d animation in android | <p>I am developing a android application which involves rotating the images in a horizontal way.
Can anyone help me in this regard.</p>
<p>Regards
Tushar</p>
| android | [4] |
2,310,991 | 2,310,992 | Why some class variables seem to act as static while others don't? | <p>Dictionaries and lists defined directly under the class definition act as static (e.g. <a href="http://stackoverflow.com/questions/3045246/python-and-object-class-attrs-whats-going-on">this question</a>)<br>
How come other variables such as integer do not?</p>
<pre><code>>>> class Foo():
bar=1
>... | python | [7] |
1,371,682 | 1,371,683 | Best Practices for controlling access to form fields | <p>I have a classic 3-tier ASP.Net 3.5 web application with forms that display business objects and allow them to be edited. Controls on the form correspond to a property of the underlying business object. The user will have read/write, readonly, or no access to the various controls depending on his/her role. Very conv... | asp.net | [9] |
5,222,410 | 5,222,411 | Put external library to the JAR? | <p>I have added some external libraries to my java project (in netbeans).<br>
Is it possible to put the external jar library to the java archive (and not to put them into a separate (for example) "lib" directory)?</p>
| java | [1] |
5,367,905 | 5,367,906 | C# error "String was not recognized as a valid DateTime" | <p>I am trying to save the DateTime.Now in the format "yyyyMMdd"</p>
<p><strong>I have this code</strong></p>
<pre><code>string todaysDate = DateTime.Now.ToString();
</code></pre>
<p>...</p>
<pre><code>U_Date_of_PD_added = GetDateFromString(todaysDate)
</code></pre>
<p>// U_Date_of_PD_added is a datetime Database... | c# | [0] |
1,973,070 | 1,973,071 | How to declare inline object with inline variables without a parent class | <p>I am trying to do something like:</p>
<pre><code>Object [] x = new Object[2];
x[0]=new Object(){firstName="john";lastName="walter"};
x[1]=new Object(){brand="BMW"};
</code></pre>
<p>I want to know if there is a way to achieve that in C#</p>
| c# | [0] |
167,512 | 167,513 | Need to parse string to DateTime | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/13428149/parseexact-a-string-to-datetime-fails">ParseExact a string to DateTime fails</a> </p>
</blockquote>
<p>I need to parse </p>
<blockquote>
<p>Oct 19 13:55</p>
</blockquote>
<p>into a <code>DateTime</c... | c# | [0] |
3,809,731 | 3,809,732 | How to avoid scrolling to the top of the page when emptying window.location.hash | <p>Why does the following code make the scroll jump to the top of the page? </p>
<pre><code>window.location.hash = ''
</code></pre>
<p>Is there a way to empty it without jumping to the top of the page?</p>
| javascript | [3] |
4,721,073 | 4,721,074 | Variable name cannot be declared in this scope | <p>I think I have everything working so far. One error left if the local variable error for 'req' ... its already been declared above System.Net.WebRequest req = null; but i'm trying to clear it before using for WebRequest req = WebRequest.Create... do I not need to do that?</p>
<pre><code>while (listId.Items.Count &g... | c# | [0] |
5,572,621 | 5,572,622 | browse file in iphone | <p>I want user to select file from iphone and upload to a http server.
Please help me how this can be done.</p>
<p>Thanks......</p>
| iphone | [8] |
3,117,597 | 3,117,598 | Iterate a list as pair (current, next) in Python | <p>I sometimes need to iterate a list in python looking at the "current" element and the "next" element. I have, till now, done so with code like:</p>
<pre><code>for current, next in zip(the_list, the_list[1:]):
# do something
</code></pre>
<p>This works and does what I expect -- just wondering if there's a more ... | python | [7] |
4,143,938 | 4,143,939 | How can I bind to multiple elements with the same name in jQuery? | <p>I have about 50 items on my screen. Each line is a form that contains one select box. Each select box has the same name, "permission_action"</p>
<p>My code: </p>
<pre><code>$("#permission_action").change(function() {
$.ajax({
type: "PUT",
url: this.form.action,
data: "permission[action... | jquery | [5] |
4,679,633 | 4,679,634 | Using JQuery to get table values | <p>I have a html table with 4 tablecells:
1: Checkbox
2. label
3. textbox
4. label</p>
<p>Once I click on the checkbox, a jquery function fires, but im trying to get the values next to the checkbox. I have tried below, but nothing works. I know I am close. Any help would be very much appreciated.</p>
<pre><code>$(thi... | jquery | [5] |
1,599,172 | 1,599,173 | exiting from complete application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4260409/how-i-can-close-exit-button-on-my-app">How i can close/exit button on my app?</a> </p>
</blockquote>
<p>Hi,sir
I need code to exit from the android application directly</p>
| android | [4] |
623,250 | 623,251 | Set a select option using variable in jQuery | <p>Im using jquery cookie plugin to set a cookie for my dropdown. This means when someone selects either Yes or No from the dropdown then the value writes to the cookie.</p>
<p>This works, I can successfully console.log the cookie value too. But When I try to use the cookie to AUTO-SELECT the dropdown value it matches... | jquery | [5] |
2,143,372 | 2,143,373 | Regular Expression help or an alternative | <p>I have a file that looks like the following with lines of tags. I have:</p>
<pre><code>Pattern.compile("<(?:TIMEX TYPE|ENAMEX TYPE)=.+?>(.+?)</(?:TIMEX|ENAMEX)>");
</code></pre>
<p>This gets the data I need if both tags are on one line. My problem is dealing with the following lines:</p>
<pre><code>&l... | java | [1] |
3,337,206 | 3,337,207 | Using List<KeyValuePair> to store Keys and Values | <p>I'm still trying to understand <code>KeyValuePairs</code> but I believe this idea should work. In my code below it searchs through a large string and extracts 2 substrings. One substring (keep in mind the value between the quotes varies) is something like <code>Identity="EDN\username"</code> another substring is s... | c# | [0] |
5,360,183 | 5,360,184 | Scrolling Layouts with buttons! | <p>I am trying to make a scrollable layout that contains many relativelayouts and button. (See example below). But every time i make a scrollview it says a scroll view can on contain one child...</p>
<p>EXAMPLE</p>
<p>Scrollview </p>
<pre><code>Relativelayouts1
Button1
Relativelayouts2
Button2
Relativelayout... | android | [4] |
5,895,865 | 5,895,866 | What factors should be considered in picking an appropriate jQuery AJAX timeout length? | <p>I am developing a web application that will rely on a number of jQuery AJAX requests. In my developing environment, normally PHP will process and return the data in <300ms.</p>
<p>In the production environment on a typical and small web hosting setup, what factors should I consider in setting an appropriate time... | jquery | [5] |
1,240,442 | 1,240,443 | do some companies block client-side Javascript scripting on client-side browser? | <p>I'm aware users may turn support for Javascript on/off in their browsers. But, does anyone know if some corporations have the practice of locking down systems such that the user no longer has the ability to turn Javascript on/off?</p>
<p>I'm considering building an enterprise web application that depends on Javascr... | javascript | [3] |
2,696,702 | 2,696,703 | Class 'MCAPI' not found | <p>i am using Mialchimp module first time in drupal 7,i added the API key and MCPAI and Readme file under libraries/mailchimp but when i am going for add new list it shows Class 'MCAPI' not found in \sites\all\modules\mailchimp\includes\mailchimp.inc on line 3.</p>
<p>Can anybody help me out from this problem.?</p>
| android | [4] |
4,608,232 | 4,608,233 | Numeric operation using string | <p>I have following string.</p>
<pre><code>$option = '+';
$value = '100';
</code></pre>
<p>I want create new value using above parameters. </p>
<p>ex:- <code>$newValue = 222 + 100;</code></p>
<p>How can i do it using above parameters? as following</p>
<pre><code>$newValue = 222 $option $value;
</code></pre>
| php | [2] |
5,216,512 | 5,216,513 | How to count children from different lists? [jQuery] | <p>I'm trying to count the number of child elements a certain category has.</p>
<p>This is the situation:</p>
<pre><code><ul id="select_cat">
<li id="_1">Category 1 (<span>#</span>)</li>
<li id="_2">Category 2 (<span>#</span>)</li>
</ul>
<ul id="cat_... | jquery | [5] |
942,810 | 942,811 | Conditional configuration: How to detect if I'm local or online? | <p>I want to provide different configurations for local and offline. At the moment, every time I upload my stuff to the web server, I must make sure that I don't mess up with the different config files. One for local development, and one for online.</p>
<p>I slightly remember a couple of years ago, a code snippet dist... | php | [2] |
4,292,502 | 4,292,503 | What do I need to fix to get this to print out a string of random characters? | <p>This is in Java as the tag implies. I can't figure out how to get it to print out the "key" string at the end of the code while keeping my variables the way they are. I've only really worked with static main, and I have no idea what that does for programs as I'm a total novice. Can someone point me in the right dire... | java | [1] |
629,162 | 629,163 | How to change two or more Div Styles in Javascript | <p>Is there a way to change two or more Div styles with a single javascript line?</p>
<pre><code>document.getElementById("searchScroll").style.position="fixed";
document.getElementById("searchScroll").style.margin="-50px";
</code></pre>
<p>Is it possible to merge the code in ONE line?</p>
| javascript | [3] |
2,877,249 | 2,877,250 | Nothing happens using polyBezier function | <p>There is a code: </p>
<pre><code>CPoint Pt[5] = { CPoint(20, 50), CPoint(20, 30), CPoint(40, 20),
CPoint(80,40), CPoint(50,110) };
pDC->PolyBezier(Pt,5);
</code></pre>
<p>When i run my project, nothing from Bezier Curve, blank workspace.. </p>
<p>Can you help me with that?</p>
| c++ | [6] |
3,003,079 | 3,003,080 | for loop does not execute twice | <pre><code> createModelView: function (obj,vitalslength,headerValue) {
for(i = 0, vitalsLen = vitalslength; i < vitalsLen; i++) {
// Do some logic
}
}
</code></pre>
<p>Two Questions</p>
<ol>
<li><p>Where should i place my return statement for the function. If i ... | javascript | [3] |
2,748,790 | 2,748,791 | Need help with this .get() script | <p>I am fetching value using jQuery .get() like this</p>
<pre><code> $.get('clientarea.php', function(data) {
var Val = $('#abc', data).val();
if (this.val() == 'YES') {
// do this
}
else {
// do that
}
});
</code></pre>
<p>Using .get() I want to compare va... | jquery | [5] |
4,310,065 | 4,310,066 | jQuery - Select empty input with class name | <p>How to select empty all 'input type="text"' elements with class name 'myTextbox"</p>
<p>example below only selects empty fields</p>
<p>var emptyfields = $("input[value=]");</p>
| jquery | [5] |
3,969,812 | 3,969,813 | iPhone: Method overriding result | <p>I have method overriding like below. Please ignore the way i written it may not be perfectly written, just for sample. But i want to know what would the output if i method overridden like this for variable "a".</p>
<p>-> base class</p>
<pre><code>@interface A
{
int a=15;
}
-(int) myFunction;
@end
</code></pr... | iphone | [8] |
562,826 | 562,827 | JavaScript column sorting | <p>What is the best way of sorting if the column values are:</p>
<p>Before SORTING:</p>
<pre><code>CANCELLED,
v06.*,
INDEPENDENT,
v06.00,
v06.00.01,
v06.01,
v06.02,
v06.00.xx,
v06.03,
v06.04,
ON HOLD,
v06.06,
v06.05,
v06.05.01,
v06.04.01,
v06.05.02,
v06.07,
v07.00,
</code></pre>
<p>After SORTING:</p>
<pre><code> C... | javascript | [3] |
3,840,737 | 3,840,738 | User Control hide other HTML under declaration | <p>I have user contol under my project
with next valid HTML code inside</p>
<pre><code><div class="myClass">
<div>text bla bla</div>
</div>
</code></pre>
<p>I have CSS for myClass</p>
<pre><code>.myClass
{
display:none;
}
</code></pre>
<p>on aspx page I have next code</p>
<pre><code>//m... | asp.net | [9] |
242,739 | 242,740 | JavaScript - Find out how many times a number goes into another number evenly | <p>Is there a simple way to find how many times a number goes into another number evenly in JavaScript?</p>
<p>Say 11 divided by 4 --- I know 4 goes into 11 2 times evenly</p>
<p>I have this code but I thought there was a simpler way that I maybe forgetting?</p>
<pre><code><script>
a = 11;
b = 4;
i = a % b;
i... | javascript | [3] |
3,367,191 | 3,367,192 | c++ Input from text file help | <p>My test file has data like this:</p>
<pre><code>1
2
3
0
1, 2
3, 4
0, 0
4, 3
2, 1
0, 0
</code></pre>
<p>How would I separate the data by line but also separate each section of data by the zeros.</p>
<pre><code> ifstream data("testData.txt");
string line, a, b;
while(getline(data,line))
{
stringstream str(lin... | c++ | [6] |
4,305,855 | 4,305,856 | Twitter integration in iphone | <p>Ha ii ,i know how to integrate a Twitter in ios sdk,i alredy done with the help of MGTwitter Engine.But my problem is it shows a login page as a webview,i want to be login screen as popup just like the facebook login popup,so i got a <a href="http://github.com/digdog/DDSocialDialog" rel="nofollow">link</a>,that cont... | iphone | [8] |
90,312 | 90,313 | Why aren't Python dicts unified? | <p>After reading <a href="http://stackoverflow.com/questions/6602172/how-to-group-a-list-of-tuples-objects-by-similar-index-attribute-in-python">this question</a>, I noticed that S. Lott might have liked to use an “ordered defaultdict”, but it doesn't exist. Now, I wonder: Why do we have so many dict classes in Python... | python | [7] |
2,117,272 | 2,117,273 | Java 2D array error | <p>So I need to take a 2D array do calculations to each elements and transfer that into another 2D array while using the values to the "left" "right" "up" and "down" of the current element. If the current element is on the edge (x = 0, y = 0, x = array.length , y = array.length) I will get an array out of bounds error.... | java | [1] |
2,015,852 | 2,015,853 | jQuery get image alt inside href multiple image in array .children() not working | <p>I do extend the code the jquery lightbox plugins to meet my requirements for to able to get the image alt inside the an anchor tags then show it inside paragrap tags</p>
<p>here with my code that I can't get work </p>
<p>online 76 jQuery Light box</p>
<pre><code> if ( jQueryMatchedObj.length == 1 ) {
... | jquery | [5] |
5,583,192 | 5,583,193 | dealing with javascript enclosed in a php string | <p>so in such situation you lose the javascript highlight syntax, to me it looks like there are some cases were youre obliged to put the Js in a php string (for example when working on some ajax stuff and php mysql request), how you do? i found very annoying to work js this way</p>
<pre><code>echo '<script>
$(fu... | php | [2] |
5,466,993 | 5,466,994 | How can I detect shift + key down in javascript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6178431/how-to-catch-enter-keypress-on-textarea-but-not-shiftenter">How to catch enter keypress on textarea but not shift+enter?</a> </p>
</blockquote>
<p>How can I detect shift + key down in JavaScript?</p>
| javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.