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 |
|---|---|---|---|---|---|
4,833,051 | 4,833,052 | MediaPlayer - setDataSource failing - Couldn't open fd for content:// | <p>My app downloads audio files to <code>/sdcard/Music</code>. When I try to play them, I am getting the following error.</p>
<blockquote>
<p>V/MediaPlayer-JNI( 2789): setDataSource: path
content://media/external/audio/med ia/2 E/MediaPlayerService( 1130):
Couldn't open fd for content://media/external/audio /med... | android | [4] |
4,096,991 | 4,096,992 | google analytics how does it save data? | <p>I understand that google analytics uses first party cookie tracking, so it sets the cookie from the domain being visited with javascript (rather than setting the cookie from google-analytics.com)</p>
<p>I am wondering how the ga.js google analytics script saves the cookie data to the database to be reported on by g... | javascript | [3] |
1,640,855 | 1,640,856 | webkit framework iphone | <p>i am not able to add webkit framework in my application. Getting error which says no such framework is available.</p>
| iphone | [8] |
2,669,780 | 2,669,781 | stop executing code after new form is loaded | <p>Some method call this method which has this code:</p>
<pre><code>Form frm = new Form();
frm.Show();
</code></pre>
<p>but i do not want to execute first method anymore after form is loaded. How can i prevent and stop loading code in forst form</p>
| c# | [0] |
1,166,433 | 1,166,434 | Removing duplicate code in python | <p>Is there any library in python for duplicate code checker? I use python IDE and I am finding trouble refactoring my code. Are there any python library available which suggest duplicate code in the program/project?</p>
<p>Update: I found clone digger which as per its site,</p>
<p>We have tested Clone Digger on sour... | python | [7] |
197,063 | 197,064 | Android Camera - the moving cube | <p>I am new with android,and I hope that you will help me.
I use opencv-android library ,i have tried to run the camera preview sample,but unfortunately i get a cube moving on the screen, i have tried to write my own code but i faced the same problem also changing the API didn`t fix the problem.</p>
<p>(see the attach... | android | [4] |
3,020,387 | 3,020,388 | How to run Directory.GetFiles() on a password protected directory (drive)? | <p>I have a network dive, mapped up locally as Z:\
This drive is password protected
I want to run Directory.GetFiles("Z:\Foo"). What code do I write for this to work? How can I enter the user ID and the password required for his drive, prior to calling Directory.GetFiles?</p>
| c# | [0] |
4,803,384 | 4,803,385 | Calculate with literals that are out of range | <p>I would like to calculate (<code>+</code>,<code>-</code>,<code>*</code>,<code>/</code>) with large integers, say 50-digits long.
How can I deal with this, when <code>int</code>, <code>double</code> or <code>long</code> comes too short?</p>
| java | [1] |
2,591,619 | 2,591,620 | How can I run a PHP counter script when clicking a link? | <p>I have a script that runs when a page is visited on my site, it updates a value and stores it in a text file, but I want to run the same script when a link is clicked on my site, this link just opens a file in my web directory, not an actual page. here is teh script:</p>
<pre><code><?php
$count_my_page = ("hitco... | php | [2] |
2,355,361 | 2,355,362 | android connect to PC's localhost when debugger on mobile device | <p>I want to debug my android application, I connect the android device to my PC using the USB cable. In my application there is a button to connect with localhost, ip for localhost is <code>10.0.2.2</code> and the port is <code>8080</code>, I have read that when debugging on mobile, the ip <code>10.0.2.2</code> is the... | android | [4] |
2,672,412 | 2,672,413 | Casting using a decimal in C# | <pre><code>private int FindNumber(string sPar)
{
// Get the last number
int len = sPar.Length;
string s = sPar.Substring(len-1);
return new (int)Decimal(s);
}
</code></pre>
<p>In this I am getting the error ; required . Can any ine help me on this.</p>
<p>Thank You!</p>
| c# | [0] |
2,103,790 | 2,103,791 | Python: what is the fastest / most elegant way to see if every number in two arrays is the same? | <p>ie, compare: </p>
<pre><code>1,-1,1
</code></pre>
<p>to </p>
<pre><code>1.0,-1, 1
</code></pre>
<p>should be the same</p>
<pre><code>print("the input and the output are " + ( (input == calc_out) ? "the same" : "not the same"))
</code></pre>
<p>but it give a lexical error =\</p>
| python | [7] |
5,354,759 | 5,354,760 | Jquery on loading html page with sending data along the path | <p>can anyone please tell me how can i retrieve data in jquery when i send data using load function along with destination url. so how to retrieve the data variable in person.html...</p>
<p>code:</p>
<pre><code>data="name";
$("div").load("person.html",data);
</code></pre>
<p>and another one is can anyone tell me how... | jquery | [5] |
2,473,745 | 2,473,746 | Filenames with spaces | <p>I am running PHP locally (no webserver involved at all). I am having trouble accessing a file with spaces in the path.</p>
<p>My bare bones case is</p>
<pre><code>$indexFile = "file:///Users/username/Documents/My Folder/test.txt";
echo file_exists($indexFile);
</code></pre>
<p>or:</p>
<pre><code>$indexFile = "fi... | php | [2] |
5,100,701 | 5,100,702 | Get HTML web page over HTTPS with Javascript | <p>I'm trying to get the HTML code of this page: <a href="https://bscr.benq-eu.com/portal/serialcheck.cfm?sn=ID77806367002" rel="nofollow">https://bscr.benq-eu.com/portal/serialcheck.cfm?sn=ID77806367002</a> with JavaScript using this method <a href="http://www.experts-exchange.com/Web_Development/Miscellaneous/Q_21902... | javascript | [3] |
5,363,292 | 5,363,293 | Can I omit the else in an inline javascript if statement? | <p>I'm trying to use this and it doesn't appear to be working. I'm guessing it's just not an option, but want to confirm. Is this valid?</p>
<pre><code>(if_it_is) ? thats_cool();
</code></pre>
| javascript | [3] |
738,207 | 738,208 | USe JQUery Next() API to grab the data from a hidden Text Box | <p>I am doing some self-learning about JQuery and stuck over a question:<br/>
I am trying to use the JQuery next() API to grab the data from the Text Box field of Hidden type, but I failed to do so.<br/>
Here is my code:</p>
<pre><code> $(document).ready(function(){
$(".Testing").click(function(){
var what = ... | jquery | [5] |
2,214,769 | 2,214,770 | Best practices including pre-installed data? | <p>Where is the best location to install pre-install data for your app? (for example, sample photos).</p>
<p>According to this document, we should put data in "/Android/data/your_package_name/files/"</p>
<p><a href="http://developer.android.com/guide/topics/data/data-storage.html#filesExternal" rel="nofollow">http:/... | android | [4] |
4,895,820 | 4,895,821 | getting package names from classes | <p>I have this following java program which returns certain classes from a directory. I want to find the package names for these classes..how can i do that??
any code will be helpfull.</p>
<pre><code>import java.util.*;
import java.io.*;
public class CreateTestPackage
{
public void execute()
{
List<... | java | [1] |
3,631,992 | 3,631,993 | alertbox in android | <pre><code>AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);
</code></pre>
<p>when i wrote this error is shawn that</p>
<pre><code>The constructor AlertDialog.Builder(new Runnable(){}) is undefined
</code></pre>
<p>.. so just tell me what i m do... </p>
| android | [4] |
3,946,438 | 3,946,439 | javascript get array name | <p>so i have this array:</p>
<pre><code>var utf = Array(
a: Array('á','à','ã','Á','À','Ã'),
e: Array('é','ê','É','È'),
i: Array('í','Í'),
o: Array('ó','õ','Ó','Õ'),
u: Array('ú','Ú'),
c: Array('ç','Ç')
);
</code></pre>
<p>I want to run a for loop like:</p>
<pre><code>for(i = 0; i < utf.... | javascript | [3] |
3,096,947 | 3,096,948 | live audio streaming in android | <p>I am facing problem to play a audio url using MediaPlayer as well as native Android audio player.
Here is my url
<a href="http://live.politiafm.com:8500/politiafm.mp3" rel="nofollow">http://live.politiafm.com:8500/politiafm.mp3</a></p>
<p>Here is my code
Using native audio player
Intent intent = ne... | android | [4] |
2,821,508 | 2,821,509 | Playing Audio During call so that other person on call can hear it | <p>i am developing one application which
needs to play an audio song to callee when call is lifted by callee,
and automatically call has to be disconnected automatically when audio
song playing completed . i tried to find in android API for any
classes or methods to do this, but failed to find... please help me
how to ... | android | [4] |
493,316 | 493,317 | Split Comma Separated Names with PHP | <p>I have names in the form of <strong>Lastname, Firstname</strong>. In my database I have a different field for both the first and last.</p>
<p>I would like to use PHP to read everything before the comma as the lastname and everything after the comma as the firstname. What is the best way to accomplish this?</p>
| php | [2] |
2,039,221 | 2,039,222 | search my aspx files and delete | <p>what's the best way to read all my aspx files in a directory, search for HeaderText="Variable Text" and delete it and save the file?</p>
<p>Also, is there a way to programmatically check the file out of tfs at the same time it is being updated?</p>
| c# | [0] |
1,697,071 | 1,697,072 | Selecting only one number from a contact which is having more than two contact numbers | <p>I am able to retrieve contact name and number from contacts using following code.My problem is that when a contact has multiple numbers,it somehow selects one of them,which i don't want.</p>
<p><em><strong>If a contact has multiple phone numbers, I need the user to be able to choose which phone number he wants to s... | android | [4] |
4,673,531 | 4,673,532 | Java Script running poorly under PHP compared to Cold Fusion | <p>I am having to switch my site over from Cold Fusion to PHP and I am noticing that some JS, fadeslideshow.js, isn't running to smoothly. First I notice that some images aren't being centered as they should and the code seems to run a little choppy. Any clues for this novice? </p>
| php | [2] |
5,296,506 | 5,296,507 | How to prevent reload of facebook-like button | <p>I have a fb-like button on top of a Masterpage and wrapped a updatepanel around the Contentplaceholder.</p>
<p>The updatepanel is function, but the fb button reload every time. Anyone know how to prevent this?</p>
| asp.net | [9] |
4,042,875 | 4,042,876 | How to sort C++ map keys with std::greater? | <p>I'm creating a <code>std::map<int, int></code> in C++ that I'd prefer to have they keys sorted from highest to lowest instead of the default sort order. My research lead me to <a href="http://www.cplusplus.com/reference/functional/greater/" rel="nofollow">std::greater</a> which looked promising but when trying... | c++ | [6] |
5,348,116 | 5,348,117 | how to show images in list when image urls is store in an array android | <p>i have an array in which i have urls of images for displaying image in list ..number of urls is not fixed at every time...and i want to show image in list so how to achieve this..?pls suggest me ...thanks in advance.i had learn lots of tutorial about that but they are so much complicated to understand so pls can any... | android | [4] |
1,085,313 | 1,085,314 | ASP.NET webreferences/servicereferences for WCF | <p>A couple of questions:</p>
<p>Is App_WebReferences for WCF schema files? Should this not be App_ServiceReferences?</p>
<p>Also, what is dynamic compilation in ASP.NET?</p>
<p>Thanks</p>
| asp.net | [9] |
3,625,258 | 3,625,259 | Get a contact's groups? | <p>I'm trying to make a many-to-many mapping of contacts to groups.</p>
<p>For example, if I have:</p>
<ul>
<li>User 1, belongs to group 701, 702, 704</li>
<li>User 2, belongs to no groups</li>
<li>User 3, belongs to group 702</li>
</ul>
<p>I'm hoping to get a relation that looks like this:</p>
<pre><code>userID | ... | android | [4] |
2,436,769 | 2,436,770 | How to detect page scroll to a certain point in jQuery? | <p>Imagine this is my page:</p>
<pre><code><p>hello</p>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<p class="myPara">My Paragraph</p>
</code></pre>
<p>How can I alert a message when... | jquery | [5] |
4,402,284 | 4,402,285 | flash File upload error | <p>I am trying to upload a file in a web application using asp.net.While doing that its showing a error:"There has been an HTTP Error: status code 404".Could anyone help me to resolve the issue.</p>
<p>Regards,
Kiran S</p>
| asp.net | [9] |
4,473,445 | 4,473,446 | Android - 'Cant create handler' error during display of progress bar | <p>I am trying to display a progress bar in my application but am running into a problem with threading. Here is the code I am using to do it:</p>
<pre><code>package com.integrated.mpr;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import a... | android | [4] |
312,677 | 312,678 | unable to create MIDlet with j2me | <p>i use WTK 2.5.2 . I am getting an error while running my program . the nature of error is .. </p>
<pre><code>Unable to create MIDlet HelloMidlet
java.lang.ClassNotFoundException: HelloMidlet
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Selector.run(+22)
</code></pre>
<p>.. what wo... | java | [1] |
2,756,136 | 2,756,137 | Moled type for OperationContext.Current.CallBackChannel<T>() | <p>What is the moled type for
OperationContext.Current.CallBackChannel()</p>
| c# | [0] |
3,812,802 | 3,812,803 | How to modify js file on Parallax scrolling so I can add image with different speed | <p>I'm using the parallax scrolling tutorial down at nettutsplus and its working fine. However, i want to add an extra image for example a ball and put it on a different speed as with the background image. I've modified the existing js file but i didnt find any luck with it.</p>
<p>Basically in the html file, i have a... | jquery | [5] |
1,009,222 | 1,009,223 | Check if var exist before unsetting in PHP? | <p>With error reporting on, or even for best practice, when unsetting a variable in PHP, should you check to see if it exist first (in this case it does not always exist) and the unset it, or just unset it?</p>
<pre><code><?PHP
if (isset($_SESSION['signup_errors'])){
unset($_SESSION['signup_errors']);
}
// OR
... | php | [2] |
509,018 | 509,019 | record a sound within custom application of iPhone | <p>I would like to develop an application in which voice can be recorded & data should be displayed after filtering accordingly recorded voice.</p>
<p>I want to do the same thing in my Application.</p>
<p>My Application requirements are as follows.
=> search entries accordingly recorded voice?</p>
<p>for me,</p... | iphone | [8] |
2,891,521 | 2,891,522 | Need to obtain the name of Global variable $_REQUEST | <p>I need to obtain the identifier, name of Global variables. Eg. If I have $_REQUEST['email'] I need to obtain the word email within the $_REQUEST variable.</p>
| php | [2] |
1,791,369 | 1,791,370 | Android preference, does it have to be unique? | <p>For my <code>private static final String PREFS_NAME = "mypref";</code> does the PREFS_NAME have to be unique for every application? Or can I use the same one over and over.</p>
| android | [4] |
1,166,431 | 1,166,432 | Establishing an array from foreach loop | <p>I have a form which allows a user to register for multiple events. These are listed in a form with checkboxes (all named <code>registrations[]</code> with the event ID as the value) and are submitted as an array.</p>
<p>A subsequent page then loops through each 'checked' event, adding a record to the database for e... | php | [2] |
5,663,534 | 5,663,535 | Receive an object from the net and distinguish it | <p>I receive an object from the net through the the <code>getInputStream()</code> using <code>ObjectInputStream</code>
My question is: once it's arrived from the net how can I distinguish it?Can i use <code>instance of</code>?</p>
<pre><code>ObjectInputStream ois = new ObjectInputStream(socket.getInputStream();
Obje... | java | [1] |
3,803,106 | 3,803,107 | Why would php say two equal things are unequal? | <p>I'm trying to see if a user logging in has entered the right password, which is stored as an md5 hash. when i echo the hash of the password entered, it matches exactly the hash of the one in the database, but it still thinks its false. Heres the code:</p>
<pre><code>echo md5($_POST['pass']);
if ($user->match_pa... | php | [2] |
436,953 | 436,954 | What are the rules on #include "xxx.h" Vs #include <xxx.h>? | <p>If I have my own library projects, which style should I use to <code>#include</code> the headers from them in my application? Are there strict rules, and do the two actually have different meanings to the compiler/preprocessor or is it about standards only?</p>
| c++ | [6] |
5,937,825 | 5,937,826 | How to include parenthesis for AS-IS output in format string | <p>I want to see, Hello {} in the output, but the following gives compiler errors</p>
<pre><code>Console.WriteLine("{0} \{\}", "Hello");
</code></pre>
| c# | [0] |
3,434,033 | 3,434,034 | Testing Shake events on Android Emulator | <p>Can any one help with how to test sensor events like shake on Android Emulator.
I have found some posts pointing to openintents but can anyone explain how to use it in android 2.0 avd</p>
<p><a href="http://code.google.com/p/openintents/wiki/SensorSimulator" rel="nofollow">http://code.google.com/p/openintents/wiki/... | android | [4] |
2,003,050 | 2,003,051 | Android Games for game developement | <p>how to swap the two imageview object to interchange there images....at runtime</p>
| android | [4] |
3,005,006 | 3,005,007 | Unique ID for each user in Android | <p>I want to allocate unique ID to each user as soon as he installs the application so that whenever the app contacts the server I know who is contacting.
For this purpose, I thought that on first time installation, the app contacts the server and gets unique ID. But I don't know where to store it permanently so that n... | android | [4] |
1,041,129 | 1,041,130 | hiding/removing selected from select option list for multiple select tags with same list | <p>let's say i have 4 select tags that uses the same option choices. i wanted to remove the selected options from the choices. currently i tried this code:</p>
<pre><code> function connect(val)
{
$(".option").show();
$(".selectbox").each(function(i) {
var obj = $("option[value='" + $(this).val() + ... | jquery | [5] |
2,369,529 | 2,369,530 | How does JavaScript determine if an array index is integer? | <p>It seems that JavaScript's array indexes are actually all strings, so <code>a[0]</code> is the same as <code>a['0']</code> while <code>a[1.0]</code> is not <code>a[1]</code> but <code>a['1.0']</code>.
But at the same time, array has a length property; it will be updated automatically when you modify value of integer... | javascript | [3] |
3,911,554 | 3,911,555 | JQuery drag&move but leave the original if CTRL key is pressed? | <p>I have the following JQuery code to drag&drop to change ul item orders (#list ul). How can I make it if the CTRL key is pressed, drag&move but leave the original ?</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
function slideout(){
setTimeout(function(){
$("#res").slideUp... | jquery | [5] |
1,953,807 | 1,953,808 | ContentURI cannot be resolved to a type | <p>I am trying to follow an eclipse and android tutorial from ibm. The source code from the tutorial is giving me an error that says ContentURI cannot be resolved to a type..</p>
<p>here is the source code line...</p>
<p>ContentURI theContact = new ContentURI(android.provider.Contacts.ContactMethods.CONTENT_URI.toUR... | android | [4] |
5,176,567 | 5,176,568 | Setting value of dropdownlist which a data source parameter is bound to | <p>I have some drop down lists on a page which get their SelectedValue from a session variable. This allows the value of the dropdowns to be saved across multiple pages.</p>
<p>Problem is the dropdown selected value is being used as a parameter to a separate data source on the page.</p>
<p>If I try to set the dropdow... | asp.net | [9] |
2,873,505 | 2,873,506 | How to choose elements but exclude first and last elements | <p>How to process element excluding the first and last one.
I have a table with a given number of rows. I want to trigger the rows on a click event but should not process the click if first or last row is clicked.
How can I implement this?</p>
| jquery | [5] |
4,661,175 | 4,661,176 | Which collection structure I should use for parametrical grouping ordering in c#? | <p>I have various windows forms applications that contain various controls that build up custom "group by" and "where" clauses for my class methods.</p>
<p>I am thinking to pass a collection structure of some kind in order for the methods to be able to build the group by's and the where clauses. </p>
<p>Let's say a l... | c# | [0] |
4,611,291 | 4,611,292 | Merge method C++ | <p>I want to write a method that merges two lists together in an alternating manner. So if I have list1=(0,1,2,3,4) and list2=(5,6,7,8), then the final list should be (0,5,1,6,2,7,3,8,4). Do you any ideas or hints, because I've tried so many things, but all fail to make sense.</p>
| c++ | [6] |
1,684,758 | 1,684,759 | preg_replace(), removing string containing '+' char | <p>I am having an issue removing "%3Cbr+%2F%3E" from my string using the preg_replace function. My assumption is that the '+' char is being interpreted incorrectly. Here my code:</p>
<pre><code>$address = preg_replace('/%3Cbr+%2F%3E/', '', urlencode($address));
</code></pre>
<p>Thanks as always!</p>
| php | [2] |
330,983 | 330,984 | Java file delete error | <p>I want to delete a file in java.It generate this result. How may I delete the file. And what is the reason for this.</p>
<pre><code>File l_file = new File(path);
System.out.println(l_file.exists()); //returns true
System.out.println(l_file.delete()); //returns false
</code></pre>
<p>Thank you.</p>
| java | [1] |
5,544,888 | 5,544,889 | ASP.NET auto submits form with only one textbox | <pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<... | asp.net | [9] |
518,125 | 518,126 | Possible to retrieve steam server list in python? | <p>I wanted to hear whether it was possible to find a way to retrieve steam servers in python?
If so, how could one go about it? </p>
| python | [7] |
962,030 | 962,031 | Is System.Int32 any slower than using int? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/62503/c-int-or-int32-should-i-care">C#, int or Int32? Should I care?</a> </p>
</blockquote>
<p>Couple of questions on System.Int32: </p>
<ol>
<li>Is there any specific technical reason why sizeof(System.Int32) ... | c# | [0] |
5,612,684 | 5,612,685 | Unable to get the correct innerHTML after AJAX load | <p>I was updating <code>innerHTML</code> of an element through <code>ajax</code> succesfully... But when i want to get same <code>innerHTML</code> of that element using <code>.htm()</code>, i could not get the updated innerHTML...</p>
<p>It returns the previous Mark up when the document was loaded.....</p>
<p>How t... | jquery | [5] |
2,383,221 | 2,383,222 | Need to display streaming video occupying the fullscreen | <p>I am using <strong>VideoView component for streaming video in Android</strong> , but the streaming video is <strong>occupying only a part of the screen of the mobile device both in portrait/landscape mode</strong>.</p>
<p>Kindly provide the code to so that the <strong>streaming video is displayed covering the full ... | android | [4] |
4,319,569 | 4,319,570 | Utility for maxing out file system memory | <p>Does anyone know if there is an app that exists that will fill up the internal phone memory or SD Card memory to help with testing app functionality under full memory conditions? If anyone here is familiar with BREW development I'm looking for the Android equivalent of maxfilecnt.</p>
<p>Thanks!</p>
| android | [4] |
5,203,371 | 5,203,372 | String substitution (C#) | <p>Programming in c#.<br>
I'm trying to substitute every char in a string with another char (Encryption), but I need some help. I was going to do this using two arrays, one with the alphabet in it, then the other with the substitute values, but I realized I'd have to do a else-if the size of the whole alphabet, which I... | c# | [0] |
521,868 | 521,869 | print multi-page gridview | <p>I have a multi-page gridview, and i want to print all the pages. </p>
<p>here is my code </p>
<pre><code><asp:GridView ID="verifiedsum" runat="server" AllowPaging="true" PageSize="20" AutoGenerateColumns="false" style="margin-left:100px;width:500px">
<Columns><asp:BoundField HeaderText="RegNumbe... | asp.net | [9] |
815,188 | 815,189 | dynamic allocation of array for array of pointers | <p>when I tried to dynamically allocate an array of pointers to char, I accidently added extra parenthesis</p>
<pre><code> char** p = new (char*) [5];
</code></pre>
<p>and an error occured</p>
<blockquote>
<p>error: array bound forbidden after parenthesized type-id|</p>
</blockquote>
<p>I don't quit understand w... | c++ | [6] |
214,656 | 214,657 | Android application name confusion | <p>I have created an app with a full and a lite version.</p>
<p>Lite version:
AndroidManifest.xml
<code>android:label="@string/app_name"</code> which is SomeApp Lite.</p>
<p>Full version:
AndroidManifest.xml
<code>android:label="@string/app_name"</code> which is SomeApp.</p>
<p>Signed apks are SomeAppLite.apk and So... | android | [4] |
3,720,746 | 3,720,747 | Getting complete PATH of uploaded file - PHP | <p>I have a form(HTML, PHP) that lets the end user upload a file to update the database(MySQL) with the records in the uploaded file(specifically .csv). However, in the phpscript, I can only get the filename and not the complete path of the file specificed. fopen() fails due to this reason. Can anyone please let me kno... | php | [2] |
3,986,520 | 3,986,521 | Column size in Android GridView | <p>How to do diferent size columns in Android GridView.
I need one long fild for name and nine short for numbers.
GridView XML:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orie... | android | [4] |
267,893 | 267,894 | stylesheet for spreadsheet from .net using open xml sdk 2.0 | <p>I am actually bit confused to say. I googled for applying styles in my spreadsheet i got some functions in which they mention about the font, borders etc which i need but i dont know where should i use or how should i implement.
When i tried to implement like
cell.StyleIndex=8 // Which is modified as per my need bu... | asp.net | [9] |
5,627,198 | 5,627,199 | C++ -- Why should we use operator -> to access member functions of a SmartPtr? | <p>The question is given in the last two lines of code.</p>
<pre><code>template<class T> // template class for smart
class SmartPtr { // pointers-to-T objects
public:
SmartPtr(T* realPtr = 0);
T* operator->() const;
T& operator*() const;
T* Detach( void )
... | c++ | [6] |
1,142,069 | 1,142,070 | Android: access installed security certificates? | <p>Users can install p12 security certificates on their android devices. Is there a way that I can list the installed certificates problematically, and obtain references to them (presumably as a java.security.KeyStore object)?</p>
<p>Edit:</p>
<p>In java, this can be accomplished with:</p>
<pre><code> public stati... | android | [4] |
2,499,825 | 2,499,826 | Remove all 10s in a list and append a same number of 0s to the list at the end in JAVA | <p>I've done most part of this. Anyone give me a small hint about how do I find the number of 10s in the list.
Eg. Input would be </p>
<blockquote>
<p>[10,4,6,10,6,7]</p>
</blockquote>
<p>Output must be </p>
<blockquote>
<p>[4,6,6,7,0,0]</p>
</blockquote>
<pre><code>import java.util.ArrayList;
import java.util... | java | [1] |
5,469,715 | 5,469,716 | When creating an overloaded constructor, is a default constructor needed? | <p>Just learning about them now and very new to java.</p>
| java | [1] |
2,243,986 | 2,243,987 | Execute a Program Which Accept Command Line Parameters | <p>How to Execute a Program Which accepts Command Line Parameters in c#?</p>
| c# | [0] |
1,923,548 | 1,923,549 | Why doesn't the jQuery Font Resizer Resize? | <p>I have added a font-resizer to this <a href="http://energync.ehclients.com/news/article/usgbc-nc-the-nc-sustainable-energy-association-collaborate-on-legislative-a#" rel="nofollow">page</a> and it looks right, but the font does not resize.</p>
<p>The HTML I am targeting is .news p</p>
<p>The jQuery is like this: <... | jquery | [5] |
3,238,064 | 3,238,065 | RTL Confirm and Alert in Javascript | <p>Can you make a <code>confirm</code> or <code>alert</code> show its message RTL and right-aligned?</p>
| javascript | [3] |
787,355 | 787,356 | php ClassName::staticFunction()->publicFunction() What is this doing? | <p>I'm reading up on php design patterns, and I saw this code:</p>
<pre><code><?php
require_once("DB.php");
class DatabaseConnection
{
public static function get()
{
static $db = null;
if ( $db == null )
$db = new DatabaseConnection();
return $db;
}
private $_handle = null;
private fu... | php | [2] |
4,845,322 | 4,845,323 | Problem with href url | <p>I'm using a unordered list like a menu, but when I click on an element of the list, the href is being changed rarely. I set the href like this: </p>
<ul>
<li>href="UI/Administracion/Ejemplo.aspx</li>
</ul>
<p>When I click on any element of the list, the href changes his url like this:</p>
<p>UI/Administracion/Eje... | asp.net | [9] |
2,750,292 | 2,750,293 | Multiple select option to a textarea | <p>I am still learning javascript and I have problem with my current application<br>
From this <a href="http://bit.ly/Vyncl1" rel="nofollow">fiddle</a>, it's not working but it can roughly show what I want to achieve.</p>
<p>My output if I chose Banana & Mouse will be:<br>
Banana is yellow<br>
Mouse is small</p>
... | javascript | [3] |
3,195,818 | 3,195,819 | Setting ID to a control inside repeater itemtemplate | <p>Inside repeater's itemtemplate I have a Panel server control.<br>
I need to assign special Id for it, because I need to work with some javascript functions that use this Id. </p>
<p>In repeater ItemDataBound event I have this:</p>
<pre><code>pnlButtonsPanel.ID = pnlButtonsPanel.ID + DataBinder.Eval(e.Item.DataIte... | asp.net | [9] |
1,561,252 | 1,561,253 | Android App Log Keeping and user activities | <p>HI all I want to keep the record of user activity and application behaviour in android. Can any one tell me the any good approach with the code. I wan to keep the record in Log files.
Thanks in advance</p>
| android | [4] |
1,394,843 | 1,394,844 | Null reference in java | <p>I have a piece of code for which i have to know how memory is allocated</p>
<pre><code>public class Demo {
public void checkNullReference(){
ConsumerName name = null;
addReference(name);
System.out.println(name.getConsumerName());
}
public void addReference(ConsumerName name){
name = new Consumer... | java | [1] |
3,711,170 | 3,711,171 | Issue with this simple code | <pre><code>import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class MyDrawPanel extends JPanel{
public void paintComponents(Graphics g){
g.setColor(Color.orange);
g.fillRect(20,50,100,100);
}
public stati... | java | [1] |
5,644,638 | 5,644,639 | extended euclidean algorithm and the concept of multiplicative inverse | <p>I have with python:</p>
<pre><code>e*d == 1%etf
</code></pre>
<p>we know (e) and (etf) and must discover (d) using the
extended euclidean algorithm and the concept of
multiplicative inverse of modular arithmetic.</p>
<pre><code>d = (1/e)%etf
d = (e**-1)%etf
</code></pre>
<p>generate a global wrong number, plea... | python | [7] |
1,425,371 | 1,425,372 | Android - Change Notification Icon | <p>I would like to know if its possible to have an different Notificationbar Icon than the Launcher or Application Icon. I would like to display an other icon for my push notifications. Is this possible? Thanks.</p>
| android | [4] |
4,375,311 | 4,375,312 | Expecting HTMLImageElement but getting simple Object when iterating over jQuery list of img tags | <p>I am gather imgs:</p>
<pre><code>container.find('img')
</code></pre>
<p>Log says this is (console.log('img '+imgs[0]))</p>
<blockquote>
<p>[object HTMLImageElement]</p>
</blockquote>
<p>But when I iterating over this list with each():</p>
<pre><code> container.find('img').each(function(idx) {
... | jquery | [5] |
2,984,236 | 2,984,237 | Changed text not posting back to code-behind | <p>I have a textbox on an ASP.NET 4.0 page. I can add text to the textbox in the code-behind and when the page renders, the text displays just fine. However, when I modify the textbox in the browser and submit the page, the MyTextBox.Text property still shows the original text and not the modifed text I entered in th... | asp.net | [9] |
3,375,494 | 3,375,495 | Mouse Dragging problem | <p>i'm having the problem of capturing all the coordinate value of pixels while dragging with the mouse using mousedragged event in java
while i'm dragging slowly i'm able to get all the coordinate value of pixels
but when i'm doing it fast i'm getting only one third of the pixel coordinate values
for example if i drag... | java | [1] |
408,140 | 408,141 | Downloading images from the gallery in android | <p>I am developing an app in which i need to import images from the default gallery to the storage in sd card that I use for the app. Is it possible?</p>
| android | [4] |
3,423,555 | 3,423,556 | What is the fastest way to learn Android and quickly start developing apps? | <p>I am a recent computer science student and have intermediate knowledge of java. However I am good at PHP.</p>
<p>Please suggest me a fastest way to learn Android and start developing apps immediately.</p>
| android | [4] |
3,172,589 | 3,172,590 | Samsung Tab P7500. How to upgrade to Ice Cream Sandwich? | <p>is the update for Ice Cream Sandwich for the Samsung Tab 10.1 WiFi + 3G available yet? From where should I learn about it?</p>
| android | [4] |
2,561,624 | 2,561,625 | Why we use "this" in Extension Methods? | <p>I want to ask why we use "this" keyword before the parameter in an extension method (C# Language)...........
like this function :</p>
<pre><code> public static int ToInt(this string number)
{
return Int32.Parse(number);
}
</code></pre>
<p>I know that we have to use it but I don't know why.</p>
| c# | [0] |
3,124,704 | 3,124,705 | Socket input stream doesn't read fragment by fragment | <p>I have problem in my app, I read from socket with ip=192.168.0.3 and port =502. Another program write messages to that port fragment by fragment ( mac fragmnet length is 205 bytes) and I need to read that messages fragment by fragment. But when I wrote this I get all fragments in one big. </p>
<pre><code>boolean la... | java | [1] |
2,319,247 | 2,319,248 | Users getting blank screen on long uploads (which fail). Would that be max_execution_time or max_input_time? | <p>I need to change a setting in php.ini to give our script more time to work with the upload.</p>
<p>Would that be max_execution_time? Or max_input_time?</p>
| php | [2] |
4,413,529 | 4,413,530 | JavaScript Debugger for Understanding Source Code | <h2>Context</h2>
<p>I am trying to understand the internals of a big, hairy JavaScript library.</p>
<p>I already have the un-minified version.</p>
<p>JavaScript's dynamic-ness is making it hard for me to guess what is happening by just reading the code.</p>
<p>I want something like gdb ... where I can "step" throug... | javascript | [3] |
4,751,847 | 4,751,848 | jquery - where to store extra information? | <p>So I've got a plugin I've been working on that takes a select box and then hides it and makes a div with anchor links in it. (The dropdown part and such is working just fine).</p>
<p>When I create the anchor elements, where should I store what option value they represent? When they are clicked, I need to be able to... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.