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,214,372 | 2,214,373 | Does std Class in PHP creates a Hidden Fields for each property | <pre><code>$Var = new StdClass;
if($_POST['somvar']){
$Var->somvar = $_POST['somvar']
}
else
{
$somevar=''
}
</code></pre>
<p>Why is it creating hidden varaible for this statement
"$Var->somvar = $_POST['somvar']"
when i see the view source </p>
<p>How do i persist the state of this variable when moving to n... | php | [2] |
2,287,739 | 2,287,740 | Android: How to upload a video to facebook after clicking on a button? | <p>I have an app in which i have a requirement to upload a video in facebook after clicking on a button. How can i do that? can anyone of you suggest a solution?</p>
| android | [4] |
654,131 | 654,132 | Testing FPS using Android plugin for Eclipse? | <p>Ive no doubt this question may have been addressed before but how can I turn on a framerate monitor to use when I run my programs using the android emulator so I can see exactly what my android game is achieving at a given time?</p>
| android | [4] |
1,714,161 | 1,714,162 | element inside another jquery scrollLeft | <p>For example, I have the following code</p>
<pre><code><div style="width: 100px; overflow: auto;" class="slide-container">
long content here
</div>
$(".slide-container").scroll(function (e) {
var scrollLeftValue = $(this).scrollLeft(); /* want get scroll left count */
});
</code></pre>
<p>When I scr... | jquery | [5] |
2,225,731 | 2,225,732 | Android Map View | <p>In my application if i press a button map is loaded in my layout.again i press the button i got error like this.</p>
<p>onlu one map is added to a single map activity . how to solve this.</p>
| android | [4] |
2,495,889 | 2,495,890 | Problem in Jquery If Block | <pre><code>var htm = $.ajax({
type: "GET",
url: "./viewforms",
async: false
}).responseText;
var myObject = eval('(' + htm + ')');
alert(myObject.attributes[0]["type"]);
$("#updateDiv1").html(myObject.attributes[0]["type"]);
alert($("#updateDiv1").text());
l=$("#updateDiv1").text();
alert(l);
if(l =="String")... | jquery | [5] |
5,781,587 | 5,781,588 | backend for python | <p>which is the best back end for python applications and what is the advantage of using sqlite ,how it can be connected to python applications</p>
| python | [7] |
2,645,899 | 2,645,900 | How to Reverse Hebrew String in Python? | <p>I'm trying to reverse Hebrew string in Python:</p>
<pre><code>line = 'אבגד'
reversed = line[::-1]
print reversed
</code></pre>
<p>but I get: </p>
<pre><code>UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 0: ordinal not in range(128)
</code></pre>
<p>Care to explain what I'm doing wrong? </p... | python | [7] |
5,687,040 | 5,687,041 | How do I make a function reference in PHP? | <p>I'm trying to make an associative array with values that are references to functions. What is the proper way to do this? This code works, but gives me a warning.</p>
<h3>Code</h3>
<pre><code><?php
$mergeCodes = array(
'rev:(\d+)' => reverse_me,
);
$test = "This is a [[rev:1234]] test";
echo "BEFORE:... | php | [2] |
3,850,899 | 3,850,900 | Android SD card storing checking using Emulator | <p>I am storing the information in a file in SD card in Android applicaiton. Can i check in emulator whether the information is correctly storing in sd card?</p>
| android | [4] |
5,632,225 | 5,632,226 | Show More piece by piece - jQuery | <p>I've been working with the below code, (also found here: <a href="http://viralpatel.net/blogs/dynamically-shortened-text-show-more-link-jquery/" rel="nofollow">http://viralpatel.net/blogs/dynamically-shortened-text-show-more-link-jquery/</a>), to dynamically display more text when a "show more" link is clicked.</p>
... | jquery | [5] |
940,213 | 940,214 | java.util.Properties - how to purge memory on demand | <p>I am running a swing application in which I am getting all the labels, errors, etc. from property file. I have 2 huge global property files for error messages and labels. Huge means - 150kb. </p>
<p>Also there are smaller property files and xml files which are cached. They are not big but they might all add up in ... | java | [1] |
5,088,894 | 5,088,895 | How to perform an activity using Jquery on page load | <p>I have below code in Jquery</p>
<pre><code>$(document).ready(function() {
// bind to cells with an ID attribute
$("table > tbody > tr > td[id]").mouseover(function() {
// grab the anchor from the LI whose ID starts with the cell's ID
var $tooltip = $("div:hidden li[id^=" + $(this)... | jquery | [5] |
2,329,088 | 2,329,089 | PHP code line break `\n` causing gap between elements | <p>I'm echoing a series of HTML elements using PHP. I'm using <code>\n</code> to cause code line breaks to make the source code more organized and legible. </p>
<p>For some reason, the use of <code>\n</code> in a specific location is causing a mysterious gap between the HTML elements. In firebug, this gap is not showi... | php | [2] |
123,476 | 123,477 | Drag and drop in jquery | <p>I didn't get the id of dropped div on dropping on another div
i get the id_droppable i but didn't get the id_dropped div
The alert id_dropped give undefined as result</p>
<p>Please help me verify my code and correct my error.</p>
<pre><code>$(".full-circle").droppable({
accept: ".unseated_guest",
drop: fu... | jquery | [5] |
3,769,572 | 3,769,573 | Compare file extension to file header | <p>I'm starting to design an application, that will, in part, run through a directory of files and compare their extensions to their file headers.</p>
<p>Does anyone have any advice as to the best way to approach this? I know I could simply have a lookup table that will contain the file's header signature. e.g., <code... | java | [1] |
1,097,212 | 1,097,213 | Is bad/good/optionnal to defined vars after created them? | <p>Reading the code of many javascript libraries, I see that many developers use to set variables as soon as they were created them.</p>
<pre><code>var i = 0,
var c = 0;
</code></pre>
<p>I prefer instead to defined vars after created them.</p>
<pre><code>var i,
c;
i = 0;
c = 0;
</code></pre>
<p>But there might... | javascript | [3] |
4,619,264 | 4,619,265 | Is it necessary to filter the include path before autoloading? | <p>is it necessary to filter the paths of files before autoloading them. </p>
<pre><code>if (strpos ($class, '.') !== false || strpos ($class, '/') !== false
|| strpos ($class, '\\') !== false || strpos ($class, ':') !== false) {
return 'error: contains bad character';
} else {
if (file_exists ($class.'.php... | php | [2] |
4,859,815 | 4,859,816 | Is it possible to know which camera is currently using in android? | <p>In my application i want to know whether the camera application is On or not and also the type of camera(Front camera or back) ?</p>
| android | [4] |
4,527,663 | 4,527,664 | show/hide div jquery | <p>I am keeping having errors from the below code:</p>
<pre><code><input type="button" id="test" name="test" onclick="test();" value="Test"/>
function test(){
$('#divUser').hide('fast');
$('#divAddress').hide('fast');
$('#divDetails').show();
}
</code></pre>
<p>or </p>
<pre><code> $('#test'... | jquery | [5] |
1,408,984 | 1,408,985 | ListActivity with Recursion Android | <p>my problem is the next one:</p>
<p>I want to use a ListActivity with recursion, so that it is called "x" times, and everytime i click in one article on the list, it is re-calling again the same Activity but it is loading different data, cause what I wanna do is to make menu and sub-menus, and the expandableList is ... | android | [4] |
367,817 | 367,818 | Using jQuery's .add method | <p>Either I am making a very silly mistake here, or there is a bug with jQuery's <code>.add</code> method. Most likely the former.</p>
<p>I am trying to implement a list of items that could be selected. Here's my <a href="http://jsfiddle.net/2weq2/" rel="nofollow">code on jsfiddle</a>.</p>
<p>The test case that is fa... | jquery | [5] |
3,732,843 | 3,732,844 | How to display data from sqlite in textview | <p>i have a problem... How to display data from sqlite in textview..</p>
<p>please help me out..</p>
<p>Thank u..</p>
| android | [4] |
870,115 | 870,116 | How to reference Image Class in C# winforms? | <p>I'm making a new Project which is a class library.</p>
<p><img src="http://i.stack.imgur.com/1cX90.png" alt="alt text"></p>
<p>my problem is I always got this error:</p>
<pre><code>The type or namespace name 'Drawing'
does not exist in the namespace 'System' (are you missing an assembly reference?)
</code></pre>... | c# | [0] |
270,992 | 270,993 | Fetching records from database and record is more display it in the other page(like next and previous page on the site button) | <p>Hi i want to create my project where i have to fetch record from database if records is too much for single page i want it to display in the other page so please help me what i have to do for this.</p>
| php | [2] |
720,391 | 720,392 | Implementing a grid like in the applications launcher screen? | <p>I want to create a screen that will have a similar grid like the applications screen, with <code>horizontal scroll</code> like the applications screen have:</p>
<p>I have tried using a <code>Gridview</code> but it only scrolls vertically, is there a way to use a <code>ViewPager</code> to achieve this ? </p>
<p><im... | android | [4] |
5,126,423 | 5,126,424 | problem not showing list on tab click, call new activity "openingtoday" | <p>hello when i click tab then my below class named "openingtoday" fire and i want to load data in list view after xml parsing done,my problem is that when i click tab parsing is done by calling new ProgressTask6().execute(); in oncreate() but item is not showing in list view but when i go back and load again then ... | android | [4] |
4,872,291 | 4,872,292 | How to delete values in two dimensional array (PHP)? | <p>I have an array which looks like</p>
<pre><code> $cclArray[0]['url']='test.html';
$cclArray[0]['entity_id']=9;
$cclArray[1]['url']='test1.html';
$cclArray[1]['entity_id']=10;
$cclArray[2]['url']='test2.html';
$cclArray[2]['entity_id']=11;
</code></pre>
<p>if i would l... | php | [2] |
1,011,679 | 1,011,680 | Creating and assigning values to deeply nested objects | <pre><code>var obj={
one:{
two:{
three:{
}
}
}
};
function test(){
obj.one=1;
obj.one.two=2;
obj.one.two.three=3;
alert(obj.one);
alert(obj.one.two);
alert(obj.one.two.three);
}
</code></pre>
<p>Could someone explain what I am doing wrong and give me a corrected exampl... | javascript | [3] |
1,945,654 | 1,945,655 | How to tell if you update a control on a page? | <p>If I have a checkbox, and I check it, then do something to check its value, it comes up as checked=false.</p>
<p>How can I get the checked value?</p>
<p>(Sorry about the influx of checkbox related questions, I have been tearing my hair out with a variety of problems all day)</p>
<p>Edit:</p>
<p>I am checking it ... | asp.net | [9] |
3,318,448 | 3,318,449 | List_view customized button | <p>Hi guys I am new to android:- i want to know how to implement customized button in list view. can any one give a useful link. please guide me.</p>
| android | [4] |
369,460 | 369,461 | ContentFlow: avoid image-overlapping | <p>I'm using ContentFlow (http://www.jacksasylum.eu/ContentFlow/index.php) and I would like to avoid image-overlapping adding 20px more on both left and right sides.
Could you tell me how to implement it?
Many thanks!
Corrado.</p>
| javascript | [3] |
4,767,749 | 4,767,750 | Trying to understand error message | <p>I get an error message in VisualStudio that I can't solve on my own. The message is: </p>
<p><em>Inconsistent accesibility: property type 'WindowsFormApplication1.ContactFiles.Contact' is less accessible than property 'WindowsFormApplication1.ContactForm.ContactData'</em></p>
<pre><code>public ContactFiles.Contact... | c# | [0] |
2,336,276 | 2,336,277 | Null Pointer to Object problems | <p>Hi can someone tell why in Linux and windows the same problem occurs :</p>
<pre><code>#include <iostream>
using namespace std;
class A
{
private:
int _dmember;
public:
void func()
{
cout<<"Inside A!! "<<endl;
cout<<_dmember; // crash when reach here.
}
};
int main ()... | c++ | [6] |
1,373,032 | 1,373,033 | Performs form action even out of the form | <p>Hi having a problem with this code even if i clicked on cancel it will still proceed to use the action of my form even though the <strong>CANCEL</strong> button is not part of the <strong>form</strong>, Would appreciate any help.</p>
<p>Here is the code.</p>
<pre><code> <form method="post" action="input_en... | php | [2] |
821,104 | 821,105 | Add row using jquery | <p>I am printing a row with id as 'contactlist1', 'contactlist2', 'contactlist3'.... I have done this according to values stored in database. Now I want to add more row with id 'contactlist4', 'contactlist5', on button click event using jquery. Though I have taken values of variables that I am printing according to dat... | jquery | [5] |
3,355,865 | 3,355,866 | Replacing the content of a Tag in HTML using java script | <p>Html:</p>
<p>Input: </p>
<pre><code> <div id="ABC">
<div id="DEF">
<a title="Google" href="http://google.com">google.com</a>
</div>
<div id="GHI">
The text <a title="Some link" href="linkk">ABCD</a> to be replaced
... | javascript | [3] |
5,136,619 | 5,136,620 | code for starting an application on receiving SMS from particular number in android | <p>hi there i want to start an application on receiving sms from a particular number or particular port. i am trying it with onReceiveintent but i m struggling. so, anyone there to help me in detail?Please explain me with code.
Thanks </p>
| android | [4] |
3,261,080 | 3,261,081 | what is the usage of `(void)d` | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6145548/what-is-the-purpose-of-the-statement-voidc">What is the purpose of the statement “(void)c;”?</a> </p>
</blockquote>
<pre><code>class ArgString : public Arg::Base
{
public:
...
bool Ca... | c++ | [6] |
1,646,691 | 1,646,692 | Problem comparing arrays of Strings with nested loops | <p>This is the problem I am trying to solve: I have two arrays of Strings ("matches" and "visibleObjects"). I would like to search through all the words in the array "matches" to see if there is at least one word from the array "visibleObjects". If this condition is satisfied, I'd like to search through the words in "m... | java | [1] |
1,790,911 | 1,790,912 | asp.net slide shows | <p>I want different type of dot net slide show
options can you give any suggestions or references
or source code</p>
| asp.net | [9] |
5,754,769 | 5,754,770 | How can we generate email failure notice? | <p>How can we generate email failure notice in java if the email is not delivered due to issues like email address does not exists or delivery failure etc.... something like yahoomail notifications</p>
<p>Thanks </p>
| java | [1] |
5,279,399 | 5,279,400 | Android - Display Image Caption Below Images in Gridview | <p>I am utilizing a version of the "Grid View" example from the Android Developers site:</p>
<p><a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html">http://developer.android.com/resources/tutorials/views/hello-gridview.html</a></p>
<p>And I would like to display a small text caption be... | android | [4] |
5,496,752 | 5,496,753 | Important, or just Personal Preference? | <p>I have an extension method that returns stuff (strings, lists, bools, etc), and I usually write them like this:</p>
<pre><code>public string Return(string firstName)
{
/* get first name
*/
string fname = result.FirstName;
return fname;
}
</code></pre>
<p>You'll notice that I declared a new variable "f... | c# | [0] |
3,185,437 | 3,185,438 | Android:using hashmaps and strings | <p>just started dabbling in Android and have been told that Strings shouldnt be hard coded into Java but put into the string resource folder.</p>
<p>I have existing code where in a hashmap the key and value are both strings.How would i go about putting the strings into xml and taking them out of the java part complete... | android | [4] |
2,506,718 | 2,506,719 | listview.getCheckedItemPositions() not returning correct result when item is unchecked | <p>I used <strong>SparseBooleanArray</strong> to get positions of checked listitems in a listview : </p>
<pre><code>final SparseBooleanArray checkedItems = lv.getCheckedItemPositions(); // lv is my listview
</code></pre>
<p>This works fine when I check a list item. But when I unchecked an item from listview, its ... | android | [4] |
1,550,039 | 1,550,040 | How to implement configuration qualfier for multiple screen size in android | <p>I am designing for supporting multiple screen size application using dip like margin_top etc in 3.2 .what are the folder I have to create for value folder? where i Have to specify dip? can anybody tell how to do? .If I had given value-11 folder and loading layout .I got compilation error no resource found error. b... | android | [4] |
1,725,367 | 1,725,368 | Why is f(x).swap(v) okay but v.swap(f(x)) is not? | <p>We have:</p>
<pre><code>vector<int> f(int);
vector<int> v;
</code></pre>
<p>This works:</p>
<pre><code>f(x).swap(v);
</code></pre>
<p>This doesn't:</p>
<pre><code>v.swap(f(x));
</code></pre>
<p>And why?</p>
| c++ | [6] |
2,840,096 | 2,840,097 | Enum for common names in Request.Form collection | <p>Does ASP.NET contains any enumerator for common field names used in Request.Form collection such as "_<em>EVENTTARGET" and "</em>_EVENTARGUMENT"? I need to refer to those names in multiple places in my app and I would love to be able to type something like <code>this.Page.Request[CommonRequestNames.EventTarget]</cod... | asp.net | [9] |
611,814 | 611,815 | Jquery - Replace Variables | <p>I'm looking to create a jQuery script that will replace an html variable if and only if it is inside a certain div. I'd like it to do this for each PostID though.</p>
<p>Each variable is unique depending on the post id.</p>
<p>Example:</p>
<pre><code><div class="[PostID]">
<div class="special">
<di... | jquery | [5] |
5,375,544 | 5,375,545 | Creating PDF File | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3521097/how-to-create-pdf-files-on-android">How to create pdf files on android</a> </p>
</blockquote>
<p>this is my first post so bare with me. I am relatively new to android programming. I have a program that a... | android | [4] |
4,759,953 | 4,759,954 | c# window application layout problem | <p>Creating an application using C# 3.0. In my desktop system the application form layout is perfect. But the same application opens in my laptop, the form layout alignment is different.</p>
<p>How do i solve this problem.?</p>
| c# | [0] |
2,582,178 | 2,582,179 | Using java arrays | <p>I have 7 lines of data in a text file (shown below). </p>
<pre><code>name: abcd
temp: 623.2
vel: 8
name: xyz
temp: 432
vel: 7.6
</code></pre>
<p>Using regex, I was able to read this data and I have been able to print it out. Now I need to store this data in some variable. I'm leaning towards storing this data in ... | java | [1] |
4,972,761 | 4,972,762 | Export html and css to a file using jquery | <p>Imagine I have a 3 column layout. <strong>Left, center and right div</strong>. I want to export only the center div. This is my export method so far:</p>
<pre><code>function getHtml() {
var htmlStartTag = function(){
var attrs = $('html')[0].attributes;
var result = '<html';
$.each(... | jquery | [5] |
4,172,983 | 4,172,984 | Alternating Item Style | <p>I would actually love to have an AlternatingItemTemplate on a GridView, but all it offers is an AlternatingItemStyle. In my grid, each two column row (in a table layout), has an image in the first column, and a description in the second column. I would like to have the positioning of the image and description alte... | asp.net | [9] |
1,094,723 | 1,094,724 | *Android Error*-Syntax error on token(s), misplaced construct(s) | <p>I'm new at this and is the first time I try to do an android app. I'm trying to do a rock, paper & scissors I know I haven't finish the code but I'm having some error....</p>
| android | [4] |
5,862,939 | 5,862,940 | Using Curly Braces with $_REQUEST to retrieve its indexes | <p>I've been reviewing a sample code to learn PHP and what I saw made me confused in the following code:</p>
<pre><code>$in = $_REQUEST;
require_once 'utils.php';
require_once 'utils_user.php';
require_once 'utils_email.php';
require_once 'utils_affiliate.php';
#Load Settings
$globalSettings = parse_ini_file("setting... | php | [2] |
4,010,061 | 4,010,062 | changing ID of link | <p>I'm having difficulty changing the ID of this link on the fly with jquery. I can change the link text, but not the ID. Any ideas?</p>
<pre><code><a href="#" id="follow-5">follow</a>
</code></pre>
<p>and when you click the link, i'd like for it to look like:</p>
<pre><code><a href="#" id="followin... | jquery | [5] |
573,837 | 573,838 | Caused by: java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord | <p>I am getting error like start recording() called uninitialized audio recording in android 2.3.4 version mobile(LG),its working fine in android 2.2 but throwing error in android 2.3.</p>
| android | [4] |
1,145,843 | 1,145,844 | A particularly interesting program | <p>we did this problem today in math class to kill time after a quiz, and i was wondering if i could make a program along these lines</p>
<p>so the idea is this:<br>
take the number 123,456,789<br>
the first digit from the left is divisible by 1, good, continue<br>
the first 2 digits from the left are divisible by 2, ... | c++ | [6] |
4,970,958 | 4,970,959 | Casting array of objects (which implement interface IFoo) to IFoo[] in C# | <pre><code>class A : IFoo
{
}
...
A[] arrayOfA = new A[10];
if(arrayOfA is IFoo[])
{
// this is not called
}
</code></pre>
<p>Q1: Why is <code>arrayOfA</code> not an array of <code>IFoos</code>?</p>
<p>Q2: Why can't I cast <code>arrayOfA</code> to <code>IFoo[]</code>?</p>
| c# | [0] |
4,291,914 | 4,291,915 | How to compute a minimum-delta for "remote desktop" sharing? | <p>Many free desktop sharing utility software is there in the market but i am thinking about writing own desktop share utility using c# first time for LAN only. this utility will run on two machines. first time sender apps sends complete image of it's desktop image to another machine called receiver. apps running on re... | c# | [0] |
2,992,619 | 2,992,620 | Embed 3th party activity in my Activity | <p>I'm using the following code to get the activity of a 3th party application and to put it in my activity:</p>
<pre><code>LocalActivityManager mgr = getLocalActivityManager();
Intent i = new Intent(this, SomeActivity.class);
Window w = mgr.startActivity("unique_per_activity_string", i);
View wd = w != null ? w.get... | android | [4] |
5,636,472 | 5,636,473 | How to pause and wait for command input in a python script | <p>Is it possible to have a script like the following in python?</p>
<pre><code>...
Pause
->
Wait for the user to execute some commands in the terminal (e.g.
to print the value of a variable, to import a library, or whatever).
The script will keep waiting if the user does not input anything.
->
Continue execu... | python | [7] |
1,245,165 | 1,245,166 | How to get the text before $el with jQuery? | <pre><code><cite>
text here...
<a id="target_element"></a>
</cite>
</code></pre>
<p>How to get the text before <code>#target_element</code>?</p>
| jquery | [5] |
4,990,780 | 4,990,781 | JavaScript string replacement problem | <p>I'm doing some string replacement on text I'm getting back from a JSON web service, the string may look like this:</p>
<pre><code>"Hello I am a string.\r\nThis is a second line.\r\n\r\nThis is a bigger space"
</code></pre>
<p>I want to replace all the <code>\r\n</code> with <code><br /></code> tags so that t... | javascript | [3] |
1,134,042 | 1,134,043 | Background task, progress dialog, orientation change - is there any 100% working solution? | <p>I download some data from internet in background thread (I use <code>AsyncTask</code>) and display a progress dialog while downlaoding. Orientation changes, Activity is restarted and then my AsyncTask is completed - I want to dismiss the progess dialog and start a new Activity. But calling dismissDialog sometimes th... | android | [4] |
4,236,820 | 4,236,821 | How do i convert the following to MON-FRI using Java code | <pre><code><Days>
<day>Mon</day>
<day>Tue</day>
<day>Wed</day>
<day>Thu</day>
<day>Fri</day>
</Days>
</code></pre>
| java | [1] |
1,361,258 | 1,361,259 | jQuery binding ajaxStart and ajaxComplete to a form type? | <p>my app has several jquery-ui-dialogs, all which do very different things. Here's the common template between them:</p>
<pre><code><div class="dialog-content">
<form accept-charset="UTF-8" action="/NOT-UNIQUE" class="NOT-UNIQUE" data-remote="true" id="NOT-UNIQUE" method="post">
<div class="ui-... | jquery | [5] |
906,264 | 906,265 | Consume Json service without mapping to a class | <p>I am consuming a service that returns a Json array. (essentially it is a web request, and the output is the text of a json array.) Is there a way I can get the results, and find what I need without making my own class to map it?</p>
<p>i.e.</p>
<pre><code> [TestMethod]
public void Successfully_Parse_Json_... | c# | [0] |
1,401,255 | 1,401,256 | Iframe loading time with multiple sources, 1 value is always bad | <p>I got a script witch puts urls from a txt file into an iframe, then checks the loading time of each source. If i have 4urls in my txt file, i get 3 results witch are good enough for me, but 1 result is always too short (says frame loaded in 0,016 seconds or so, where others take 1-4 seconds to load). If i delete oth... | javascript | [3] |
4,709,237 | 4,709,238 | is it possible in android to record the call during incoming or outgoing calls | <p>i am here for asking that in android is it possible to record voice call during incoming/outgoing calls without open the speaker of mobile...i had seen a application in android market..it does not correctly record other side voice without opening the speaker because it uses mic for recording purpose..may it be done ... | android | [4] |
1,864,488 | 1,864,489 | replace empty string(s) in tuple | <p>Is there an easy way (hopefully a one liner) to replace '' with something like '-'?<br>
Many thanks.</p>
<pre><code>tup = (1,2,'ABC','','','','text')
</code></pre>
| python | [7] |
1,987,637 | 1,987,638 | Attaching the source of an external jar file | <p>I want to attach the source code to an external <code>jar</code> file that I have. Normally I would just got to <code>configure build path</code>, expand the jar file and edit the source attachment. But since the jar file is an <code>Android Dependency</code> it does not give me that option.</p>
<p>so I have 2 ques... | android | [4] |
4,030,809 | 4,030,810 | How can I get the ID of any element clicked within the $(document) in jQuery/js? | <pre><code>$(document).click(function(e){
alert(e.target);
});
</code></pre>
<p>That alerts [Object HTMLDivElement], is there another variable with the ID of the object?</p>
| jquery | [5] |
2,276,891 | 2,276,892 | How to disable and undisable yes and no buttons | <p>I have 2 buttons which are "Yes" and "No"</p>
<pre><code><input class="answerBtns answers answerBtnsOff" name="answerYesName" id="answerYes" type="button" value="Yes" onclick="btnclick(this);"/>
<input class="answerBtns answers answerBtnsOff" name="answerNoName" id="answerNo" type="butt... | jquery | [5] |
1,662,944 | 1,662,945 | How to send Hindi text from url in android apps | <p>I am designing one android apps .In this apps I want to <strong>send hind text to my sql server by using URL</strong> . So can anyone help me to solve this problem or suggest some solution to send Hindi data to sql server . suggest me some solution to send data to sql server .</p>
| android | [4] |
3,505,697 | 3,505,698 | python add string to the start of each element in array | <p>In the following i have an array where for each element a string should be added at the start and not append ,how can i do this</p>
<pre><code> a=["Hi","Sam","How"]
I want to add "Hello" at the start of each element so that the output will be
Output:
a=["HelloHi","HelloSam","HelloHow"]
</code></pre>
| python | [7] |
4,011,519 | 4,011,520 | How to not hide empty XML nodes PHP | <p>I was wondering how to not just return the closing XML node if it is empty as can be seen with the CustomerFax node below and to also return an the opening node with no content such as OrderType node.. Thanks </p>
<pre><code><PushedOrders clientID="0" domainID="0" username="" password="">
<Order>
<Or... | php | [2] |
117,158 | 117,159 | How to address co-variant array conversion? | <p>I have an image stitching task that could take a lot of time so I run it as a seperate task like this</p>
<pre><code>var result = openFileDialog.ShowDialog();
BeginInvoke(new Action<string[]>(StitchTask), openFileDialog.FileNames);
private void StitchTask(string[] fileNames)
{
// this task could take a l... | c# | [0] |
621,015 | 621,016 | How to debug a jquery plugin? | <p>What is the best way to debug a jquery plugin? When I open the plugin in visual studio it is shown as a single line in the editor. Also, when debugging with firebug, the plugin code is shown as a series of lines with no indentation which makes it hard to follow.</p>
<p>JD</p>
| jquery | [5] |
3,834,173 | 3,834,174 | Is there a way to load javascript scripts concurrently? | <p>Probably not. But still would be nice to have it. Kinda hard to believe that modern standards do not support it.</p>
<p><strong>Update</strong>: I would like to load scripts concurrently as opposed to the asynchronous scripts execution. So that if there are 10 scripts to load (9 small, 1 big) - in that case the big... | javascript | [3] |
1,083,000 | 1,083,001 | Most efficient way to package php API | <p>I am writing a small api that will involve a number of "commands" with common elements, which involve reading parameters POST'ed to the script(s) and acted upon accordingly</p>
<p>I would like to have the most optimum execution, and am not sure if it's better to have one largish script that switches on a $cmd varia... | php | [2] |
2,786,661 | 2,786,662 | jquery issue on checkboxes in multi column in table | <p>I have a HTML table (generated with ASP:Repeater control). I have 2 check box columns in the table. Both the columns have a Select All check box in the header. So when we check the Select All, all the check boxes in the respective columns should be checked(pretty usual stuff. So I have handled that). Now the issue i... | jquery | [5] |
374,928 | 374,929 | Android audio looping | <p>Although a seasoned developer, I'm new to Android, and am wanting to develop an app to loop between user defineable sections of audio recorded via Android's mic in.</p>
<p>I'm wanting as low latency as possible when the loop point is hit (i.e. miminal time to seek the start point of the section and resume playback)... | android | [4] |
2,639,689 | 2,639,690 | How to add date picker control to my toolbox | <p>I am using visual studio 2005 and I have added Datepicker dll in my bin folder.And By doing right click on solution Explorer Add:references,choosed the that dll.But I want display that control in my toolbar.Does I need to create tab for it.Or it automatically get created.</p>
| asp.net | [9] |
3,484,283 | 3,484,284 | Java compatible English Dictionary API? | <p>I am trying to mimic a simple news reader, a desktop application developed on swings. As a part of this I am looking at including a dictionary lookup for a word from within the tool. I am looking at trying to display the meaning for word as a tool tip that appears upon a double click on JTextpane's content(one singl... | java | [1] |
5,416,077 | 5,416,078 | Pass Method as Parameter using C# | <p>I have several methods all with the same signature (parameters and return values) but different names and the internals of the methods are different. I want to pass the name of the method to run to another method that will invoke the passed in method.</p>
<pre><code>public int Method1(string)
{
... do somethin... | c# | [0] |
2,143,774 | 2,143,775 | Hide taskbar using Python in Windows XP | <p>Is there a way to hide the Windows taskbar using Python? If not- is there a way to disable or to re-size and lock it using the registry?</p>
| python | [7] |
5,749,096 | 5,749,097 | How can I make my program return to the beginning in Python? | <p>I'm a really new programmer, just programing for fun. I usually write my programs with a series of while loops to get to different sections of the program at different times. It's probably not the best way, but it's all I know how to do. </p>
<p>For example, I'm working on a little program that runs in a shell mean... | python | [7] |
3,784,922 | 3,784,923 | Where do I place code that fires after the page is returned to the browser | <p>I want to send an Email message after a page is returned to the browser. Where do I place this send Email code so that it does not delay the page that is returned to the browser? </p>
| asp.net | [9] |
1,006,434 | 1,006,435 | Location provider timestamp different between GPS provider and network provider? | <p>I'm using the code from this article provided by google:</p>
<p><a href="http://developer.android.com/guide/topics/location/obtaining-user-location.html" rel="nofollow">http://developer.android.com/guide/topics/location/obtaining-user-location.html</a></p>
<p>to figure out a user's current location. I've been read... | android | [4] |
5,244,389 | 5,244,390 | JavaScript Load New Page Question | <p>What I am looking to do is if a user complete a form it will provide access to a new location.</p>
<pre><code><script language="JavaScript" type="text/javascript">
<!--
function validateForm(theForm) {
var firstname = theForm.firstname.value;
var lastname = theForm.lastname.value;
... | javascript | [3] |
282,974 | 282,975 | How to get the corresponding textview related to a togglebutton in a costum listview? | <p>I have a listview using a costumized ArrayAdapter. I have a textview and a togglebutton inside my list child(single_row.xml). My toggle button is meant to mark/unmark my list items as favorites. In order to update my database (SQLite) I need to access the corresponding textview which is beside the togglebutton. </p>... | android | [4] |
5,803,723 | 5,803,724 | how to add onclick event to create new element in javascript | <p>I have created a <code>label</code> element. I need to add <code>onclick</code> event to that...</p>
<pre><code>function a(me) {
var d=document.createElement("label");
d.id=me.id;
d.onClick="a(10)";
d.innerHTML="welcome";
document.body.appendChild(d);
}
</code></pre>
<p>HTML:</p>
<pre><code>&l... | javascript | [3] |
2,605,268 | 2,605,269 | How can i sample process? | <p>i have application who use specific process during running and i want to sample the process and check if the process crash in order to find the specific file who cause the crash, how can i sample process from my computer and also check if the process id changed ?</p>
| c# | [0] |
4,270,405 | 4,270,406 | PHP function name on the fly | <p>I have a rather stupid PHP question :D! I would like to simplify the following statement:</p>
<pre><code>function hello_input() {
return 'Hello World';
}
$helper = 'hello';
$helper = $helper . '_input';
$data = $helperinput();
</code></pre>
<p>The specific part I want to simplify is the adding of the _input... | php | [2] |
1,659,163 | 1,659,164 | const attribute in class, should be public or protected? | <p>I have some attributes which are const, so should these attributes be made public or protected ?</p>
<p>I was in support of protected because it is used by some of the derived classes, but my friend argued that since it is const, it doesnt make any difference even if it is public, which also makes some sense.</p>
... | c++ | [6] |
2,858,263 | 2,858,264 | WinForms/C#: Implementing long scrollable list of images blows up memory | <p>I try to load jpg-images as a long list of picture boxes into a table layout panel. The list of the images should be scrollable smoothly, i.e. without flickering or visible blurring or dithering. There are around 300 images, each with a size of around 150kb (600px x 850px).</p>
<p>The problem is that when loading t... | c# | [0] |
595,761 | 595,762 | how to change text case using jQuery | <p>I feel like a fool, couldn't figure out how to change case using jQuery.
Stackoverflow = stackoverflow.</p>
<p>jQuery</p>
<pre><code> var name = "Stackoverflow"
$('name').toLowerCase();
alert(name);
</code></pre>
| jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.