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 |
|---|---|---|---|---|---|
679,154 | 679,155 | Easy looking at Android source code without downloading full code | <p>I want to modify say MediaRecorder class for example. And I want to show at full source code of it. </p>
<p>Where can I get source code of standard classes?</p>
| android | [4] |
5,642,689 | 5,642,690 | jQuery’s deferreds down to earth | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4869609/how-can-jquery-deferred-be-used">How can jquery deferred be used?</a> </p>
</blockquote>
<p>deferred objects appeared in jQuery 1.5. Frankly speaking I don’t get the idea. Could you explain me how to use... | jquery | [5] |
492,918 | 492,919 | Why is my application not detecting a shake gesture? | <p>I'm trying to enable shake gestures within my application but I'm having a problem. </p>
<p>I have different view controllers, but on one of them (not the main view controller for the application) nothing happens in response to a shake gesture. What could be the problem? </p>
<p>The relevant code is as follows:</... | iphone | [8] |
4,847,965 | 4,847,966 | How do I get actual image width and height using jQuery? | <p>On a page I have displayed 100 images, which have the width
and height attribute changed. Image id is in a loop. </p>
<p>How do I get the original image size, inside this loop?
$(this).appendTo(".prod_image").attr('height',150).attr('width',150).attr('title','').attr('name','').attr('alt','').attr('id','id'+i)... | jquery | [5] |
2,923,013 | 2,923,014 | Dynamic variable names Java | <p>How will I be able to retreive value of variable which has a dynamic name</p>
<p>For Example I have list of constants</p>
<pre><code>public class Constant{
public static final String S_R = "Standard(240)";
public static final String S_W = "Standard(180)";
public static final String L_R = "Large(360)";
... | java | [1] |
4,567,834 | 4,567,835 | Is there a way to get the current line number when executing code? c# | <p>I have a application which writes a log to a .txt file</p>
<pre><code>Helper.WriteSimpleDebugTrace(securityLogFilePath, "About to authenticate user.");
Helper.WriteSimpleDebugTrace(securityLogFilePath, "Directory Search Path:");
Helper.WriteSimpleDebugTrace(securityLogFilePath, "Username:" + username);
</code></pre... | c# | [0] |
2,176,244 | 2,176,245 | disable button in a <li> | <p>okay, if I have six buttons in a list, under the <code>li</code> tag (each on is <code>rel</code> to a part of an array), how can I disable a button while it's doing it's thing? (In this case playing a video)</p>I know it's a little vague (i haven't supplied code or anything of the sort), but that's because I don't ... | javascript | [3] |
765,613 | 765,614 | i am getting java.net.socketException in android mobile | <p>i am calling url in my application, it works fine in emulator but not works in mobile,when i run application in mobile i am getting <strong>java.net.socketException</strong> </p>
| android | [4] |
3,506,468 | 3,506,469 | Fail to write to file when I force quit | <p>I have a program that looks like this. I need to consistently write something into a text file but I cannot predetermine when the program is going to end. So I force quit the program.</p>
<pre><code>FILE *f = fopen("text.txt", "w");
while (1) {
fprintf(f, "something");
sleep(1000);
}
</code></pre>
<p>The p... | c++ | [6] |
2,844,167 | 2,844,168 | What is the size limit for Logcat? | <p>I believe Logcat is a circular store and I wonder what is the limit before it overwrites? </p>
<p>Presumably this means that it's time range will vary according to usage.<br>
Is their any way to expand it's capacity?</p>
| android | [4] |
4,806,623 | 4,806,624 | Is it possible to have a data structure that is able to store different types? | <p>A single data structure to store different types in a single variable.</p>
<p>Not asking for generics, some a dynamically typed data structure.</p>
<p>Is it possible?</p>
| java | [1] |
4,454,491 | 4,454,492 | How to use JQuery to highlight a checkobx when it is checked | <p>I am trying to use JQuery to highlight the checkboxes checked by a user,<br/>
and when they will be un-highlighted when the user unchecked those checkoxes.<br/></p>
<p>But how is it possible to do this effect?</p>
| jquery | [5] |
3,327,278 | 3,327,279 | How do I make a program from my C++ code? | <p>I found this code:</p>
<pre><code>#include <iostream>
int main()
{
std::cout << "Hello World!" << std::endl;
}
</code></pre>
<p>How do I run this code?
What software do I need?
How do I use that software to make a program?</p>
<p>I thought this would be a good faq for absolute beginners. E... | c++ | [6] |
5,736,299 | 5,736,300 | How do I change the image on a <asp:buttonField type="Image" /> in code behind? | <p>I have a <code><asp:GridView ></code> with a <code><asp:ButtonField ButtonType="Image"></code> as one of the columns.</p>
<p>Here's the problem: I have to dynamically change the image of this ButtonField during the <code>gridView_RowDataBound(...)</code> event based on the data found in that particular ... | asp.net | [9] |
4,976,626 | 4,976,627 | Using the OnTextChanged TextBox event isn't working | <p>I have a repeater that places 600+ textboxes filled with data on my page.
A typical user will edit several of these.</p>
<p>I would like the OnTextChanged event to run when I hit a save button, but it's not working.</p>
<p>All of my textboxes have the property <code>OnTextChanged="TextBoxChanged"</code>
When my us... | asp.net | [9] |
5,420,663 | 5,420,664 | Copy one string array to another | <p>How can I copy a <code>string[]</code> from another <code>string[]</code>?</p>
<p>Suppose I have <code>string[] args</code>. How can I copy it to another array <code>string[] args1</code>?</p>
| c# | [0] |
3,421,146 | 3,421,147 | How to using GetChanges() in DataTable | <p>I have been developing some application with DataGridView binded to DataTable. So, now I need to do 1 thing: user can edit some fields, and when he clicks by "Save" the application must change some fields programmatically. I'm trying to use this code, but it doesn't work:</p>
<pre><code>private void toolStripMenuIt... | c# | [0] |
581,779 | 581,780 | Java parse a number in exponential notation | <p>I am trying to do a conversion of a String to integer for which I get a <code>NumberFormatException</code>. The reason is pretty obvious. But I need a workaround here. Following is the sample code.</p>
<pre><code>public class NumberFormatTest {
public static void main(String[] args) {
String num = "9.18E+09";
... | java | [1] |
2,907,490 | 2,907,491 | newbie in developing ANDROID APPS (not asking solution for programming) | <p>i am a newbie in android program development .. eventually i know nothing about android programming language... haha... is there any website for me to learn about the android development program? more on android apps (connect to databases..key in or retrieve data in various format >> graph,chart.etc)... and i know t... | android | [4] |
1,807,732 | 1,807,733 | Change TabPageIndicator footer and text colors (ViewPagerIndicator) | <p>This is driving me insane: I can't for the life of me figure out how to change the footer and text colors of my TabPageIndicator (from Jake Wharton's ViewPagerIndicator). I looked at the source code for the sample ViewPagerIndicator app and I can't find where the code differs for the "Default" and the "Styled" sampl... | android | [4] |
4,916,082 | 4,916,083 | how set the border color property through a class name using jquery? | <p>I can set the border color property through using the jquery css method but when reading the border color property back through IE and Firebox, I get different format values. To get around this issue, I add a class name including the border color like this:</p>
<pre><code>$('#'+ pageSection[sectionIndex] +'').addCl... | jquery | [5] |
4,225,757 | 4,225,758 | How to get server-side parameters using jQuery UI remote? | <p>I have a php ajax script that is getting called by some jQuery, and I can not seem to get the parameters that are being passed. Here is the example I am working from: <a href="http://jqueryui.com/demos/autocomplete/#remote" rel="nofollow">http://jqueryui.com/demos/autocomplete/#remote</a></p>
<p>In my php side, I ... | php | [2] |
158,909 | 158,910 | how to get int[][] dimensionArray? | <p>I want to get matrix[i][j] to my int[][] gettwodimensionalArray, I try so many way, but when I do the test, my gettwodimensionaArray still not store from matrix[i][j]. Please help me out, thank you. </p>
<p>Here is my code look like. </p>
<pre><code> public int[][] gettwodimensionalArray(String file_name) {
... | java | [1] |
5,114,812 | 5,114,813 | Should every C++ programmer read the ISO standard to become professional? | <p>Should every C++ programmer read the ISO standard to become professional?</p>
| c++ | [6] |
5,030,674 | 5,030,675 | set keywords into array | <p>I'm using automatic php class to gets the keywords from my website page content
and the out put is exactly like</p>
<pre><code>$text = "blah word1 blah word2 blah word3 blah"
$keywords = "word1, word2, word3";
</code></pre>
<p><img src="http://i.stack.imgur.com/OPRxH.png" alt="echo $keywords;"></p>
<p>and let sup... | php | [2] |
2,371,663 | 2,371,664 | JAVA: I have the address; how can I print its contents? | <p>THE SHORT VERSION: I have an address; how can I print the contents at that address?</p>
<p>LONG VERSION: I have this object, and the object has two fields - dest and source. The source is given to me as an address:</p>
<pre><code> Field Detail
dest
public final VVarRef dest
The variable/register to store the v... | java | [1] |
2,909,220 | 2,909,221 | How to stop a jQuery function being run on keydown when Tab key is pressed | <p>I am new to jQuery and haven't been able to find a solution to this.</p>
<p>I have this HTML:</p>
<pre><code><input type="text" id="Box1" /><br />
<input type="text" id="Box2" />
</code></pre>
<p>And jQuery:</p>
<pre><code>$("#Box1").keydown(function () {
$("#Box2").val("");
});
$("#Box2").... | jquery | [5] |
2,635,869 | 2,635,870 | How to integrate two .apk files | <p>My problem is, I have two android apps. first one is UI app(Activity). second one is non-UI app(Service). How can you integrate both apps and install together?....</p>
| android | [4] |
1,784,030 | 1,784,031 | Classes across multiple files in C++ | <p>I'm almost 100% sure I have the syntax right in both of these classes, however I'm getting the following errors: </p>
<p>For CShape.cpp - "error C2011: 'CShape' : 'class' type redefinition"
For CCircle.cpp - "error CS2504: 'CShape': base class undefined"</p>
<p>Here is the full code for CShape.cpp</p>
<pre><code>... | c++ | [6] |
5,835,799 | 5,835,800 | get fixed number of items from array list c# | <p>I would like to create a list variable of items from another list. So lets say I have a list of 100 items I would like to pull items 25 - 35 and put them inside of another list. is there a way of doing this without calling a big for statement and pulling out the element one by one and putting that into a list. </p>... | c# | [0] |
3,802,299 | 3,802,300 | how to append dropdown list box | <pre><code>$("#Grid").click(
$("#showgrid").load('SomeURL'));
$.each($('#Grid td:nth-child(4n)'), function() {
var forthColumn = $(this);
forthColumn.append("<select><option value='1'>Division 1</option><option value='2'>Division 2</option><option value=... | jquery | [5] |
5,496,684 | 5,496,685 | How can I set for daily morning 9AM notification? | <pre><code>String ns = Context.NOTIFICATION_SERVICE;
NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);
int icon = R.drawable.ic_launcher;
CharSequence tickerText = "Test";
long when = System.currentTimeMillis();
Notification notification = n... | android | [4] |
694,132 | 694,133 | changing date format in javascript dynamically in userside | <p>how to change date format dynamically in clientside using javascript..as i cant change it in serverside..say jsps..as these things meeds 2 b changed frequently.</p>
<p>i am using eclipse,j2ee,jscript</p>
| javascript | [3] |
6,015,928 | 6,015,929 | Should not display the alertview if already another alertview is displaying in iphone | <p>On the iPhone, how can I check whether some <code>UIAlertView</code> is already being displayed before displaying a <code>UIAlertView</code>?</p>
| iphone | [8] |
5,190,921 | 5,190,922 | How to sum time in php? | <p>PHP: How to sum the result of a foreach statement?</p>
<p>Below is my working code. As you will see, I'm trying to count the days in each month and then sum them.</p>
<pre><code>// A function to calculate days in a given month using just the date
function daysInMonths($date)
{
$month = date("m", strtotime($d... | php | [2] |
3,539,151 | 3,539,152 | BulletedList in asp.net | <p>How I can give separate style to custom image of Bulletdlist in .net?</p>
| asp.net | [9] |
231,218 | 231,219 | Try to use Window.FEATURE_CUSTOM_TITLE but got Exception:You cannot combine custom titles with other title feature.. | <p>I am trying to use a custom title to include an image button to the title bar.
I got a lot of help form this post: <a href="http://stackoverflow.com/questions/2569753/android-adding-button-to-the-title-of-the-app">http://stackoverflow.com/questions/2569753/android-adding-button-to-the-title-of-the-app</a>, but cou... | android | [4] |
2,649,635 | 2,649,636 | Android: Get physical device orientation in a portrait-only app | <p>My app is locked into portrait orientation only, however in one fragment I have a camera preview where I would like to rotate captured images based on the device orientation. I believe that because my app is portrait only, the following code always logs zero. </p>
<pre><code>Display display = ((WindowManager)getAct... | android | [4] |
1,532,683 | 1,532,684 | Cannot refer to an instance member of a class from within a shared method | <p>I have a public shared function and I'm trying to access the values of a text box and a session variable.</p>
<p>I'm getting the error "Cannot refer to an instance member of a class from within a shared
method or shared member initializer without an explicit instance of
the class."</p>
<p>Is there any way I can ge... | asp.net | [9] |
3,704,245 | 3,704,246 | Javascript - use of indexOf to search for strings | <p>In the first block, I make sure the password does not contain 'password'. It works perfectly.</p>
<pre><code> var element=document.getElementById('password');
if (element.value.toLowerCase().indexOf('password') > -1){ //returns 0 or more if present
alert('Password may not contain the word `password`.');
... | javascript | [3] |
1,503,003 | 1,503,004 | can i compile android project without eclipse? | <p>Hello there is one question which comes in my mind from last 2 days. Can we compile our android project without Eclipse? If yes then what is alternatives? Please share it.</p>
| android | [4] |
5,369,159 | 5,369,160 | how do I write to a parent dictionary? | <p>How do I write to a parent's dictionary? I've given a list of urls to some children to retrieve, which then need to write to the parent's dictionary:</p>
<pre><code>from multiprocessing import Pool
import random
parent_dict={}
urls = ['www.yahoo.com','www.google.com','www.microsoft.com','www.apple.com','www.cisco.... | python | [7] |
3,587,785 | 3,587,786 | Quiz game application | <p>I'm new to C# programming so I need to ask C# experts here, what techniques should I use for a quiz game application I'm planning to develop. I'd like my quiz app to be like this:</p>
<blockquote>
<p>1.) What is the capital city of UK? <br />a. London <br/> b. Washington D.C. <br /> c. Tokyo <br /> d. Manila</p>
... | c# | [0] |
4,018,607 | 4,018,608 | How do I limit my Windows application to spawning a single instance of a process? | <p>I am working on a Windows application. I have created a help file (.chm) using a third party tool and I call it from the Windows application. The help file is invoked successfully when I click on <em>Help</em> menu item or press <kbd>F1</kbd> for the application.</p>
<p>The problem I am facing is that if I click on... | c# | [0] |
2,330,979 | 2,330,980 | C++ dynamic byte signatures | <p>Is there a good way (or a good lib/class/source file/something) to, at runtime, find a byte signature (using a string of bytes) at a certain address and get a pointer to that address?</p>
<p>I.e. in running memory:</p>
<blockquote>
<p>... 05 AE 6B 24 B1 00 B5 ...</p>
</blockquote>
<p>and at runtime finding the ... | c++ | [6] |
1,207,537 | 1,207,538 | max_execution_time and sleep() | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/740954/does-sleep-time-count-for-execution-time-limit">Does sleep time count for execution time limit?</a> </p>
</blockquote>
<p>If the max execution time lower than the sleep function argument</p>
<pre><code>i... | php | [2] |
3,090,131 | 3,090,132 | asp.net how to use sever side changes after post back | <p>In my asp.net application I have a some client side scripting that alters the page events and do different things. One problem I am having is when I post back to the server after all of the validation is done on the client side, I have a couple more validation checks on the server side (c#), and I want to show the p... | asp.net | [9] |
2,455,947 | 2,455,948 | How to use a variable correctly through GET? | <p>How can I correctly pass a variable to the path?
<strong>photos.php?fname=MARERINA</strong></p>
<pre><code><?php
foreach(glob('.$_GET["fname"]./*.*') as $filename){
echo $filename;
}
?>
</code></pre>
| php | [2] |
5,268,318 | 5,268,319 | fwrite not working | <p>Is there a way to know why fwrite is not working? I mean as in .net (I am a .net guy) the method just throws the exception which can be caught and the exception message and stack trace message tells all the story why the .net method didn't work. Is there any way I can know why my fwrite is not working as I think my ... | php | [2] |
5,698,862 | 5,698,863 | Query regarding notification on Android | <p>I have the following requirement.</p>
<p>1> I have developed an Android mobile application & lets assume the user is currently on screen X.</p>
<p>2> If the user clicks on the HOME button of the mobile device , the mobile application goes to background & the user is currently on the HOME screen of the mobi... | android | [4] |
3,978,894 | 3,978,895 | why I do not see my Icon in Android Option Menu? | <p>I have the following code to generate a Menu Item:</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu1"
android:icon="@drawable/ic_action1"
android:title="@string/foo" />
</menu>
</code></pre>
<p>I see the Item in t... | android | [4] |
3,596,542 | 3,596,543 | Getting information from RadioButtons and Checkboxes | <p>I have report which consists of 5 questions (there can be <strong>only one answer</strong> or <strong>multiple choice answer</strong>). Question are different for each report. So everytime I generate questions and answers as <code>RadioButtons</code> (one answer) or <code>CheckBoxes</code> (multiple choice answer)..... | android | [4] |
3,576,170 | 3,576,171 | Text processing of an HTTP link in Python | <p>Imagine that I have url</p>
<pre><code>http://www.google.com/subdomain/blah-blah.../.. /..
</code></pre>
<p>So I want to extract 4 things from this
1) The Protocol: "http"
2) "www"
3) domain name : google"
4) "com" portion
5) subdomain par: all those after .com part
But as you can see this link can be anything</p>... | python | [7] |
1,118,289 | 1,118,290 | JavaScript variable declaration | <p>What's the difference between following types of var declaration in JavaScript?</p>
<pre><code>$x
var x
var $x
</code></pre>
| javascript | [3] |
4,491,661 | 4,491,662 | If I have got content of line 2 I want to get content of line 9. How to do? | <p>I have text file:</p>
<pre><code>[1]AAAAAA
[2]BBBBBB
[3]CCCCCC
[4]DDDDDD
[5]
[6]
[7]
[8]111111
[9]2222222
[10]333333
[11]4444444
[12]555555
[13]6666666
</code></pre>
<p>If I have got content of line 2 I want to get content of line 9. How to do?</p>
| python | [7] |
3,292,144 | 3,292,145 | in android nothing displayed | <p>I am doing a application that has database coding and some classes. I put Log.e() after and before the <code>setContentView(R.layout.main);</code> in main activity but no log value printed in Logcat and no design applied for the main activity. </p>
<p>my logcat prints:</p>
<blockquote>
<p>05-03 16:19:06.011:
E... | android | [4] |
1,950,636 | 1,950,637 | use jquery to animate lines of text | <p>I have a paragragh of text.</p>
<pre><code><p>
line1
line2
line3
</p>
</code></pre>
<p>intially all the text are red
when a button is pressed
each line's color changes to black gradually (2 sec each line)</p>
<p>can this be done with only jquery?</p>
| jquery | [5] |
3,355,151 | 3,355,152 | Activity passing from last to first activity | <p>I have 4 Activity are there i want to come from 4th activity to first activity without using intent, pls which method i need to cal.2nd & 3rd activity will not be effected.</p>
| android | [4] |
5,661,753 | 5,661,754 | Javascript split remove ":" colon character | <p>I have a string like this.</p>
<pre><code>var a="1:2:3:";
</code></pre>
<p>I want to split it with <code>a.split(":")</code> to remove the ":" colon character.</p>
<p>I want to get this as the result:</p>
<pre><code>["1","2","3"]
</code></pre>
<p>But instead the result of <code>a.split(":")</code> is this:</p>
... | javascript | [3] |
2,702,746 | 2,702,747 | what is a quick way to delete all elements from a list that do not satisfy a constraint? | <p>I have a list of strings. I have a function that given a string returns 0 or 1. How can I delete all strings in the list for which the function returns 0?</p>
| python | [7] |
4,284,039 | 4,284,040 | Android, Is it possible to consolidate two APK files? | <p>I have a project for Android. In this project my client asked me following scenario but I'm not sure that it is possible.</p>
<p>They want to create an app-store for android. In this store after developer uploads his application we should wrap this APK file with our APK file (therefore we will have one APK file). T... | android | [4] |
4,632,021 | 4,632,022 | how to display a dial pad | <p>how would I open the Dialpad and get the Number that the User like to call.
So I can do a check with it before I dial it from my Source?</p>
<p>If possible, with a small example.</p>
<p>Thanks
Anshuman</p>
| android | [4] |
4,626,749 | 4,626,750 | Proper layout folders for 7 and 10 inch layouts | <p>I'm looking to build 3 total layouts for my android app. The first is layout-normal for phones. I also want two other layouts, one for 7inch screens, one for 10inch screens. What should those folders be named? I was told layout-sw600dp and layout-sw720dp but now I'm not sure if that's correct.</p>
| android | [4] |
91,333 | 91,334 | C# why sizeof is unsafe and how to get size of a struct in a safe way? | <p>I've defined a struct to send via socket. I'd like to get the size of it but <code>sizeof</code> is unsafe and the same for "<code>System.Runtime.InteropServices.MarshalSizeOf</code>". Is there a way to get its size in a safe way?</p>
| c# | [0] |
2,818,022 | 2,818,023 | Passing member function to function pointer | <p>I have to pass in a function pointer of a member function to another class. I couldn't get it to compile and I get the "undefined reference to classB::classB(classA::*)(std::shared_ptr) " error. Can someone help me with this?</p>
<p>Thanks.</p>
<pre><code>classA{
string functionA(share_ptr<int>);
void fu... | c++ | [6] |
854,570 | 854,571 | multiple style values inside a view | <p>I have 2 styles defined inside styles.xml. I want to apply it to a textview. How to implement that using style = "@style/"</p>
| android | [4] |
3,170,343 | 3,170,344 | complex thinking on simple java challenge, how can i fix it? | <p>Simple stuff but somehow not able to crack it, below piece of code gives compile time exception like <code>unexpected token</code> at <code>try/catch</code> and <code>unhandled exception:java.io.FileNotFound</code> </p>
<pre><code> String fileName = "C:\\GS.xlsx";
try{
CSVReader reader = new CSVReader(... | java | [1] |
911,033 | 911,034 | combo box and Generic list | <p>I'm Having a list</p>
<pre><code> List<string> strArraylist = new List<string>();
</code></pre>
<p>i want to add to it the values of a <strong>combo box</strong> ..</p>
| c# | [0] |
1,218,771 | 1,218,772 | How do I call a nested function in a parent document from an iframe | <p>In parent:</p>
<pre><code>function outer(){
function inner(){
alert("hello");
}
}
</code></pre>
<p>in iframe</p>
<pre><code>parent.outer.inner();
</code></pre>
<p>does not work.</p>
<p>Edit: So they are private. No problem. The reason for doing this is to try and hide these functions from global... | javascript | [3] |
179,812 | 179,813 | How to redirect URLs to login page? | <p>I have an application which has a login page which comes up with the URL: </p>
<p><a href="http://localhost:8080/Analyze" rel="nofollow">http://localhost:8080/Analyze</a> </p>
<p>when the user fills the login page and clicks submit.it goes to a page with the URL: </p>
<p><a href="http://localhost:8080/Analyze/ana... | java | [1] |
469,934 | 469,935 | Linking problem with Three20 | <p>I'm using Three20 in my project. I added Three20 to my project using the python script supplied. Everything works fine when I compile and deploy my project onto the iphone 4 in debug mode, but when I try to build for distribution (Build and Archive) the compile fails with 2 linking errors.
Does any one know what thi... | iphone | [8] |
2,910,293 | 2,910,294 | Fileupload Control in asp.net | <p>I want to get full path which user selected in file upload control.
how can we do it. </p>
| asp.net | [9] |
3,252,987 | 3,252,988 | how to filter text inside html tag using jQuery | <p>i want to grab text inside a div element like this : </p>
<pre><code><div class='someclass'>
<blockquote>some text ! </blockquote>
another text goes here .
</div>
</code></pre>
<p>so i get all text with jQuery like this:
var qtext = $('.someclass').text(); </p>
<p>but i don't want <code... | jquery | [5] |
3,297,848 | 3,297,849 | if i choose contact, i didn't get the contact that i mean | <p>i know how to get all contact on Android, but if i choose the contact i can't get the contact what i want. example : i have 4 contact</p>
<pre><code>joe have phone number 7889 987;
erick have phone number 8792 871;
nona phone number 3653 872 and 2345 907;
rina phone number 8796 235;
</code></pre>
<p>if i choose jo... | android | [4] |
4,054,064 | 4,054,065 | Python - value in list of dictionaries | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1580270/whats-the-best-way-to-search-for-a-python-dictionary-value-in-a-list-of-dictiona">What's the best way to search for a Python dictionary value in a list of dictionaries?</a> </p>
</blockquote>
<p>I ha... | python | [7] |
1,145,103 | 1,145,104 | How to avoid scroll bar in all browsers while a jQuery Dialog box is showing? | <p>I have a page where when we click a button a Jquery dialog box is called using JQuery. But when it is shown the Window scroll bar is shown in all browsers. How can we avoid this?
Can we avoid this uising JQuery? Or is it is better to fix by CSS?.</p>
| jquery | [5] |
974 | 975 | Two way communication in two android emulators | <p>I have a server client code in one file, running fine for the client to server when using
redir add tcp:clientEmulatorPort:serverEmulatorPort</p>
<p>but for the server side to reply back to client I have redirection issue of the ports as redir add tcp:serverEmulatorPort:clientEmulatorPort because now server emulat... | android | [4] |
1,819,245 | 1,819,246 | Change canvas width and height in android | <p>I want to change width and height of a canvas in android?
How can I do it?</p>
<pre><code>protected void onDraw(Canvas canvas) {
canvas.drawColor(Color.WHITE);
super.onDraw(canvas);
final long now = SystemClock.uptimeMillis();
if(movieStart == 0)
movieStart = now;
final int relTime = (in... | android | [4] |
399,791 | 399,792 | show loading message while content loads | <p>I know the following code would show a loading image when a button is clicked on the page:</p>
<pre><code> $.ajaxSetup ({
cache: false
});
var ajax_load = "<img src='img/load.gif' alt='loading...' />";
var loadUrl = "ajax/load.php";
$("#load_basic").click(function(){... | jquery | [5] |
3,260,282 | 3,260,283 | Image control in asp.net? | <p>In web application, i am trying to display image in .aspx page, for that i write code like this in page_load event ,</p>
<pre><code>Image1.ImageUrl = @"C:\Users\Public\Pictures\Sample Pictures\Koala.JPEG";
</code></pre>
<p>but image is not displaying, can you help me thank you.</p>
| asp.net | [9] |
2,822,617 | 2,822,618 | Android long-duration socket listener | <p>My company has, in essence, undertaken a project to replace some of its pagers with stock smartphones running Android. As long as they are signed in, the device should be listening on a particular socket to receive "pages" from a server. My naive implementation was to create a foreground service that 1) kicked off ... | android | [4] |
4,915,309 | 4,915,310 | For my project I want to convert an integer into byte array and byte array back to integer | <p>For my project I have to convert an integer into byte array and byte array back to integer.
I did the below code but it is not working</p>
<pre><code> int temp=200;
byte[] tempbyte= new byte[4];
String s= String.valueOf(temp);
tempbyte= s.getBytes(); // integer to byte array conversion
String s2 = String.... | java | [1] |
5,983,268 | 5,983,269 | Show ToolBar over TabBar | <p>In my app I would like to replace the TabBar with a ToolBar under certain conditions, similar to what happens in the Photos App when a user places it in selections mode (A toolbar with share copy, etc, buttons appear over the tab bar). How can I achieve this please?</p>
| iphone | [8] |
3,075,618 | 3,075,619 | How to save times, timezone question | <p>I'm building an ASP web app that stores appointment times; it'll be used in different timezones. I'm currently saving an appointment in the database as a datetime field. Do I also need to add a field to save the timezone? What's the best option to solve these multi-timezone issues?</p>
<p>Thanks.</p>
| asp.net | [9] |
5,109,104 | 5,109,105 | how to restart the JVM? | <p>is there any possibility of unloading all the java class from the JVM or restart the JVM.</p>
<p>i have called System.exit(0) in my application when certain condition is met, all i want is restart the application that is start from main method onwards</p>
| java | [1] |
5,027,609 | 5,027,610 | The right way to create pointer to pointer object? | <p>What is the right way to create a pointer to pointer object? Like for example,</p>
<pre><code>int **foo;
foo = new int[4][4];
</code></pre>
<p>Then the compiler gives me an error saying "cannot convert from int (*)[4] to int **.</p>
<p>Thanks.</p>
| c++ | [6] |
5,758,924 | 5,758,925 | GetExportedTypes() exception for ReflectionOnlyLoadFrom | <p>I am getting an error in a piece of code in our framework which I have no idea how to solve.</p>
<p>Basically, we have a list of dlls via Directory.GetFiles("*.dll"), and when iterating over the list and doing Assembly.ReflectionOnlyLoadFrom(filename).GetExportedTypes(), I get an exception : "Method 'abc' has no im... | c# | [0] |
2,414,086 | 2,414,087 | Can any one suggest a good networking project in python | <p>I want to do a networking project using python. Can any one suggest a useful project in networking? I am aiming to complete it within next 5 months or so.</p>
| python | [7] |
1,877,982 | 1,877,983 | Skipping if condition in jquery | <p>I am using following code snippter on button click event. Issue is if I don't select radio button than it gives me alert undefined but if I use same condition that is if I equate value of same in if condition than it escape condition.
From below code I am not getting <code>alert("Select action to perform.");</code> ... | jquery | [5] |
3,368,490 | 3,368,491 | difference between "Pacific standard time(mexico)" and "Pacific standard time" | <p>There are many time zones for single value of offset, is there any difference between these time zones for single value of offset.
If yes, then how to differntiate between these.
e.g. In my case I need "Pacific standard time" to be returned for offset value of "-08:00"
but I am getting "Pacific standard time(mexico)... | c# | [0] |
321,486 | 321,487 | problem installing ADT for eclipse | <p>I have installed Eclipse on my laptop - it seems to be the Indigo version. The I tried to Install new software. I entered the <a href="https://dl-ssl.google.com/android/eclipse" rel="nofollow">https://dl-ssl.google.com/android/eclipse</a> url into the Work With box. After pending resolved itself I then pressed n... | android | [4] |
4,642,351 | 4,642,352 | how to use handler to run a task in background | <p>I am using following code to to access web service and its showing me error application no responding.</p>
<pre><code>package com.android.webservice;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.Ht... | android | [4] |
2,556,774 | 2,556,775 | Incomplete scan of bluetooth devices | <p>I am trying to scan for bluetooth devices using a processing based android app. I would like to use processing to communicate to my microcontroller board via bluetooth as shown in the example below:</p>
<p><a href="http://webdelcire.com/wordpress/archives/1045" rel="nofollow">http://webdelcire.com/wordpress/archive... | android | [4] |
4,224,286 | 4,224,287 | offsetof function in c++ | <p>here is code </p>
<pre><code>#include <stdio.h>
#include <stddef.h>
struct mystruct {
char singlechar;
char arraymember[10];
char anotherchar;
};
int main ()
{
printf ("offsetof(mystruct,singlechar) is %d\n",offsetof(mystruct,singlechar));
printf ("offsetof(mystruct,arraymember) is %d\n",o... | c++ | [6] |
1,267,413 | 1,267,414 | Reverse filter in jQuery | <p>Instead of this...</p>
<pre><code>$("#gridContainerAvailable input:checkbox")
</code></pre>
<p>How do I do this...</p>
<pre><code>var parent = $("#gridContainerAvailable");
parent.[insert method here].('input:checkbox')
</code></pre>
<p>Cheers, Ian.</p>
| jquery | [5] |
10,575 | 10,576 | why do I see the output of error_log but not die in PHP? | <p>I noticed that when I issue a <em>die</em> statement in php, it's output doesn't appear on the error log (If i put an error_log statement right beside it it shows fine though).</p>
<p>I tried everything.. Here are the settings I did to make sure I see all my error logs:</p>
<p><strong>php.ini</strong>:</p>
<pre><... | php | [2] |
5,292,433 | 5,292,434 | what should i put in this if statment to save the the current array value to a variable | <pre><code>if (preg_match('/^([0-9]( |-)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$/', $buffer, $matches));
{
$variable = ?;
}
</code></pre>
| php | [2] |
1,154,652 | 1,154,653 | How to encode & decode non Ascii characters? | <p>I am developing an application in which i want to encode the Spanish text.
But the problem is that,it doesn't encode the special characters such as <strong>á, é, í, ó, ú, ü,Á, É, Í, Ó, Ú, Ü,Ñ,ñ</strong> .
How can i do this?i want to <strong>encode-decode the spanish text</strong>.</p>
| c# | [0] |
1,285,107 | 1,285,108 | mysql_fetch_assoc only returns 1 result | <p>mysql_fetch_assoc is only fetching one record (checked database side of things all good)
Php Code:</p>
<pre><code><?php
$folder_id = $_GET['folder_id'];
$query = mysql_query("SELECT * FROM gallery_photos WHERE folder_id = $folder_id");
if (mysql_num_rows($query) == 0)
{
echo '<h2>Sorry, you cannot change... | php | [2] |
339,241 | 339,242 | How to make links in element availible when clicking on this element checks a checkbox? | <p>I have links inside an article element. While clicking on the element a checkbox achieves checked attribute. But links inside this element are inactive.</p>
<p>How could i improve this script to make the links available?</p>
<p><a href="http://jsfiddle.net/57GsC/" rel="nofollow">http://jsfiddle.net/57GsC/</a></p>
... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.