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,083,327 | 2,083,328 | Label production using layout manager or null | <p>I have to create a label to be used for deliveries. At the moment because it is being pushed as needing a quick solution i am creating a JFrame putting all the components on then saving the contents as an image and disposing the frame so it flashes up for an instant and then vanishes, ready to print out. If I know t... | java | [1] |
613,638 | 613,639 | SoftReference nulls too early | <p>I have a bitmap cache in my Android app where the bitmaps are referenced via SoftReference. However the bitmaps are nulled too early. There can be 20 bitmaps max in the cache, if I load more, GC starts to null the SoftReferences. Without SoftReferences, I can have about 110 bitmaps in cache. Isn't SoftReference supp... | android | [4] |
324,390 | 324,391 | serialization and Obsolete | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/331013/obsolete-attribute-causes-property-to-be-ignored-by-xmlserialization">Obsolete attribute causes property to be ignored by XmlSerialization</a> </p>
</blockquote>
<p>Obsolete prevents a property from being... | c# | [0] |
1,559,422 | 1,559,423 | Difference between >>> and >> | <p>I am asking difference between the operators in java.</p>
| java | [1] |
2,198,093 | 2,198,094 | does long if else if else blocks fall under any design pattern | <p>for example if have a if else like below , i want to know if this falls under any design patern ,in daily life i come across something like this so many times and don't think its good
to write so many if else blocks</p>
<p>any guidence is really appreciated</p>
<p>sample///</p>
<pre><code> if(dotcom){
else if (... | c# | [0] |
1,567,082 | 1,567,083 | How to block child processes in java and restarting them | <p>I have two questions:</p>
<p>1-I need to stop child processes through my main process and then start them again after something happened in my main process.have can I do that?</p>
<p>2-can I use a registry connection in a contrary way.I mean to run methods of server on client through the same registry connection w... | java | [1] |
1,799,632 | 1,799,633 | How to compile the com.android.sdk package? | <p>I am working on windows with JDK, Android SDK and eclipse set successfully. I download the com.android.sdk package from:
<a href="http://android.git.kernel.org/?p=platform/packages/apps/Stk.git;a=summary" rel="nofollow">http://android.git.kernel.org/?p=platform/packages/apps/Stk.git;a=summary</a>
But when I import t... | android | [4] |
2,129,066 | 2,129,067 | Stream Insertion Operator overloading | <p>Im really unsure how to call the function:</p>
<pre><code>friend ostream& operator<<(ostream& out, stack::myItem& theItem);
</code></pre>
<p>that is public to my stack object:</p>
<pre><code>class stack
{
public:
stack(int capacity);
~stack(void);
void method1();
...
private:
... | c++ | [6] |
5,566,984 | 5,566,985 | Site Map JQuery Style.. using attr. plus page urls | <p>So I have a looping example of site url string and trying to add pages to the links, but I don't want to have to deal with the domain as it's fixed. Right now it doesn't work.. but I'm trying to fix it.</p>
<pre><code> <script>
$(document).ready(function() {
url = $(this).attr('href', $(this).at... | jquery | [5] |
455,184 | 455,185 | <asp:TemplateField Boxes Disappearing | <p>I've got a text box that just disappeared. When I add another templateField anywhere on the page, this one bizarelly disappears. Anyone know what might be up?</p>
<pre><code><asp:TemplateField HeaderText="Summary" SortExpression="summary">
<ItemTemplate>
<asp:Label ID="lb... | asp.net | [9] |
2,305,748 | 2,305,749 | c# - Index was outside of the bounds of the array | <p>Unhandled Exception: System.IndexOutOfRangeException: Index was outside of the bounds of the array (at the first if statements)</p>
<pre><code> static int arrayRows = 20;
static int arrayCols = 20;
public void printBoard()
{
int neighbours;
for (y = 0; y < arrayCols; y++)
... | c# | [0] |
1,626,712 | 1,626,713 | Login page from asp.net is not accessible from Android App | <p>I've created a LoginPage to Authenticate Android Users but I keep getting an </p>
<p>IIS 7.0 Detailed Error - 401.1 - Unauthorized</p>
<p>In the folder of that aspx page I have a web.config set up as such to allow access</p>
<pre><code><?xml version="1.0"?>
<configuration>
<location path="~/Mob... | asp.net | [9] |
281,248 | 281,249 | Best approach for oldschool 2D zelda-like game | <p>For learning purposes, I would like to code a simple 2D game inspired by Zelda series on the nes/gb.</p>
<p><a href="http://www.5min.com/Video/The-Legend-of-Zelda-a-Link-to-the-Past---Walkthrough-Part-3-89824010" rel="nofollow">http://www.5min.com/Video/The-Legend-of-Zelda-a-Link-to-the-Past---Walkthrough-Part-3-89... | android | [4] |
1,818,650 | 1,818,651 | UIAlert View-for yes/no condition | <p>my app needs alert msg and with yes button click another alert msg which decides the final action.
I have used <strong>- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex</strong>
this method.</p>
<p>Please help me.</p>
| iphone | [8] |
1,666,748 | 1,666,749 | Jquery testimonial rotator. How can I add next and previous buttons | <p>I am using a testimonial rotator plugin, it works well but I would like to add forward and back buttons but I am not sure where to start. Here is all the code i question: <a href="http://jsfiddle.net/ambiguous/j4MbH/10/" rel="nofollow">code on jsfiddle</a></p>
<p>Any help appreciated</p>
<p>regards Ash</p>
| jquery | [5] |
4,303,826 | 4,303,827 | Auto fill out this webpage | <p>I am trying to fill out this form but I am having trouble doing it.
Here is the webpage</p>
<p><a href="https://docs.google.com/spreadsheet/viewform?formkey=dDViZjNzeWdPS25XZGFhNjF6Z0NnbGc6MQ#gid=0" rel="nofollow">Untitled form</a></p>
<p>I tried this but it did not work</p>
<pre><code>wb.Document.GetElementById(... | c# | [0] |
1,617,361 | 1,617,362 | Timer to a given event | <p>I'm trying to make a shutdown timer. Meaning a start a timer of a given time, and set the computer to shutdown after that. I've searched the internet + stackoverflow of cause, and i can't find anything useful to use both to time my own shutdown event and showing it on the screen.</p>
| c# | [0] |
3,951,138 | 3,951,139 | Changing string text color | <pre><code><string name="no_city"><font color='#FF0000'><b>Please select your location under Preferences in the menu</b></font> </string>
</code></pre>
<pre class="lang-java prettyprint-override"><code>@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(sa... | android | [4] |
1,390,904 | 1,390,905 | Problem in String camparisson ...! | <p>here is my code :</p>
<pre><code>NSUInteger f;
for (f = 0; f < [appDelegate.books count]; f++) {
check = [appDelegate.books objectAtIndex:f];
checkthis = check.LotteryNumber;
mystring = check.LotteryNumber;
NSLog(@"Dynamic Value: %@",mystring);
NSLog(@"Static Value: %@",checkthis);
if (chec... | iphone | [8] |
598,459 | 598,460 | Android layout design for many menu options | <p>What is the best way to go about designing an Android application that features quite a bit of formulas and conversions? I was thinking that multiple Activities with ListViews sort of like a tree with the leaves being the actual calculations. However, after reading Android design principles it's better to avoid a ... | android | [4] |
1,129,987 | 1,129,988 | IndexOutOfBoundsException...know what the error means but need help debugging? | <p>Creating a program to generate random numbers and put them in either an even or odd array, but get the same error message above? If anyone knows how to format better please help!</p>
<pre><code> import static java.lang.Math.*;
import java.util.Random;
public class Unit8
{
public static void main ( ... | java | [1] |
5,918,897 | 5,918,898 | iPhone - Calculating the Day of Week of any date | <p>I have a NSDate variable "aDate" that represents a date, for example, sunday, August 28, 2011. I have this date on a NSDate variable. This can be any date, but the problem appears when the day is a sunday.</p>
<p>I want to obtain the three letter string representing the day of week. In this case, SUN.</p>
<p>Then ... | iphone | [8] |
2,047,399 | 2,047,400 | best way to make an array of 2 child classes in java | <p>First off I am new to java and am teaching my self.</p>
<p>my file structure is:</p>
<ol>
<li>ParentClass.java </li>
<li>ChildClass1.java</li>
<li>ChildClass2.java</li>
<li>MyChildClasses.java </li>
</ol>
<p>both ChildClass1 and 2 extend the ParentClass.
and MyChildClasses has a my main method that works with the... | java | [1] |
3,472,722 | 3,472,723 | Why does this code call different template function in vs2005? | <p>The code is:</p>
<pre><code>#include <iostream>
using namespace std;
// compares two objects
template <typename T> void compare(const T&, const T&){
cout<<"T"<<endl;
};
// compares elements in two sequences
template <class U, class V> void compare(U, U, V){
cout<<... | c++ | [6] |
5,245,857 | 5,245,858 | Server Application Error | <p>The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance</p>
| asp.net | [9] |
5,994,823 | 5,994,824 | how to release memory in java | <p>i create Object of class A. at that time java occupy memory for class A. but when i assign null in object of Class A then it can free memory of that object</p>
<pre><code>class A{
public long num = 28115733;
}
</code></pre>
| java | [1] |
356,367 | 356,368 | iphone programmatically block caller ID? | <p>Since *67 doesn't work when embedding in phone links is there a way to programmically block caller ID from an application? </p>
| iphone | [8] |
1,937,203 | 1,937,204 | Android 1.5 api giving wrong output | <p>I am working with android 1.5 api, I know it is deprecated, but its client requirement. I am using following code to read Contacts address but every time it give address count zero. I am not able find out what is the problem</p>
<pre><code>private void getAddress(String _Id)
{
Cursor curAddress=null;
try
... | android | [4] |
5,943,637 | 5,943,638 | find the sum of even number not exceed four million | <pre><code>class fibo {
//int firstNumber = 0;
public static void main(String args[]){
//int firstNumber = 0;
int length = 4000000;
int[] series = new int[length];
//long[] sum = new long[4000000];
long sum =0;
series[0] = 0;
series[1] = 1;
for ... | java | [1] |
5,050,357 | 5,050,358 | Replace a string in table using jquery? | <p>This is my table.</p>
<pre><code><table>
<tr>
<td>I am Achinna</td>
<td>I am Krish</td>
</tr>
</table>
</code></pre>
<p>I need to place "Me" instead of "I am" using jquery.</p>
| jquery | [5] |
85,188 | 85,189 | Android - How to make loading on first starting | <p>Hi it's my first question in stackoverflow sorry if i do something wrong.</p>
<p>My problem is that when i start the app for very first time i need to write the SQL data in the database. If i do that in onCreate() while it's writing the sql it's not showing the View so it's like freezing. And if i make loader there... | android | [4] |
5,971,629 | 5,971,630 | coding asp page for avoid of hack | <p>all of us know that most of attacks to websites is from their URL.
i saw some websites code their page for example
we see <code>http:/www.*.com/code/</code> instead of <code>http:/www.*.com/code/code.aspx</code>
how do that?
every one can give me some tutorials that tell how can i do that in asp.net?</p>
| asp.net | [9] |
3,379,359 | 3,379,360 | How to bring dialogbox on top all open form | <p>I have three forms Main, Sales and Login.</p>
<p>In Main form I have a timer, example after 5 minutes Login form will be fire up.</p>
<p>I can Open a Sales form the Main form whitout closing the Main form, so Login form will be fire up.</p>
<p>The problem is the Login form does not focus on top of the Sales form,... | c# | [0] |
1,590,551 | 1,590,552 | how to detect day light saving in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1305350/how-to-get-the-current-date-and-time-of-your-timezone-in-java">How to get the current date and time of your timezone in Java?</a> </p>
</blockquote>
<p>I have developed a Attendance System and in use for... | java | [1] |
290,995 | 290,996 | How to draw a png image in php? | <pre><code>$image = imagecreatetruecolor(538,616);
$black = imagecolorallocate($image,0,0,0);
imagefill($image,0,0,$black);
</code></pre>
<p>I have already draw a black image i want draw a file suppose 3.png on it ..
How to do that ?</p>
| php | [2] |
2,792,695 | 2,792,696 | how to display telugu characters in my android application | <pre><code>Typeface tf = Typeface.createFromAsset(this.getAssets(), "Tikkana.ttf");
System.out.println("8888 "+tf.getStyle());
System.out.println(tf);
yourName.setTypeface(tf);
</code></pre>
<p>I am using above code but it is not working. The text is displaying like some rectangular boxes.</p>
| android | [4] |
2,350,606 | 2,350,607 | Accessing a class with the exact same name | <p>I have a tricky question and I'm not sure if it is even possible in Java. I'm in the following
situation:</p>
<p>I got a class A that uses another class, let's call it B. Now, I'm trying to write a third class (and I don't call it C), I call it B again (to be sure which class 'B' I mean, I will call it B1 and B2 i... | java | [1] |
3,168,621 | 3,168,622 | Java: A design pattern for building a text file from different methods | <p>I'm building a file by appending text based on different parameters.</p>
<p>Lets say my file will have 3 paragraphs A, B, C, and you can build each paragraph in 3 different ways</p>
<p>At the end you end up with something like A1, B2, C3 or A1, B1, C1 or A2, B1, C2 and so on</p>
<p>I already did this with a lot o... | java | [1] |
1,407,746 | 1,407,747 | why prototype need a instance not the function self | <p>When we use prototype . we use like</p>
<pre><code>function classA(){
}
function classB(){
}
classB.prototype = new classA();
</code></pre>
<p>why should we write it like that? why isn't it?</p>
<pre><code>classB.prototype = classA;
</code></pre>
<p>after I set the prototype is classA; then I log the classB.p... | javascript | [3] |
3,559,723 | 3,559,724 | how to get a textbox behind a child program | <p>how to get a textbox behind a child program [closed]
c#</p>
<p>I've got a program that I'm Making and I have a text box in it ok I've also made a button that brings out a child program within the program ok I am trying to get text box to go behind the child program that opens inside the program the text box is alwa... | c# | [0] |
2,706,985 | 2,706,986 | Elegantly handle different parameter types | <p>I have a function that, in the simplest of cases, operates on an iterable of items.</p>
<pre><code>def foo(items):
for item in items:
# do stuff
</code></pre>
<p>Sometimes, I do not want to pass it an iterable of items directly, but rather an object that provides a method to get the iterable:</p>
<pre... | python | [7] |
191,229 | 191,230 | aspx.cs need explain to me | <pre><code>using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.... | asp.net | [9] |
1,256,456 | 1,256,457 | jQuery: extend method - how to save/keep/do not break the initial reference? | <p>Here is an example.</p>
<p><a href="http://jsfiddle.net/R9V4p/" rel="nofollow">http://jsfiddle.net/R9V4p/</a></p>
<p>Is it possible to make <code>s.c==60</code> at the end and do not overlap provided values with default ones?
For example i have provided <code>testing</code> function with <code>s.clean=true</code> ... | jquery | [5] |
4,334,067 | 4,334,068 | InvalidOperationException with arrayLists | <p>I am getting this exception:</p>
<p><code>Collection was modified; enumeration operation may not execute.</code></p>
<p>Directly after this code:</p>
<pre><code> else if (count == 0)
{
partCategory.Add(words[count].ToString());
foreach (strin... | c# | [0] |
4,737,301 | 4,737,302 | How to do read/write file efficiently in python | <p>Hi I am writing to file each time i got the result in my multiple if else statement.Is there any way to save all my result and writing it in one-shot by opening the file and close it? </p>
| python | [7] |
2,280,343 | 2,280,344 | String Matching For Login Purpose | <p>I want Know some details about login screen.. how to get value from textfield and how to verify that string character.. plz give anyone idea or code..</p>
| iphone | [8] |
4,126,018 | 4,126,019 | ASP.NET: two ways to access global resource programmatically | <p>i know that i can set a Label's text by using this syntax:</p>
<pre><code>lblMessage.Text = (string)GetGlobalResourceObject("resxFile", "message");
</code></pre>
<p>but what's the difference(benefit/drawbacks) to using this syntax:</p>
<pre><code>lblMessage.Text = Resources.resxFile.message;
</code></pre>
<p>als... | asp.net | [9] |
5,710,106 | 5,710,107 | Is there any method to pause a function in the middle waiting for input in javascript? | <p>I need to pause a JavaScript function execution in the middle and then resume it after a table cell is clicked. For example : I have to put 'A' into a one of the table cells. So, I have to click add() (add() is a function) and then wait for the user to click on the table cell to pass the cell id to function. I have ... | javascript | [3] |
5,928,861 | 5,928,862 | java arraylist help needed | <p>Have coded in many languages before but new to Java.
I want to create an array whose members are of type </p>
<pre><code>public class data
{
String date="";
String time="";
double price=0;
int volume=0;
};
data data1 = new data();
public ArrayList ftsedata = new Arr... | java | [1] |
2,722,432 | 2,722,433 | Drag an item underneath a list of div's | <p>I have a draggable : </p>
<pre><code><ul>
<li>Option 1</li>
</ul>
<script type="text/javascript">
$(function() {
$( "li" ).draggable({
connectToSortable: //I don't where what should be configured here
});
});
</script>
<div>... | jquery | [5] |
2,418,810 | 2,418,811 | Change text input name based on radio button selected | <p>I have a form with 3 inputs:</p>
<ul>
<li>name</li>
<li>email</li>
<li>company</li>
</ul>
<p>I also have two radio buttons a user must select from:</p>
<ul>
<li>A</li>
<li>B</li>
</ul>
<p>If the user selects A, leave the form fields as they are. If the user selects B then change the descriptions of the input fi... | jquery | [5] |
3,147,671 | 3,147,672 | Where can I get the source code of module __builtin__ in python? | <p>where can I get the source code for module <strong>builtin</strong> in python ? I am interested in version 2.6.x.</p>
| python | [7] |
1,238,420 | 1,238,421 | Can we have 2 Application running simultaneously on an android device? | <p>What I wish to have is , one application is running on android main device and displayed on main device.
And second application is running on main android device and displayed on another display device connected to main device. This another display would have a touch screen.</p>
<p>**
What I mean is to have only on... | android | [4] |
616,664 | 616,665 | only edu email address | <p>I want to validate email addresses to make sure they have univeristy edu addresses. For example, for USA only "edu" email holders, for Australia only "edu.au", for Turkey only "edu.tr" etc.. </p>
<p>Does anyone have a PHP function that will allow me to do that?</p>
| php | [2] |
1,414,038 | 1,414,039 | regex in python dealing with curly braces | <p>I have a line which has lots of words and characters. I just want to remove the part which is included in double curly braces </p>
<pre><code>{{ }}
</code></pre>
<p>I tried <code>?={{.*}}</code> but I am not getting anything.</p>
| python | [7] |
1,495,294 | 1,495,295 | how can i add ctrl+c or ctrl+mouse clik to fetch any word to my winform textbox in c# like wordweb or Concise oxford english dictionary | <blockquote>
<p>i am trying to develop a dictionary project. i have already finished most of the work but now i want to give facility like dictionaries like wordweb or Concise oxford english dictionary that is when some one press ctrl+mouse click or ctrl+c on any word that word will set automatically to the winform t... | c# | [0] |
5,524,922 | 5,524,923 | Percentage of a Number | <p>So I'm a little frustrated with how many times I've tried this.
I'm using # / 100 = % * Balance = Fine here, yet for some reason always results to 0. Note that this uses an external API.</p>
<pre><code>double fine = (getConfig().getBoolean("fineispercentage") == true ? getConfig().getInt("fine") / 100 * count * eco... | java | [1] |
3,497,562 | 3,497,563 | how to display multiple images dynamiclly in imageview | <p>hi i am new to iphone. what i need is i have to display only one image in one case, two images in another case like wise and for that i am using a imageview with iboutlet. how can i dispay multiple images in single imageview. pls help me post some code. thank u .</p>
| iphone | [8] |
4,943,139 | 4,943,140 | How do you host your own egg repository? | <p>Say you're on a team that's maintaining a lot of internal python libraries(eggs), and for whatever reason uploading them to pypi is not an option. How could you host the libraries(eggs) so that easy_install can still work for the members of your team?</p>
<p>Basically it would be cool if this worked....</p>
<pre><... | python | [7] |
4,941,065 | 4,941,066 | How to always start an App from the main activity, even after being closed using the home button from sync settings | <p>The scenario:<br>
My app turns toggles the wifi state when a button is pressed and then exits the app. If background data is enabled when the wifi is being disabled, then the app allows the user to disable the bg data by starting the Sync Settings activity
startActivity(new Intent(Settings.ACTION_SYNC_SETTINGS))... | android | [4] |
1,989,168 | 1,989,169 | Android onLongClickListener for view & bubbling up for child event | <p>I've got a View defined with 3-4 items on it (buttons, ImageView, etc.). The View has an onLongClickListener defined:</p>
<pre><code>view.setOnLongClickListener(new OnLongClickListener() { ... }
</code></pre>
<p>As long as I long click on an empty portion of my view, this works great -- but if I long click on my i... | android | [4] |
5,834,614 | 5,834,615 | Java Terminology | <p>I am new to Java and would like to know a bit more. I have a current problem that I would like an answer to but I would also like to know what the technique is referred to as so that I can do some further reading.</p>
<p>I currently have something like this</p>
<pre><code>public class BasicActivityExtension
{
pub... | java | [1] |
3,076,470 | 3,076,471 | custom dialog exception | <p>ihave been used the custom dialog and an <code>EditText</code> in it , and i validate the <code>EditText</code> by displaying error message when the user click the <strong>ok</strong> button without entering his/here name , but when i run it and click the ok button either with or not entering a name an exception
... | android | [4] |
1,669,284 | 1,669,285 | Exact age calculation | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9/how-do-i-calculate-someones-age-in-c">How do I calculate someone's age in C#?</a> </p>
</blockquote>
<p>Maybe this could be silly but and I don't have issues with my age but sometimes it is good to calcula... | c# | [0] |
4,447,496 | 4,447,497 | Getting Unexpected '<' in simple less than greater than comparison | <p>I feel very very very silly posting this, but I can't find the answer. I've searched google and here.</p>
<pre><code>// originally values in a multi dimensional array, but used simple values
// to rule out errors.
$somenumber = 1; $anotherone=5;
if ($somenumber < $res->shares < $anotherone ) {
//bla... | php | [2] |
3,209,193 | 3,209,194 | Is there a light alternative to jQuery Mobile for just page transitions? | <p>I'm looking for an <b>ULTRA-light</b> framework or snippet which handles <code>-webkit</code> css page transitions in a similar way to JQM or JQTouch. They work fine but I don't want to add almost 200kb of resources just to get some transitions.</p>
<p>I'd like it to feature :</p>
<p><b>1</b> Page-to-page switchin... | javascript | [3] |
5,721,326 | 5,721,327 | Is there a tutorial or open source project for implementing badges like StackOverflow's? | <p>I was trying to implement a badging system or a web reputation feature into my app, and I was wondering how to go about it! I still can't get my head around how it works. Are there any tutorials out there explaining how I can implement one or or some sort of framework that I can use in my app?</p>
| php | [2] |
5,236,892 | 5,236,893 | Modifying item after addition to List does not update list | <p>I have a member variable which is a list of reference types. In a method I create and item, add it to the list. The item is then updated point to another instance but the instance in the list does not get updated (his is in some unit test code). Example looks like</p>
<pre><code>Item localItem = new Item(arg1, a... | c# | [0] |
3,785,061 | 3,785,062 | key event in Android | <p>The currently key events listener provided by android "onKeyUp", "onKeyDown" are associated to an activity , so they are notified of the key events if the activity's views are focused . What I want is to be able to increase/decrease the volume by pressing some of the device's key , without writing a listener in ev... | android | [4] |
3,165,994 | 3,165,995 | How can we implement pagecurl animation in tableview? | <p>Ha ii every body ,how can we implement a page-curl in tableview,i have a tableview which contains pages of the book and i have implement the touch events in the tableview cell for next chapter and previous chapter,left-swipe for next and right-swipe for previous chapter,when we swipe the tableview it reloads the nex... | iphone | [8] |
2,092,793 | 2,092,794 | How to get only the favourite/starred contacts using ContactsContract | <p>how can I get the favourite contacts (and only the favorite / starred) contacts?</p>
<p>I would like to not loop through the entire contacts list checking each contact if it is starred... is there some query I can use to return only favourite/starred contacts?</p>
<p>thanks</p>
| android | [4] |
1,120,218 | 1,120,219 | what is the alternative of HTML's TextArea in Android | <p>what is the view element which gives effect like a HTML's TextArea? I want to create a form to send Email and for the body field I want to create a textarea type of UI element in the form. </p>
<p>Can someone suggest what is the way to go for it?</p>
| android | [4] |
4,311,282 | 4,311,283 | How to shift a linear layout when soft keyboard is ON | <p>I made a similar dialog box (xml layout), that exists in a linear layout. and i want this linear layout to be shifted when soft keyboard is ON.</p>
<p><img src="http://i.stack.imgur.com/y2XFW.png" alt="LinearLayout shifted when soft keyboard is ON">
EDIT: I want it to appear just like the WhatsApp dialog box is app... | android | [4] |
5,531,814 | 5,531,815 | How to compile Java into 32 bit? | <p>No 64 bit odbc driver for ms access. Wondering how to compile java source file to 32bit... Any idea. I have searched a lot on google but couldnot able to find the solution. </p>
<p>Can anyone help me!</p>
| java | [1] |
4,068,464 | 4,068,465 | Javascript: replacing newlines with <br/> working in FF and SAFARI and not working in IE | <p>Code in the post has been modified.</p>
<p>I was thinking that replacing \n with <br/> with javascript was quite a simple task, but it seems not to be so. Posts in <a href="http://www.bennadel.com/blog/161-Ask-Ben-Javascript-Replace-And-Multiple-Lines-Line-Breaks.htm" rel="nofollow">Ask Ben</a> or <a href="http://s... | javascript | [3] |
2,436,050 | 2,436,051 | Removing notification after click | <p>I just started working with notifications and now I'm trying to remove the notification and launch the app once the notification has been tapped in the notificationcenter.</p>
<p>I tried to work with the following code:</p>
<pre><code>import android.app.NotificationManager;
public class ExpandNotification {
... | android | [4] |
5,462,022 | 5,462,023 | I have two Lists of string how can i create a string from each List index with the other one? | <p>For example i have a List:</p>
<pre><code>[0] daniel
[1] moses
</code></pre>
<p>Now the second List:</p>
<pre><code>[0] hello world
[1] hi everyone
</code></pre>
<p>I want to build a new List of string thats will be:</p>
<pre><code>[0] daniel hellow world
[1] moses hi everyone
</code></pre>
<p>How can i do it ... | c# | [0] |
3,992,397 | 3,992,398 | Is there a performance advantage to coding this one way or another? | <p>I am using jQuery 1.7.1</p>
<p>I am trying to write this code for readability as well as performance. In the two cases below, which one would perform better and why?</p>
<pre><code>// BLOCK ONE
var DivHeight = 0;
$(".PC_SeriesDiv").each(function() {
var ThisDivHeight = $(this).height();
if (ThisDivHeight ... | jquery | [5] |
584,342 | 584,343 | Programming in C# question | <p>After creating this code:</p>
<pre><code>Console.WriteLine("Hello, and Welcome to Shell Bomber!\n");
Console.WriteLine("In this game you will calculate the distance\n");
Console.WriteLine("a shell will rise and travel along the ground ^_^\n");
Console.WriteLine("theta = ?"); // initial angle that you w... | c# | [0] |
1,125,764 | 1,125,765 | Selecting a row in uitableviewcell | <p>how to make a row in uitableview back to white after selecting.</p>
<p>My problem is when I select a row in uitableview it shows me blue color and it remains on. It doesn't go off, I mean back to white color. </p>
<p>How to do that. any help please..</p>
| iphone | [8] |
684,956 | 684,957 | Why am I not seeing an error message? | <p>I'm feeling my way around php for the first time in years. I'm trying to perform a simple select statement. I've confirmed the statement works directly against mysql. My php does not complete. I'd like to know why my real_query isn't working, I'd also like to know how to coax an error message out of this scenario. H... | php | [2] |
3,232,676 | 3,232,677 | encode-decode image data with base64 | <p>Hi Guys
I am try to make iPhone application to encode-decode an images (NSData format).</p>
<pre><code> NSData imageData = UIImagePNGRepresentation(image);`
</code></pre>
<p>How can I do, please give some source code.
Thank you!</p>
| iphone | [8] |
938,083 | 938,084 | Find an element in a list of tuples | <p>I have a list 'a'</p>
<pre><code>a= [(1,2),(1,4),(3,5),(5,7)]
</code></pre>
<p>I need to find all the tuples for a particular number. say for 1 it will be</p>
<pre><code>result = [(1,2),(1,4)]
</code></pre>
<p>How do I do that. </p>
<p>PS - This is not homework</p>
| python | [7] |
1,076,910 | 1,076,911 | can $_FILES superglobal be accessible in class | <p>Does anyone have experience with this</p>
<p>I wanted to use $_files in my class</p>
<p>like </p>
<pre><code>$Uploadfile= $_FILES['file'];
</code></pre>
<p>but then the script errors</p>
<p>I thought superglobals were acccessible anywhere</p>
<p>thanks, Richard</p>
| php | [2] |
2,651,920 | 2,651,921 | How to implement pure virtual function in C++ | <p>I think the implementation of virtual function is talked about a lot. My question is what about pure virtual function? However it is implemented? In virtual table, how to tell it is a pure or non-pure? What the difference between pure virtual function and virtual function with implementation?</p>
| c++ | [6] |
1,016,973 | 1,016,974 | Friends Referral | <p>I want a PHP code to load contact list from Hotmail, Yahoo and Gmail something like a friend referral scripts. If possible, I don't want something ready-made (except for the connection libraries).</p>
| php | [2] |
5,708,193 | 5,708,194 | Android 4 Drag & Drop horizontally | <p>I am able to drag n drop items successfully with View.startDrag method.</p>
<p>But I want to restrict dragging only by X axis with some Y axis offset.
Currently when user started dragging he is able to move that view anywhere on the screen so how can I limit appearance of dragging so user will not be able to move i... | android | [4] |
3,549,508 | 3,549,509 | JavaScript Snappy Page Scrolling | <p>I'm trying to find a way to have a snappy and automated page scrolling. </p>
<p>I'd like to use jQuery or equivalent to get something like this:</p>
<p><a href="http://www.dezinerfolio.com/wp-content/uploads/smoothscrolldemo/df_smooth_scroll.html" rel="nofollow">http://www.dezinerfolio.com/wp-content/uploads/smoot... | javascript | [3] |
1,892,768 | 1,892,769 | Javascript : Can't retrieve value from array | <p>I have a code</p>
<pre><code>alert(JSON.stringify((this.shop.get('selectedOrder')).get('orderLines')));
</code></pre>
<p>The Result look like this </p>
<pre><code>[{"cart_weight":0,"total_weight":1,"quantity":1,"list_price":1,"discount":0,"ean13":false,"product_image_small":false,"name":"Watermelon1","pos_categ_i... | javascript | [3] |
3,104,563 | 3,104,564 | Android Layout, displaying Multiple Colums | <p>Hi Im new to android. I want to display text such that it would be like:</p>
<ol>
<li>TITLE 1.1</li>
</ol>
<p>text about title 1.1</p>
<ol>
<li>TITLE 1.2</li>
</ol>
<p>text about title 1.2</p>
<ol>
<li>TITLE 2.1</li>
</ol>
<p>text about title 2.1</p>
<blockquote>
<blockquote>
<p>and so on</p>
</blockq... | android | [4] |
1,735,731 | 1,735,732 | how to put password to my application | <p>I have wrote another application, now it is store only my private data. Whenever user click on the application icon, as you know, application will start. I want to put password before the my application is starting up. If user will write password incorrectly, at most 5 times, application will not start.</p>
<p>My q... | android | [4] |
4,439,743 | 4,439,744 | SmartCards And Android | <p>I'm a C/C++ programmer with good windows and linux development experience and I also know a bit of java too. Recently, a client asked me to develop an Android app for him, wich, will most likely run on a Samsung Galaxy S or Galaxy S II, with Android 2.3, that basicaly consists in connecting a standard smartcard read... | android | [4] |
2,497,618 | 2,497,619 | How can I prepend some HTML to an element, then check if the HTML was prepended? | <p>I have a global JS method that puts a * in front of every field marked as having class .fish-label</p>
<p>the code is:</p>
<pre><code>var fishString = "<span class='fish-label'> * </span>";
$elements.each(function (index, value) {
if ($(this).html().indexOf(fishString) != 0) {
... | jquery | [5] |
3,339,334 | 3,339,335 | How can I check if a localstorage variable is null or undefined? | <p>I have this code:</p>
<pre><code>var sideBar = localStorage.getItem('Sidebar');
</code></pre>
<p>I want to check if sideBar is defined and not null in an if statement. I am a bit confused I know there's a: <code>sideBar == undefined</code> and <code>sideBar != null</code> </p>
<p>but is there a good way for me to... | javascript | [3] |
4,386,740 | 4,386,741 | can you have multiple hashcode and equals | <p>Alright, I need to be pointed in the right direction. I already have a hash code and an equals method with over ride. </p>
<pre><code>@Override
public int hashCode() {
return type.hashCode() ^ type2.hashCode() ^ type3.hashCode() ; }
@Override
public boolean equals(Object obj) {
if (!(... | java | [1] |
4,688,130 | 4,688,131 | What does three semicolons in a javascript expression do? | <p>I've seen a triple semicolon in a few expressions here and there.<br>
Does it have any logical effect? </p>
<p>The Closest thing I've seen for an explanation is that it tells the Dean Edwards compressor to ignore that line. </p>
<pre><code>;;; var someVar = 'Rebel';
</code></pre>
| javascript | [3] |
5,883,322 | 5,883,323 | Serve multiple pages from 1 PHP file? | <p>So basically i am struggling with the need of optimizing my code for some project of mine.
Currently i have pages like <code>add_company.php</code>, <code>view_company.php</code>, <code>edit_company.php</code>.</p>
<p>What i would like to do is to serve all content from just 1 PHP file <code>company.php</code>.
So ... | php | [2] |
3,944,406 | 3,944,407 | How to change value of UI items in Thread? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/661561/how-to-update-gui-from-another-thread-in-c">How to update GUI from another thread in C#?</a> </p>
</blockquote>
<p>I need to create C# application, which can change values of UI items in different threads... | c# | [0] |
1,732,191 | 1,732,192 | Compiler complains about "missing return statement" even though it is impossible to reach condition where return statement would be missing | <p>In the following method, the compiler complains about a <em>missing return statement</em> even though there is only a single path through the method, and it contains a <code>return</code> statement. Suppressing the error requires another <code>return</code> statement. </p>
<pre><code>public int foo() {
if (true... | java | [1] |
4,280,522 | 4,280,523 | C++ performance of global variables | <p>For clarification: I know how evil globals are and when not to use them :)</p>
<ul>
<li>Is there any performance penalty when accessing/setting a global variable vs. a local one in a compiled C++ program?</li>
</ul>
| c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.