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 |
|---|---|---|---|---|---|
5,205,588 | 5,205,589 | Error while placing a spinner inside Activity Group | <p>I have an activity group containing 3 activities. When a button is pressed, I enter into this activity group and show the 1st activity. From the 1st activity I can goto 2nd activity and from 2nd activity I can goto 3rd activity.</p>
<p>I have a spinner in this 3rd activity layout. Problem is I am not able to click ... | android | [4] |
3,574,511 | 3,574,512 | null test versus try catch | <p>Does anyone have metrics on performing null test versus wrapping code in a try catch?</p>
<p>I suspect that the null test is much more efficient, but I don't have any empirical data.</p>
<p>The environment is C#/.net 3.x and the code comparison is:</p>
<pre><code>Dude x = (Dude)Session["xxxx"];
x = x== null ? new... | c# | [0] |
1,038,476 | 1,038,477 | What does f means in animation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4659517/what-does-suffix-f-mean-in-android-programming">What does suffix ‘f’ mean in Android programming?</a> </p>
</blockquote>
<p>Excuse me if it was a stupid question, but I always see people writing somethin... | android | [4] |
3,710 | 3,711 | get start point and end point of user selection | <p>I am trying to get the starting and ending points of user selection. This is the content of a DIV that I have</p>
<pre><code>abc def ghi jkl mno pqr stuv wxyz
</code></pre>
<p>When I select <code>pqr</code> The starting point becomes 1 and the ending point becomes 4 which is wrong</p>
<p>When I select the whole ... | javascript | [3] |
3,527,116 | 3,527,117 | how to add thead to my grid in jquery | <p>i have my grid like this in jquery</p>
<pre><code>success: function(result) {
$('#MyGrid tbody').append('<tr><td>' + result.FileName + '</a></td><td><a href="#" class="remove">Remove</a></td></tr>');
}
</code></pre>
<p>now i want to add thead to MyGrid to w... | jquery | [5] |
3,549,658 | 3,549,659 | Is it possible in python to define functions outside of a programs main namespace and add them for easy access like a .h file in c? | <p>I don't want to really define my own PyObject. I want to have functions available for use within a program, but I don't have a need for class instances and don't want to prefix the fuction call with the name of the module import.</p>
<p>As an example of what I don't want</p>
<pre><code>import coke
coke.make(data... | python | [7] |
4,671,504 | 4,671,505 | jet.OLEDB.4.0 provider Error that i get | <p>i try to install my C# program on Windows 7 64bit</p>
<p>i installed Access too</p>
<p>and i got this error:</p>
<pre><code>The Microsoft.jet.OLEDB.4.0 provider is not registered on the local machine
</code></pre>
<p>that can be the problem ?</p>
<p>thank's in advance</p>
| c# | [0] |
1,133,848 | 1,133,849 | Validate CreditCard Number and checked radio button javascript | <p>I have radio buttons radioVisa, and radioMaster. If either one is checked, I need to first check to see which one is selected and then validate that the card number entered is valid. I also need to make sure that only numbers are entered.... I am not allowed to use any regular expression techniques.... If the radioV... | javascript | [3] |
2,059,552 | 2,059,553 | How to pass variable to double metaphone function | <p>I've downloaded the double metaphone function: <a href="https://github.com/dracos/double-metaphone" rel="nofollow">https://github.com/dracos/double-metaphone</a></p>
<p>It' supposed to work like this: </p>
<pre><code>>>> dm(u'aubrey')
('APR', '')
>>> dm(u'richard')
('RXRT', 'RKRT')
>>> d... | python | [7] |
86,985 | 86,986 | How do I explicitly instantiate a template function? | <p>I have a template function with one argument.
I have to instantiate that function without calling that function means explicitaly I have to instantiate.</p>
<p>I have this function:</p>
<pre><code>template <class T> int function_name( T a)
{
}
</code></pre>
<p>I instantiated that function like this:</p>
<p... | c++ | [6] |
5,836,602 | 5,836,603 | How do I make the Pro version of my app replace or get rid of the free version? | <p>How do I make the Pro version of my app replace or get rid of the free version? after the user has downloaded and installed the Pro version... since I'm sure they wouldn't want both apps on the phone.</p>
| android | [4] |
220,742 | 220,743 | Android id error | <p>I am new to android and having this same problem every time I do something. Whenever I put a line this line in any of my codes it gives me an error in "id". The error says, "id cannot be resolved or is not a field."</p>
<p>What am I doing wrong?</p>
<pre><code>myImageView = (ImageView)findViewById(R.id.imageview);... | android | [4] |
5,255,045 | 5,255,046 | unable to use login session across pages in php | <p>I am unable to pass login session information to other HTML pages. Below is my login php code. I can successfully login but cant pass on the information to other pages like HTML home page and it gets opened though I am not logged in to same. I tried different codes for the same</p>
<pre><code><?php
require_once... | php | [2] |
5,611,467 | 5,611,468 | how get object element down? | <p>I need to get the object <code>test2</code> when I click on the element <code>test1</code></p>
<pre><code><ul>
<li id="test1"><a href="javascript: void(0);">Label one</a>
<ul id="test2">
<li><a href="test.php">test</a></li>
<... | jquery | [5] |
2,595,378 | 2,595,379 | A simple class for getting and printing a string | <p>I have just started working with classes and in this code I'm trying to have a class which gets a string from the user, counts the length of it and then prints it.
But I'm getting some errors that i can't understand what are they for.
I would appreciate some help.</p>
<pre><code>#include<iostream>
using name... | c++ | [6] |
5,064,742 | 5,064,743 | Concatenating all elements in list into a string python | <p>This one should be quick but for some reason I can't think of it. So say I have a list of elements n length (the number of elements will change at some point in the future). However, let's use this one as an example: </p>
<pre><code>['ESZ12', 'ESH13', 'ESM13', 'ESU13', 'ESZ13']
</code></pre>
<p>Now what I would li... | python | [7] |
1,347,745 | 1,347,746 | PHP class not found but it's included | <p>I'm including a PHP class with</p>
<pre><code>require_once($ENGINE."/classUser.php");
</code></pre>
<p>but when the code is executed i receive this error:</p>
<blockquote>
<p>Fatal error: Class 'User' not found in
C:\xampp\htdocs\WebName\resources\engine\ajax\signup.php on line 12</p>
</blockquote>
<p>I stil... | php | [2] |
5,835,249 | 5,835,250 | Do I need to set debug="false" in my ASP.NET web app before I use the "Publish Web Site" feature in VS 2005? | <p>Basically, what I'm wondering is if I need to set debug="false" before hitting the "Publish Web Site" button or if I can switch it after all the files have been published.</p>
| asp.net | [9] |
4,683,649 | 4,683,650 | How can I load java class from database? | <p>like following source code:</p>
<pre><code>package util.abc;
public class Test{
public String out(){
return "Hello World!";
}
}
</code></pre>
<p>I can using:</p>
<pre><code>Class c = Class.forName("util.abc.Test");
</code></pre>
<p>to get this Class,but I must to put this source file(<code>Test.j... | java | [1] |
3,015,749 | 3,015,750 | PHP How can I fix this error? Fatal error: Cannot redeclare class iSerializable | <p>I am having a problem with detecting if an interface class is already declared</p>
<p><em>Error reported is:</em></p>
<p><strong>Fatal error: Cannot redeclare class iSerializable in /public_html/application/AppCode/iSerializable.interface.php on line 3</strong></p>
<pre><code>line1: //nothing here
line2: require... | php | [2] |
34,562 | 34,563 | get attribute value with javascript in select list | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10369241/use-created-attribute-with-javascript-in-select-list">Use created attribute with javascript in select list</a> </p>
</blockquote>
<p>im trying to access an attribute that i created in a select list.</p>... | javascript | [3] |
124,833 | 124,834 | How to redirect in jQuery using POST instead of GET | <p>In my jQuery function I'm redirecting Using window.location.href like this:</p>
<pre><code>window.location.href = "${pageContext.request.contextPath}/redirectUser.ajax?login="+response.result.name;
</code></pre>
<p>It works fine, but I see this String in browser like this:</p>
<pre><code>http://localhost:8080/tas... | jquery | [5] |
3,643,907 | 3,643,908 | Call function with parameter given in arguments lists | <p>I want to receive a function in parameter and call it with one parameter as:
<code>
</p>
<pre>public static <T> T foo(Callable<T> func)
{
return func.call("bar");
}
</code></pre>
<p>But it call doesn't take any parameter. Any idea on how can I do this?</p>
<p>No matter how much I search, I do... | java | [1] |
701,189 | 701,190 | Creating a reference to variable directly from string (without switch statement) | <p>I know the title is not very clear so here it's in code:</p>
<pre><code>function output($selector){
$one = 1;
$two = 2;
$there = 3;
return ? //should return 1 without if or switch statement
}
echo output('one');
</code></pre>
<p>If this is possible, how?</p>
| php | [2] |
3,036,862 | 3,036,863 | Can I log user out after session has reached maxlife | <p>I have a piece of code below where session variables can last for 12 hours:</p>
<pre><code>ini_set('session.gc_maxlifetime',12*60*60);
ini_set('session.gc_divisor', '1');
ini_set('session.gc_probability', '1');
ini_set('session.cookie_lifetime', '0');
</code></pre>
<p>But what my question is that is it possible to... | php | [2] |
5,836,773 | 5,836,774 | $(selector).find().live() returning the parent from a multiple selector | <p>I'm having some trouble with <code>.find()</code> on a <code>.live()</code> returning the wrong element.</p>
<p><strong>HTML:</strong></p>
<pre><code><div id="div1">
<input type="text" id="txt1" />
</div>
</code></pre>
<p><strong>Javascript (jQuery):</strong></p>
<pre><code>$('#div1,#div2')... | jquery | [5] |
5,132,757 | 5,132,758 | Using Custom List on SlidingMenu | <p>Im trying to implement Koush's Widgets <a href="https://github.com/koush/Widgets" rel="nofollow">https://github.com/koush/Widgets</a> inside of a jfeinstein10's SlidingMenu but i can figure out how to do it or if its doable</p>
<p>I got both working, I can add add the widgets to any activity and also got the slidin... | android | [4] |
821,214 | 821,215 | acces of local final variable in inner class broken | <p>I got a method in which server-client communication is done "onClick" therefor i create a anonymous OnClickListener, and I want to publish a toast if the communication was successfull or not.
To do this I need the Acitivity in which context to publish the toast, and as I externalized the method, it must be given as ... | android | [4] |
3,957,389 | 3,957,390 | Error C2064: term does not evaluate to a function taking 1 argument | <p>When I try the below program its gives me the :error C2064: I tried in google but not able to find the exact reason. Please help.</p>
<pre><code>class myClass
{
public:
void function(myClass dTemp)
{
cout<<"Inside myClass: taking myClass parameter"<<endl;
}
};
<... | c++ | [6] |
536,785 | 536,786 | Get java version that was used to compile class | <p>Is it possible somehow to get java version that was used to build class? Is there are any information compiled into class file? Possible there is some specific headers/footers or something like that.</p>
| java | [1] |
5,227,648 | 5,227,649 | Add a website forum to an app | <p>What is the best way to add a website forum to an android app? I want the forum topics in a listview. Then if you click a item in the listview it opens an other activity with another listview with the posts in it. I want also that it is possible to ad posts to a topic. I have on the server side an mysql database. Ho... | android | [4] |
3,831,527 | 3,831,528 | "A potentially dangerous Request.Form value was detected from the client" error using TINY MCE for CMS | <p>When I put value in textbox then its throught this error. I am making Content Management System.</p>
<pre><code>A potentially dangerous Request.Form value was
detected from the client (elm1="<p>ABC</p>").
</code></pre>
<p>when page go to server then it's through error.<br>
Please assist.</p>
| asp.net | [9] |
1,133,091 | 1,133,092 | Php date() function gets wrong minutes... why? | <p>I was working with a project in Php and I noticed that date (and time too) return wrong time.
At first it seemed the wrong timezone, but later I noticed that there is not one or more hours of difference (I'm working on localhost) with system clock, but about 28 minutes... That's weird.. what could it possibly be?</p... | php | [2] |
820,070 | 820,071 | Date to day conversion in php | <p>Hi friends
in my webpage i need to calculate the day[ie. SUN,MON,TUE...] from the date .. The date is in ['06/22/2009'] this format ? How can i calculate it in to day[That is it will show me MON] in php . Please help me to find out . Thanks in advance..</p>
| php | [2] |
4,734,172 | 4,734,173 | prepend inside prepended element | <p>I am having problems with the following jquery code.</p>
<pre><code>$(document).ready(function() {
$(".box").submit(function(e) {
e.preventDefault();
var input_value = $(".textbox").val();
$("<li>"+ input_value +" <br /> <form class='box'><input type='text' name='t... | jquery | [5] |
259,627 | 259,628 | How would I go about getting the package names of the applications that can be Home on android | <p>My activity gets set as the default Home by the user, but I want to be able to launch the default Home from within my activity as well. I've tried hard coding the following: </p>
<blockquote>
<p>Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
PackageManager pm = getP... | android | [4] |
5,293,668 | 5,293,669 | Android is there a way to have a list box with a set size, instead of filling the parent or content? | <p>I would like to have a TextView on top where if it was more then 5 lines of text, it would scroll. Then a list of text on the bottom that simply files the remain space.</p>
<p>I'm using the ScrollView with a TextView inside. The problem is if I set the top scroll to warp content, it will keep getting bigger if th... | android | [4] |
3,476,967 | 3,476,968 | Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in | <pre><code><html>
<title>Title</title>
<body>
<link type="text/css" rel="stylesheet" href="css/bootstrap.css"/>
</body>
<center>
<?
mysql_connect ("localhost", "root","") or die (mysql_error());
mysql_select_db ("dbname");
$term = $_POST['term'];
$sql = mysql_quer... | php | [2] |
4,085,690 | 4,085,691 | How to retrieve milliseconds from java.sql.Timestamp | <p>I have a timestamp object and need to get the milliseconds from it, can someone help me with an example code snippet ?</p>
| java | [1] |
2,683,518 | 2,683,519 | Event, GUI and Threads | <p>I have parent form and child form. Parent form contains a dataGridView (list of accounts) and the child form allows a user to register an account.</p>
<p>The child form is launched on a separate thread.</p>
<p>When the account is registered, it's added to the SQL database and event is fired on the child form which... | c# | [0] |
787,526 | 787,527 | Intercept the Share click on Gallery | <p>Is it possible to listen to the click of the Share button in Android's Gallery app? After I capture that click, I want to start my Activity without presenting the list of apps the user can share with.</p>
<p>I know I can listen to Intent.ACTION_SEND and display my app in the share menu but I am not looking for that... | android | [4] |
5,676,189 | 5,676,190 | Checking for types of objects in my script? | <p>I'm writing a localStorage wrapper to make inserting and retrieving data easier when needing it to do more robust queries.</p>
<p>My script is here:
<a href="https://github.com/OscarGodson/storageLocker" rel="nofollow">https://github.com/OscarGodson/storageLocker</a></p>
<p>A user of my script asked me how he coul... | javascript | [3] |
1,448,437 | 1,448,438 | Process text input through a textarea | <p>i have website with text area where user pastes text which looks like this: </p>
<pre><code>Name
Surname
Age
Mail
John
Smith
99
john@john.com
</code></pre>
<p>i want to make variables from words "John","Smith",... and then save them to database</p>
<p>thanks</p>
| php | [2] |
2,011,062 | 2,011,063 | JQuery with Forms | <h2>I have the following HTML:</h2>
<pre><code><form class="lala">
<input type="text" id="textv" value="Text 1" size="5">
<input type="submit" value="Go!"></form>
<form class="lala"><input type="text" id="textv" value="Text 2" size="5"><input type="submit" value="Go!"></fo... | jquery | [5] |
4,080,977 | 4,080,978 | Email confirmation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5141294/how-to-find-email-has-been-delivered-in-android">how to find email has been delivered in android</a> </p>
</blockquote>
<p>How do I confirm that an email has been delivered when sending email with androi... | android | [4] |
3,866,633 | 3,866,634 | c# how to calculate the working days left in a month | <p>Hi i am new to <code>c#</code> and programing in general i have been trying to learn from adapting other peoples code the code below i have changed the code as i want to calulate the amount of working days left in a month but the problem is the code runs over the amount of days in a month so this month has <strong>2... | c# | [0] |
5,089,714 | 5,089,715 | Which iPhone OS version shows the maps application? | <p>I have a 3.0 iPhone and the maps show blank.</p>
<p>what earliest iPhone version allows me to view maps in the built in maps app.?</p>
| iphone | [8] |
617,493 | 617,494 | Help me to remove the error in my program? | <pre><code>import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class math
{
JFrame jf;
JTextField jt;
JButton jb;
JButton jb1;
math()
{
jf=new JFrame("frame");
jf.setSize(200,200);
jf.setVisible(true);
jt=new JTextField(50);
jf.setLayout(new ... | java | [1] |
5,851,494 | 5,851,495 | android How to set Hidden this bar (in tablet Android 4.0.3) | <p>I'm trying to make my app to Fullscreen (with no any bar) how I can coding to set it. (Android version 4.0.3)
Thx very Much <img src="http://i.stack.imgur.com/gVJ3o.png" alt="enter image description here"></p>
| android | [4] |
3,933,471 | 3,933,472 | If construct displaying only else value - PHP | <p>Here is my statement:</p>
<pre><code>if($row_x['xfield']==$_POST['x1'] AND $row_x['yfield']==$_POST['y'])
{
echo "ok";
}
else {
echo "invalid";
}
</code></pre>
<p>When both are not equal to each other, it must display 'invalid' else, 'ok'. But in this case it displays 'invalid' whether it is valid or not.</... | php | [2] |
1,562,087 | 1,562,088 | is there way for programmatically storing an 'address' of properties for an objects in PHP? | <p>Suppose I have an object in PHP $o, about which I can get $o->a->b, or maybe $0->c['d'].</p>
<p>Is there a way of storing these as sort of address for handling elsewhere?</p>
<p>What I have is that at several different places I need to process different properties of the object, but in the same way.</p>
<p>So wha... | php | [2] |
3,642,062 | 3,642,063 | Customized Installation in Android | <p>Is it possible to control the package installation process<br>
in Android? </p>
<p>The problem is that I'm asked to install and uninstall packages
without using the default android installer.
I need to control the entire process within my application. </p>
<p>I already have my application in the /system/app/ fol... | android | [4] |
5,485,307 | 5,485,308 | jQuery basic structure | <p>i wanna understand what that line means: </p>
<pre><code>var oViewport = { obj: $('.viewport', root) };
</code></pre>
<p>it's a line out of the plugin tinyscrollbar. Can someone explain the values of this line to me? I really searched for an answer but didn't find one. I appreciate your help. </p>
| jquery | [5] |
3,583,986 | 3,583,987 | Rotate a single RotateDrawable in a LayerDrawable | <p>I'm building an app that has some sort of compass in it, and I want to use a LayerDrawable to draw and animate the compass. The LayerDrawable consists of a static background image for the compass background, and a RotateDrawable for the rotating part. Here's my XML code for the drawable resources:</p>
<p>compass_te... | android | [4] |
1,224,654 | 1,224,655 | How to implemt two function using 1 jquery | <p>I'm new for jquery..... i have a doubt in the code given below..... if i click the btn the corresponing parent div only should move. Check the code give below. Thanks in advance.</p>
<pre><code><script type="text/javascript">
$(document).ready(function(e) {
$('.btn').click(function(){
... | jquery | [5] |
3,862,277 | 3,862,278 | Finding a char from an array, spliting at that point and then inserting another char after | <p>I am basically looking for a way to check if a certain string contains any of a certain list of chars, and if contains one of these to split the string and then insert the same char infront/after it. This is because these certain chars are breaking my search when they are input due to SQL not handling them well.</p>... | c# | [0] |
5,817,840 | 5,817,841 | validating a field using jquery | <p>rather than using a jquery plugin. if i have two fields and the first field is required and is currently on focus. if i click or tab over to the next field how can i check with jquery to see if the field contains any data and if it doesnt append some text or a class next to it? is onblur() used or?</p>
<p>thanks</p... | jquery | [5] |
3,773,427 | 3,773,428 | Passing variable to PHP from JS | <p>I know its REALLY simple, but I'm a newbie. I want to pass a variable from a PHP query via JS (for open-flash-chart) to the data file which is PHP.</p>
<p>This is my JS inside my PHP file. I'm pretty certian my issue is with the JS part since I've never used it before. </p>
<pre><code><script type="text/java... | php | [2] |
1,643,208 | 1,643,209 | checking for number of selectors with jquery | <p>I am trying to see if there are any tags which have the class="red" in the code. I thought that this would work but it isn't. How would I do this?</p>
<pre><code>if ($("[class='red']").length <=0) /*if some of the entries are invalid (aka- have a red star)*/
{
alert('Some Entries are... | jquery | [5] |
4,554,937 | 4,554,938 | use first-Child with $(this) | <p><code>$(this):first-child</code> is the wrong syntax</p>
<p>I didn't know how to use <code>first-child</code> with <code>$(this)</code> in a <code>.each</code> loop.</p>
| jquery | [5] |
1,664,036 | 1,664,037 | When to use a HashTable | <p>In C# I find myself using a List, IList or IEnumerable 99% of the time. Is there a case when t would be better to use a HashTable (or Dictionary in 2.0 and above) over these?</p>
<p>edit:</p>
<p>As pointed out, what someone would like to do with the collection often dictates what one should be using, So when would... | c# | [0] |
5,149,604 | 5,149,605 | Convert Html to Pdf in flurry background | <p>I used several search and methods to find this convertion from html to pdf
but I didn't got. What is the way to convert an HTML page to PDF? I already downloaded <code>tcpdf library</code> but I don't how I to use it.</p>
<p>Thanks in advance.</p>
| php | [2] |
3,389,889 | 3,389,890 | Unable to connect php and html file | <p>i have added action value
Registration file</p>
<pre><code> <body>
<div id="registration">
<h2><b><i>Electronic Montessori Learning</i><b></h2>
<form id="RegisterUserForm" action="connect.php" method="post">
<fieldset>
<p>
... | php | [2] |
5,120,566 | 5,120,567 | Calling the date time , without initiating the dialog box of Datetime control | <p>I am basically using a datetime control in my application.</p>
<p>Wherein on a click event i am initiating datetime dialog.</p>
<p>In another scenario, i want to move current date, to next day, or previous day.
I don't want the dialogbox of date time control to be displayed.</p>
<p>Is it possible??</p>
| android | [4] |
5,001,728 | 5,001,729 | What's wrong with this simple javascript code .. It doesn't alert | <p>I have just started learning some javascript and the code below doesn't alert anything .. what's wrong with the code ...</p>
<pre><code><html>
<head><title> javascript </title>
<script type="text/javascript">
function text(test)
{
alert(test);
}
text("It works");
</script>... | javascript | [3] |
1,045,243 | 1,045,244 | Unable to copy cell values | <p>On click of the Copy link in a row, I need to create another row and copy all its contents to the new row. This is the code I have:</p>
<pre><code>addNewInlineRow(sid, idToUse); // this creates a new row with empty values
//this copies the value from old row to new row
$("#"+rowId+ " td").each(function(index){
... | jquery | [5] |
1,303,608 | 1,303,609 | How the bit.ly system get the path from url? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3901635/php-passing-parameters-via-url">PHP passing parameters via URL</a> </p>
</blockquote>
<p>I know that if you have a page <code>www.domain.com/?id=ABC</code> you can get the <em>ABC</em> in the <code>index... | php | [2] |
4,340,512 | 4,340,513 | dynamically select a javascript object attribute | <p>[How] can I achieve the following?</p>
<pre><code>var object = new Object();
object.field1 = "test1";
object.fiedl2 = "test2";
function showSpecificField(fieldName){
//get the field Name passed in to function from object
//something like: return object.fieldName ???
}
alert(showSpecificField("field2"));//... | javascript | [3] |
1,828,605 | 1,828,606 | Detecting all plugins in Internet Explorer | <p>I want to display all plugins' info in all browser,But IE , <code>navigator.plugins</code> is null. I look help for google but it said you can only detect the plugin you want to detect..So is there other ways to do this?</p>
| javascript | [3] |
3,770,198 | 3,770,199 | Explain string boolean test result | <p>I have this code:</p>
<pre><code>>>> char = 'A'
>>> 'A' == char
True
>>> ('A' or 'B') == char
True
</code></pre>
<p>Why does this not equal <code>True</code>?</p>
<pre><code>>>> ('B' or 'A') == char
False
</code></pre>
| python | [7] |
5,777,892 | 5,777,893 | Android : launching google maps using intent from a tab and pressing back button | <p>In my application i have a tabhost with one tab for "map"</p>
<p>On clicking map i am launching a new activity within which i am launching the google map using intent. </p>
<p>Now when i click on "back" key, i get the tab view with map tab being pressed and below a blank screen. </p>
<p>If i click map again, scre... | android | [4] |
4,114,512 | 4,114,513 | Developing a custom speech bubble | <p>I am new to Android application development. I am building an Android app where the user needs to be able to add speech bubbles (think comics) over existing images. I have some questions on how to implement this,</p>
<ul>
<li>Should i build a custom component? can you help me to build the appropriate xml?</li>
<li>... | android | [4] |
5,356,814 | 5,356,815 | What values will return 0 in this function? | <p>The following function uses a <a href="http://www.openjs.com/articles/syntax/short_circuit_operators.php" rel="nofollow">Short Circuit Operator</a> to return <code>0</code> as default:</p>
<pre><code>function custNumParse(str){
return str*1||0;
}
</code></pre>
<p>I am not sure when this will return the second ... | javascript | [3] |
4,927,274 | 4,927,275 | Display the grid view images according to a number | <p>Hi i want to display the number of images according to one number.That means if number is 1 i want to displat only one imageview in grid,if number is 3 i want to display the 3 images in grid .But i take only one image that means depending on the number that image will be displayed th</p>
| android | [4] |
974,187 | 974,188 | convert Graphics to Image in c# | <p>How to convert Graphics to Image?</p>
| c# | [0] |
5,580,117 | 5,580,118 | concatenate two integer values into a char array | <p>Im trying to extract two (int32_t) values, and place them within a char array.</p>
<pre><code>int32_t version = getVersion();
if (version < 0)
{
return;
}
else
{
//first part of number needs to be shifted right
int32_t major = (((version) >>16) & 0xFFFF);
int32_t minor = ((version) &am... | c++ | [6] |
2,436,987 | 2,436,988 | how to call a php function on button click | <p>These are two files</p>
<p>Calling.php</p>
<pre><code><html>
<body>
<form action="Called.php" method="get">
<input type="button" name="B1" value="B1">
<input type="button" name="B2" value="B2">
<input type="Submit" name="Submit1"/>
<!-- <a href="http://www... | php | [2] |
962,856 | 962,857 | Insert new column in Table | <p>I have a problem where the <code>:eq()</code> does not accept the counter, <code>n</code>, to insert values to a new column to the table in the HTML. </p>
<pre><code>$(document).ready(function() {
var $tablerow = $('table.table').find('tr');
count = 0;
$tablerow.each(function(index, value){
c... | jquery | [5] |
2,225,289 | 2,225,290 | Using namedtuples to consolidate multiple dictionaries | <p>Given n-number of models which contain m-number of key:value pairs, can namedtuples be used to consolidate that information inside of one object? By consolidate, I mean refactor, so that I can pass around this object and access particular bits of information from it.</p>
<p>How it is organized currently:</p>
<pre ... | python | [7] |
5,411,579 | 5,411,580 | c# minimum of two numbers if one or both is greater than 0 | <p>The logic I'm looking for is if either of the numbers are >= 0 (which they don't have to be), then return the minimum of the two that is also greater than 0. The code I've written for it is so ugly that I'm ashamed to post it! </p>
<p>EDIT:
Samples
1, -1 => 1
5,6 => 5
-1,-1 => 0</p>
<p>(if both are less than 0, ... | c# | [0] |
1,082,829 | 1,082,830 | Is there something like a rolling OutputStream? | <p>Is there a simple Java OutputStream that mimics a functionality similar to the log4j RollingFileAppender ? Basically it would write to a file that grows to a maximum size, then renames it, begins a new one etc. Just thought I'd ask, before writing it from scratch.</p>
| java | [1] |
3,629,167 | 3,629,168 | Loading A Page With Ajax- Without Jquery | <p>Can someone please show me the basic syntax for loading a page via AJAX just using javascript-- not jquery? load() method?</p>
<pre><code>xmlhttp=new XMLHttpRequest();
</code></pre>
<p>Where do I go from here?</p>
| javascript | [3] |
715,553 | 715,554 | Calling function on opener window | <p>The child lost its parent!!</p>
<p>I have a parent window, when somebody clicks on an image a JS popup opens and displays the photo and its information.</p>
<p>To close the popup/child window, and to flash an element on my parent/opener window, I have been using this function:</p>
<pre><code>function closeWindow(... | javascript | [3] |
1,455,688 | 1,455,689 | Activity with Flag FLAG_ACTIVITY_CLEAR_TOP (android) | <p>I have stack of activities launched after one another.<br>
but in one of the activity I need to launch that particular activity with flag <code>FLAG_ACTIVITY_CLEAR_TOP</code>. </p>
<p>So that it will finish all the previous activities and start. </p>
<p>Problem I am facing that i don't want to finish one of the ... | android | [4] |
2,498,652 | 2,498,653 | Android GPS as an Activity | <p>This is working perfectly for me.</p>
<pre><code>public class GPSActivity extends Activity {
LocationManager locmgr = null;
String android_id;
DbAdapter db;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
db = new DbAdapter... | android | [4] |
3,514,794 | 3,514,795 | android:Strange behavior on dialogbox | <p>i have Strange problem on dialog box.</p>
<p>I increase the value of X and sending it to dialogbox</p>
<p>on the dialogbox - I keep seeing the same value.</p>
<pre><code>public String TMP;
int X=1;
.
.
.
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch(item.getItemId()) {
... | android | [4] |
5,827,952 | 5,827,953 | Trying to extract specfic data with split | <p>i have this txt file name contacts.txt that contains this:</p>
<pre><code>kate|female|kathryn bailey beckinsale|26-jul-1973|#23 underworld drive|(621) 142-7827|kate@lycans.net
jessica|female|jessica claire biel|03-mar-1982|27 texas avenue|(53)2344223|jbiel@yahoo.com
johnny|male|john christopher depp ii|09-jun-1963|... | javascript | [3] |
4,744,838 | 4,744,839 | core plot graph draw issue in iphone | <p>when i use this line to draw graph my app quits</p>
<pre><code>CPGraphHostingView *hostingView = (CPGraphHostingView *)self.view;
hostingView.hostedGraph = barChart;
</code></pre>
<p>error </p>
<pre><code>[UIView setHostedGraph:]: unrecognized selector sent to instance 0x595fb20
2011-06-11 11:00:14.452 ... | iphone | [8] |
2,896,480 | 2,896,481 | opening and reading a file whose name is given at runtime | <p>My problem is how to use correctly the function <code>infile.open()</code>.</p>
<p>I have a class that, among the others, has the following public properties:</p>
<pre><code>class myclass {
public:
int rows
int columns
const char* array_file
}
</code></pre>
<p>All values are given at run-time.</p>
<p>When I call... | c++ | [6] |
2,506,040 | 2,506,041 | c# - ref modifier for ...reference types | <p>I am a bit confused about this piece of code.</p>
<pre><code> public static void Foo(A p)
{
p.SomeProp = "ccc";
p = null; // !!!
}
static void Main(string[] args)
{
A p = new A();
Foo(p);
Console.WriteLine("SomeProp is: " + p.SomeProp);
Console.Re... | c# | [0] |
4,657,822 | 4,657,823 | How pass session variables between two or more aspx pages? | <p>My Scenario,</p>
<p>Im using asp.net 2.0 .I have Site where it creates a unique id and it is inserted in Database and displaying in Textbox that is invisible. Now i need to send this Id to next Page. i Used Session("MemberId") = Txtnewid.Text. Its not working It shows zero value when i assign to variable string. Pl... | asp.net | [9] |
429,704 | 429,705 | Should I use android: process =":remote" in my reciver? | <p>i have a reciver which is called every so often, and I gave noticed many people use android: process =":remote" in their recievers. mine is used to check a few things and if the conditions match then activate an alarm. My question is should I use the line I had posted above in my manifest? And if so what are the be... | android | [4] |
4,809,081 | 4,809,082 | Why does +!{}[true] output 1 in javascript | <p>I was watching this video
<a href="http://www.youtube.com/watch?v=Trr95ij1358" rel="nofollow">http://www.youtube.com/watch?v=Trr95ij1358</a></p>
<p>And Mr Baranovskiy emphasizes that javascript developers
should know what this evaluates to:</p>
<p><strong>+!{}[true]</strong></p>
<p>So I gave it a shot. </p>
<p>... | javascript | [3] |
334,337 | 334,338 | Object reference not set to an instance of an object on adding an object to a list | <p>In the following code for, yet an unknown to me reason it keeps on throwing a the exception in the title. </p>
<pre><code> try
{
conn.Open();
createDraw.ExecuteNonQuery();
rdr = getDrawId.ExecuteReader();
string rd = rdr[0].ToString();
... | c# | [0] |
1,956,996 | 1,956,997 | Double precision failing - Can't use Big-decimal | <p>Problem: Double minus another double is returning unaccurate results.</p>
<p>Usual solution: Use big decimal to perform calculations.</p>
<p>I can't use this because it's in the middle of a game loop, can only set big decimal with a value when it's created with <em>new</em>, within a game loop I'm running out of m... | java | [1] |
4,286,035 | 4,286,036 | How do I rename the file in file_put_contents? | <p>I have this code snippet that grabs a SWF file and saves it locally. Works like a charm! However, I need to rename the file and have no idea how to do so. All help is greatly appreciated! Thanks!</p>
<pre><code>$filename = "filename"; //Without extension
$urls = array($swf_url);
foreach($urls as $url) {
$data = ... | php | [2] |
5,748,305 | 5,748,306 | Does each file get its own copy of the static variable? | <p>Suppose you have a static global variable in your header file, and you use this variable in your main.cpp.</p>
<pre><code>// header.h
static int variableOne = 100;
//main.cpp
.
.
cout << variableOne << endl;
</code></pre>
<p>Will main.cpp get its own copy of <strong>variableOne</strong> (alth... | c++ | [6] |
472,468 | 472,469 | Find nested element in query | <p>I need to find an DropDownList with class addressControlCountry. How?</p>
<pre><code><div id="myDiv">
<asp:DropDownList runat="server" CssClass="addressControlCountry" />
</div>
</code></pre>
<p>This doesn't work</p>
<pre><code>$('#myDiv .addressControlCountry')
</code></pre>
| jquery | [5] |
2,228,204 | 2,228,205 | MFMailComposer send email without presenting view | <p>I have created a sample iphone application , that sends an email to a particular user.The user address should be static.I am using MFMailComposer class to send an email from iphone.Its work fine.</p>
<p>Now i want to send email to user without presenting MFMailComposerView.Can we programmatically presses the MFMail... | iphone | [8] |
2,247,586 | 2,247,587 | how to run exe from web app | <p>I need to copy data to card writer attached to local pc from the web app(run card writer exe with parameters with java runtime). What's the best way to implement such functionality? Java applet, web service or something else? </p>
| java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.