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,148,864 | 5,148,865 | string function | <p>please can anybody explain me what this function do?i am confused</p>
<pre><code>bool isOnlyLeftHand(string w) {
return (w.find_first_not_of("qwertasdfgzxcvb") == string::npos);
}//end isOnlyLeftHand
</code></pre>
| c++ | [6] |
1,378,064 | 1,378,065 | Math operations with null | <p>Please explain why this test passes?</p>
<pre><code>[Test]
public void TestNullOps()
{
Assert.That(10 / null, Is.Null);
Assert.That(10 * null, Is.Null);
Assert.That(10 + null, Is.Null);
Assert.That(10 - null, Is.Null);
Assert.That(10 % null, Is.Null);
Assert.That(null / 10, Is.Null);
Ass... | c# | [0] |
2,124,295 | 2,124,296 | Application access permission to files on internal storage | <p>A question about the internal storage that's private to each application (especially when storing files with Context.MODE_PRIVATE). </p>
<p>How is that storage actually assigned to the application? Just by package name or also somehow bound to the sign key of the app?</p>
<p>Let's say I have installed application ... | android | [4] |
1,251,052 | 1,251,053 | Firefox Add-on SDK : nsIDOMGeolocation getCurrentPosition not working | <p>While following one of the tutorial <a href="https://addons.mozilla.org/en-US/developers/docs/sdk/1.7/dev-guide/tutorials/reusable-modules.html" rel="nofollow">https://addons.mozilla.org/en-US/developers/docs/sdk/1.7/dev-guide/tutorials/reusable-modules.html</a> ,I got stuck, trying to get lat-lon values on console... | javascript | [3] |
2,815,489 | 2,815,490 | want to show the balloon | <p>I am working on the map view and i want to show the balloon by clicking on the user which are displayed on the map view. i have done till it shows the use name and status using the dialog box.but i want the profile name, status, and button on small rectangle above the clicked balloon(balloon is the users on the map)... | android | [4] |
5,423,754 | 5,423,755 | Can we make an incremental counter with only PHP? | <p>I would like to know if it's possible without javascript to update an echo ?</p>
<p>For example</p>
<pre><code><?php
for ($i = 1; $i < 100; $i++){
echo $i;
}
?>
</code></pre>
<p>But it will only update the number without adding another line, and another until 100. Is this possible or only with javasc... | php | [2] |
5,883,871 | 5,883,872 | queryselectorAll - find an element with more than one matching class | <p>Using the JS queryselectorall method is it possible to select an elemnent of a particular tag name with 2 matching classes.</p>
<p>E.g. I have an element</p>
<pre><code><a class="classOne classTwo"></a>
</code></pre>
<p>using queryselectorall I can select on one classname:</p>
<pre><code>document.que... | javascript | [3] |
5,767,086 | 5,767,087 | augmentation reality | <p>Can somebody help me in knowing how nyARToolkit is embedded in android app as library as there is no jar file in it.It consist only of java file. I am very confused.Please help me. Thankyou</p>
| android | [4] |
2,512,700 | 2,512,701 | Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode | <p>I am using <code>MySql</code> and <code>SQLLITE</code> in my application. When Inserting data or updating the data using <code>SQLLITE</code> my <code>session</code> value returning <code>null</code> after query is processed. So in-order to overcome this I write as follows in <code>Web.Config</code></p>
<pre><code>... | asp.net | [9] |
4,368,992 | 4,368,993 | can anybody suggest me the website from where i can see the proper code of an application | <p>hello I want to make an application for practise so can anybody suggest me the address of any website so that i can take codes of android application and practise it on my sdk.</p>
<p>thanks!</p>
| android | [4] |
3,446,357 | 3,446,358 | C# keyword-like variables | <p>We have the following cycle in the code:</p>
<pre><code>foreach (var event in events)
{
...
{
</code></pre>
<p>Of cources we can't name variable "event" as it is a keyword. Which way is a more appropriate in this kind of cases: to use @ prefix (@event) or to use another name like "currentEvent"?</p>
| c# | [0] |
5,144,560 | 5,144,561 | scrolling and swiping problem in android | <p>In my project i am rendering pdf, in landscape mode i am fitting to pagewidth and in portrait mode i am fitting to pageheight mode. can anybody suggest me how to do scrolling in landscape mode only and swiping in both orientations.
thank you in advance..</p>
| android | [4] |
901,647 | 901,648 | How to send a email from C#.net? | <p>I am working on framework 2.I want to send email through my portal.I visited many site.From that I able to understand this much.Here is my code.I have created page design.What is smtpserver.This code giving me error.</p>
<blockquote>
<p>System.Web.HttpException: The server rejected the sender address</p>
</blockq... | asp.net | [9] |
3,690,445 | 3,690,446 | how to unselect a select option box after some calculation is done | <p>just wondering how it's possible to un-select the select option box, i used .remove() but this actually removes the text from the select box,</p>
<p>is there any other way. </p>
<p>thanks</p>
| jquery | [5] |
1,348,255 | 1,348,256 | Unable to understand this python code | <p>I was reading about python functions
and saw this code:</p>
<pre><code>def happyBirthday(person):
print("Happy Birthday to you!")
print("Happy Birthday to you!")
print("Happy Birthday, dear " + person + ".")
print("Happy Birthday to you!")
happyBirthday('Emily')
happyBirthday('Andre')
</code></pre>... | python | [7] |
3,236,560 | 3,236,561 | How to send emails using C# | <p>I want to send email through windows form. I want to do the code as all the emails sent from the application will be sent to the my Yahoo mail box. I have done something where I used my Gmail account as Smtp Network Credidentials.</p>
| c# | [0] |
5,653,198 | 5,653,199 | java matches regex for variables | <p>I want to match any string that has the pattern</p>
<pre><code>{"id":"362237-
any number of characters followed by
"http//:www.abc.com"
any number of characters followed by
"id":"364121-
any number of characters followed by
"http://www.efg.com"
</code></pre>
<p>I want to match above pattern to the string below.<... | java | [1] |
1,789,637 | 1,789,638 | How to load pictures using JPEG codec in java? | <p>what is the procedure to loading a picture by using of JPEG codec?</p>
| java | [1] |
5,788,086 | 5,788,087 | Updating data from GridView | <p>I have a Gridview where I join two tables, bringing in the data to be displayed</p>
<p>table 1 sid, schedule, stime, splace, stourid</p>
<p>table 2 tourid, tourname</p>
<p>Basically they are joined stourid to tourid. That is so I can show the tourname in the grid.</p>
<p>Now I want to edit this GridView, what do... | asp.net | [9] |
2,459,317 | 2,459,318 | Progress spinner inside textview or autocompletetextview | <p>I would like to create autocompletetextview with loading spinner inside (like in bilt-in Android browser, when page is loaging).</p>
<p>How can I implement it? </p>
<p>Also is it existing drawable inside android framework?</p>
| android | [4] |
4,964,359 | 4,964,360 | Adding a Row to a DataTable question | <p>Greetings everyone-</p>
<p>In my code below I'm trying to add a Row from an existing DataTable (dtResult) into a new DataTable (dtCopyResult) if email address does not match. So I guess my knowledge of ADO.NET is not up to par because whenever I try to run my below code, I get an "This Row already belongs to anoth... | c# | [0] |
1,719,214 | 1,719,215 | Fixed - Adding parameter to link, then redirect results in amp; in $_GET | <p>// Edit
FIXED: I fixed it by moving the code to the HTML head, removing it from the Smart html template file. Seems smarty messed it up in some way. Thx for your help :]
// Edit</p>
<p>How do I correctly add a parameter to a link with jquery? I've now read various threads here about that, but I can't get it to work... | jquery | [5] |
716,192 | 716,193 | How to use custom font in String.xml file | <p>I have use following code in String.xml file.Now my question is here i had use font face as Aerial.So is there any way where i can use my custom font instead of using aerial here..suppose my custom font is aa.ttf...so how that can i use here.
My code is</p>
<pre><code><string name="strt_dialog_desc">To start ... | android | [4] |
5,993,671 | 5,993,672 | C# with WPF Call UserControl form from Window Form | <p>Actually, I'm using C# with WPF. Let me explain again:</p>
<ol>
<li><p>I have create UserControl (WPF) with one Button (Click on Button to create Image and textBox (Like New Folder)).</p></li>
<li><p>And I have another Window form (WPF) with Button and I want to Click on Button in Window Form to do Action instead o... | c# | [0] |
2,099,965 | 2,099,966 | result is disappeared when mobile orientation is changed | <p>in my application result displayed in Text view is disappeared when mobile orientation is changed,for this what can i do.i want my application in both modes means portrait and landscape.for this what can i do.Give me some suggestions.Thanks in advance</p>
| android | [4] |
5,905,108 | 5,905,109 | Google Maps Hash value not accepted (Convert SHA1 to MD5?) | <p>I've followed the steps delineated in Lee's android book on generating an MD5 fingerprint:</p>
<p>At a command prompt, I navigated to: C:\Program Files\Java\jre7\bin</p>
<p>I then entered:
keytool.exe ... C:\Users\Clay.android\debug.keystore
... (etc. - from p. 112 of "Beginning Android Tablet Application Developm... | android | [4] |
5,301,405 | 5,301,406 | Why Private data member inherited in child class | <p>I have this piece of code</p>
<pre><code>public class Base {
private int x=10;
void show(){
System.out.println(x);
}
}
public class Child extends Base {
public static void main(String[] args) {
Child c1=new Child();
c1.show();
}
}
</code></pre>
<p>This piece of... | java | [1] |
2,681,401 | 2,681,402 | Unexpected end of file error while opening a file via os.system | <pre><code> f = urllib.urlopen(url) #Download the file
localFile = open(url.split('/')[-1],'w')
localFile.write(f.read())
os.system("transmission %s" %localFile)
</code></pre>
<p>Error I get is this:</p>
<pre><code>sh: Syntax error: end of file unexpected
512
</code></pre>
| python | [7] |
526,171 | 526,172 | ASP.Net Add Control "Cannot get inner content of [control] because the contents are not literal." | <p>I am currently trying to dynamically add HTML controls in my web form, but each time I insert a control in another control the error <code>Cannot get inner content of [control] because the contents are not literal</code> pops up(when trying to look at innerHtml or innerText) and cannot seem to find the reason why.</... | asp.net | [9] |
3,838,667 | 3,838,668 | making Imageview displayed on fullScreen | <p>I have 4 imageviews in an activity and I want that if the user clicks on any of the images .. the image should pop out and get displayed in full screen .. How can i possibly achieve this??</p>
<p>is using webviews a better option??</p>
<p>code:
package com.integrated.mpr;</p>
<pre><code>import java.io.File;
... | android | [4] |
2,125,935 | 2,125,936 | how to hide header redirect on address bar? | <p>I do have a redirect from <code>search.php</code> to <code>get.php</code> using header command and then redirect back to <code>search.php</code> the whole process takes only around few seconds.</p>
<p>what I want is I want to hide this redirect on address bar. say this redirect must happened behind the screen. so a... | php | [2] |
4,149,062 | 4,149,063 | Why does the answer print out twice? | <p>I made a program that returns the product a*b*c where a,b,c are pythagorean triples and add up to 1000. The program does output the correct answer but does it twice. I was curious as to why this is so. After playing around with it a bit I found out that it prints out when a = 200 b = 375 c = 425. And once again whe... | c++ | [6] |
2,257,173 | 2,257,174 | searching a character in a string | <p>How can i search a character <code>"</code> in a string.</p>
| c++ | [6] |
5,623,367 | 5,623,368 | Calling an inherited property in python | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3964929/polymorphism-in-python">Polymorphism in Python</a> </p>
</blockquote>
<p>Hi
I'm trying to call a property in a class, that is inherited from my baseclass, but it doesn't work. I guess I'm missing somethi... | python | [7] |
2,614,825 | 2,614,826 | change text color in a textbox dynamically in C# | <p>is there any alternative that can be used to change the text color in a textbox dynamically apart from <code>ColorTranslator.FromHtml(#F9DA00)</code>?</p>
| c# | [0] |
1,342,580 | 1,342,581 | how to get real date (not system date) by c# or c++? | <p>Hi
Is it possible to get real date (not system date) without any connection to internet?
I developed my application by C#.
DateTime.Now gets system date but I want to know real date because system date may be wrong.
Is it possible?how to do this?
Thanks</p>
| c# | [0] |
5,642,351 | 5,642,352 | How to make the first character of the word uppercase? | <p>Is there any function in PHP to make the first character of the word uppercase,
or should I write it by regular expression? </p>
| php | [2] |
3,241,693 | 3,241,694 | Can't understand this "Unreachable code detected" error | <p>I have this snippet of code that is giving me problems.</p>
<p>The last break statements gives an error of "unreachable code detected"</p>
<p>this has caused a logical flaw in my program.</p>
<p>can someone identify the problem please?</p>
<p>thanks!</p>
<pre><code> case 127232:
case1 = split... | c# | [0] |
4,480,611 | 4,480,612 | php technique name | <p>I have database, there are ids of foods, names of the foods, recipes of the foods and ingredients of the foods. </p>
<p>I want a PHP code to create pages for the foods in my DB. </p>
<p>And I know this is made by a PHP code. </p>
<p>But I don't know what programmers call that code or that technique</p>
<p>What d... | php | [2] |
4,910,070 | 4,910,071 | How can I reference objects with keys that have dots in JavaScript? | <pre><code>var ageRanges;
ageRanges = {
'18.20': 0,
'21.24': 0,
'25.34': 0,
'35.44': 0,
'45.54': 0,
'55.64': 0,
'65+': 0
};
</code></pre>
<p>I want to access <code>ageRanges.'18.20'</code>, but that gives me an error: <code>TypeError: Cannot read property '0' of null</code> - so what's the proper way to ... | javascript | [3] |
4,340,877 | 4,340,878 | How to disable button in UIActionSheet? | <p>I need to disable the buttons in UIActionSheet. after some operations i need to enable them again. So is there a way to do this.</p>
<p>Thanks</p>
| iphone | [8] |
5,500,903 | 5,500,904 | Destructor query | <p>I have this below program, where I am passing a vector by reference to a function <code>myFunc</code> and inside this function, I am adding few elements to the vector.</p>
<p>I am not freeing object creating with new, for now ignore the memory leak due to this.</p>
<p>After <code>myFunc()</code> execution is compl... | c++ | [6] |
4,681,523 | 4,681,524 | The import javax.mail cannot be resolved | <pre><code>import javax.mail.BodyPart;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Multipart;
import javax.mail.SendFailedException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import ... | android | [4] |
5,691,375 | 5,691,376 | Closing Firefox Window or current Tab Using Java Script | <p>How can i close a Firefox Window or current Tab Using Java Script? I tried the following code, but it doesn't work....</p>
<pre><code>window.close();
</code></pre>
<p>Please anyone help me!!!!</p>
| javascript | [3] |
2,166,446 | 2,166,447 | Add more effect on div using jQuery | <p>Hello friends i want to add more effects on my div when i click on the <code><li></code> my code is working perfect <a href="http://jsfiddle.net/m7mRx/" rel="nofollow">here</a> but i want to add effect like <code>fadeIn()</code> <code>fadeOut()</code> and <code>slideup()</code> and <code>slideDown()</code> </p... | jquery | [5] |
1,341,835 | 1,341,836 | Fill fields on website | <p>I am opening up a web page from a link button.</p>
<p>My issue is populating this web page with data that I need to be pre-populated in some of the fields on that web page.</p>
<p>Can anyone please assist?</p>
<p>Many thanks in advance</p>
| asp.net | [9] |
2,827,349 | 2,827,350 | Hot to pass Values between views or classes? | <p>i have a view with label when button pressed moves to second view controller with a picker view , i need to retrive the selected value and then to pass to first view's label,</p>
<p>i have used delegates and protocols to acheive this,</p>
<p>but is there any possible ways like referencing like etc to do this?</p>... | iphone | [8] |
4,558,722 | 4,558,723 | Replace word with jQuery | <p>I have word Hello on most of my pages and i want to change it to Welcome.
Is it possible and if yes how to replace the words with jQuery?</p>
<pre><code>Hello
<p>Hello user Jack</p>
<div>Hell ow you from us
<h1>12344 Hello</h1>
<div>Hellow</div>
</div>
<scr... | jquery | [5] |
5,738,895 | 5,738,896 | Foursquare log-in | <p>i am developing an android application for foursquare.I have gone through every api endpoints,experimented with it.I know how to access data using api endpoints and access token.</p>
<p>Now what my application requires is a log-in page containing username password.</p>
<p>I use the following url for obtaining acce... | android | [4] |
377,349 | 377,350 | What does this regexp(rinlinejQuery) mean in jQuery? | <pre><code>var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
html: function( value ) {
if ( value === undefined ) {
return this[0] && this[0].nodeType === 1 ?
this[0].innerHTML.replace(rinlinejQuery, "") :
null;
// See if we can take a shortcut and j... | jquery | [5] |
3,007,212 | 3,007,213 | How to stop a timer in android | <p>How to stop the currently executing task of the timer.? If i use timer.cancel() it will cancel the timer but perform the currently executing task..So is there a way around so that i can cancel the currently executing task??</p>
| android | [4] |
2,685,062 | 2,685,063 | What exactly should be set in PYTHONPATH? | <p>I'm going through and writing a setup doc for other developers at work for a python project and I've been reading up on the <code>PYTHONPATH</code> environment variable. I'm looking at my current development system and think I have a few things set wrong that is causing my IDE (IntelliJ) to behave incorrectly when l... | python | [7] |
1,086,180 | 1,086,181 | issue with ACTION_PICK and what could be used instead? | <p>I have a problem with ACTION_PICK. Code below works well on my Galaxy mini, when i pick photos then it opens my gallery with photos only and when i pick videos then it opens gallery with videos only. However on htc legend first option opens my gallery with both, movies and images and second crash my application coz ... | android | [4] |
2,723,283 | 2,723,284 | jQuery: find() children until a certain threshold element is encountered | <p>I have a nested table structure like</p>
<pre><code> <table>
<td id="first">
<div class="wrapper">
<input name=1>
</div>
<input name=2>
<table>
<td id="second">
... | jquery | [5] |
1,183,878 | 1,183,879 | Page.ParseControl to find HTMLImage | <p>I have a richtext textbox on a webpage that will be used to create email templates. This textbox returns HTML as a string. I need to get the source of all the images from the HTML so that the images can be stored in the database. Once the HTML is returned the images have already been loaded to the server and the new... | asp.net | [9] |
1,794,576 | 1,794,577 | a simple problem about RegExp in Javascript | <p>I have a text:</p>
<pre><code> <font class="myclass">class abc</font>
</code></pre>
<p>and i have a pattern: class
now, i want to find the word "class" before "abc" but not in the <code><font class="myclass"></code> ,how could i do with RegExp in javascript?
Thanks! :)</p>
| javascript | [3] |
6,004,112 | 6,004,113 | Match a href-class with div-class in if-statement | <p>I´d really like some help with this one... I'm building a filterbox for portfolio-items. </p>
<p>I have four links each with one classname, the same as their text. All portfolio items are listed besides. Each portfolio item is in a div with two classes — .listItem AND one of the links classes. </p>
<p>Example: <co... | jquery | [5] |
3,138,104 | 3,138,105 | how to implement protocol buffering in android | <p>Currently we have the requirement to implement the protocol buffering for server communication. Can somebody provide me any input if , they have regarding this.</p>
| android | [4] |
4,834,794 | 4,834,795 | how to access arraylist sent from server in Javascript | <p>I have a requirement of displaying a <code>dropdown</code> list based on the <code>arraylist</code> being sent from the server on certain conditions on load of the page and on change of the event
For example
<code>ArrayList1</code>,<code>ArrayList2</code></p>
<pre><code> if(condition is true)
display the conten... | javascript | [3] |
4,431,308 | 4,431,309 | create subdomain programatically in PHP | <p>I am on a shared hosting and on a add on domain.</p>
<p>I need to create subdomain for each user of my website like if the username is jeff then he should have a url jeff.mydomain.com.</p>
<p>How can i create it programatically using PHP?</p>
<p>Thanks
Prady</p>
| php | [2] |
4,665,428 | 4,665,429 | Getting selected text from path in python | <p>My variable has name like this:</p>
<pre><code>var1 = '/home/name/file.txt'
</code></pre>
<p>How to just get name of file in variable?</p>
<p>I need my variable like this:</p>
<pre><code>var1 = 'file.txt'
</code></pre>
| python | [7] |
1,910,667 | 1,910,668 | Android WebViewClient problem | <p>I've defined a private class that extends WebViewClient and set my WebView's client to an instance of that class (webView01.setWebViewClient(new Callback());).</p>
<p>The class definition is as follows:</p>
<pre><code>private class Callback extends WebViewClient {
public void onLoadResource (WebView view, Stri... | android | [4] |
2,514,010 | 2,514,011 | Reading Dynamic Content From JavaScript | <p>We have a viewer written in a combination of HTML and JavaScript that displays our own personal content. A need has come up to display a webpage from another domain inside our viewer. Is there any way to do this in a combination of JavaScript and HTML?</p>
<p>Thanks</p>
| javascript | [3] |
5,714,704 | 5,714,705 | Temporarily change a variable's value | <p>In an API implementation I'm currently hacking on, there's the need to repeatedly change some variables temporarily, before doing some task, and change them back after the task is done to whatever they were before. </p>
<p>The current code looks like this: </p>
<pre><code>var _oldValue = _variable;
_variable = tem... | c# | [0] |
5,484,779 | 5,484,780 | How do i reference an array as a whole?- php | <p>array_unique is to be used by passing the array name as a parameter.</p>
<p>But as far as all the online examples researched go, it shows the arrays first being assigned to a single variable at the time they are instantiated, like so:</p>
<pre><code>$var1 = $array['val1', 'val2', 'val3']
</code></pre>
<p>The only... | php | [2] |
1,004,258 | 1,004,259 | jQuery numeric backgroundColor animation | <p>I know you need the a jQuery Color Plugin or jQuery UI to animate between colors if you want to use the .animate() method. </p>
<p>Would it be possible to use jQuery to animate grey numbers... like #333 to #999 <em>without</em> this plugin?</p>
<p>If that sounds possible, would anyone like to venture what it woul... | jquery | [5] |
5,095,098 | 5,095,099 | Java - material about Observer pattern | <p>I search a good explanation about Observer pattern and listner objects in Java.</p>
<p>I saw what is written in Wikipedia, but I didn't understand a lot.</p>
<p>Thank you.</p>
| java | [1] |
3,778,123 | 3,778,124 | Why ofstream would fail to open the file in C++? Reasons? | <p>I am trying to open an output file which I am sure has a unique name but it fails once in a while. I could not find any information for what reasons the ofstream constructor would fail.</p>
<p><strong>EDIT:</strong>
It starts failing at some point of time and after that it continuously fails until I stop the runnin... | c++ | [6] |
3,448,392 | 3,448,393 | Raphael map won't resize | <p>Hi I'm trying to resize the map created by raphael I ended up loading the SVG file coordinates and then running this function to create the map with the new region selected but I can't seem to get it to resize.
<a href="http://pastie.org/4319180" rel="nofollow">http://pastie.org/4319180</a></p>
| jquery | [5] |
4,478,468 | 4,478,469 | Can't load my app on the Samsung galaxy prevail and I try settings and unkonw source | <p>Can't load the app i made on the Samsung galaxy prevail and I try goning to settings and unkonw source but it still not showing up on the avd manager in eclispe and i was try development USB debugging but that just have it chage the battey. it work on one of my friends evo</p>
<p>thank you</p>
| android | [4] |
4,756,841 | 4,756,842 | JQuery beginner: :has for direct descendants only | <p>Assuming a tree structure like the following:
(Ugly legacy layout, sorry)</p>
<pre><code><tr> (1) dont want to select this one
<td>
<table>
<tr> (2) not a "special" td, dont select
<td.normal>
... | jquery | [5] |
996,578 | 996,579 | using variable extracted from selector | <p>I am trying to use list elements to toggle between corresponding panels, I also want to do this using variables, just so I can orient myself with their use better. Here is my html and code below. I am tring to extract the i from the the "icon" id clicked, and use that i to open a corresponding "panel" id, with the a... | jquery | [5] |
4,609,530 | 4,609,531 | Selecting href element within a DIV using JQuery | <p>Within JQuery, to select all elements with a href attribute I would use:</p>
<pre><code>$("[href]")
</code></pre>
<p>How would I select all elements with a href attribute within a specific DIV?</p>
<p>Many thanks</p>
| jquery | [5] |
1,223,977 | 1,223,978 | android custom application icon | <p>is it possible to make large/custom size icon on the desktop for android? </p>
| android | [4] |
370,003 | 370,004 | how to declare an array globally | <p>hi i am new to iphone. what i am doing is declaring a NSMutable array named as labels, and that is declared in viewdidload.But when i access the label in buttonclick function it shows null. Previously i declred propery in .h file and initialize in init function also. please help where can i declare and how to declar... | iphone | [8] |
2,389,980 | 2,389,981 | format number in C# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/105770/net-string-format-to-add-commas-in-thousands-place-for-a-number">.NET String.Format() to add commas in thousands place for a number</a> </p>
</blockquote>
<p>How to format a number 1234567 into 1,234,567... | c# | [0] |
720,481 | 720,482 | how can we tell the host that we are requesting a webpage from android device | <p>Actually I'm using HttpClient() and HttpPost() methods for downloading the html source
here is the code for downloading:</p>
<pre><code>HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(_url);
try {
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost... | android | [4] |
1,549,933 | 1,549,934 | What should I study to be able to join a C++ open source project? | <p>I am learning C/C++/Oracle/Unix.</p>
<p>I am thinking of developing some application on my own, but I have no Idea what else is required.</p>
<p>If you take an example of C++. I have very basic knowledge of it (data types, OOP concepts, vectors, file handling, exception handling, etc). I am not an expert though. I... | c++ | [6] |
2,203,305 | 2,203,306 | How to store a string with delimiters in an array in PHP | <p>I have a string like this:</p>
<pre><code>$string = '"Joe Bob" "John Doe" "Amber Page" "Jordan Tole"';
</code></pre>
<p>I want to store it in an array with each item in between the " " being an element inside of the array.</p>
<p>e.g.</p>
<pre><code>$Array = StringToArray($string);
</code></pre>
| php | [2] |
4,059,210 | 4,059,211 | Memory Management in Objective-C when dealing with NSMutableArray | <p>In Instruments the tempPlayer object is showing a leak. In this code, in every for loop I keep on allocating a new tempPlayer instance, set its playerCode variable with a string and add it to an NSMutableArray in each iteration. Instruments shows me a leak in the alloc statement. Is there any way to prevent tat leak... | iphone | [8] |
829,882 | 829,883 | How to call a outside method in AlertDialog? | <p>I have a method use to connect HttpGet in AppTools.java:</p>
<pre><code>public class AppTools extends Activity {
public void connectToServerWithURL(String URL)
throws ClientProtocolException, IOException, JSONException {
/* Start connect */
new Thread() {
client = new DefaultHttpClient();
request = new ... | android | [4] |
197,140 | 197,141 | Generic binary search Java | <p>I've been trying to make this code work. I have to create a generic binary version of the binary search. I'm not sure how to compare two generic types without the comparable interface</p>
<pre><code>import java.util.ArrayList;
public class BinarySearcher<T> {
private T[] a;
public BinarySearcher(T[... | java | [1] |
2,517,413 | 2,517,414 | Android. How to operate by history stack? | <p>Questions
1. How to make the same functionality as physical button "Back" on android phone?
2. Is it possible to make "Next" button using android history stack? I understand that probably it is not possible, but may be yes. So please let me know exactly</p>
| android | [4] |
2,708,421 | 2,708,422 | Call object property with variable | <p>This code doesn't work quite as i want to. </p>
<pre><code>var csd = {large10x10: 0}
var nextitem = "large10x10";
buildings.push(nextitem,"black",a);
csd.nextitem += 1;
</code></pre>
<p>at <code>csd.nextitem +=1</code> I want it to add 1 to csd.large10x10. How do I do that? Or what do I google to find the ans... | javascript | [3] |
482,402 | 482,403 | check if mouseover is fired? | <p>in Javascript: Is there a way of checking if a mouseover event for some element has fired?</p>
<p>If yes, how?</p>
<p>T</p>
| javascript | [3] |
5,374,726 | 5,374,727 | Jquery, Given a string and its coordinates replace it | <p>I have a string like that:</p>
<blockquote>
<p>I'm a string not too long but neither so short</p>
</blockquote>
<p>Let's take the word 'not' inside the string: it starts at position number 13 and it ends at position numer 16.</p>
<p>There's a way with JQuery to substitute the word between position 13 and positi... | jquery | [5] |
2,873,627 | 2,873,628 | context of self | <p>When I see a 'self' automatically to think of static methods. Lately I have been pointed out that self depends on the context. Just like 'parent', which can also call static methods. Consider this example:</p>
<pre><code>error_reporting(-1);
class A
{
public $var = 1;
public function __construct($n)
{... | php | [2] |
5,282,710 | 5,282,711 | Avoiding BinaryReader.ReadString() in C#? | <p>Good morning,</p>
<p>At the startup of the application I am writing I need to read about 1,600,000 entries from a file to a <code>Dictionary<Tuple<String, String>, Int32></code>. It is taking about 4-5 seconds to build the whole structure using a BinaryReader (using a FileReader takes about the same tim... | c# | [0] |
5,285,774 | 5,285,775 | Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/u231382487/public_html/templates/sleek_silver/index.php on line 74 | <p>this is line 74 </p>
<pre><code>$thumbnailUrl = $entry->medx-MoBiLeroup->thumbnail[0]->url;
</code></pre>
<p>why do i keep getting this error ?</p>
| php | [2] |
1,384,580 | 1,384,581 | Images taken from camera roll take long time to display in ImageView android sdk | <p>Images taken from camera roll take long time to display in ImageView android sdk</p>
<p>i am taking photo from camera and once back to my activity take long time to be displayed any one know how can i decrease this time </p>
| android | [4] |
3,994,990 | 3,994,991 | Can anyone help me understand why this Jquery works in Chrome but not in IE? | <p>i've just spent the last 4 hours working on this piece of code and was so happy to finally get it working, but it wont work in IE! I can't undersand why?</p>
<p>Here is the code on jsfiddle: <a href="http://jsfiddle.net/hQkFH/8/" rel="nofollow">http://jsfiddle.net/hQkFH/8/</a></p>
<p>Thank you!!</p>
| jquery | [5] |
1,343,595 | 1,343,596 | Array sort keys numerically help | <pre><code>$test1[2] = "one";
$test2[1] = "two";
$test2[3] = "three";
$test = $test1 + $test2;
print_r($test);
</code></pre>
<p>I've used the array union operator but when i print the array it is in the wrong order.</p>
<pre><code>Array ( [2] => one [1] => two [3] => three )
</code></pre>
<p>How do i so... | php | [2] |
940,727 | 940,728 | Java convert string to number, floating point only when needed? | <p>I want to conver a string to number in Java. I already tried with two methods but both work bad with integers, adding an unneeded floating point: "1" > 1.0 (when I want "1" > 1 and "1.5" > 1.5). I found a couple more ways to convert strings to numbers but they either don't work or are many lines long, I cannot belie... | java | [1] |
520,928 | 520,929 | Operation with fuzzy numbers using alpha cut | <p>I am interested in implementing the triungular function of a fuzzy number <code>f(x)=(x-a)/(b-a)</code> when <code>a<=x<=b</code>, and <code>(c-x)(c-b)</code> when <code>b<=x<=c</code>. </p>
<p><code>[a,b,c]</code> is defined as a triplet and represents the coordonates of a triangle where <code>b</code>... | c# | [0] |
2,657,656 | 2,657,657 | checking if a number is divisible by 6 PHP | <p>I want to check if a number is divisible by 6 and if not i need to increase it until it becomes divisible.</p>
<p>how can i do that ?</p>
<p>Thanks</p>
| php | [2] |
2,350,438 | 2,350,439 | anybody working or heard of qcubed/qcodo mvc frameworks? | <p>I have been using qcodo/qcubed for developing CMS based sites. I had been successful in developing and maintaining fairly complex sites using these frameworks.</p>
<p>Things get done so quick and easy using qcubed that i never felt the need to look for another framework like zend, symfony ....</p>
<p>I am wonderin... | php | [2] |
4,315,851 | 4,315,852 | Get tags in PHP | <p>How do I get this in PHP, I want put it in a variable? </p>
<p>Example: </p>
<pre><code>$variable = "debe ser detenido y los libios decidirán dónde juzgarle";
</code></pre>
<p><img src="http://i.stack.imgur.com/hrMcT.png" alt="enter image description here"></p>
<p><a href="http://i54.tinypic.com/n63ioz.png" rel=... | php | [2] |
282,501 | 282,502 | How to show dialog to send email AND call phone number in Android? | <p>I am wondering if there is a way to have a "contact" button in Android and when the button is pressed a menu pops up giving you the possibility:</p>
<ul>
<li>to send an email (showing all available email accounts, send-to is a predefined email address</li>
<li>or to call a predefined phone number</li>
</ul>
<p>Thi... | android | [4] |
942,147 | 942,148 | Error generic array creation | <pre><code>public class TwoBridge implements Piece{
private HashSet<Hexagon>[] permutations;
public TwoBridge(){
permutations = new HashSet<Hexagon>[6];
</code></pre>
<p>Hi, I'm trying to create an array of Sets of hexagons (hexagons being a class i created).</p>
<p>However I get this err... | java | [1] |
3,137,624 | 3,137,625 | array, I/O file and standard deviation (c++) | <pre><code> double s_deviation(double data[],int cnt, double mean)
{
int i;
double sum= 0;
double sdeviation;
double x;
//x = mean(billy,a_size);
for(i=0; i<cnt; i++)
{
sum += ((data[i]) - (mean));
}
sdeviation = sqrt(sum/((double)cnt));
... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.