Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
2,284,549 | 2,284,550 | Android Transitions between Activities in Activity Group | <p>I am trying to animate between Activities within an Activity Group.</p>
<p>I know the purists will tell me I shouldn't use multiple activities and should be using a View Flipper, but I didn't start the project and don't have the option to completely re-implement the solution.</p>
<p>The problem is instead of the n... | android | [4] |
4,230,267 | 4,230,268 | C++ operation overload, crash | <p>Why does this code crash the program when I run it</p>
<pre><code>ostream& operator<<(ostream& cout, Array<int> a) {
return cout;
}
</code></pre>
<p>and this doesn't</p>
<pre><code>ostream& operator<<(ostream& cout, Array<int>& a) {
return cout;
}
</code></pre... | c++ | [6] |
408,688 | 408,689 | trigger function on click | <p>i am trying to launch my function by click and keep failing... :(
this is my function:</p>
<pre><code>ntd.refresh_meatlist= function(){
var $tasks = $('#meating_list'),i;
$tasks.empty();
if (ntd.list.length) {
$tasks.append('<li data-role="list-divider">Meating&#39;s</li>');
for (var i=0;i... | jquery | [5] |
3,164,437 | 3,164,438 | iterating through all items in listA that don't appear in listB | <p>How can I fix this statement:</p>
<pre><code>for i in LISTA and i not in LISTB:
print i
</code></pre>
| python | [7] |
1,743,527 | 1,743,528 | Is it safe to use os.environ.setdefault? | <p>From my ipython shell, I see a method setdefault in os.environ but it is not documented. <a href="http://docs.python.org/library/os.html#os.environ" rel="nofollow">http://docs.python.org/library/os.html#os.environ</a>. Is it documented somewhere else?</p>
<pre><code>def setdefault(self, key, failobj=None):
if k... | python | [7] |
36,222 | 36,223 | Split a string with a lot of dividers | <p>i have a issue with programming for android.</p>
<p>i have a string like this:</p>
<blockquote>
<p>[["Km"],["Portagens"],["Refeições - Almoço"],["Refeições -
Jantar"],["Refeições - Lanche"],["Estacionamento"],["Estadia
Hotel"],["Gasóleo"],["Gasolina"],["Taxi"],["Combóio"],["Avião"],["Viatura
de Aluguer"],[... | java | [1] |
1,658,964 | 1,658,965 | Android calculate scrollTo position in HorizontalScrollView | <p>I have HorizontalScrollView with few TextViews. Each TextView might contain text of different length.</p>
<p>How should I calculate correct offset to scroll to using "scrollTo(x, y)"? </p>
<p>Scrolling works, but different than expected.
I've tried various things (getLocationOnScreen(), getMeasuredWidth(), getWidt... | android | [4] |
5,197,180 | 5,197,181 | how to get next four month with year in php? | <p>i want to get the current month and next three months with year in a dropdown box, the proble is when November2012 comes then the last month would be January2013, if the current month is december2012 then the nest three months would be</p>
<p>january2013
february2013
march2013</p>
<p>in the drop down it should lo... | php | [2] |
5,768,844 | 5,768,845 | ImportError: cannot import module - Only one module can not be imported from package | <p>I created a package, for the ease of use I call it packageA.</p>
<p>In this package I have 4 submodules in (separate files) and an init file, so the package contains the following files:</p>
<ul>
<li><code>__init__.py</code></li>
<li>moduleA.py</li>
<li>moduleB.py</li>
<li>moduleC.py</li>
<li>moduleD.py</li>
</ul>... | python | [7] |
1,652,259 | 1,652,260 | passing url to another page using jquery | <p>I am going to create two pages.</p>
<p>The first page will be home.html On this page I am going to have a link which moved to page 2 layout.html and from there the url should be fired is this possible please?</p>
| jquery | [5] |
2,466,649 | 2,466,650 | Android Image Store | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3442462/how-to-capture-an-image-and-store-it-with-the-native-android-camera">How to capture an image and store it with the native Android Camera</a> </p>
</blockquote>
<p>How can i store captured image from came... | android | [4] |
2,311,722 | 2,311,723 | File Manager access in iphone for custom application | <p>How can i get to File manager access in iphone for my application which have downloads option </p>
<p>Thank you.</p>
| iphone | [8] |
4,409,446 | 4,409,447 | Append web application with different file types | <p>I have to append my web application with different file types in my android application.</p>
<p>I have one web application having with various files types like script, css and some swf files this is basically one web application it is working.</p>
<p>But, the problem is that I need to use all this code in my andro... | android | [4] |
2,654,761 | 2,654,762 | How big is an Object, without making use of a profiler | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/52353/in-java-what-is-the-best-way-to-determine-the-size-of-an-object">In Java, what is the best way to determine the size of an object?</a> </p>
</blockquote>
<p>I found this piece of code on the net:</p>
<pre... | java | [1] |
5,820,871 | 5,820,872 | How to calculate two different values from two different row in mysql database by php | <p>Actually I am creating database on wamp server with the help of php. There is some calculation among some fields.This database for is for lab procurement in which every entry is for new file.Every thing is done but the problem is come when I try to insert a new values for a new file but one value is depend on a valu... | php | [2] |
3,568,648 | 3,568,649 | overloaded stream extraction operator error | <p>how do you assign extraction operator to a linked list class.</p>
<pre><code>struct Node{
int x;
Node *next;
}*p;
</code></pre>
<p>and here is my function</p>
<pre><code>istream& operator>>(std::istream &is, list &l){
is>>l;
return is;
}
</code></pre>
<p>and this doesn't wor... | c++ | [6] |
5,158,972 | 5,158,973 | How to stop any functionality of jquery if the browser is smaller than 900px | <p>There is a Jquery slider that I need to disable when my browser gets to a certain width, which I can do, however I don't know how to disable the slider/jquery so it stops its functionality of sliding and instead will just show the html and css which im changing with media queries. </p>
<p>I'm going to use a if else... | jquery | [5] |
5,661,411 | 5,661,412 | python script not working | <p>I have a script I'm working on for a python course however my script does not work and I can not figure out why. Here is what I have: </p>
<pre><code>#!/usr/bin/python
import time
def createDictionary():
startTime = time.clock()
dict = {'Dog': 'der Hund', 'Cat': 'die Katze', 'Bird': 'der Vogel'}
dict[ 'Spid... | python | [7] |
520,276 | 520,277 | padding issue while setting a image as background in android | <p>Hello
In my android application i am using a image as background initially.
Then on top of that i need to place small images and on top of the small images i would like to place a textview with some text on it.</p>
<p>I am using below code for that.With this am able to place the small images but the textview if i a... | android | [4] |
5,924,238 | 5,924,239 | Remove repeated elements from list and HTML Tag | <p>I have list like this:</p>
<pre><code> [' name = Badmash Gujjar\n',
' image = \n',
' image =\n',
' caption =\n',
' director = Sameer Butt\n',
' producer =\n',
' writer = Nasir Adeeb\n',
' starring = Saima<br>Shaan (actor)Shaan<br>',
'... | python | [7] |
4,529,959 | 4,529,960 | Creating closures in a loop in JavaScript | <p>I have this scenario:</p>
<pre><code><html>
<head>
<script type="text/javascript" src="jquery-1.4.4.js"></script>
<script type="text/javascript">
var actions = {
'view' : function(){alert("view");},
'history': function(){alert("history");},
'renewal': function(){alert("rene... | javascript | [3] |
236,301 | 236,302 | Implementing Some Basic Array Operations Using Class.? | <p>First Of All Please Forgive Me About My Dumbness in Classes. I'm very new in classes.
Sir, I will update my progress ASAP.
I want to declare an array of 10 integers, but by using a variable called size.
i know that not too hard .. but i read the book and listen my instructor ..
but didn't get it .. </p>
<pre><co... | c++ | [6] |
108,528 | 108,529 | One liner to determine if dictionary values are all empty lists or not | <p>I have a dict as follows:</p>
<pre><code>someDict = {'a':[], 'b':[]}
</code></pre>
<p>I want to determine if this dictionary has any values which are not empty lists. If so, I want to return True. If not, I want to return False. Any way to make this a one liner?</p>
| python | [7] |
1,005,078 | 1,005,079 | Change text input name based on radio button selected | <p>I have a form with 3 inputs:</p>
<ul>
<li>name</li>
<li>email</li>
<li>company</li>
</ul>
<p>I also have two radio buttons a user must select from:</p>
<ul>
<li>A</li>
<li>B</li>
</ul>
<p>If the user selects A, leave the form fields as they are. If the user selects B then change the descriptions of the input fi... | jquery | [5] |
3,679,575 | 3,679,576 | How to send a hyperlink using query string method like `www.something.aspx?uniqueid=google+com`? | <p>I want to send <code>hyperlink</code> by attach it with <code>URL</code> with the help of query string method. For instance in a web page containing three links like</p>
<pre><code>google.com
yahoo.com
facbook.com
</code></pre>
<p>now suppose user click on yahoo.com at this point i want to send it by attaching... | asp.net | [9] |
3,981,684 | 3,981,685 | Different results for the floating point operations | <p>I'm having a small issue, I have some code that calculates a mean value from a given set of data, I do this from several different computers (some with linux, some with windows, some 32bits and others 64bits), but when I watch the database results the some values that should be equal are slightly different.</p>
<p>... | java | [1] |
5,276,789 | 5,276,790 | jQuery scroll a div up and down using two buttons | <p>I have a simple set of two buttons that when hovered should make a div move up and down to simulate a scrolling effect:</p>
<pre><code>$("#down").hover(function () {
$('.scroll').animate({ "marginTop": "-=50px" }, "fast");
});
$("#up").hover(function () {
$('.scroll').animate({ "marginTop": "+=50px" }, ... | jquery | [5] |
1,786,878 | 1,786,879 | android how to draw graphics in existing layout | <p>I have an existing xml layout and i am loading this layout in my activity class. Now i want to draw a rectangle in this at bottom.Which on clicking would call new intent.How do i add this rectangle to my existing layout.</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated... | android | [4] |
1,029,866 | 1,029,867 | edit the first option name | <p>I have the following code which I do not have access to. </p>
<p>What I want to do is add some text into the first option which is now empty. Text such as "Select Address"</p>
<pre><code><select name="My_Saved_Billing"
onChange="Choose_My_Saved_Billing(this.selectedIndex)" style="background-color:#EEEEEE">
&... | jquery | [5] |
5,767,674 | 5,767,675 | improve this very-simple dictionary generator in python | <p>I'm trying to make a simple dict generator. It works but it isn't very functional yet. </p>
<p>I'd like to improve it by being able to change the max size of the output without touching the code.</p>
<pre><code>letr='abcdefghijklmnopqrstuvwxyz'
for i in range(len(letr)):
t=letr[i]
print t
for t2 in let... | python | [7] |
2,132,612 | 2,132,613 | How to add text to a C# datagrid from a textbox using a button click | <p>How to add text to a C# datagrid from a textbox using a button click</p>
| c# | [0] |
5,739,147 | 5,739,148 | Unresponsive script - is it possible to avoid it? | <p>I have a listing with 150 rows and for each row there are three skinned select items. </p>
<p>Because there's heavy processing to be done before displaying each result I get an error saying "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see... | jquery | [5] |
5,648,976 | 5,648,977 | Problems with pinch zoom on Android | <p>I recently discovered a bit of code to keep the backgrounds stable, when pinch zooming on iphone/ipad.
However I am running test on my website on my Android, and when I pinch zoom, the background image, which covers the whole site in the body tag, jumps all over the place.
So is there any code that can counteract th... | android | [4] |
5,087,901 | 5,087,902 | ASP.NET permissions issues | <p>Im using Windows Server 2008, IIS7, .NET 4 and when I use the FileUpload control to save a file to a directory I get :</p>
<p>Access to the path 'C:\xxx\Websites\CMS\Admin\test' is denied.</p>
<p>I have given the test folder full control permissions for NETWORK SERVICE but it makes no difference.</p>
<p>I have gi... | asp.net | [9] |
4,680,934 | 4,680,935 | Is there anyway to print out all strings interned? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6180006/which-debugging-tool-can-list-strings-internalized">Which debugging tool can list strings internalized?</a> </p>
</blockquote>
<p>I would like to find all interned strings, any methods to do that?</p>
| java | [1] |
2,942,105 | 2,942,106 | billboard.js is not working in safari | <p>I have a billboard.js script running on a simple php file and for some reason it works fine in FF and IE but not Safari. I checked source code it and is pulling the content but the scrolling feature does not work when you click. Can someone please help me. Here is the link to try: <a href="http://www.luc.edu/test/ca... | javascript | [3] |
985,037 | 985,038 | Getting a Color from a String input | <p>I am making an application where at some point i need the user to select a color, but as to not just have 50 radioButtons, I was wondering if it is possible to actually get the color they want from a textfield or something.</p>
| java | [1] |
2,143,246 | 2,143,247 | Optimizing declaring repeat variables? | <p>Is there anyway in which to avoid doing something like this:</p>
<pre><code>std::queue<myStruct> part1, part2, part3, part4, part5, part6, part7, part8, part9, part10;
void setup(){
myVector.push_back(part1);
myVector.push_back(part2);
myVector.push_back(part3);
myVector.push_back(part4);
myVector.push_back... | c++ | [6] |
5,573,365 | 5,573,366 | What is Document Object Model describe indepth? | <p><strong>I sought in the internet about Document Object Model, i didn't get. Explain indepth</strong></p>
| java | [1] |
5,742,346 | 5,742,347 | how to read and write multiple files | <p>I want to write a program for this: in a folder I have <em>n</em> number of files; first read one file and perform some operation then store result in a separate file and the read 2nd file again perform operation and save result in new 2nd file, even same procedure <em>n</em> number of files. The program read all fi... | python | [7] |
2,280,601 | 2,280,602 | read file using nio and write to servlet | <p>Dear all,
I wan to read a file and then write using java.nio and return it to servlet.i also want to check whether file has been downloaded or not.plz suggest.</p>
| java | [1] |
4,343,011 | 4,343,012 | Disabling Task manager using c# in OS Hardened machine | <p>I am using the below code to disable the task manager for a kiosk application which works perfectly </p>
<pre><code> public void DisableTaskManager()
{
RegistryKey regkey;
string keyValueInt = "1";
string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";
... | c# | [0] |
690,015 | 690,016 | Android minSdkVersion and using classes introduced in higher level SDK | <p>I was testing android minSDKVersion property and find a strange behavior-</p>
<p>I put minSDKVersion=3 (1.5) and targetSDKVersion=4 (1.6) in androidManifest.xml file.</p>
<p>For testing, I put following lines in onCreate method of launching activity -</p>
<pre><code> android.telephony.SmsManager sm = android.tele... | android | [4] |
2,743,977 | 2,743,978 | Detecting horizontal swipe in ListView | <p>I need to detect a horizontal swipe within a list view. Should I use a gesture detector or onTouch event. I need to support Android 2.1+</p>
<p>One post indicated the need to override onInterceptTouchEvent in the ListView like below:</p>
<pre><code> @Override public boolean onInterceptTouchEvent(MotionEvent ev)... | android | [4] |
804,081 | 804,082 | JavaScript: Make first hidden element visible | <p>How can I find the first element in a document which has style="display:none;" set and make it visible?</p>
<p>I want to attach this function to a button to display several hidden elements, one by one.</p>
| javascript | [3] |
2,412,177 | 2,412,178 | Assigning values to associative array with dynamic keys | <p>I have <code>$options</code> as an associative array with each value as mixed(can be strings, or other arrays). I won't have any objects there.<br>
<code>$keys</code> is a numeric array & the number of keys is determined at runtime.</p>
<p>I want to have a result similar to this expression<br>
<code>$options[$k... | php | [2] |
1,116,289 | 1,116,290 | How to call an instance of a class defined inside a method of an outer class | <p>class Outer{</p>
<p>public void Method(){</p>
<p>int i=10;
System.out.println(i);
Class InsideMethod{
//</p>
<p>}
}</p>
<p>Question : How can I call InsideMethod object outside of the method</p>
| java | [1] |
4,621,092 | 4,621,093 | Dynamic Resource Loading Android | <p>how can I do this:</p>
<p>I'm trying to find a way to open resources which name is determined at runtime only.</p>
<p>Let me explain in more details</p>
<p>I want to have a XML that references a bunch of other XML files in the application apk.</p>
<p>for the purpose of explaining lets say the main XML is main.xm... | android | [4] |
3,142,603 | 3,142,604 | Android - inconsistent ringtone behavior | <p>I am trying to add ringtones to the media/ringtones folder from my application. If the phone is connected via USB to a computer or mounted on my Mac, the ringtones do not show up in the SD Card, nor in the Ringtone settings.</p>
<p>But if I run the application with the USB unplugged, the ringtones appear ok. This i... | android | [4] |
4,793,452 | 4,793,453 | custom Php Function Needed which takes the date in the Format of MMDDYYYY as a variable and it should return YYYYMMDD | <p>custom Php Function Needed which takes the date in the Format of MMDDYYYY as a variable and it should return YYYYMMDD</p>
| php | [2] |
1,453,695 | 1,453,696 | Does an Intent's extras still get flattened into a Parcel even if the new activity is being started within the same task? | <p>I was wondering...</p>
<p>So if you start a new activity via an intent, the intent has to be serialized and deserialized because you may have to send the intent to a separate VM instance via IPC. But what if the PackageManager <em>knows</em> that your new activity will be created on the current task? It seems lik... | android | [4] |
2,445,615 | 2,445,616 | Why is 'false' used after this simple addEventListener function? | <p>What is the false for at the end? Thanks.</p>
<pre><code>window.addEventListener("load",
function() { alert("All done"); },
false);
</code></pre>
| javascript | [3] |
3,890,260 | 3,890,261 | C# Do While looping problems | <p>I'm new to coding and I'm really stuck on this C# do while loop business. After a long time of messing with it I finally got it to loop a statement, but now it just repeats whatever statement was made first. For example, if it generates the number 6 and you guess 7 it'll say "too high..." but then when you guess aga... | c# | [0] |
4,698,390 | 4,698,391 | How do I achieve this jQuery effect? | <p>When I click on <a href="http://www.asus.com/Motherboards/#AMD_AM3Plus" rel="nofollow"> ASUS Products page's </a> Intel socket bla2.., the page doesn't have to reload, after I clicked for example Intel Socket 2011, Intel C602 & Intel X79 showed up, how do I achieve it using jQuery?</p>
| jquery | [5] |
1,739,052 | 1,739,053 | tabs in javascript resetting | <p>Sorry this is probably stupid wood for trees stuff but:</p>
<p>All I want is a <code>div</code> with a couple of links - you click on the links and you switch to another <code>div</code>. Standard tab stuff. That's it. But when I run the code below, it switches to the <code>div</code> I want then resets straight b... | javascript | [3] |
3,223,505 | 3,223,506 | Pattern for activity that starts another activity (for result) | <p>I have an activity where the first thing it does is start another activity for result. when the result comes back, it should process it, then finish. I have the <code>startActivityForResult()</code> call in <code>onCreate()</code>.</p>
<p>What I see is that <em>sometimes</em> when I return from the target activity ... | android | [4] |
2,655,179 | 2,655,180 | with JQUERY, How to pass a dynamic series of data to the server | <p>What is the recommended way in JQUERY to send a dynamic set of data to the server, the set contains items like:</p>
<p>ID: 13
Copy: <p>hello world....hello world....hello world....hello world....</p></p>
<p>ID: 122
Copy: <p>Ding dong ...Ding dong ...<b>Ding dong</b> ...Ding dong ...Ding dong ...</p></p>
<p>ID: 11... | jquery | [5] |
3,520,025 | 3,520,026 | What kind of of java.lang.Error can be thrown during compile time? | <p>What kind of java.lang.Error can be thrown during compile time ?<br>
I know one error: <code>ClassFormatError</code>. What are the others error?<br>
I'm writing an application that acts as a server. The server can compile a java program. During compilation I don't want to bring it down with any error, ensuring compi... | java | [1] |
92,280 | 92,281 | HTC Incredible not showing Ime Options on soft keyboard | <p>I have set the IME options for my <code>AutoCompleteTextView</code> object like this: </p>
<pre><code>inputSearch.setImeOptions(EditorInfo.IME_ACTION_NEXT);
</code></pre>
<p>and also in another area, at a certain point i set the IME Options to:</p>
<pre><code>inputSearch.setImeOptions(EditorInfo.IME_ACTION_GO);
... | android | [4] |
3,075,371 | 3,075,372 | while loop with number of days in a month | <p>I'm trying to get this piece of script to work, but it keeps dying</p>
<pre><code>$currentdays = intval(date("t"));
echo $currentdays; //echoes 30 as we're in April
$i = 1;
while ($i <= $currentdays){
echo $day;
}
</code></pre>
<p>It keeps dying with no error. I feel like it's timing out, but it's certainl... | php | [2] |
3,330,545 | 3,330,546 | jquery radio group toggle on click | <pre><code>$("input[name=sample]").click(function(){
$("#"+$(this).val()).show();
$("#"+$("input[name=sample]:not(:checked)").val()).hide();
});
});
</code></pre>
<p>I was using this for switching between two divs. But when i added a third div and radio button, this didn't work for third o... | jquery | [5] |
2,066,245 | 2,066,246 | find first occurance of class in div | <p>I have the below html structure, i want to find the inner html of first div with class as "popcontent" using JQUERY</p>
<pre><code><div>
<div class="popContent">1</div>
<div class="popContent">2</div>
</div>
</code></pre>
<p>thanks</p>
| jquery | [5] |
2,306,086 | 2,306,087 | PHP angled single quote vs stright single quote | <p>I had a developer create some code for me and he has used angled single quotes throughout the SQL statements. I have never used these before and was hoping someone could explain the difference between angled and straight?</p>
<p>If I replace all angled with straight quotes the queries dont work.</p>
| php | [2] |
5,051,148 | 5,051,149 | PHP calculating the intersect of arrays | <p>Array declaration: <code>$uids = array();</code></p>
<p>Next these arrays may or may not be created:</p>
<pre><code>$uids['locations'];
$uids['ages'];
$uids['genders'];
</code></pre>
<p>If at least 2 of them are created I want to calculate the intersect. If all 3 are created I want the intersect of all 3.</p>
<p... | php | [2] |
3,445,155 | 3,445,156 | jquery, jqplot change option value | <p>im using jquery: <a href="http://www.jqplot.com/" rel="nofollow">http://www.jqplot.com/</a> and i made a nice chart.
the only problem i got is this:
when im over 300 pixels of the chart, i want the highlighter tooltiplocation go's to 'nw' if its smaller its 'ne'.</p>
<p>current options: </p>
<pre><code> highlight... | jquery | [5] |
4,613,828 | 4,613,829 | how to change android webview context menu(open, open inOpen in new window, bookmark link ...)? | <p>When, I used long press on any web link(URL) on web page, Android will display the Context menu with actions (Open, Open in new window, bookmark link, save link, share link, …. ). As per my under stand these options are provided by the Android. </p>
<p>How can I customize the above context menu and add one more act... | android | [4] |
4,601,871 | 4,601,872 | Leaked IntentReceiver from sharing menu | <p>I'm opening the send menu from a button click in a particular activity:</p>
<pre><code>Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_TEXT, "meh");
try {
startActivity(Intent.createChooser(i, "pfft"));
} ...
</code></pre>
<p>Works fine, but when hitting "Back" to cl... | android | [4] |
1,082,674 | 1,082,675 | htaccess in php | <p>I am using htaccess in my projec.there is login section i want to show the my account page as <a href="http:///www/domain.com/username" rel="nofollow">http:///www/domain.com/username</a> . But there is a problem because i have also made a cms which is open as <a href="http:///www/domain.com/cms" rel="nofollow">http:... | php | [2] |
5,036,682 | 5,036,683 | Disable img Tag | <p>I need to disable img tag using javascript. what is the javascript code?</p>
<p>Example :</p>
<pre><code><img id='hrefId' src="/proteus/images/button_find.gif" alt="" />
</code></pre>
<p>Please help me </p>
| javascript | [3] |
5,838,398 | 5,838,399 | Remove tags that created after page load with jQuery | <p>I have small application:
<a href="http://jsfiddle.net/Bwdf6/4/" rel="nofollow">http://jsfiddle.net/Bwdf6/4/</a></p>
<p>But with click on delete, tags that created after page load doesnt remove.
Is there any way to remove tags that created after page load?</p>
<p>Thanks in advance</p>
| jquery | [5] |
3,161,179 | 3,161,180 | Find the "nextes" div having a specific class | <p>Hi i want to select the next div in the dom having a specific class.</p>
<p>with this :</p>
<pre><code><div class="comW"></div>
.....
Some divs
.....
<div class="comWF"></div>
</code></pre>
<p>i want to select the div.comWF after the comW div but it may have some other div before comWF and... | jquery | [5] |
3,451,635 | 3,451,636 | Create function which parse an Enum in C# | <p>I know that to parse a string to specific <code>enum</code> like:</p>
<pre><code>enum AnEnumType
{
TEST_,
OTHER_TEST_,
OTHERS_
}
enum OtherEnumType
{
TEST1_,
OTHER_TEST1_,
OTHERS1_
}
string aValueString = "TEST_";
AnEnumType result = (AnEnumType)Enum.Parse(typeof(AnEnumType), aValueString);
... | c# | [0] |
6,027,214 | 6,027,215 | Get partial HTML with AJAX | <p>I am trying to get a content of a another page using AJAX call. I am able to get the entire document but is it possible to get a better precision and get only a section that is within a target div?</p>
<pre><code><div class="myTarget">content that I need</div>
</code></pre>
<p>Here's how I get it now:... | jquery | [5] |
3,683,645 | 3,683,646 | Way to check redundant code in C# | <p>Is there any tool or way I can check how can I optimize my code? removing redundancy? I am using VS 2010</p>
<p>Thanx </p>
| c# | [0] |
3,348,744 | 3,348,745 | time or timing in C#, and another question | <p>the question is:
how can i for example every two seconds without user intervention make a label flashes.
like every 2 seconds label.text="". and the next two seconds i do this label1.text="visible"
or changing another property like color or anything.</p>
<h1>i give up</h1>
<p>could you help me with a basic code, t... | c# | [0] |
4,847,507 | 4,847,508 | HTTP Connection in Iphone | <p>since m new in iphone i need you guys to help me in learning about http Connections in Iphone..
guys please guide me to some tutorials so that i could learn some http connections tricks in iphone and coudl communicate with WebSites</p>
<p>also please guide me through some Sample code for the following problem:
i w... | iphone | [8] |
2,422,091 | 2,422,092 | How can we display progress icon in button | <p>I need to display progress icon in button so that user can interact other GUI elements while background task is processing.</p>
<p>I have searched in Android developer site and found that we can use animated drawables but don't know how to use them. Please advise on the same.</p>
| android | [4] |
5,802,426 | 5,802,427 | Error faced in doPost in this servlet | <p>Assuming the data return type from MyServlet is html, and doPost is overridden in this servlet. Correct all errors in the code below.</p>
<pre><code>1. <script type=”xxxx/xxxxxxxxxx>
2. $(document).ready(function() {
3. $('.books').click(function() {
4. ... | java | [1] |
3,554,718 | 3,554,719 | Using foreach to create grid | <p>I am creating a grid in GD and was wondering if this is the right way to do it.</p>
<p>I have 2 arrays. One contains all X values, the other contains all Y values.</p>
<pre><code>foreach ($xpointsArray as $xvalue) {
foreach ($ypointsArray as $yvalue) {
// Draw point at coordinates $xvalue, $yvalue
}
}
<... | php | [2] |
3,438,781 | 3,438,782 | $.extend documentation clarification | <p>Following jQuery does not change the value of defaults or options. The returned value is same as empty. empty has been changed and populated with merged data. All is good.</p>
<pre><code>var empty = {}
var defaults = { validate: false, limit: 5, name: "foo" };
var options = { validate: true, name: "bar" };
$.ext... | jquery | [5] |
574,230 | 574,231 | Appending a html tag to php variable | <p>I am newbie to php, just starting learning it, while working with wordpress.</p>
<p>I want to add html code to a php variable, a anchor tag link actually. First i splitted the text using <code>substr()</code>, and now i want to append a anchor tag at the end of post.</p>
<pre><code>$json['timeline']['date'][$i]['t... | php | [2] |
1,355,186 | 1,355,187 | how to enable focus in the main frame, when a new window was opened | <p>C#
how to enable focus in the main frame, when a new window was opened and there is no way to activate actions in the main frame.
Thanks,</p>
| c# | [0] |
4,803,185 | 4,803,186 | Auto rotate custom drawn view on iPhone | <p>I have a UITableView full of custom draw cells. When the view rotates, it just stretches all my custom drawing. How can I get my views to redraw themselves when the view rotates?</p>
| iphone | [8] |
195,050 | 195,051 | display ['name'] inside of a foreach loop coming from another loop | <p>is it possible to use the indexes values inside of a foreach loop that is contained inside a partent for each. Look at the script below and observe that in the child for each I use <code>echo'<div>' .$product['name'] . '</div>';</code> When <code>$product[' name '];</code> belongs to the parent for each... | php | [2] |
423,737 | 423,738 | jQuery - Selecting table column? | <p>I am looking for a selector for all cells in a particular table column. I would like to add html to some existing text inside the cell. </p>
<p>Thanks!</p>
| jquery | [5] |
2,687,100 | 2,687,101 | Facing problem with serialization | <p>HI
Here is my scenario where i have to serialize an object to a file.</p>
<p>I am using binaryformatter to serialize an object as,</p>
<pre><code> IFormatter formatter = new BinaryFormatter();
formatter.Serialize(stream1, object);
</code></pre>
<p>I am writting GetObjectData() as follows,<... | c# | [0] |
4,635,382 | 4,635,383 | Try-surrounded imports and catching KeyboardInterrupt | <p>I'm seeing a lot of the following pattern in a codebase I'm checking out at the moment:</p>
<pre><code>try:
import moduleA
import moduleB
from custom.module.A import AX
from custom.module.A import AY
except KeyboardInterrupt:
sys.exit()
</code></pre>
<p>Haven't seen it before. What's this guard... | python | [7] |
2,538,739 | 2,538,740 | Getting error: "Validation of viewState MAC failed." | <p>I get the error:
"Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster ensure that <code><machineKey></code> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster."</p>
<p>I don't use this error if I do not go th... | c# | [0] |
2,887,906 | 2,887,907 | Modify the order array when using sortable() (jqueryUI) | <p>I have a list I would sort thanks to the sortable fonction of jQueryUI:</p>
<pre><code> <ul id="list-cat">
<li id="cat_0" >Coach</li>
<li id="cat_1" >Victory</li>
<li id="cat_2" >Defeat</li>
</ul>
</code></pre>
<p>My script:</p>
<pre... | jquery | [5] |
2,310,465 | 2,310,466 | Matching a variable to a list and save the match | <p>newbie question,I have the following code where I need to match the data in variable gerrit with the list gerrit_refs and get the corresponding match and save in a variable,how can I do that?</p>
<pre><code>'''
gerrit_refs:
refs/changes/89/202089/4
refs/changes/39/205739/2
refs/changes/94/195594/6
refs/changes/90/2... | python | [7] |
687,280 | 687,281 | $(function(){});, (function($)(){}(JQuery); and $(document).ready(function(){}); any difference? | <p>I have a very strange issue with JQuery, its about a starting of JQuery code when document is ready, as I know there is no difference to use one of methods <code>$(function(){//CODE});</code>, <code>(function($)(){//CODE}(JQuery)</code> or <code>$(document).ready(function(){//CODE});</code>.</p>
<p>Like what said o... | jquery | [5] |
1,644,936 | 1,644,937 | expression evaluation with boolean values | <p>In Java or other similar languages I can't do:</p>
<pre><code>a < b > c
</code></pre>
<p>where a,b,c are boolean types.</p>
<p>In Javascript I can do that and also with other data types values:</p>
<pre><code>var t = 3;
var z = true;
t > z // will be true
</code></pre>
<p>Now why the results is true??... | javascript | [3] |
2,881,258 | 2,881,259 | get current visible part of page displayed in IE | <p>I'm working on a screen reader and till now I was successful to get the whole text of a page in IE. But I have no idea how to get the current visible part of page or to get the current paragraph that is under the cursor in IE.</p>
<p>I don't mean to give me the code, but just to recommend me if there is a way to do... | c# | [0] |
4,356,565 | 4,356,566 | How to compile and run lower version java to higher version? | <p>I am currently working in jdk 1.5 version. I want to compile and execute code in jdk 1.6 version.</p>
<p>How can i do this?</p>
| java | [1] |
5,982,719 | 5,982,720 | PHP not retaining Javascript changes | <p>I have this simple javascript function which changes the body zoom of the web page. The function runs properly when I am having it on a HTML page as a normal javascript. When I embed it in PHP, it is not retaining the body zoom change. The javascript embedded in PHP can be shown as follows:</p>
<pre><code><?php
... | php | [2] |
3,442,917 | 3,442,918 | Android get thing clicked in listview to setText | <p>I have two classes, a listview class with many strings and a class with a text view ..
I want when I click on a string on the listview the second class starts and the textView in it is setText to the item clicked ..</p>
<p>I tried:</p>
<pre><code> @Override
protected void onListItemClick(android.widget.... | android | [4] |
1,876,605 | 1,876,606 | NameError: global name 'AlreadyExists' is not defined when using try/except within a function | <p>I know many of these questions exist but I can't seem to find one that works for the problem I am having.</p>
<p>I have the following:</p>
<pre><code>def function():
try:
# function to create a table on hbase
except AlreadyExists, ae:
print "WARN: " + ae.message
</code></pre>
<p>when I call it from a... | python | [7] |
663,594 | 663,595 | how to use onlocationchanged method in locationlistener | <p>hello i'm pretty new to android..
i'm making an application which needs exact(approx 50m accuracy acceptable) user location..
i'm using locationmanager and locationlistener..
whenever i start the application i need user location returned. problem is that onlocationchanged method in locationlistener returns the latit... | android | [4] |
4,011,502 | 4,011,503 | How to get nicer TimeSpan object output? | <p>If I got such an output - <code>TimeSpan</code> object - how can I get it nicely without extra zeros and so many decimal places?</p>
| c# | [0] |
729,974 | 729,975 | how to open the url from a .pdf file through xcode programming | <p>i'm trying to get the url from a pdf files so that if a user double taps the url on the pdf file, it opens in a new web page.... how can i do it ? any suggestions ? i'm using Xcode 3.2 version.</p>
| iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.