Unnamed: 0
int64
65
6.03M
Id
int64
66
6.03M
Title
stringlengths
10
191
input
stringlengths
23
4.18k
output
stringclasses
10 values
Tag_Number
stringclasses
10 values
2,424,778
2,424,779
Help in ERP project in windows form
<p>I want to download some of ERP projects source code based on windows form, to understand their coding structure, and designing, so that I could be able to develop ERP project. </p> <p>Could anyone please tell where I can find some of free ERP projects source code?</p>
c#
[0]
1,408,903
1,408,904
What is the iPhone equivalent to the \Windows\System32\Drivers\etc\hosts file?
<p>I'm working on a web application and need to debug a problem occurring only on the iPhone.</p> <p>I can reach the site on my dev box by typing its ip address into Safari (on my phone), but the domain is significant to the application, so I'm going to have to update my config in multiple places every time my IP chan...
iphone
[8]
4,659,199
4,659,200
Triggering focusout() events from other focusout() event
<p>am using a focus out event for one validation in jquery. like</p> <p><code> $("#A").focusout(function () </code> here 'A' is the id of the textbox</p> <p>the function contains a set of statements. I need to call the same function for another text box's focus out function. How can i trigger like that? Please help m...
jquery
[5]
5,147,208
5,147,209
how to encode string with unicode characters python
<p>I have a sql statement: select 'ó' from dual; after running fetchall for this statement I get the following string.'\xc2\xbf' in python. </p> <p>How do I get the original text based on the string returned? any ideas?</p> <p>thanks!</p> <p>Update: It turns out that the fetchall might be converting the 'ó' to an i...
python
[7]
1,383,506
1,383,507
Apear error when uploading files with php
<p>I have this code that i use to upload files on the server. But I get a custom Error produced by else statement,but I need to know the real reason why php is unable to upload the file. I Get error 2 but I dont get the actual message. Any suggestions?</p> <pre><code>if(move_uploaded_file($_FILES['uploadedfile']['tmp...
php
[2]
2,016,627
2,016,628
How to Change Background When You Pass a Certain Point on Page using jQuery
<p>I have a sidebar and the various sections on a page. The sidebar floats left and the sections float right. I would like the sidebar color/background to change when it passes each section, so when it is on the first section it is red, second section blue and third section green. I have attached an example with the HT...
jquery
[5]
2,995,151
2,995,152
How to convert Php source code to Asp.net code
<p>I am developing an application on mybloglog. I got the source code in php.I dont have any idea about php. Thats why I want to convert Php source code to Asp.net code. Any Help Please</p>
asp.net
[9]
119,022
119,023
Is there a lib to convert timestamp into time offset
<p>I am looking for a javascript library that takes unix timestamp string as an input and converts it to something like '5 minutes ago', '3 days ago', etc...</p> <p>The purpose is to display time difference of the forum post but I don't want to apply this logic in the php script on the server, I want to send the data ...
javascript
[3]
2,320,796
2,320,797
Is there a way to put strings in the `string.insert("", "")` function?
<p>So here's the line of my code to which I'm referring:</p> <pre><code>x.insert("a", "hello"); </code></pre> <p>I'm trying to insert the string "hello" after each "a" in a string. Is it possible to do this with the <code>insert</code> function?</p>
c++
[6]
4,824,904
4,824,905
PHP, document reading library
<p>I need a library to extract text from documents(doc, doxc, pdf, html, rtf, odt.....). Is there one library(for all document types) for this purpose?</p>
php
[2]
2,935,722
2,935,723
Javascript: if (previous page == certainurl) { function }
<p>I want to execute a function only if the previous page the user visited is on a certain domain. How can this be done using javascript (or jQuery or whatever)?</p>
javascript
[3]
3,077,505
3,077,506
how to accees Environment.getExternalStorageDirectory() when user connected to system
<p>I am working on email application. My application will create some files in the Sd card.</p> <p>I am using </p> <pre><code> Environment.getExternalStorageDirectory() </code></pre> <p>to store the files in SD card. But I have observed that some times when my device connected to my computer I am unable to access...
android
[4]
2,625,897
2,625,898
How does this work? It gives the answer but I don`t understand it.
<p>How does the following code work? It gives the answer how I want. But I want to know how it works?</p> <pre><code>public static void ShutDownComputer() { ManagementBaseObject outParameter = null; ManagementClass sysOs = new ManagementClass("Win32_OperatingSystem"); sysOs.Get(); s...
c#
[0]
5,676,651
5,676,652
C++ object oriented return value of virtual function in base class
<p>I am making a class which inherits off another and must return the value of a function in the base class... It is confusing so I will let the code speak for itself...</p> <pre><code>class ParentClass { public: virtual bool getMyVal(); }; bool ParentClass::getMyVal() { return true; // in my program there ...
c++
[6]
2,109,528
2,109,529
include header file error: multiple definition
<p>I have a very simple file system in a program.</p> <p>There is :main.cpp which include worker.h, worker.h and worker.cpp which include worker.h</p> <p>worker.h has the Header guard and has some variables declared which are required by both main.cpp and worker.cpp and it has some function declarations.</p> <pre><c...
c++
[6]
4,051,317
4,051,318
Why use TAG in most of the Android logging code
<p>I can see this is common practice among Android developers.</p> <pre><code>public final class TasksSample extends ListActivity { private static final String TAG = "TasksSample"; private void method() { Log.i(TAG, "message"); } } </code></pre> <p>Will it be easier, if I do it this way? I need no...
android
[4]
440,772
440,773
Error with converting Celsius to Fahrenheit
<p>So I'm trying to create a script that converts celcius to fahrenheit. When I run it I get an error on line 1. Please help me out... I do not need a new code I just need this fixed :/</p> <pre><code>window.addEventListener("load", init, false); function init() { var celcius = document.getElementById("celcius");...
javascript
[3]
1,971,171
1,971,172
what mean string in {}?
<p>I have string</p> <pre><code>$name = 'user'; $run-&gt;{$name}; </code></pre> <p>And i have result notice :</p> <pre><code>Undefined property: run::$user </code></pre> <p>I have in controller method user, but in error i see string ang $ char.</p> <p>Is this is a some special char ? </p>
php
[2]
2,245,698
2,245,699
cell id greater than 0xffff
<p>I am recently working on a android project where I need to get the CELL Id and LAC (location Area Code) and wnen i run this in my device i get a value greater than the default max value of <code>0xffff</code> for <strong>CELL Id</strong> </p> <p>why is this happening ? Does 3G and 2G make any difference?</p> <p>Th...
android
[4]
2,626,525
2,626,526
python auto restarting script
<p>I need script which starts itself at the end of process. I use this code but it wait for execfile. How to run it async? To do the effect of script restarting.</p> <pre><code>import time print "start" time.sleep(5) print "go exec" execfile('res.py') print "stop exec" </code></pre>
python
[7]
2,736,532
2,736,533
How to sort list of dicts in js?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/979256/how-to-sort-an-array-of-javascript-objects">How to sort an array of javascript objects?</a> </p> </blockquote> <p>How to sort list of dicts in js?</p> <p>I have:</p> <pre><code>[{'car': 'UAZ', 'price': ...
javascript
[3]
3,293,722
3,293,723
AJAX modal popups
<p>We are successfully using ajax modal popup on our web application.</p> <p>But when we try to add another one, neither one of them work.</p> <p>Is it only allowed to have ONE modal popup on an ASP page?</p>
asp.net
[9]
1,843,552
1,843,553
Android Async task not working
<p>I am calling this from a function by creating an object.The progress box appears and then disappears but the toast is not displayed.(I have removed the code that follows the toast but even that code which queries the web page is not executed in the doinBackground)</p> <pre><code>private class MyTask extends AsyncTa...
android
[4]
5,387,226
5,387,227
how to dispaly a string between two string from a text in php
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5496416/php-string-separate-function">php string separate function</a> </p> </blockquote> <p>Hi</p> <p>My string is </p> <pre><code>&amp;lbl12=Bourne Pond II – 30" long X 36" wide - Oil on canvas&amp;prc12=125...
php
[2]
4,300,442
4,300,443
iPhone SDK UI element preview
<p>Looking for some catalog/gallery(not UICatalog, just images), where I can see preview of each UI element in iPhone SDK, along with corresponding class name(eg datetime picker, calendar, the black switch bar on bottom). This will give me rough idea on which UI elements I can use in my app and go read about correspond...
iphone
[8]
2,262,542
2,262,543
Array initialization error
<p>I am doing java programming practice from a website. I have to display this out put using arrays.</p> <pre><code>Enter the number of students: 3 Enter the grade for student 1: 55 Enter the grade for student 2: 108 Invalid grade, try again... Enter the grade for student 2: 56 Enter the grade for student 3: 57 The av...
java
[1]
53,568
53,569
PHP function called on server shutdown?
<p>Is there anyway to register a PHP callback function to be executed when the HTTP server is shutdown? </p>
php
[2]
1,082,911
1,082,912
How to get contact email id?
<p>I have a listview of all the contact names in the phone. I want to get the email id (if contact have one) of the contact which I click on in the listview. How can I do this?</p>
android
[4]
4,856,987
4,856,988
jQuery $('div').html() - function problem
<p>This code should not generate any HTML button dynamically. Coz there is no div in the <code>&lt;html&gt;&lt;/html&gt;</code> section.</p> <p>But it is generating one.</p> <p>Why?</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HtmlReWriting.aspx.cs" Inherits="JQuery_Intellisence_Test.H...
jquery
[5]
3,415,661
3,415,662
ConfigParser and 2 config files
<p>I want to split my config file to 2 config files: common.conf and particular.conf. It's possible parse 2 config files as one config ?</p>
python
[7]
1,611,473
1,611,474
Simultaneous scale and fade out / jQuery
<p>I have a block of h1 text with the id of "text", and when the "start" button is clicked, I want to simultaneously scale up the h1 text really big and fade it out at the same time.</p> <p>I would know how to do this if I was using the .animate function, by using "queue: false". But since I am not using .animate, how...
jquery
[5]
3,657,813
3,657,814
textFieldShouldBeginEditing: Being Called Multiple Times for UITextField in UITableViewCell
<p>This is an iPad app so it is based on SDK 3.2 (behavior also appears on later iOS release).</p> <p>I created a custom UITableView cell class which contains a UITextField. The class for the cell adheres to the UITextFieldDelegate protocol and I've implemented the textFieldShouldBeginEditing method to intercept user...
iphone
[8]
3,655,621
3,655,622
Accessing a general use class from all over project
<p>In our application there is general used classes( e.g a class which holds project configuration parameters ) like below .</p> <pre><code>class DB{ public: int projectVersion int somethingSoMuchImportantAllOverTheProject }; extern DB* pDB; </code></pre> <p>Because all other classes will use this class, all of th...
c++
[6]
4,761,102
4,761,103
Display html formatting in listview android
<p>I've got a list view in which i have to dispaly some text from html with proper formatting. Though i pass the html as string to <strong>Html.fromHtml</strong> method but my formatting as <strong>align="justify"</strong> don't work.</p> <p>here is the code snippet:</p> <pre><code>String text = "&lt;ul&gt;&lt;li&gt;...
android
[4]
1,325,404
1,325,405
getParcelable() returns null object
<p>I've used <code>putExtra()</code> to pass some data from one activity to other. I want to create a <code>Parcelable</code> instance but I am getting a null object.</p> <p>Here is the code of first activity:</p> <pre><code>i = new Intent(Activity1.this, Activity2.class); i.putExtra(com.login_app.Activity1.extra, "1...
android
[4]
5,970,699
5,970,700
Converting a .dat file into an array
<p>I have a .dat file generated from MATLAB (with float values). I need to convert it to an array containing the same number of rows and columns as it did in the .dat file. Could anyone suggest a way of doing this? There is a <code>\n</code> at the end of each line which I want to remove. The .dat file read into Python...
python
[7]
4,560,549
4,560,550
Start and stop reloading a page with Javascript
<p>I am trying to reload a page every X amount of seconds with Javascript, I need to be able to hit a button to stop it and start it though</p> <p>So when you go to the page it will just start refreshing every 5 seconds, then you can hit a stop button. Once stopped you can hit a start button to get it going again.</p...
javascript
[3]
4,795,319
4,795,320
iPhone Video Rotationn
<p>I'm using the UIIMagePickerController for video capture but after the capture I publish it on our servers and it turns out that the video is not properly oriented. But this problem only occurs when the user take's video in Portrait mode in LandScape Mode everything is simply fine. </p> <p>Is there any way in which ...
iphone
[8]
4,783,812
4,783,813
Deleting a folder within a folder using two variables
<p>I've got multiple branches in the company folder and then multiple users per branch. I need to remove certain users as they leave a branch. I don't get an error but the entire branch folder gets deleted and not just the specified user folder. Can someone point me in the right direction</p> <pre><code>#!/usr/bin/pyt...
python
[7]
1,375,976
1,375,977
Select cells from 3D grid in certain radius
<p>I ran into a little problem today that I can't seem to solve in an efficient way. I'd like to select all cells of a 3D grid given the center of a sphere and the radius.</p> <p>I have a cubic grid of cells, which all have the same dimensions, i.e. the cube has same width height and depth and is divided into sub cube...
c++
[6]
125,085
125,086
C++ Overloading the + operator results in error
<p>I have tried to overload the "+" operator for my class:</p> <pre><code>Vector operator+( const Vector&amp; a, const Vector&amp; b ); </code></pre> <p>However,it tells me:</p> <pre><code>vector.h(12): error C2804: binary 'operator +' has too many parameters </code></pre> <p>I really don't get it. Please help me</...
c++
[6]
5,253,559
5,253,560
Nice looking Message Box
<blockquote> <p><strong>Possible Duplicate:</strong><br /> <a href="http://stackoverflow.com/questions/770038/best-ways-to-display-notifications-with-jquery">Best ways to display notifications with jQuery</a> </p> </blockquote> <p>I'm looking for nice looking error/valid/info/.. message boxes. Any ideas </p>
jquery
[5]
1,555,183
1,555,184
How to delete the data while re-install the app
<p>Thanks for previous replies,</p> <p>is it possible to delete the stored content from sqlite once re-install the application. I am storing data in database, once i re-install the same app again, the previous data still stores in sqlite. i want to delete the stored content while re install the app. i am not sure abou...
android
[4]
4,628,712
4,628,713
Testing apps with iPhone synchronized with a pc?
<p>My iPhone is currently synchronized with a pc. I'm planning to purchase a Mac Mini for developing iPhone apps and testing them with my iPhone. Does my iPhone have to be synchronized (via iTunes) with the Mac, in order to test my apps on it? Or can it stay synchronized with my pc? I'm questioning this, because I want...
iphone
[8]
3,215,832
3,215,833
Error in if Condition
<p>i have the three variable int value1,value2 and a String operator. and i want to check the if Condition. suppose value1=4,value2=3 and in operator='>'. then how i check the if condition for Example - </p> <pre><code>int value1=4; int value2=3; String operator="&gt;"; if (value1+operator+value2) { System.out.print...
java
[1]
60,752
60,753
how to run the dependecy class file in java
<p>I have created Excel Sheet using java program.It works fine.</p> <p>My problem is, i have copied the .class file into other directory with the necessary jar files need to create this excel sheet, for example</p> <p>my .class is inside "pack" package.</p> <p>c:/myprogram/pack/excelprogram.class to d:/mypro...
java
[1]
2,874,847
2,874,848
get function name that called function without arguments
<p>I have a class <code>admin_model</code> with the private method <code>admin_form()</code></p> <p>There are a number of other public functions that call this method.</p> <p>Is there a way to get the name of the function that called <code>admin_form()</code> from INSIDE <code>admin_form()</code>?</p> <p>I could eas...
php
[2]
5,723,008
5,723,009
Retrieving a contacts notes
<p>I'm still very new to android app development, and I have hit a problem I hope u can help me with...</p> <p>I am trying to retrieve any "Notes" stored against a contact within my phone. I want to check if a contact (current caller) has any notes associated to them, and then either display the contents or do some ac...
android
[4]
157,014
157,015
passing array from one page to another in php
<p>How can I pass array value from one page to another in php and retrieve value of that array in another page. I have use array_push function to insert value of database in array using loop as below.</p> <pre><code>array_push($file_names,$row['sVoiceFileName']))); </code></pre> <p>Now, I want to pass $file_array var...
php
[2]
941,752
941,753
Dynamically generate HTML elements using javascript and save them on server
<p>I have a gridview asp.net 2.0 control, I added new row -contains 9 cells- with values at the bottom of it using javascript, everything is fine. the problem is when i press the [SAVE] button to save the new gridview with new row - I added in javascirpt- I can't do that. the code gets the original gridview rows which ...
asp.net
[9]
581,496
581,497
setInterval how to stop it to load different css to work
<p>How do you stop an interval heres my code:</p> <p>function timeres(){</p> <p>if ((screen.width!=1280) &amp;&amp; (screen.height!=1024)) { document.write } </p> <p>}</p> <p>setInterval('timeres()',1);</p> <p>The code works great without the setinterval when i change resolutions i have to refresh the page to ma...
javascript
[3]
3,052,741
3,052,742
C# web browser alternative?
<p>I am looking for an alternative to web browser in C# that doesn't require being viewed, it needs to have navigation, the notice of when it's navigating and document loading has completed.</p> <p>It also needs to be able to get and set elements by name, id, etc...</p> <p>Is there such a way to do this without havin...
c#
[0]
4,604,904
4,604,905
How to get some text values in python below text format
<p>I have sentences like</p> <pre><code>// string1 = value1 // string2 = value2..... </code></pre> <p>so on, how can I get only "values" using python</p>
python
[7]
4,575,518
4,575,519
Include a class in inline code block in asp.net
<p>I'm playing around with inline code blocks in asp.net. Can somebody tell me why the following code doesn't work?</p> <pre><code>&lt;%@ Language="C#" %&gt; &lt;% Response.Write(TestClass.ShowMessage()); public class TestClass { public static string ShowMessage() { return "This worked!!"...
asp.net
[9]
3,904,714
3,904,715
how to write a simple audio player on android?
<p>I have written a simple audio player on android(below). And trying to run on virtual device(AVD). But I am not getting the sound. Is it not possible to get sound using AVD ? Kindly help me.. Thanks</p> <pre><code>package com.example.helloplayer; import android.app.Activity; import android.media.MediaPlayer; import...
android
[4]
4,367,891
4,367,892
Max Disk Space an iPhone App Can Use
<p>I have searched here and found the assertion that "no single application may occupy more than 2GB of hard disk space."</p> <p>Not to question that statement, it seems a reasonable policy, but can anyone provide a reference to that policy in the Apple Docs. I would appreciate it greatly.</p>
iphone
[8]
1,684,741
1,684,742
How do you interpret jQuery(document).ready()?
<p>So <code>jQuery()</code> is is a function and document is an object which is used as a parameter of the <code>jQuery()</code> function. </p> <p>I suppose, the <code>jQuery(document)</code> function then return an object, which has a ready() method? Is it correct? What kind of object does <code>jQuery(document)</cod...
jquery
[5]
5,976,700
5,976,701
Calling a javascript function everytime a key is pressed in input field
<p>I want to call a function whenever a key is pressed. I am using onKeyPress event handler. However i see that it calling the function only the first time the key is pressed. I want to call it everytime a key is pressed. Can someone help me in this?</p>
javascript
[3]
426,664
426,665
screen rotation advice
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8093213/android-save-application-state-on-screen-orientation-change">Android : Save application state on screen orientation change</a> </p> </blockquote> <p>In my app I have a listView. When starts application i...
android
[4]
486,206
486,207
Cast in contructors for c++ type
<p>I have the following c++ code:</p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; int main( int argc, char* argv[] ) { const std::string s1 = "ddd"; std::string s2( std::string( s1 ) ); std::cout &lt;&lt; s2 &lt;&lt; std::endl; } </code></pre> <p>The result is: 1 ...
c++
[6]
996,152
996,153
Variable should be final inside listener
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1299837/cannot-refer-to-a-non-final-variable-inside-an-inner-class-defined-in-a-differen">Cannot refer to a non-final variable inside an inner class defined in a different method</a><br> <a href="http://stackoverf...
java
[1]
344,764
344,765
How to get the pointer to canvas for a custom view in a user defined function in android
<p>I have an activity which extends view i.e. its a custom view.I want to get the pointer to the canvas in my own function to draw something instead of the overridden ondraw/draw methods.Is it possible?</p>
android
[4]
3,498,319
3,498,320
what's the usage/meaning of jQuery event.detail?
<p>I handle the click event on a button and when clicking it the <code>e.detail = 0</code>, when I hit enter inside a textbox and for some reason the button click gets triggered (asp.net) <code>e.detail = 1</code>.</p> <p>I couldn't find this in the jQuery <a href="http://api.jquery.com/category/events/event-object/" ...
jquery
[5]
5,158,229
5,158,230
how do I pass date value from codebehind to markup page?
<p>I have this bit on codebehind:</p> <pre><code>txtDBirth.Text = DateTime.Now.ToString("Mon dd yyyy") </code></pre> <p>We would like the date to appear in the format of Month Day Year as in Oct 07 2011</p> <p>Then on the markup, I have this:</p> <pre><code>&lt;asp:TextBox runat="server" ID="txtDBirth" CssClass="Te...
asp.net
[9]
6,028,013
6,028,014
Process.Start returns null
<p>i am writing a program that launches a random file in a directory. the file can be of any time, but mostly video or image files. each time i launch a file i want to close the previous opened one. the code is:</p> <pre><code> string FolderSelected = ""; string FileName = ""; Process proc; List&lt;str...
c#
[0]
2,293,066
2,293,067
Logical Error in my application sql statement
<p>My application except patientNumber then poplate the dropdown for the visits with the VisitNumbers.A VisitNumber is generate for the patient for every visit. when i click the search button the get the visitNumber for the patient and populate the Dropdownlist i get and error:</p> <pre><code>Line 35: ...
asp.net
[9]
3,559,235
3,559,236
jQuery .closest() works on one page, but not another
<p><a href="http://www.gamingunion.net/" rel="nofollow">http://www.gamingunion.net/</a> http://www.gamingunion.net/forums/</p> <p>When you click on the game background it'll open a Amazon.com link. For some reason on the forums it's failing and giving the error <strong>$(event.target).closest is not a function</strong...
jquery
[5]
1,813,866
1,813,867
How to animate div using with two arrow icons one is for open one is for close?
<p>I am doing some div animating using jquery animate in middle i struck can any one help on this to continue.</p> <p>my requirement will be when i clicked arrow icon div should animate. After animate div collapse the left side arrow needs to show for closing the collapsed place.</p> <p>i have added two images one is...
jquery
[5]
5,011,705
5,011,706
can === and != be used interchangably?
<p>Can the relational operator === (used for identical) be used interchangeably with the != operator" and get the same results? Or will I eventually run into issues later down the road when I do larger programs?</p> <p>I know I will get the same results in the example below, will this always be true?</p> <pre><code>/...
php
[2]
5,982,875
5,982,876
File Size and Format before uploading
<p>Is there any way to check for file format and size of the file before uploading it in javascript?</p>
javascript
[3]
5,194,194
5,194,195
Dynamically unregister/remove intent from activity intent filter
<p>Is it possible to dynamically unregister an intent that was registered with an activity's intent filter in its manifest file?</p>
android
[4]
1,270,142
1,270,143
Compiler Error: Invalid value in assignment when trying to change the origin of a UISwitch
<p>The following piece of code is giving me a compiler error: Invalid value in assignment, while changing the origin.</p> <p><code>CGPoint switchOrigin = CGPointMake(currentOrigin.x, currentOrigin.y + kTweenMargin); UISwitch *choiceSwitch = [UISwitch alloc]; **choiceSwitch.frame.origin = switchOrigin;**</code> </p> ...
iphone
[8]
5,098,923
5,098,924
Issue with ldap_bind() with blank user name and password
<p>First of all LDAP_bind anonymous is enabled. The problem that i am having is the following:</p> <p>This code works fine without a problem:</p> <pre><code>&lt;?php $ldaprdn = 'uname'; $ldappass = 'password'; $ldapconn = ldap_connect("ldap.example.com") or die("Could not connect to LDAP server."); if ($l...
php
[2]
1,523,264
1,523,265
Cant Start App Due to Errors
<p>I keep getting these two errors which stop me from running my app</p> <pre><code>Description error: Error parsing XML: not well-formed (invalid token) AndroidManifest.xml /SMSLookup line 6 Android AAPT Problem Description The element type "manifest" must be terminated by the matching end-tag "&lt;/manifest&gt;...
android
[4]
2,989,518
2,989,519
Read phone number from Tablet : Android
<p>In my application I read device phone number as </p> <pre><code>TelephonyManager telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); // Read phone number of device owner. String phoneNumber = telephonyManager.getLine1Number(); </code></pre> <p>where, this will work till device h...
android
[4]
2,657,599
2,657,600
Technically speaking wouldn't this be a way of deleting the last node? LL C++
<pre><code>node *head, *current, *temp; current = head; while(NULL != current){ temp = current; current = current-&gt;next; } delete current; current = temp; current-&gt;next = NULL; </code></pre> <p>I'm just wondering I know there's something like this and there's recursion, assuming there's already a linked list...
c++
[6]
3,625,335
3,625,336
Apparent encapsulation
<p>The new command allocates memory in the heap to store an object. Static allocation may cause the object to be put on the stack instead. But they're both not protected area of memory. I can access to this, which is just the address of the object, and then use the indirection operator, so pointing to the object fields...
c++
[6]
1,028,620
1,028,621
How to get the iPhones GSM signal level?
<p>For an application I'm developing I need to get the GSM signal level, but I haven't been able to find how to do it using public APIs. I thought that it couldn't be done, but I have found an app on the itunes store that does it (<a href="http://itunes.apple.com/app/no-signal/id366168900?mt=8" rel="nofollow">here</a>)...
iphone
[8]
1,736,621
1,736,622
uploading problem
<p>i can't upload large files, but i've set</p> <p><strong>php.ini</strong></p> <pre><code>max_execution_time = 3600 max_input_time = 600 memory_limit = 100M post_max_size = 100M file_uploads = On upload_max_filesize = 100M </code></pre> <p>it returns a 500 error - <strong>[an error occurred while processing this d...
php
[2]
4,005,874
4,005,875
What does !1 and !0 mean in Javascript?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8255653/return-1-in-javascript">return !1 in javascript</a> </p> </blockquote> <p>In a JavaScript file I had to read today, there was a line where a variable was declared like a factorial, like this :</p> <pre>...
javascript
[3]
3,803,444
3,803,445
Android Form Reset?
<p>I have a simple calculator that has six EditText views where users will enter numbers to perform a simple math function. This app will satisfy a repetitive task wherein the users will enter the information, press the submit button and the answer is displayed in a separate textView. </p> <p>I want to add a simple 'c...
android
[4]
531,944
531,945
update new android apps in third party sites
<p>i am developing android apps ,in this apps i am update in android market.</p> <p>any third party websites update in this new apps thanks in advance please forward some suggestion </p>
android
[4]
4,932,764
4,932,765
Generic Interface with property
<p>i have one interface </p> <pre><code>/// &lt;summary&gt; /// Summary description for IBindable /// &lt;/summary&gt; public interface IBindable&lt;T&gt; { // Property declaration: T Text { get; set; } } </code></pre> <p>Now i want to implement this interface in my class </p> <pre><c...
c#
[0]
4,616,828
4,616,829
Is there any way to detect if video can be played on a device?
<p>I've done a deep research on playing videos Android devices and I came to a conclusion that there are some Android devices that can't play videos that were recorded on other Android devices.</p> <p>Right now I'm firing an intent to play video, but the player says "Sorry, the video cannot be played".</p> <p>I've be...
android
[4]
3,144,066
3,144,067
Invalid Arguments Error Using Generics
<p>I am trying to use the function found here: <a href="http://stackoverflow.com/questions/709035/datatable-to-listobject">DataTable to List&lt;object&gt;</a></p> <pre><code> public static IList&lt;T&gt; ConvertTo&lt;T&gt;(DataTable table) { if (table == null) return null; ...
c#
[0]
2,231,648
2,231,649
Writing an Android library - Using its own custom Application class (getApplication)
<p>I'm writing an Android library and I wish to use a custom <code>Application</code> class, which will be accessible from all of the library's activities (using the <code>getApplication</code> method).</p> <p>The problem is when I call the <code>getApplication</code> method from one of my library's activities, it ret...
android
[4]
3,961,154
3,961,155
C++ "Virtual functions but no virtual destructors"
<p>I have a base class Media and several derived classes, namely DVD, Book, etc... The base class is written as:</p> <pre><code>class Media{ private: int id; string title; int year; public: Media(){id = year = 0; title = "";} Media(int _id, string _title, int _year): id(...
c++
[6]
2,287,821
2,287,822
InsertImage in document.execCommand not appearing
<p>So I made a function to insert image through document.execcommand in JavaScript..</p> <pre><code>function images() { var img = prompt ("Enter the image link", ""); if (img != null) { lol.document.execCommand("insertImage", false, img); } }; </code></pre> <p>The image is not appearing, even on l...
javascript
[3]
5,139,321
5,139,322
Why isnt the >> working properly C++?
<pre><code>std::wifstream theFileHandle; std::wstring theData; theFileHandle.open( theFile.Name() ); theFileHandle &gt;&gt; theData; theFileHandle.close(); </code></pre> <p>Could anyone tell me why my string (theData) is only getting the first word from the file (theFile) ??? I would like the string to contain all of ...
c++
[6]
2,474,726
2,474,727
How to activate event?
<p>Hi How can I activate Event ? for example: to activate the Form_Load from my Button in the Form or to activate scan barcode event</p> <p>thank's</p>
c#
[0]
5,361,527
5,361,528
php if to include html
<p>PHP isn't really my language of choice, that being said I remember seeing a php <code>if</code> being used something like this:</p> <pre><code>&lt;?php if (blah) { ?&gt; // loads of html and js that doesn't need to be escaped since we closed // the php already with "?&gt;" &lt;?php } ?&gt;...
php
[2]
5,685,650
5,685,651
Displaying mp3 files from all folders and subfolders present in SD card
<p>I am trying to set a ring tone for my alarm application. For this i need to display all songs with .mp3 extension present in various folders and sub folders in SD card.</p> <p>I want only the .mp3 files to be displayed and not any of the folders/ sub folders. I already have a coding where songs are displayed from S...
android
[4]
2,325,505
2,325,506
C++ Is it possible for a DLL and an executable to communicate from a different process?
<p>Is it possible for a DLL and an executable to communicate from a different process?</p> <p>For an example:</p> <pre><code>Child.dll is loaded into Target.exe... Owner.exe is running... Owner.exe sent message "close" to Child.dll Child.dll received message "close" from Owner.exe Child.dll executed: ExitProcess( 0 )...
c++
[6]
3,745,187
3,745,188
How to read integer values from text file
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/303913/java-reading-integers-from-a-file-into-an-array">Java: Reading integers from a file into an array</a> </p> </blockquote> <p>I want to read integer values from a text file say contactids.txt. in the file i...
java
[1]
1,051,061
1,051,062
C++ ABI issues list
<p>I've seen a lot of discussion about how C++ doesn't have a Standard ABI quite in the same way that C does. I'm curious as to what, exactly, the issues are. So far, I've come up with</p> <ol> <li>Name mangling</li> <li>Exception handling</li> <li>RTTI</li> </ol> <p>Are there any other ABI issues pertaining to C++?<...
c++
[6]
5,819,147
5,819,148
maintaining view state android
<p>Please don't delete it because its a duplicate. I am an android developer with little experience. I have an app with 2 screens. The first has a bunch of options in a <code>TableLayout</code> each selected using a <code>RadioButton</code>.</p> <p>What I want to do is, when I select one option and click a <code>Butto...
android
[4]
255,662
255,663
Audio not playing when iPhone is sleeping
<p>I would like to know one thing. I hope you people can guide me well.</p> <p>I am creating an application which needs some audio alerts. I am using <code>AVAudioPlayer</code> for this purpose.</p> <p>I also set the Audio session like this (in my main delegate class):</p> <pre><code>//to play from sleep OSStatus re...
iphone
[8]
706,792
706,793
how to read a list of current running process in linux using C++
<p>i need to read the list of current running process into a C++ program. I know that one way to do is to use ps command and other is to read /proc file system but i want to know how one can get names of processes by reading /proc file system. also is there any other way to read the list.</p>
c++
[6]
4,307,700
4,307,701
Need to ping remote server programmatically and store output of telnet
<p>Guys I am supposed to ping remote server Programmatically. Also I have to store output of telnet .I have recieved a mail where I am supposed to Share the following things but I dont know how to do these things.I have to share output of following activities of server where my site is hosted and from this server I hav...
c#
[0]
164,672
164,673
Custom Preference
<p>I have my own preference </p> <pre><code>&lt;Preference android:key="testkey" android:title="Test" android:summary="test"&gt; /Preference&gt; </code></pre> <p>How i can start ProgressDialog with downloading from preference?</p>
android
[4]