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 |
|---|---|---|---|---|---|
3,176,041 | 3,176,042 | JavaScript string replace. How to check if there was a match? | <p>Is there any other way to find out if were was a match in String.replace method then searching in it's result?
Or there is another method which give me that informations?
I need behavior similar to PHP's preg_replace, where i can add optional argument which will be filled with the number of replacements done.</p>
| javascript | [3] |
5,974,930 | 5,974,931 | how to change data already data in spinner | <p>I have four Spinner ,First spinner display data when user select on spinner item data then other spinner data is displayed .First time,i have loaded all data in spinner when user select first spinner then data should be changed to refresh to second Spinner</p>
<p>How data is changed in second spinner</p>
| android | [4] |
384,542 | 384,543 | jQuery First Column Select Problem | <p><strong>jQuery Code:</strong></p>
<pre><code>$("[id$=gridvv] tr").filter(function() {
return $('td', this).length && !$('table', this).length
}).click(function() {
Alert('test');
});
</code></pre>
<p>This code should select all <code><tr></code> but I need <code>.locked</code> click return al... | jquery | [5] |
2,565,695 | 2,565,696 | C# overloading resolution? | <p>From the article <a href="http://www.artima.com/intv/nonvirtualP.html" rel="nofollow">Anders Hejsberg interview</a>, "the way we do overload resolution in C# is different from any other language"
Can somebody provide some examples with C# and Java? </p>
| c# | [0] |
2,971,094 | 2,971,095 | Do Jquery have any plugin for Date & Time pick | <p>I need a jquery datepicker in 24 hour pattern.</p>
<p>mm-dd-yy hh:mm:ss</p>
<p>08-20-2010 14:45:33</p>
<p>I found so many date pickers in jquery , but no one is giving time!!!</p>
<p>Any body know about both date and time picker.??
jquery jquery ui anything</p>
| jquery | [5] |
4,460,227 | 4,460,228 | Android - How to get TimeZone Value from milliseconds | <p>In Android how to get TimeZone value(GMT+8.00) from milliseconds long value.</p>
<p>Thanks</p>
| android | [4] |
4,080,266 | 4,080,267 | Android: NullpointerException at vibrate | <p>I am using the following code , but its giving the nullpointer exception at vibrate.</p>
<pre><code>public Server(DroidGap gap, WebView view) //constructor
{
mAppView = view;
mGap = gap;
}
public Server(Context context) //constructor
{
... | android | [4] |
2,992,678 | 2,992,679 | Inserting item into map, which holds 2 more map | <p>I am trying to insert an item, into a map, which holds two other map.</p>
<pre><code>map< map<int, int> , map<int, int> > GC;
map<int, int> A;
A.insert(pair<int,int>(1,1));
map<int, int>:: iterator p1 = A.begin();
map<int, int> B;
B.insert(pair<int,int>(2,3));
map&l... | c++ | [6] |
4,097,485 | 4,097,486 | Back button to relaunch Camera Activity | <p>I have a camera activity. I want to make it looks like the default android camera when the user press the back button after taking a picture, the preview is gone and the camera is back again. He can repeat this as many times as he likes. Of course, if the user did not take any pictures, pressing the back button will... | android | [4] |
4,123,980 | 4,123,981 | jQuery variables for multiple events | <p>I'd like to be able to define the variable which I can then use for other events, such as mouseout, mouseenter, click etc.</p>
<p>This is the current code:</p>
<pre><code> $('a div')
// Get the width an height of the image
//var $img_width = $(this).children('img').width();
//var $img_height = $(thi... | jquery | [5] |
1,543,355 | 1,543,356 | Generating Fibonacci sequence | <pre><code>var x=0,
var y=1;
var z;
fib[0] = 0;
fib[1] = 1;
for(i=2; i<=10; i++)
{
alert(x+y);
fib[i]=x+y;
x=y;
z=y;
}
</code></pre>
<p>I'm trying to get to generate a simple Fibonacci sequence but there no output. Can anybody let me know what's wrong?</p>
| javascript | [3] |
90,736 | 90,737 | removing single quote from end of a string in C# | <p>i am using the following code :</p>
<pre><code> importTabs.Add(row["TABLE_NAME"].ToString().TrimEnd('$')
</code></pre>
<p>to remove a dollar from string stored in importTabs Array list. how do i pass a parameter along with '$' so that it removes a single quote (') from the beginning ans well the end of the string... | c# | [0] |
2,778,198 | 2,778,199 | Cannot use a leading .. to exit above the top directory error | <p>"Cannot use a leading .. to exit above the top directory"
I am Using windows authentication in my project,when i set a form as a startpage i get th above error.please suggest</p>
<pre><code><%@ Page Title="" Language="C#" MasterPageFile="~/TravelsMaster.master" AutoEventWireup="true"
CodeBehind="AgentMaster.... | asp.net | [9] |
5,096,984 | 5,096,985 | Is it possible to place image in expandable list? | <p>I am new to android application. I need to know whether is it possible to place image in expandable list view as a child for one parent alone. remaining child can be text..</p>
<p>Please help me..</p>
| android | [4] |
1,505,562 | 1,505,563 | How do access to element by name in javascript? | <p>A page has elements without id - only with names. How to access them by javascript like this?</p>
<pre><code>document.getElementById('id').value := "...";
</code></pre>
<p><strong>UPDATED:</strong></p>
<p>Thanks to all! Is it possible to access then to element with specified value (radiobutton)?</p>
<pre><code>&... | javascript | [3] |
1,629,018 | 1,629,019 | App seems to stop working when the screen goes to sleep | <p>I have a CPU intensive long-running operation (a few hours) that I am using AsyncTask to perform. As it continues, it updates a progressbar on the screen to show what percentage of the task is done.</p>
<p>I discovered that when my screen goes to sleep (time-out) the task seems to stop. Not sure whether this is hap... | android | [4] |
1,535,127 | 1,535,128 | Wordpress WP_Query() Not working properly | <p>I would like to know why we get an error when we implement this code in our <code>sidebar.php</code>:</p>
<pre><code>$categories = get_categories();
foreach($categories as $category)
{
printf('<h2>%s</h2><ul>', $category->cat_name);
$posts = new WP_Query('cat='.$category->cat_ID);
w... | php | [2] |
1,027,984 | 1,027,985 | Why is mcrypt_encrypt giving errors? | <p>I got the code below from this site. When I run it, I get</p>
<pre><code>Warning: mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend in C:\web\apache\htdocs\dev\encrypt.php on line 7
</code></pre>
<p>What wrong am I doing here and how do I get this right?</p>
<pre><code>//Key
$key = 'SuperSecre... | php | [2] |
5,899,901 | 5,899,902 | jquery find out whether user is typing or not | <p>My web page need some hotkeys, just single hotkey. So I need to find out whether user is typing or not to apply hotkeys.</p>
| jquery | [5] |
4,250,332 | 4,250,333 | Use method from another Class in Object from ArrayList | <pre><code> ListIterator litr = PuntenLijst.listIterator();
while(litr.hasNext()){
Object Punt = litr.next();
Punt.print();
}
</code></pre>
<p>PuntenLijst is an ArrayList that contains object instances from another Class.</p>
<p>Now I have made a method print() that prints out something from... | java | [1] |
3,011,188 | 3,011,189 | How do I combine undefined with booleans in JavaScript? | <p>For example suppose I have</p>
<pre><code>var myVar;
</code></pre>
<p>If I do</p>
<pre><code>console.log((myVar != undefined) && true);
</code></pre>
<p>It returns false as expected. Is it possible to do something closer to</p>
<pre><code>console.log(myVar && true);
</code></pre>
<p>It's much ... | javascript | [3] |
1,898,333 | 1,898,334 | GPS to work inside building | <p>How to work with GPS, when no signal is available.
I want to get latitude and longitude when there is no signal like inside building.
How to use internet or SIM (network) to get latitude n logitude inside building. </p>
| android | [4] |
841,856 | 841,857 | Python Dictionary w/ 2 Keys? | <p>Can I have a python dictionary with 2 same keys, but with different elements?</p>
| python | [7] |
2,551,469 | 2,551,470 | converting date format from 0000-00-00 to timestamp | <p>I have a date picker that returns date in the format 0000-00-00 with </p>
<pre><code>$startT = isset($_POST["startT"]) ? $_POST["startT"] : "";
</code></pre>
<p>how do I convert this formatted date into a timestamp?
Thanks</p>
| php | [2] |
4,142,497 | 4,142,498 | Add content to sibling div | <p>In the example below what's the simplest addContent function that will put some content into the child div?</p>
<pre><code><div>
<a href="javascript:addContent();">My Link</a>
<div/>
</div>
</code></pre>
<p>Clicking the link should result in:</p>
<pre><code><div>
&... | javascript | [3] |
5,216,959 | 5,216,960 | Complexity of *in* operator in python | <p>What is the complexity of <strong><em>in</em></strong> operator in python? is it theta(n)?<br>
Is it the same as</p>
<pre><code>def find(L, x)
for e in L:
if e == x:
return True
return False
</code></pre>
<p>?
L is a list</p>
| python | [7] |
5,715,338 | 5,715,339 | Send variable to another server and get result with PHP | <p>OK I want to send a PHP variable to another server, this is my code, the php variable is an ip address.</p>
<pre><code> header("Location: http://www.domainname.com/bean/data.php?ip=$ip");
</code></pre>
<p>Basically the other server will get the ip address and return a variable called Description what i am unclear ... | php | [2] |
4,284,428 | 4,284,429 | Dose am kill-all influence malloc? | <p>Recently, I wrote a c-file and make it so that it run on my phone.</p>
<p>But if when I run am kill-all, this may influence the memory that I malloced.</p>
<p>How?</p>
<p>Thanks.</p>
<p>James.</p>
| android | [4] |
589,229 | 589,230 | Use Excel file as a Resource file for Java Program | <p>Is it possible to Use Excel file as a resource bundle for java program?</p>
| java | [1] |
2,822,394 | 2,822,395 | calling a 2-dimensional matrix in a function call | <p>while calling and defining a function how to use a 2-dimensional matrix in that function?</p>
| c++ | [6] |
5,830,394 | 5,830,395 | jQuery Determine if a matched class has a given id | <p>What is jQuery has id equivalent of the following statement?</p>
<pre><code>$('#mydiv').hasClass('foo')
</code></pre>
<p>so you could give a class name and check that it contains a supplied id.</p>
<p>something like:</p>
<pre><code>$('.mydiv').hasId('foo')
</code></pre>
| jquery | [5] |
4,286,995 | 4,286,996 | Substring Counting in Python and Adding 2 Numbers From One Line of Input | <p>I'm following a python website for my schoolwork. It's really neat, it gives you tasks to complete and compiles the code in the browser. Anyway, I came to a challenge that I'm not really sure how to go about.</p>
<p>One of the questions was:</p>
<blockquote>
<p>The same substring may occur several times inside t... | python | [7] |
2,659,799 | 2,659,800 | passing value to javascript | <p>hello please help me out regarding this dunction
i want to pass value from the textbox to javascript function and over there i want to store it for other text box . here is the sample code '</p>
<pre><code><input type="button" value="Add" onClick="addRowToTable(<?php echo $data['pno'];?>);" />
</code... | javascript | [3] |
4,017,927 | 4,017,928 | how to create Image slideshow for android? | <p>I want to develop a image slideshow or animation like Gif animation for android. 3 or 4 images will be there and each image will display alternately.</p>
| android | [4] |
2,534,271 | 2,534,272 | Using Primitive Wrapper Classes in Java | <p>Is there any difference between declaring the Integer below two ways</p>
<pre><code>Integer Age = 25;
Integer Age = new Integer(25);
</code></pre>
<p>Thanks in Advance </p>
| java | [1] |
2,473,779 | 2,473,780 | how to check wether a document is completed in web control | <p>i m using webbrowser control in my c# application but the document_completed fun is called for three times and i implemented my logics in this function.i want to check wether a document is loaded or not load in webbrowser control how can i check it or can i call this function from another function.</p>
| c# | [0] |
5,282,377 | 5,282,378 | Dynamic form field validation using jquery | <p>Hi am generating input boxes dynamically base on database keys.</p>
<pre><code> <input type="text" id="101" name="101">
<input type="text" id="302" name="302">
<input type="text" id="501" name="501">
<input type="text" id="601" name="601">
</code></pre>
<p>i want to make it mandatory fi... | jquery | [5] |
3,613,447 | 3,613,448 | Coverting an ereg_replace to preg_replace | <p>I have to convert an <code>ereg_replace</code> to <code>preg_replace</code></p>
<p>The ereg_replace code is:-</p>
<pre><code>ereg_replace( '\$([0-9])', '&#36;\1', $value );
</code></pre>
<p>As preg is denoted by a start and end backslash I assume the conversion is:-</p>
<pre><code>preg_replace( '\\$([0-9])\'... | php | [2] |
5,628,544 | 5,628,545 | Finding an element of a class inside a previous <li> | <p>I have this code that should trigger mouseover and mouseout on a picture when I hover over it's comment, but it's not working as expected. </p>
<pre><code>$(document).ready(function(){
$("li.description").mouseout(function(){
$(this).prev().find(".design").trigger('mouseout');
});
$("li.descrip... | jquery | [5] |
2,942,421 | 2,942,422 | Question in inheriting and hiding methods & classes | <p>I have questions about inheriting(extending) methods from classes and hiding some classes and methods from the main :)</p>
<p>Assume that I have class A & class B. Class B has method 1. and I need to use that method(method 1) in class A, but in the same time I need to hide that class(Class B with its methods) f... | java | [1] |
170,865 | 170,866 | How in the real world I/O file strreams are used | <p>Hi I am a student do any body know were in real world I/O file streams are used?</p>
| c# | [0] |
1,171,212 | 1,171,213 | push delievery system -fake web page prevention | <p>can anyone explain push delievery system for fake web page prevention ?</p>
| javascript | [3] |
1,151,245 | 1,151,246 | How to pass a variable into a setTimeout function? | <p>I'm trying to set five staggered function calls (happening one second apart). That part works fine. What doesn't work is, I can't pass values 0 through 4 into the callback function. It just passes '5' each time. I can't seem to figure out why and how to fix it.</p>
<p>Code:</p>
<pre><code>function callback(num)
{... | javascript | [3] |
2,345,258 | 2,345,259 | prettyCheckboxes make parent div clickable? | <p>I am using prettyCheckboxes and I want to change it so that the div wrapper can also be clicked as well as the radio button. The currently JS for the radio button/label is</p>
<pre><code> $label = $('label[for="'+$(this).attr('id')+'"]');
// Add the checkbox holder to the label
$label.prepen... | jquery | [5] |
4,061,587 | 4,061,588 | some predefined classes in Java | <p>I need some pre-defined classes(in library) in Java that they have a function which calls another function in another predifined class.</p>
| java | [1] |
5,126,518 | 5,126,519 | android app has to be created through camera interface | <p>how can i write sample app that takes a photo with camera or selects from gallery, puts photo into a TableLayout and allows for adding subsequent photos pre-pending to the TableLayout .</p>
| android | [4] |
4,346,993 | 4,346,994 | Align textview in a block | <p>I wat to create an app like this, I use textview to preview number</p>
<pre><code> <TextView
android:id="@+id/generatenumber1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/generatenumber2"
android:layout_width="fill_parent"
... | android | [4] |
1,698,044 | 1,698,045 | Why won't this jQuery work in WordPress? | <p>THIS WORKS: </p>
<pre><code><script type="text/javascript">
function fadeReview() {
jQuery(".reviewPanel .reviewPanel2:hidden:first").fadeIn(500).delay(3000).fadeOut(500, function() {
jQuery(this).appendTo(jQuery(this).parent());
fadeReview();
});
}
fadeReview();
</script... | jquery | [5] |
4,931,151 | 4,931,152 | C++ : Implicit type conversion | <p>I am bit confused about implicit type conversion. Given the following program </p>
<pre><code> float x = 4.23423451;
double y = 4.23423451;
float z = 101.9876;
float res1 = x * z;
float res2 = y * z;
std::cout << "res1 & res2 " << res1 << " & " << res2 << s... | c++ | [6] |
3,051,402 | 3,051,403 | iphone SDK: How to get the date out of a UIDatePicker? | <p>I need to retrieve the date from a UIDatePicker (Preferably I would also like to be specify the format as well. For example, mmdd would output the string 1209. Any string that reasonably parsed would work as well.</p>
<p>Thanks in advance.</p>
| iphone | [8] |
4,664,478 | 4,664,479 | How to access variables within another function | <p>I'm writing code for a blackjack game and have run into some problems. I have written two functions: one for the initial deal and one for each consecutive hit. this is the deal function:</p>
<pre><code>var deck = [1,2,3,4,5,6,7,8,9,10,"Jack","Queen","King","Ace"];
function deal() {
var card1_val = Math.floor(Math.... | javascript | [3] |
3,283,537 | 3,283,538 | writing javascript div in html | <p>i have put in my source code to show live twitter search result on my webpage.</p>
<p>Although it shows the search result but when i open the source code of my webpage it don't shows the tweets text in my source code.iT DYNAMICALLY LOADS IT I GUESS.</p>
<p>iS there a way out to fetch the content of div and write ... | jquery | [5] |
4,994,272 | 4,994,273 | How to pass array between javascript and php mvc action | <p>I am new in php and want to pass the array from javascript to php. On jquery side it should be like this:</p>
<pre><code>var a= [];
a[0] = 'a';
a[1] = 'b';
$.ajax({
type: "POST",
data: {myarray:a},
url: "index.php",
success: function(msg){
$('.answer').html(msg);
}
});
</code></pre>
<p>which ... | jquery | [5] |
200,792 | 200,793 | Running Android apps in Linux | <p>I have a Red Hat Linux (RHL) system on which I'd like to run Android apps. How would I do this? Is there an open-source port of the Android Runtime for linux? Kind of like a VM?
If not, what steps will I need to follow to port the runtime to RHL (with the Dalvik VM etc) so that I can run the android apps built by al... | android | [4] |
628,043 | 628,044 | Multiple jQuery Sliding Content Boxes | <p>jQuery beginner here.</p>
<p>I'm working on a site with with two links. Each link slides out content a div with content below. The problem I'm having is that I can't figure out how to toggle between both when the user clicks the other link.</p>
<p>So when the user clicks LINK-A it slides out CONTENT-A, while CONTE... | jquery | [5] |
5,787,153 | 5,787,154 | Why does `$(item).width()` return `0` even though elements exist? | <p>With this code, I am trying to center an item depending width:</p>
<pre><code>var name_ = 'Random name';
$('.arrow .text').text(name_);
$('.arrow .text').css({'marginLeft':'-'+$('.arrow .text').width()/2+'px'});
console.log($('.arrow .text').length +' '+ $('.arrow .text').width() );
</code></pre>
<p>... | jquery | [5] |
1,104,164 | 1,104,165 | How to create XML editor for iPhone? | <p>I want to create a XML editor (form view type) for iphone. Can anyone suggest me how to proceed in this regard. I know how to parse an XML document but I am having trouble in editing the contents of the file dynamically. This editor should be such that, a new node can be added or a node can be deleted, it can also e... | iphone | [8] |
5,931,790 | 5,931,791 | Manipulating multidimensional array in PHP? | <pre><code>array(2) {
[0]=>
object(stdClass)#144 (2) {
["id"]=>
string(1) "2"
["name"]=>
string(5) "name1"
}
[1]=>
object(stdClass)#145 (2) {
["id"]=>
string(1) "4"
["name"]=>
string(5) "name2"
}
}
</code></pre>
<p>I want to add key and value (for example [... | php | [2] |
3,832,492 | 3,832,493 | Get Media player to get MP3 path adress from MySQL | <p>My uni project website can now play a music file from a url but what I need it to do now is to get the url address
from the mysql database. The url references the mp3 file's location on the server.
I am not sure where to insert the PHP within the media player plugin code (or whether it is possible at all).
Any advic... | php | [2] |
1,089,271 | 1,089,272 | Add/Delete dynamic rows to HTML Table | <p>I am creating dynamic accordion pane and each pane has dynamic table with different id and buttons, in some pane i wanted to add dynamic rows to html table, i am using below code to perform this activity, </p>
<p>$('#myTable tr:last').after('1a');</p>
<p>i am not able to add any rows, my problem is how do i link t... | asp.net | [9] |
422,009 | 422,010 | Execute some operation on new element adition using jQuery | <p>I have a couple of search controls in the page. Now I am using jQuery to perform some initialization on the controls available on the page. For the controls added by ajax, after the page was loaded, I have written a function to complete this initialization by passing the newly created ids to the function. But is the... | jquery | [5] |
1,761,816 | 1,761,817 | Briefcode Needed? | <p>It is said that <code>Code that will be executed by the event handling thread should be relatively brief.</code> <strong>Any specific reason?</strong></p>
<p>This is question talks about the event handling thread in GUI</p>
| java | [1] |
73,526 | 73,527 | PHP: How to dump all local variables in an exception handler | <p>I'm looking for a method of having my exception handler dump the local variables of the function which the exception was raised in. Is this possible?</p>
| php | [2] |
2,593,351 | 2,593,352 | how can i prevent clients of my web site send curses and dirty words? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/24515/bad-words-filter">“bad words” filter</a> </p>
</blockquote>
<p>In my web application i have a section which gets input from the user and posting it on the main page.</p>
<p>i would like to pre... | php | [2] |
6,006,148 | 6,006,149 | how do i modify the way in wich readdir() lists files | <p>I have a script that creates a <code>zip</code> package daily in a directory. After this is done another script deletes the 'last' file in the directory so I always have just the latest x days.</p>
<pre><code>while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
... | php | [2] |
709,295 | 709,296 | How do I determine if a class library is running in a Windows Service? | <p>I have a class library. How do I determine if it is running in a Windows Service versus something else? For example a console application, WPF, ASP.NET, WinForms? </p>
| c# | [0] |
1,980,519 | 1,980,520 | Best solution for an StringToInt function in C# | <p>I were asked to do an StringToInt / Int.parse function on the white board in an job interview last week and did not perform very good but I came up with some sort of solution. Later when back home I made one in Visual Studion and I wonder if there are any better solution than mine below. </p>
<p>Have not bothred wi... | c# | [0] |
835,980 | 835,981 | What using statement must be added to use the Backup class in c# | <p>I want to use the <code>Backup</code> class to make a backup of my database. </p>
<p><code>Backup backup =new Backup();</code></p>
<p>However, I do not know what namespace this class is found in.</p>
<hr>
<p>I added Microsoft.SqlServer.SmoExtended.dll And Microsoft.SqlServer.Smo.dll</p>
<p>Now its Work !</p>
<... | c# | [0] |
5,650,024 | 5,650,025 | Why is this PHP error script not emailing me for fatal errors? | <p>I am using the following script from nettuts:</p>
<pre><code>// Our custom error handler
function error_engine($number, $message, $file, $line, $vars)
{
$email = "
<p>An error ($number) occurred on line
<strong>$line</strong> and in the <strong>file: $file.</... | php | [2] |
33,756 | 33,757 | Half Width and Full Width | <p>i want to do a software for japan.
it has a reqirment to control the full width and half width in a textbox.</p>
<p>if i set the control's width is full width, whatever typed text is "full-width".
and if i set the control's width is half width, whatever typed text is half-width".</p>
<p>how can i implement it?</p>... | c# | [0] |
357,705 | 357,706 | C# windows application set up on different machines and all work on one SQL Server 2008 database | <p>I have created a desktop application with SQL Server 2008 as backend. I want to use this database from my application that is installed on a number of machines.</p>
<p>What are the requirements for that application to connect to the centralized database.?</p>
| c# | [0] |
5,495,655 | 5,495,656 | Why we need declare parcelable object in AIDL file? | <p>If we have a class that would like to send from one process to another through an IPC interface, we have to create a class that support parcelable protocol (implements Parcelable).</p>
<p><strong>In addition, we have to create an .aidl file which declares that parcelable class.
Since this .aidl file will not genera... | android | [4] |
4,504,175 | 4,504,176 | An analog of C++ FQA for C# | <p>I have found <a href="http://yosefk.com/c++fqa/" rel="nofollow">C++ FQA Lite</a> very edificatory and would like to read more criticism. Could you recommend me something similar but concerning C#, please?</p>
<p>Thanks.</p>
| c# | [0] |
5,918,265 | 5,918,266 | What is the Android widget type used in e.g. the Settings menu? | <p>The Android settings menu is a list of options, each with some subtext (in the vanilla Google implementation; not in Sense UI) and an image (a down arrow in vanilla, custom icons in Sense UI). They are selectable and open a sub menu (Activity?) when clicked, like a button.</p>
<p>What is this widget? Is it availabl... | android | [4] |
4,861,541 | 4,861,542 | number of hash buckets | <p>In the <a href="http://docs.oracle.com/javase/7/docs/api/java/util/HashMap.html" rel="nofollow">HashMap</a> documentation, it is mentioned that:</p>
<ul>
<li>the <strong>initial capacity</strong> is simply the capacity at the time the hash table is created </li>
<li>the <strong>capacity</strong> is the number of b... | java | [1] |
201,934 | 201,935 | downcast problem in c++ | <pre><code>#include <iostream>
using std::cout;
using std::endl;
class Base
{
public :
void f();
void g();
int mBaseData1;
};
class Derived : public Base
{
public :
int mDerivedData1;
};
void main()
{
Base* base = new Base();
Derived* derived = (Derived*)(base); // DownCast
der... | c++ | [6] |
2,479,870 | 2,479,871 | Iteration over an object | <ul>
<li>I need some help please regarding PDOStatement::commit (from phpnet manual) </li>
<li><p>I don't understand Example #1, because of this part of the code: </p>
<pre><code>foreach ($fruits as $fruit) {
$sth->execute(array(
$fruit->name,
$fruit->colour,
$fruit->c... | php | [2] |
2,354,751 | 2,354,752 | PHP error: Warning: ociparse() expects parameter 2 to be string | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2973202/mysql-fetch-array-expects-parameter-1-to-be-resource-boolean-given-in-select">mysql_fetch_array() expects parameter 1 to be resource, boolean given in select</a> </p>
</blockquote>
<p>Getting this error ... | php | [2] |
5,299,906 | 5,299,907 | get parameter value from cookie | <p>Hi I have a small problem. Currently I have 2 parameters saved in the browser cookie which are ADV and LOC... Now I have a page with a form and the form got two hidden fields :</p>
<pre><code><input type="hidden" name="adv" value="" />
<input type="hidden" name="loc" value="" />
</code></pre>
<p>I need... | javascript | [3] |
1,460,862 | 1,460,863 | python one line function definition | <p>This must be simple, but as an only occasional python user, fighting some syntax.
This works:</p>
<pre><code>def perms (xs):
for x in itertools.permutations(xs): yield list(x)
</code></pre>
<p>But this won't parse:</p>
<pre><code>def perms (xs): for x in itertools.permutations(xs): yield list(x)
</code></pr... | python | [7] |
2,034,361 | 2,034,362 | Why it cannot open this shared object in php? | <blockquote>
<p>PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib64/php53/modules/mailparse.so' -
/usr/lib64/php53/modules/mailparse.so: cannot open shared object file:
No such file or directory in Unknown on line 0</p>
</blockquote>
<p>How can we fix this this issue</p>
<p>Thanks</p>
| php | [2] |
3,057,420 | 3,057,421 | references in C++ | <p>Once I read in a statement that</p>
<blockquote>
<p>The language feature that "sealed the
deal" to include references is
operator overloading.</p>
</blockquote>
<p>Why are references needed to effectively support operator overloading?? Any good explanation?</p>
| c++ | [6] |
3,266,643 | 3,266,644 | Android Action Bar add all icon to overflow | <p>I am updating my apps to have action bars, as Google seems to want developers to do now, and I am trying to get all the options of one app to all be in the overflow menu. I have searched far and wide but I can't seem to find anything that would make them do that. I'm pretty sure it would be something in the xml that... | android | [4] |
1,366,100 | 1,366,101 | following a hyperlink inside div | <p>I have several divs like this:</p>
<pre><code><div class="MenuList"><a class="SiteLink" href="page.aspx">My Link</a></div>
</code></pre>
<p>The problem is that if the user clicks on the div but not on the text, the link won't trigger. This is what I have so far:</p>
<pre><code> $('#TopM... | jquery | [5] |
4,621,415 | 4,621,416 | What is the purpose of java.math.MutableBigInteger? | <p>java.math.MutableBigInteger is only available from inside the package. It inherits from java.lang.Object and there is only one subclass (SignedMutableBigInteger) which is only availible from inside the package.</p>
| java | [1] |
101,588 | 101,589 | how to add background color for checkbox in gridview | <p>hi
i have a gridview with 5 checkbox. i need to add for eack checkbox different backgound color that is </p>
<p>i totally have 5 rows in gridview with 5 checkbox for each row i need to add different color</p>
<pre><code>chececkbox1-red color
chececkbox2-green color
chececkbox3-blue color
chececkbox4-bla... | asp.net | [9] |
1,531,567 | 1,531,568 | C++ Calling Private Data Members in a Vector Class | <p>I'm looking to create a class that's in the form of a standard vector. I've been writing some programs with classes that have implemented Sets and not vectors, so I'm a little confused.</p>
<p>Here's my class: </p>
<pre><code>class Employee
{
private:
Struct Data
{
unsigned Identification_Number;
// Current ... | c++ | [6] |
3,133,469 | 3,133,470 | INSTALL_FAILED_MISSING_SHARED_LIBRARY on installing apk (No Google APIs) | <p>I have a problem installing my android app with a custom library: hessian-3.1.5.jar. My IDE is: intellij idea 11</p>
<p>This library is in the project structure's library and in AndroidManifest.xml I have the line: <code><uses-library android:name="com.caucho.hessian.client" /></code></p>
<p>But it says: <co... | android | [4] |
4,724,197 | 4,724,198 | Adding new Custom Field of specific MIME type in Contacts App | <p>Thanx for snippet you provided it helped me a lot.</p>
<p>I have successed regarding storing of Custom field in Contact database, i also viewed my data through LogCat by printing it using "Cursor".</p>
<p>Thanx for your snippet it helped me a lot. </p>
<p>Can we view our Custom field from Main Contacts Applicatio... | android | [4] |
3,465,027 | 3,465,028 | Python Error: AttributeError: IR instance has no attribute 'xySinglePos' | <p>These are my files:</p>
<pre><code>#IRClass.py
from VideoCapture import Device
import Image
from ctypes import *
class IR:
def __init__(self):
self.cam = Device()
self.user = windll.user32 #Handle for the mouse
rp = self.cam.getImage()
self.res = (rp.size[0],rp.size[1])
def i... | python | [7] |
4,678,952 | 4,678,953 | Escape hyperlink with exclamation marks in php.ini | <p>I have a config file that takes text warnings like follows:</p>
<pre><code>warnings.1 = Please check the date
</code></pre>
<p>These are presented to the user as HTML. I need to embed a hyperlink like the following:</p>
<pre><code>warnings.1 = <a href="http://foo.com/!FOO!/">check with foo</a>
</code... | php | [2] |
643,323 | 643,324 | jQuery Select first and second td | <p>How can I add a class to the first and second td in each tr?</p>
<pre><code><div class='location'>
<table>
<tbody>
<tr>
<td>THIS ONE</td>
<td>THIS ONE</td>
<td>else</td>
<td>here</td>
</tr>
<tr>
<td>THIS ONE</td>
<td&... | jquery | [5] |
5,482,368 | 5,482,369 | NSHost problem | <p>NSHost doesnot support to iphone... When i run this in simulator it works fine... But when i want to run in device means its give an NSHost.h error....</p>
<p>I want do this in device also..
How could i fix this
Thanks in advance</p>
| iphone | [8] |
2,002,326 | 2,002,327 | Javascript : resize window not working in Firefox | <p>I am trying to resize the window . This is working fine on IE , but not working on Firefox and Chrome . Can you'll please help </p>
<pre><code><html>
<head>
<script LANGUAGE=javascript>
<!--
function orientWindow(){`
`window.resizeTo(200,300)
window.moveTo(400,400)
}
//-->
</SCRIPT&... | javascript | [3] |
5,387,270 | 5,387,271 | How does the GMail app implement its selection summary in ActionBar? | <p>When an email is selected for deletion in the GMail app, the ActionBar looks like so:</p>
<p><img src="http://i.stack.imgur.com/TcYpX.png" alt="enter image description here"></p>
<p>There is a check mark and selection count displayed, with a subtle entry and exit animation. It appears it's an overlay that's on top... | android | [4] |
3,137,989 | 3,137,990 | Android custom scoller area | <p>I am developing a map that can be scrolling left right and top bottom.
What is the best View for that?</p>
<p>I dont want to use WebView. I'd like to use some scroller View wirh a bitmap that is MATCH_PARENT.</p>
| android | [4] |
454,408 | 454,409 | Line of code missing ";" error | <p>I am getting an error on line 49 below is line of code</p>
<p>Exact error</p>
<p>Parse error: syntax error, unexpected T_NEW, expecting ',' or ';' in /home/banking/onlinebanking/processdeposit.php on line 49</p>
<pre><code>enter code here
<?php
require_once('../header.inc.php');
require_once('../class/data... | php | [2] |
2,144,400 | 2,144,401 | Why cant we initialize Const and reference varibales inside the constructor braces({ }) and is always done via initialization list | <p>Why cant we initialize Const and reference varibales inside the constructor braces({ }) and is always done via initialization list</p>
<p>Thanks,
Sandeep</p>
| c++ | [6] |
5,699,753 | 5,699,754 | UVA 3n + 1 challenge | <p>I made this programm to solve the <a href="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=3&problem=36&mosmsg=Submission%20received%20with%20ID%2010484879" rel="nofollow">Uva problem</a>. </p>
<p>I tried the examples and the output was correct, bu... | java | [1] |
3,260,898 | 3,260,899 | Retain textbox values on page refresh | <p>I have a textbox in a user control uc1. I have embedded this uc1 in a page called default.aspx. My issue is after running the application and entering some data in the textbox, when refresh the page i would like to show the values that i have entered in the textbox and not clear the textbox. I would like help with c... | asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.