Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
5,136,728 | 5,136,729 | Android ListItem with radio button | <p>My page has a listView and a OK button. Each listItem has an id and RadioButtonGroup.
I am using SimpleCursorAdapter to load the list.</p>
<p>What I would like to do is when I click on OK, I want to get individual id and radio button selection from that radioButtonGroup. </p>
<p>How do I do it ? </p>
| android | [4] |
5,125,460 | 5,125,461 | a tiny but stupid quesion on C++ | <p>I declared an <code>int</code> variable like this,</p>
<p><code>int temp1 = -3;</code></p>
<p>How can I assign the int value <code>3</code> to <code>temp2</code>?</p>
<p>I can only find the method as this,</p>
<pre><code>If (temp1 < 0){
temp2 = 0 - temp1;
}
</code></pre>
<p>Is there a good method to appr... | c++ | [6] |
2,263,612 | 2,263,613 | Access issue regarding static variable | <p>I have a class Class1 in some header file Class1.hpp</p>
<pre><code> class Class1
{
static std::vector<bool> var1;
func();
}
func()
{
var1.clear();
int t=0;
do
{
var1.push_back(t++);
}while(true); //its some condition
</code></pre>
<p>Now inside another function main() in another class in ... | c++ | [6] |
1,299,895 | 1,299,896 | Is ini_set('max_execution_time', 0) a bad idea? | <p>Is there a good reason not to set the PHP configuration variable <a href="http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time"><code>max_execution_time</code></a> to 0?</p>
<p>A coworker recently checked in a change to a file that added:</p>
<pre><code>ini_set('max_execution_time', 0);
</cod... | php | [2] |
5,551,718 | 5,551,719 | soap message takes so much time to move from application level to network level | <p>My application calls a method on webservice. The timeout of webservice is set 30 sec. The problem is occur when there is so many request at same time and web method is called and request become time out.
On investigation on webserver side we found that this message never reach on server. To investigate this matter f... | c# | [0] |
1,833,675 | 1,833,676 | How to catch this nested exceptions? | <p>Example: I use a PDO method that throws an exception. But inside the try block, I also throw an own Exception if something else goes wrong. Now I want to handle the PDOException and my own Exception separately. How could I separate this to make it work?</p>
<pre><code> public function prepare(string $sql, array $... | php | [2] |
91,006 | 91,007 | Determine class instance of a member in C++ | <p>I've never seen this in any language, but I was wondering if this is possible using some trick that I don't know.</p>
<p>Let's say that I have a function like</p>
<pre><code>struct A {
// some members and methods ...
some_t t;
// more members ...
};
void test(some_t& x) { // a reference to avoid cop... | c++ | [6] |
1,167,661 | 1,167,662 | Angle that a point clicked makes with vertical | <p>I need to create analog clock in which hours is displayed at centre and minutes on circumference of circle.I need to calculate angle that the point on circumference where user clicks, makes with vertical to calculate minutes.Any help would be useful..</p>
| android | [4] |
2,060,421 | 2,060,422 | Will iPhone applications compiled using the 2.x SDK be removed from the App Store? | <p>Apple now says that apps built against the iPhone OS 2.0 SDK will not be accepted for the App Store. What happens to applications already on the store that have been built using the older SDKs?</p>
| iphone | [8] |
4,902,156 | 4,902,157 | Programmatically constructing Java code? | <p>I am working on a module where I have to convert a set of logical representations and other data into Java source code. </p>
<p>I would like to be able to first convert them to an intermediary representation of Java elements (classes, methods, etc), and then convert this intermediary representation to an actual Str... | java | [1] |
491,411 | 491,412 | How do you set the method "isChecked()" state to default to true in a ListView? | <p>I need the checkboxes in my listview checked by default so that it returns true for the value of <code>isChecked()</code>.</p>
<p>I am using the Simple Multiple choice list item layout provided by the sdk supplied in <code>android.R.layout.simple_list_item_multiple_choice</code></p>
<p>I have set the ListView adap... | android | [4] |
403,869 | 403,870 | Viewing a ASP.NET page inside Web Application Project without building the whole project | <p>Is it possible to view the change of a page inside Web Application Project <strong>without building</strong> the whole web application project and its dependent library projects?</p>
<p>Thanks.</p>
| asp.net | [9] |
1,861,792 | 1,861,793 | Why we concatenate variables.... without concatenate this can do doifferent variables | <p>i am new in php programing can any one tell me plz what is difference between </p>
<pre><code>$strJobs[$months] .= $jobs.",";
</code></pre>
<p>and</p>
<pre><code>$strJobs[$months] = $jobs.",";
</code></pre>
<p>is there any same result without concatenation... plz tell me thanks</p>
| php | [2] |
3,617,252 | 3,617,253 | what does the symbol : mean in php? | <p>I used <code>print_r</code> on some variables of a framework to figure out their contents and what i saw was like this </p>
<pre><code>Array (
[pages:navigation] => Navigation
[pages:via] => via pages
[item:object:page_top] => Top-level pages
)
</code></pre>
<p>I thought this was ok because i can... | php | [2] |
5,286,326 | 5,286,327 | How to prevent data on external storage getting deleted on reinstall/update? | <p>I notice that my app's data on external storage (i.e. SD card) gets deleted during an "adb install -r". While this is normal for uninstall (and then afterwards install optionally to notice it), I do not understand why this is the case for reinstall (and thus for Market updates as well). I could have sworn this was n... | android | [4] |
3,950,508 | 3,950,509 | How to set image overlay on another image on specified X and Y position on main image? | <p>how to set small images on main image in specified x and y position , my main image also zoom functionality so if user zoom image than the another all image also set specified x and y position as per zoom level. please any one suggest which step follow for this ....</p>
| android | [4] |
5,605,468 | 5,605,469 | What is the difference between x86 and x64 | <p>What is the difference between <a href="http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html" rel="nofollow">x86 and x64 binaries here</a>, we would like to download binaries for Windows 7, Ubuntu 12.04 (32 bit options)</p>
| java | [1] |
5,062,782 | 5,062,783 | Using Gallery beside marquee text | <p>Hi I have a layout that contains</p>
<ul>
<li>a gallery</li>
<li>a textview with .setEllipsize(TruncateAt.MARQUEE);</li>
</ul>
<p>They do not overlap. Whenever the Marquee ist activated the gallery does not move smoothly and starts to stutter. What is the reason for this and how to fix this?</p>
<p>Thanks</p>
| android | [4] |
547,769 | 547,770 | python method as argument | <p>So I know in python everything is an 'object' meaning that it can be passed as an argument to a method. But I'm trying to understand how exactly does this work. So I was trying out the following example:</p>
<pre><code>class A:
def __init__(self):
self.value = 'a'
def my_method(self)
print... | python | [7] |
1,666,669 | 1,666,670 | How to open dialog from listview | <p>I have found a problem while opening dialog on click of listView..the code i have return is given below please check it if there is any error there..</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_info);
List... | android | [4] |
3,440,856 | 3,440,857 | Jquery email validation | <p>I am using this code for email validation:</p>
<pre><code>function validateEmail(){
//testing regular expression
var a = $("#email").val();
$.ajax({
type: "GET",
url: "is_email.php",
data: "email="+a,
success: function(response){
... | jquery | [5] |
5,320,209 | 5,320,210 | Would like to use isset(empty($sc)) | <p>I want to use a combination of this <code>isset(empty($sc))</code> but am receiving this error </p>
<blockquote>
<p>Parse error: syntax error, unexpected T_EMPTY in /var/www/html/find.php on line 9</p>
</blockquote>
<p>When someone posts from the form, then the <code>$sc</code> should be checked if empty only if... | php | [2] |
1,819,667 | 1,819,668 | Reading string value from a text file into textView | <p>I've been searching everywhere for a method that allows one to read a @string value from a text file. I'm not sure if I'm being entirely clear since I cannot seem to describe it in words so I'll use this snippet.</p>
<pre><code>This is a <@string/square_root>
</code></pre>
<p>So when I read the file into a t... | android | [4] |
3,520,235 | 3,520,236 | Get original definition of redefined function | <p>I am writing a bookmarklet which performs some function on a page. As part of this function I need to use <code>getElementsByClassName</code>. However, during testing I found that several websites have redefined <code>getElementsByClassName</code> to a custom method. Presumably this was done in order to support <cod... | javascript | [3] |
4,335,426 | 4,335,427 | PHP Load image into array, 2 bit | <p>I want to load an entire image (PNG) into a 2-dimensional array where a black pixel is <code>true</code> and a white pixel is <code>false</code>.</p>
<p>What's the most efficient way of doing this?</p>
<p>Should I convert the image into bitmap and attempt to read that in, or is there a more efficient method?</p>
| php | [2] |
2,378,853 | 2,378,854 | java input output stream | <p>Does anyone have any good suggestions for creating a Pipe object in Java which is both an InputStream and and OutputStream since Java does not have multiple inheritance and both of the streams are abstract classes instead of interfaces?</p>
| java | [1] |
1,351,856 | 1,351,857 | Why does this.One() call the overrider method from class B and not the virtual one from class A? | <pre><code>class A
{
public virtual int one()
{
return 100;
}
public virtual int two()
{
return 200;
}
public virtual int three()
{
return this.one();
}
}
class B : A
{
public override int one()
{
return 300;
}
public override int ... | c# | [0] |
1,964,535 | 1,964,536 | PHP date of birth checker | <p>I am currently using the following PHP code to check date of birth, the code uses the american mm/dd/yyyy although I'm trying to change it to the british dd/mm/yyyy.</p>
<p>I was hoping someone could tell me what to change:</p>
<pre><code>function dateDiff($dformat, $endDate, $beginDate)
{
$date_parts1=explode... | php | [2] |
2,372,628 | 2,372,629 | Get wan ip address using php | <p>Hai Guys,
How to get wan ip address of my user using php....</p>
| php | [2] |
2,009,147 | 2,009,148 | Tracing the method calls in iPhone app | <p>How can I trace the method calls and their sequence while a iPhone app is running? Which Instrument I should use?</p>
| iphone | [8] |
5,640,325 | 5,640,326 | If a listener is attached to a parent element, is it possible to distinguish which child element a click occured on? | <p>If I have an onClick listener attached to an li element, then if that li has several child elements of different types then within the listener I could tell which type of element the click occured by examining the event.target.tagName or event.target.nodeName.</p>
<p>But what if there are two children with the same... | javascript | [3] |
5,121,420 | 5,121,421 | unable to play video/ radio programmes - object doesn't support this property or method | <p>here is my problem with the IE:</p>
<p>I have been visiting a website and listening to the online radio in the past. Recently the website shows an error message when I click on the "play" button and I was unable to listen to/ watch the radio programme. </p>
<p>The error message is as follows:</p>
<pre><code>"obje... | javascript | [3] |
4,350,588 | 4,350,589 | jQuery Training Videos | <p>I want to learn as much about jQuery that I can. I learn very fast through video, are there any great jQuery training video resources out there on the subject?</p>
<p>I know about showmedo.com, which is a great resource but would like to know about others.</p>
| jquery | [5] |
1,055,081 | 1,055,082 | Please help me in printing message | <pre><code>def printmessage(self, i, string1, string2):
count=1
while (count <=i):
print count
print string1[count-1]
print string2[count-1]
statename=str(string1[count-1])
princename=str(string2[count-1])
print "case#:%d %s is ruled by %s "+ (i,statenam... | python | [7] |
2,991,966 | 2,991,967 | Create report in ASPX.NET by passing value? | <p>Can you please direct me to a tutorial or other resource for accomplishing the following:</p>
<p>Index page lists 50 states. Onlick of a state Y, the report page (report.aspx) will display info related to state Y, pulled from database.mdb, interspersed in HTML text.</p>
<p>I am not even sure what the terms and con... | asp.net | [9] |
4,814,837 | 4,814,838 | section recieving cell values of other section | <p>i am trying to get the first five card in one section and other five in next section of table view . actually i have done parsing and unable to get proper cell values. The thing i am getting is combined values for example : in section = 'birthday' cell values are 'card1', 'card2' and again 'card1' ,'card 2' of 'new ... | iphone | [8] |
5,017,570 | 5,017,571 | can i generate a text file from my iphone application | <p>Hi
I am creating a simple calculation based application and at end i need to create a text file for the calculation made in that app.Now i want that whole result into the text file, i dont if we can create a text file through our application or not but need to create that and also if we are able to create it the... | iphone | [8] |
5,860,612 | 5,860,613 | Help with jQuery 'zoom' script | <p>I'm using this script on my site - <a href="http://www.suuronen.org/esa-matti/projects/panfullsize/" rel="nofollow">http://www.suuronen.org/esa-matti/projects/panfullsize/</a></p>
<p>Got it all working fine, only problem is that it always defaults to the zoomed image when you load a page. I'd rather it showed the s... | jquery | [5] |
3,831,034 | 3,831,035 | Remove Bytes from binary file | <p>Is There any way to remove Bytes from binary file???</p>
| c# | [0] |
4,757,551 | 4,757,552 | this python script can be shortened/optimized, how? | <p>I'm not used to doing things the python way yet, but I'm almost certain the following script can be condensed. I'm not looking for speed optimization here, I'm looking for more readable code. Make it slower for all I care, but what are some ways to make this look more Python-esque.</p>
<p>I'm simply reading in a cs... | python | [7] |
3,714,971 | 3,714,972 | shared preference for passcode | <p>I read something from forum. Someone has developed an android application. He used SharedPreference to store the passcode instead of SQLite.</p>
<p>I wish to know the reason.
Is SharedPreference has higher security compared to SQLite?</p>
<p>I has googled about SharedPreference but not really understand about it.<... | android | [4] |
399,091 | 399,092 | how to check installed application in iphone device | <p>I am developing an application in which i need to find the apps which are already installed in iphone device such as Skype, facebook. I need to check it objective -c . Please give me code snippet if possible otherwise a link to get the solution. If it not possible then tell me other way to check installed applicatio... | iphone | [8] |
1,223,273 | 1,223,274 | Android JSP page handler | <p>I want to upload file using to a JSP page through android. If any one know how to implement JSP handler in android please let me know.</p>
| android | [4] |
3,925,697 | 3,925,698 | Wrong Activity gets called | <p>I have two Apps with the same Activity called <code>SettingsActivity</code>.
In App A I do a
<code>startActivity(this, (fullpackagename).SettingsActivity);</code></p>
<p>and in the Manifest i got <code><activity android:name=".activities.SettingsActivity"></activity></code>
for registering the Activity... | android | [4] |
4,171,410 | 4,171,411 | php.ini on goDaddy | <p>I've got a little problem on a goDaddy server. I have a php script (ajaxCRUD) in which there's an upload field, and I can't get it to accept file over the default limit. I always get this (when I output the $_FILE[$fieldname]) : </p>
<pre><code>array(5) { ["name"]=> string(13) "children2.mp3" ["type"]=> strin... | php | [2] |
5,253,608 | 5,253,609 | jQuery Percentage Loader - "Controllable" example | <p>I want to use the jQuery Percentage Loader.</p>
<p>in their site I don't find a easy working demo to download and use.</p>
<p>I need help on finding an easy demo code of their "Controllable" example.</p>
<p>jQuery Percentage Loader site:
<a href="https://bitbucket.org/Better2Web/jquery.percentageloader" rel="nofo... | jquery | [5] |
3,553,413 | 3,553,414 | php function call from external PHP | <p>I want to call function in PHP i use require_once for this ....
now i want to call the function in a particular event how it is done ?</p>
<p>For example I have an function</p>
<pre><code>function validateHostName($hostName) {
if ((strpbrk($hostName, '`~!@#$^&*()=+.[ ]{}\\|;:\'",<>/?') == FALSE) &am... | php | [2] |
1,467,849 | 1,467,850 | Get the map overlay marker icon during onTap | <p>I'm using an ItemizedOverlay containing a list of OverlayItems to display markers on top of a MapView. My problem is that when an OverlayItem uses the default marker defined for the overlay, its getMarker() method returns null. Is there another way I can get that marker image? I'd like to see if I can animate it ... | android | [4] |
5,351,574 | 5,351,575 | Benefits of avoiding .pyc files? | <p>Are there any benefits, performance or otherwise for <a href="http://stackoverflow.com/questions/154443/how-to-avoid-pyc-files">avoiding <code>.pyc</code> files</a>, except for the convenience of not having a bunch of these files in the source folder?</p>
| python | [7] |
5,789,480 | 5,789,481 | Jquery filter for nested objects | <p>My code is:</p>
<pre><code> colModel: [
{ display: 'Grade', name: 'Grade', width: 40, align: 'center' },
{ display: 'Grade ID', name: 'ID', width: 180, align: 'left' },
{ display: 'Organization ID', name: 'Organization_ID', width: 120, align: 'left' },
{ display: 'Organization Name', name: 'Organiz... | jquery | [5] |
5,281,447 | 5,281,448 | difference between 'is' and '==' | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/26595/is-there-any-difference-between-foo-is-none-and-foo-none">Is there any difference between “foo is None” and “foo == None”?</a> </p>
</blockquote>
<p>Quite a simple question really.<... | python | [7] |
3,343,242 | 3,343,243 | Trouble getting WebView and anonymous BroadcastReceiver communicating in an Activity | <p>I want an anonymous BroadcastReceiver to respond to links inside of a WebView. I thought I could do this with intent-filters, but things are not working. Here is the code for my Activity:</p>
<pre><code>public class WebViewReceiverActivity extends Activity {
private BroadcastReceiver mReceiver;
@Override
... | android | [4] |
2,955,960 | 2,955,961 | Should I declare this as const int member variables of the class? | <p>I have some values such as width, height among some other that I set in the constructor at this moment. They are not currently constants but I want them to be that so I will change them now. </p>
<p>But I heard that it is not common to make such variables private const without also doing private static const. Is th... | c++ | [6] |
4,543,438 | 4,543,439 | Using SendMessage() to minimize all windows, but need a more efficient way than Thread.Sleep() to wait until the legacy desktop is showing | <p>In my C# console application, I am using <code>SendMessage()</code> to minimize all windows, effectively showing the Windows 8 Legacy Desktop. This works great, but I have to use a <code>Thread.Sleep(1000)</code> in order to wait for the Legacy Desktop to actually show before before I try to do anything else.</p>
... | c# | [0] |
4,263,462 | 4,263,463 | Step by step tutorial in javascript | <p>I am trying to write my helloworld code using javascript and html.
So, I thought of picking up a project and iterating from there.</p>
<p>Lets say, I have a path to xml file.
1) Display the contents of the xml file as it is (i.e treat it as a text file irrespective of the markup)</p>
<p>Thats it.. actually.. ther... | javascript | [3] |
3,315,706 | 3,315,707 | Java Metric Unit Conversion Library? | <p>I have an application that will need to perform a number of unit conversions (metric to Imperial, Imperial to metric).</p>
<p>Is there an existing Java library that does this? Or will I need to roll my own? (My initial Google searches proved moderately useless.)</p>
| java | [1] |
3,991,201 | 3,991,202 | prevent direct access to form confirmation page in php | <p>I am new in PHP.</p>
<p>I searched every where, but don't find solution for my problem. So I post it here.</p>
<p>I created a form page (order.php) that post their data to another thank page (thanks.php).</p>
<p>thanks.php submit information that entered in previous form to database and redirect to paypal.</p>
<... | php | [2] |
3,012,542 | 3,012,543 | Read value from a textbox | <p>I have a simple textbox:</p>
<pre><code><input type="text" id="username" /><br />
<input type="button" id="Submit" value="Submit" onclick="Submit()" />
</code></pre>
<p>The function is defined as:</p>
<pre><code>function Submit() {
var username = document.getElementById("username").value;
... | javascript | [3] |
710,219 | 710,220 | Need some tips with how to convert a hexadecimal color value to a rgb() one | <p>I just started reading <em>Object-Oriented JavaScript</em> and am stuck on an exercise. </p>
<p>On page 91 it asks to write a function that converts a hex color into its RGB equivalent (eg "rgb(0,0,255)"). It requires that you pull in the full string including the '#'. </p>
<p>After reading through the two chapte... | javascript | [3] |
4,858,027 | 4,858,028 | asp.net redirection defect | <p>I am working on asp.net application.the user is clicks on some link which is inside grid item template field. if he is not logged in then he redirects to login page. after log in he is properly coming back to same page;the problem is that <strong>"i have passed the value in querystring to the page where he click on ... | asp.net | [9] |
4,652,589 | 4,652,590 | PHP array foreach issue | <p>I have an array that I can't seem to get my data back out of. What I would like is for each name (test1...) to have multiple urls associated with them. If you look at the last test (test5), there are 2 urls but this foreach loop only gives me one. Why?</p>
<p>Here is the array structure and my foreach loop.</p>
<p... | php | [2] |
2,539,845 | 2,539,846 | Questions about handling data and error in $.ajax response | <p>I'm using jquery and php for some async job.
I'm using <code>$.ajax</code> with <code>beforesend</code>, <code>complete</code>, <code>success</code> and <code>error</code>.
I made the async POST request to a php that execute some mysql query and return true (string "1" in fact) if all is ok and false (string "0").
B... | jquery | [5] |
2,814,972 | 2,814,973 | php not working on my VPS | <p>This is my phptest.php file:</p>
<pre><code><?php
echo "Hello";
?>
</code></pre>
<p>But when I try 'http://serveraddress/phptest.php'on my browser,it does not work properly and shows the whole php file on my browser.</p>
<p>I am using CentOS 5 and PHP version is 5.2.5. When a type 'php phptest.php' on the... | php | [2] |
71,643 | 71,644 | Library for build objects from key/value pairs | <p>After writing another boilerplate builder for a class from <code>IDictionary<string, string></code> I'm looking for some library that does it in declarative style. Here is an example of what I want. Could you suggest any libs that allow to do this?</p>
<pre><code>class Person
{
string Name;
int Age;... | c# | [0] |
5,432,476 | 5,432,477 | Can Expandable ListView be Inside ListView | <p>can we have ExpandableListView inside ListView so that I can have group level first and then child items.
Only ExpandableListView is group and child, I want to have an ExpandableListView Inside ListView.
Tried with open source TreeView but could not get specifically all those features of ExpandableListView.
Looking... | android | [4] |
5,223,127 | 5,223,128 | Does using a namespace in C# use more resources? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4378972/do-the-amount-of-namespaces-affect-performance">Do the amount of namespaces affect performance?</a> </p>
</blockquote>
<p>When you create a new class in C#, the default template includes several <code>us... | c# | [0] |
5,979,950 | 5,979,951 | Make function variable available to other php files | <p>I have a paging.php file, which has a function <code>latest($imagesPerPage, $site) {</code>.</p>
<p>Inside that function, I have a variable $lastPage:</p>
<pre><code>$catResult->data_seek(0);
$totalComics = 0;
while ($row = $catResult->fetch_assoc()) {
$totalComics++;
}
global $lastPage;
$lastPage = ce... | php | [2] |
2,077,021 | 2,077,022 | NullReferenceException was unhandled - How to resolve it | <p>Here is my code:</p>
<pre><code>private void button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=MANINOTEBOOK\\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=Casesheet");
con.Open();
SqlCommand cmd = new SqlCommand("select PatientID from FTR where PatientI... | c# | [0] |
4,025,017 | 4,025,018 | How to get the classloader's directory information? | <p>Would like to build the absolutepath use this information. Anyone knows how?</p>
| java | [1] |
2,136,558 | 2,136,559 | how do I DEFINE this? | <p>I need a definition for a macro-like string in php which would literally be interpreted as this string, but I need is to refer to the line and file where the string is placed rather than my defs.php file...</p>
<pre><code>define ("REDIRECT_FROM"," (".`____FILE____`." line:".`____LINE____`.")");
redirectTo("login.p... | php | [2] |
1,218,898 | 1,218,899 | Establishing a minimum value for Javascript variable | <p>I have a series of radio buttons on my page that, when checked, establish certain conditions. For each condition, a value is subtracted from the PRICE, which is the final variable that is provided to the user.</p>
<pre><code>if (condition1==0){price-=5;}
if (condition2==1){price-=4;}
if (condition3==1){price... | javascript | [3] |
3,249,014 | 3,249,015 | get the iso country code | <p>How to get the iso3 country code.when i store the server but it is not store 100% of the database? I am using these code.Please help me Thanks and Advance...</p>
<pre><code> geocoder = new Geocoder(this);
locationManager = (LocationManager)getSystemService(LOCATION_SERVICE);
Criteria criteria = new Criteria();
bes... | android | [4] |
40,914 | 40,915 | Check a string for alphabetically ordered characters | <p>This seems so obvious , but I cannot find a way to do this.<br>
I think there even is a regular PHP function to do this, but even that one stays well hidden after 1,5 hours of intensive Google searches.<br><br></p>
<h1>What I want</h1>
<ul>
<li>A function that takes a string as input.<br></li>
<li>Checks that stri... | php | [2] |
708,957 | 708,958 | How to validate special character from the textbox without using Validate plugin on jquery | <p>How to validate special characters in a textbox without using Validate plugin on JQuery</p>
| jquery | [5] |
4,723,104 | 4,723,105 | Dual login: One login, 2 servers | <p>Okay, this just feels plain nasty, but I've been directed to do it, and just wanted to run it past some people who actually have a clue, so they can point out all the massive holes in it.....so here goes.....</p>
<p>We've got this legacy site & a new public beta-test one. Apparently it's super cereal that movin... | javascript | [3] |
1,977,462 | 1,977,463 | How Many default methods does a class have? | <p>Sorry, this might seem simple, but somebody asked me this, and I don't know for certain.</p>
<p>An empty C++ class comes with what functions?</p>
<p>Constructor,
Copy Constructor,
Assignment,
Destructor?</p>
<p>Is that it? Or are there more?</p>
| c++ | [6] |
5,643,782 | 5,643,783 | Java Date Formatter | <p>I am getting date format as "YYYY-mm-dd hh:mm" as formatter object.</p>
<p>How can i format the input formatter object to get only "YYYY-mm-dd";</p>
| java | [1] |
5,408,522 | 5,408,523 | how to change android webview context menu(open, open inOpen in new window, bookmark link ...)? | <p>When, I used long press on any web link(URL) on web page, Android will display the Context menu with actions (Open, Open in new window, bookmark link, save link, share link, …. ). As per my under stand these options are provided by the Android. </p>
<p>How can I customize the above context menu and add one more act... | android | [4] |
5,183,694 | 5,183,695 | What Are Some Prominent Real-World Applications of Java? | <p>I'm a beginning programmer and the I&CS program at our school starts us off learning Java. It seems to me like C and its spin-offs are way more prevalent in the real world. Is this true?
How do expert programmers use Java for their work?</p>
<p>To be more precise, I want to know in what situations would a progr... | java | [1] |
1,414,855 | 1,414,856 | Android process has died after background | <p>I have a chat app, that is uses one thread for the socket.
My probleme is: after I going to background, sometimes the app is killed my the launcher in phones. </p>
<p>On TABLETs every background/foreground operation has a "app died, killed by launcher"</p>
<p>How can I solve this?</p>
<p><strong>UPDATE:</strong>... | android | [4] |
4,308,097 | 4,308,098 | How to draw default postion on the google map in android? | <p>Current the google map display US as default.
<img src="http://i.stack.imgur.com/lTMAQ.png" alt="alt text"></p>
<p>I want to dispaly India as default on the map.
How can i do this?</p>
| android | [4] |
1,599,096 | 1,599,097 | String[] whereArgs parameter of database method in android | <pre><code>delete(String table, String whereClause, String[] whereArgs)
update(String table, ContentValues values, String whereClause, String[] whereArgs)
</code></pre>
<p>Whatis this <strong><em>String[] whereArgs</em></strong>?Is it connected with "?" (so called wild card)?<br>
I need a example plz.<br>
And Thx!</p... | android | [4] |
3,253,287 | 3,253,288 | How to store object in sqlite database? | <p>Is it possible to store user defined objects in a SQLite database from Android? For example: I am creating one class and I want to store that class object in the database. Is it possible? If it is, how to proceed? On the Blackberry platform, I am able to store objects directly in persistent objects. Is it possible... | android | [4] |
4,775,606 | 4,775,607 | Append is null error? | <p><strong>edit</strong>: I don't get any errors anymore, but executing this code:</p>
<pre><code>$("#button-container").append(".tbox");
</code></pre>
<p>only places ".tbox" text next to the button that is created when you open the modal. It doesn't get appended to the modal.</p>
<p><a href="http://nightlifebratisl... | jquery | [5] |
2,961,514 | 2,961,515 | jquery if div not id | <p>i want to cut the price off to all input value in all divs, except only one <code>div sale_wrap</code>. how to make exception with jquery?</p>
<pre><code><div id="one_wrap">
<input type="checkbox" name="1" value="">
<input type="checkbox" name="1" value="">
</div>
<div id="two_wrap"&g... | jquery | [5] |
24,624 | 24,625 | Multiple javascript buttons (Enable/Disable) | <p>I have made a menu with 8 enable/disable javascript functions buttons and I'm using the same javascript code to function all 8 buttons but using different css class for them so I can get them to work. My question is how can I get them to work to where when you click each one they will function. </p>
<p>Javascript ... | javascript | [3] |
4,285,300 | 4,285,301 | Call the parent's method? | <p>Call the parent method.How to implement?</p>
<pre><code> function Ch() {
this.year = function (n) {
return n
}
}
function Pant() {
this.name = 'Kelli';
this.year = function (n) {
return 5 + n
}
}
</code></pre>
<p>//extends</p>
<pre><code... | javascript | [3] |
2,915,762 | 2,915,763 | ajaxForm asynchronous call | <p>I have a situation where I needed to get data from a form submit(). I have given the url in the action and the values to be sent as input elements. The submit is to a REST web service. </p>
<p>I want to retrieve the values from that submit which cannot be done in normal form.submit(), hence I had to use the ajaxFor... | jquery | [5] |
3,422,050 | 3,422,051 | DateTime difference | <p>How can I calculate the difference between 2 <code>DateTimes</code>?</p>
<pre><code>DateTime a = DateTime.Now;
DateTime b = DateTime.Now.AddHours(1);
int differenceInMilliseconds;
</code></pre>
| c# | [0] |
1,322,487 | 1,322,488 | Error while Integrating Salesforce SDK in Android Honeycomb | <p>I am working on integrating Salesforce Chatter in an Android APP..
I downloaded the SalesforceMobileSDK from git hub and tried that TemplateApp example.
It worked fine on android phones..even i was able to post and retrieve messages,Post to a group and retrieve messages from group.</p>
<p>But with android Tablet wi... | android | [4] |
2,811,089 | 2,811,090 | How would I implement code in a .h file into the main.cpp file? | <p>I have a c++ project I am working on. I am a little stumped at the moment. I need a little help. I need to implement code from the .h file into the main.cpp file and I am not sure how to do that. </p>
<p>For example code code from main.cpp:</p>
<pre><code>switch (choice){
case 1: // open an account
{
cout ... | c++ | [6] |
1,732,763 | 1,732,764 | How to know if android phone is inside of a certain building name? | <p>I was wondering was there a way to track if the android device is inside of a building and retreieve what building by using the location manager? without having GPS being turned on.</p>
| android | [4] |
3,360,683 | 3,360,684 | how to set user level | <p>I am doing a system that require a login page. The problem is I dont know how to set the user level. For an example : if admin, can access all the page and if user can access only certain page. How to do that?</p>
| php | [2] |
649,713 | 649,714 | c++ how to expess a mathematical term | <p>i have the following :
<img src="http://i.stack.imgur.com/IVCEc.png" alt="enter image description here"></p>
<p>I only want (for now) to express the (s 1) , (s 2) term .
For example ,(s 1)=s , (s 2)= s(s-1)/2! , (s 3)=s(s-1)(s-2)/3!.</p>
<p>I created a factorial function :</p>
<pre><code>//compute factorial
int ... | c++ | [6] |
1,429,791 | 1,429,792 | How to notify main activity after service is complete? | <p>I have a service that is retrieving URL's from a remote server for a MainActivity that i launch at the beginning of the project.</p>
<p>The problem is, i need these URL's before the Activity its ran.</p>
<p>The service is launched when the activity is started for the first time.</p>
<p>I put the URL's in the shar... | android | [4] |
4,431,849 | 4,431,850 | jquery: popup menu upon clicking link? | <p>is there any way to "wait for user action on popupmenu" after an element is clicked ?</p>
<p>for example:</p>
<p>person A clicks on link.
javascript menu popups asking what the user would like to do with this link.
user should not be allowed to click anywhere else but the popup menu.
after user clicks an action on... | jquery | [5] |
4,540,017 | 4,540,018 | function mail() | <p>Look this code:</p>
<pre><code>$to="$email";
$sub="Hi";
$mex="hi <br /> \"<a href='http://exemple.com/ver.php?id=$cod'</a>"\";
$int = "From:h@h.com";
$int .= "Reply-To:try@try.com";
$int .= "X-Mailer: PHP/".phpversion();
mail($to, $sub, $mex, $int);
</code></pre>
<p>The error is on $mex, I think i... | php | [2] |
4,572,778 | 4,572,779 | Get current page, data pager? | <p>I have this datapager and I want to get the current page. I checked out the properties of about everything and the MSDN documentation and I still did not find anything useful to get the current page. Can anyone help?</p>
<pre><code><asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" PageSize... | asp.net | [9] |
3,806,309 | 3,806,310 | Unusual Android error | <p>I have an Activity that uses a ListView to simply display a list of options for a user to select and when they select an option they are taken to a new Activity.</p>
<p>However on occasion the Activity with the options freezes when I try to select one of the options, I get the ANR and in the log cat the following e... | android | [4] |
3,229,714 | 3,229,715 | Is it possible to display an CALayer without an UIView? | <p>As far as I can tell, I <em>need</em> an UIView (or subclass of UIView) to display an CALayer on screen, right?</p>
<p>Then, what's the point of using CALayer for saving memory? The only point I see is when I would add several sublayers to a CALayer. Then those sublayers would not get copied 3 times for all the dif... | iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.