Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
4,346,561 | 4,346,562 | Save recorded file to ipod Library path | <p>Hope you all are fine and also in one of your best mood.</p>
<p>I need your help to know one thing in iPhone, if You know then please share it with me and lot's of other phone developer.</p>
<p>I am developing an application in which i need to record a Sound and Add it to iPod Library.</p>
<p>I finished with reco... | iphone | [8] |
3,182,087 | 3,182,088 | Can you run Android Market from a virtual device? | <p>Can you run the Android market app from a virtual device or in the emulator?</p>
| android | [4] |
4,025,539 | 4,025,540 | Dynamic html output using <% %> | <p>I have a page which can be in English or Swedish. The page contains a lot of phone numbers. What I want to do is show phone numbers as 0XX XXX XXX when in Swedish mode, and +46(0)XX XXX XXX when in English mode.</p>
<p>I'm not too keen on using unique asp.net-controls for each and every phone number as they are qui... | asp.net | [9] |
1,466,298 | 1,466,299 | "inserting the dynamically generated rows into the table" | <p>I am bit new in the c# programming, so I got stuck at one place. Need your help.
Actually through javascript I am generating table(4 columns) rows(having textboxes so that user can give inputs) as per as the user button click. As the number of rows are not fixed and we dont have the exact name of the textboxes so no... | c# | [0] |
158,682 | 158,683 | C++ Operators pre- and post- incrementing | <p>I am not understanding the pre/post incrementing of this code example:</p>
<pre><code>int1 = 14;
int2 = ++int1;
// Assert: int1 == 15 && int2 == 15
</code></pre>
<p>In this pre-incrementing example why does int1 == 15? Why is int1 incremented and not just int2?</p>
<p>Then we have:</p>
<pre><code>int1 = ... | c++ | [6] |
1,314,292 | 1,314,293 | Assign max width to layout in landscape like Gmail app compose page | <p>I'm creating compose page just like gmail app, how do I create layout that limits the maxWidth of activity/fragment?</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
androi... | android | [4] |
5,542,024 | 5,542,025 | How do you get a decimal in python? | <p>In a truly surreal experience, I have spent 20 minutes on a task I thought would take 20 seconds.</p>
<p>I want to use decimals with 3 or more places. I cannot get anything over 1 place, and even in that case it's nonsense.</p>
<p>For example, I am unable to get <code>1/3</code> to show as anything other than <cod... | python | [7] |
1,411,740 | 1,411,741 | Controlling getter and setter for a python's class | <p>Consider the following class :</p>
<pre><code>class Token:
def __init__(self):
self.d_dict = {}
def __setattr__(self, s_name, value):
self.d_dict[s_name] = value
def __getattr__(self, s_name):
if s_name in self.d_dict.keys():
return self.d_dict[s_name]
else:... | python | [7] |
5,197,461 | 5,197,462 | Calling properties/instance variables from strings in Objective-C | <p>Basically my view controller has 49 different instance variables of class <code>CircleView</code> (called <code>circleView1</code>, <code>circleView2</code>, ..., <code>circleView49</code>). The <code>CircleView</code> class is a simple subclass of <code>UIImageView</code> and basically returns a circle picture when... | iphone | [8] |
1,789,998 | 1,789,999 | use jquery attribute with variable in value place | <pre><code><a href="/JqueryTest/Delete/23" class="Delete-item">Delete</a>
</code></pre>
<p>if i use this JQuery code :</p>
<pre><code>$('.Delete-item[href="/JqueryTest/Delete/23"]')
</code></pre>
<p>It work fine , but if i replace Value with my variable :</p>
<pre><code>var MyVar= "/JqueryTest/Delete/23... | jquery | [5] |
4,101,119 | 4,101,120 | testing objects with instanceof | <pre><code>var google = {
makeBeer : function(arg1,arg2){
alert([this instanceof google, arg1, arg2]);
}
}
google.makeBeer('water','soda');
</code></pre>
<p>The above does not alert when i check <code>this instanceof google</code>, but the same code works when i do this. </p>
<pre... | javascript | [3] |
5,189,110 | 5,189,111 | How does "and" and "or" work comparing numbers in python? | <p>I was looking through some lab material from a computer course offered at Berkeley U C and came across some examples on the form of questions on a test about python. </p>
<p>1 and 2 and 3
answer 3</p>
<p>I've goggled it till i was red in the fingers, but to no avail.. Could someone be kind enuff to direct me to s... | python | [7] |
1,014,097 | 1,014,098 | Build elements in jQuery and add to dom | <p>I am trying to build a ul list in jQuery, however it seems to be only creating the ul element, and not the li??</p>
<pre><code>var list = $('<ul></ul>').append($("<li/>").addClass('test').text('hello'));
</code></pre>
<p>Seems simple enough, but not sure why it won't work??</p>
| jquery | [5] |
5,884,854 | 5,884,855 | Dispalying image in android | <p>I am trying to display an image in android.The process is i am downloading 1 image from net and trying to display it in the screen,the problem i am facing is in the activity screen i cant able to set the content view and the image.Following is the code:</p>
<p>main.xml:</p>
<pre><code><?xml version="1.0" encodi... | android | [4] |
2,458,310 | 2,458,311 | Controlling order of compilation in C++ | <p>Suppose you have two classes <code>A</code> and <code>B</code> in two different files <code>A.cpp</code> and <code>B.cpp</code> respectively, how can you ensure <code>class A</code> compiles before <code>class B</code>.</p>
| c++ | [6] |
1,690,355 | 1,690,356 | Can't get ImageMagick run with php | <p>I'm very frustrated with getting ImageMagick to run.</p>
<p>The Situation:
ImageMagick is installed on the Server. (My hosting provider did this. as a standard)
I asked my provider and they only said: the path to ImageMagick is /usr/bin/php_safemode and that i should "deposit" the path in my application. Whatever t... | php | [2] |
5,024,348 | 5,024,349 | how to enable progress bar while loading custom listview in android | <p>I need to maintain 3000 list items in listview(android) .But continue scrolling will make error. To manage this I plan to show progress dialog while loading the listview. </p>
<p>Please suggest me how to do it in android. </p>
| android | [4] |
1,900,407 | 1,900,408 | nextUntil() is not working in this case | <pre><code><table>
<tr class="codesgroupheader"><td>Header1</td></tr>
<tr><td>1</td></tr>
<tr class="codesgroupheader"><td>Header2</td></tr>
<tr><td>2</td></tr>
<tr class="codesgroupheader"><td>He... | jquery | [5] |
1,119,006 | 1,119,007 | Stange error with preprocessor macro | <p>i have changed code style and aslo i hope it will help
<a href="http://www.cs.bell-labs.com/cm/cs/pearls/spacemod.cpp" rel="nofollow">http://www.cs.bell-labs.com/cm/cs/pearls/spacemod.cpp</a></p>
<pre><code>#include <iostream>
using namespace std;
#define MEASURE(T, text)
{ \
int i;
cout<<... | c++ | [6] |
2,594,183 | 2,594,184 | Custom User Control in UpdatePanel forcing Postback | <p>I have a custom user control that has an event (SelectedUserChanged). I have this control inside an UpdatePanel but when the control executes the event, the entire page does a postback instead of just the update panel. What in the world do I have going on?</p>
<p>My User Control:</p>
<pre><code>public delegate voi... | asp.net | [9] |
1,930,574 | 1,930,575 | Is there a dictionary that contains the function's parameters in Python? | <p>I'd like to be able to get a dictionary of all the parameters passed to a function.</p>
<pre><code>def myfunc( param1, param2, param3 ):
print 'Param1=%(param1)s, Param2=%(param2)s Param3=%(param3)' % __method_param_dict__
</code></pre>
<p>So my question is does the dictionary <strong>method_param_dict</strong... | python | [7] |
4,594,021 | 4,594,022 | jquery - stop page reload | <p>I have <code>Textbox</code> and <code>Button</code> (Next and Previous) displayed in <code>Lightbox</code>.
Currently my page is reloading upon clicking the Enter key.
I dont want this to happen. </p>
<p>What i want is, when i click the Enter key, the "Next" button should be clicked without page reload which reside... | jquery | [5] |
825,071 | 825,072 | How do you create an <ArrayList> local variable? | <p>I am trying to figure out how to create an ArrayList as a local variable. I think I have it figured out, is the following code correct? Thanks.</p>
<pre><code>public void setExample(){
ArrayList<String> example = new ArrayList<String>(); //local variable?
}
</code></pre>
| java | [1] |
4,364,866 | 4,364,867 | How do I change where PHP looks for user defined includes? | <p>I'm about to go and change all my includes to use get current working directory to specify where to look.</p>
<pre><code>getcwd()
</code></pre>
<p>because PHP does not look in the current directory as I thought it would.</p>
<p>Is there a way to change this behavior so my code is not littered with <code>getcwd()<... | php | [2] |
1,019,513 | 1,019,514 | I want to display a Blank Gridview in asp.net | <p><img src="http://www.freeimagehosting.net/uploads/533520e376.png" alt="alt text"></p>
<p>I want to display a blank Gridview Like this.By this way iant to enter the details through grid like windows app. In first a grid with blank row which is in edit mode comes and after update Next row will come. how can i do this... | asp.net | [9] |
5,904,224 | 5,904,225 | Alternative to ListView smoothScrollToPosition()? | <p>I have a ListView that potentially can have hundreds of entries. When a selection is made I've been using a smoothScrollToPosition, thusly:</p>
<pre><code>if (lv != null) { //Are we created yet?
lv.post(new Runnable() {
public void run() {
lv.smoothScrollToPosition(k);
}
});
... | android | [4] |
5,771,275 | 5,771,276 | Show "Loading image" while page is loading | <p>I'm far from good at jQuery, to start with. I have read these two questions that deal with the subject:</p>
<ul>
<li><a href="http://stackoverflow.com/questions/750358/with-jquery-how-can-i-implement-a-page-loading-animation">With jQuery, how can I implement a "page loading" animation?</a></li>
<li><a hre... | jquery | [5] |
2,909,946 | 2,909,947 | How to assign variable dynamically to php list function | <p>What I am doing that I want to generate a list based on how many items are in an array, so I have counted the items and loop over them, create a number based var and construct a string $var which contains $a1,$a2.... and assigns the $var to list list($var)</p>
<p>and tried to access $a1 but it gives me the error "U... | php | [2] |
5,002,932 | 5,002,933 | ASP.NET 2 projects to share same files | <p>Well as the title says i have 2 web projects that have the same css files, master page and some resource files, how could i share those? atm i have 2 copies of them...</p>
| asp.net | [9] |
4,200,055 | 4,200,056 | Android SDK r18 export release error | <p>I've 2 Android projects in workspace; first is libray project and other is application that refers to first project. Clean and Build is fine without any error. But when I try to export release build it gives error: "Conversion to Dalvik format failed with error 1"</p>
<p>Please, help.</p>
| android | [4] |
5,091,545 | 5,091,546 | DIV disabled or greyed out | <p>I have a webpage with a form. Depending on user selections at the top of
the page, the page will disable sections of the form. My plan is to put
each section between a <code><div></div></code>. Each section contains some collection
of form elements.</p>
<p>So if the user does not select some criteria, t... | asp.net | [9] |
5,906,851 | 5,906,852 | iphone - start an application at the end of a phone call | <p>Is it possible to launch an application at the end of phone call or after sending SMS?</p>
| iphone | [8] |
773,308 | 773,309 | To know the left position of a array of div in jQuery | <p>i have an array of same class div and i want to know the left position of each of the div.so i use the each function. i cant found the exact. it only show the first div left position.</p>
<p>my code is like that..</p>
<pre><code> jQuery.each(jQuery('.selected-item'), function(index, selectpos) {
selec... | jquery | [5] |
3,956,427 | 3,956,428 | Int[] to Matrix Java | <p>How do I convert a int[] to a matrix?</p>
<p>Let's say I want to make 6x6 matrix and I have an int[] array with 36 elements.
So the 00 entry is the 0th element of the array, 01: 1 element, 02:, 2nd element and so forth.</p>
| java | [1] |
1,818,806 | 1,818,807 | Convert large number in javascript | <p>After pasting the number <code>t=3.7333333258105216E16</code> in jsconsole.com or in Web Inspector, I get <code>37333333258105220</code>. </p>
<p><code>parseFloat(3.7333333258105216E16)</code> gives the same result. </p>
<p>What is the reason ?</p>
| javascript | [3] |
545,903 | 545,904 | Sending data from one php file to other php file | <p>I want to send data from one php file to other php file to authenticate a user . None of them can be html files . And I cant send it as header as it appears in the url . Plz give me some suggestions.</p>
| php | [2] |
2,818,291 | 2,818,292 | Variable might not have been initialized | <p>Here I am, thinking I know Java, and I get the error <code>Variable 'storage' might not have been initialized</code>. Here is my code:</p>
<pre><code>public class RobbleSet {
private final Set<Robble> storage; // Error occurs here
public RobbleSet() {
storage = new HashSet<Robble>();
... | java | [1] |
1,796,222 | 1,796,223 | Pseudo-random generator in python described in RFC4187 | <p>Is there an existing python implementation of pseudo-random generator described in RFC4187 (FIPS186-2)</p>
<p>Appendix A. Pseudo-Random Number Generator</p>
<p>The "|" character denotes concatenation, and "^" denotes
exponentiation.</p>
<p>Step 1: Choose a new, secret value for the seed-key, XKEY</p>
<p>Step... | python | [7] |
3,129,687 | 3,129,688 | Native video gallery does not display all the videos | <p>My application filmed a video and then back to a screen that allows me to choose another video or gallery display videos.
The problem is that the gallery does not display all the videos I record, just one. I'm sure I record the videos because they appear in My Files.</p>
<p>The code used to display the gallery is... | android | [4] |
3,190,494 | 3,190,495 | javascript string and int | <p>I came across some javascript code I don't understand:</p>
<p>what does <code>a < 5</code> mean if the variable <code>a</code> holds a string?</p>
<p>Thanks</p>
| javascript | [3] |
2,741,558 | 2,741,559 | Checking object of wrapper class Float is null | <p>I need to check an object of wrapper class is null.For this I have written the checking statements</p>
<pre><code>Float a=null;
</code></pre>
<p>a==null;
a.toString().equals(null)</p>
<p>But these are wrong.Please advice me</p>
| java | [1] |
1,717,284 | 1,717,285 | Writing jquery static util methods | <p>I understand the concept of extending the jquery.fn to place your custom functions on the prototype chain of a jquery object, but in my case some of my utils don't need to be attached to a selector.
I'm basically looking for a static method. So I wanted to know of any pitfalls of writing static methods directly on t... | jquery | [5] |
5,099,577 | 5,099,578 | Facebook graph api to send app request to friends from iPhone app | <p>i require to send app request to friends in my facebook profile. So can any one suggest me graph api available to achieve this, i prefer graph because i have been using the graph api for all other tasks. Thanks in advance.</p>
| iphone | [8] |
3,972,801 | 3,972,802 | Given the following typedefs, what syntax would be used to insert an object? | <p>I inherited some C++ code and am trying to extend it and need to insert some objects into the following data structures in order to call a method, as the ObjectList is part of the parameter list that is passed to the method.</p>
<pre><code>typedef std::vector <std::pair <std::string, ObjectPtr> > ... | c++ | [6] |
5,271,118 | 5,271,119 | Camera.Parameters.FLASH_MODE_TORCH | <p>My problem is that the TORCH MODE is disabled when the get function onPictureTaken.
How to make a torch mode on work during a photographic survey?</p>
| android | [4] |
222,470 | 222,471 | Where is the class assigned to when stored in a struct? | <p>I read a thread (which had the input of Marc Gravell and Jon Skeet) that mentioned if a struct is in a class, that struct is stored on the heap like the class.</p>
<p>What if a class is a member of a struct? Where does the class get assigned to?</p>
<p>Thanks</p>
| c# | [0] |
4,830,316 | 4,830,317 | How to use the Headphone button as push to talk button in android | <p>I want to use the Headphone button "KEYCODE_HEADSETHOOK" as push to talk button in android, ie when press and hold i can do something then stop when I release it.
Thanks</p>
<p>here is my code </p>
<pre><code>if (keyCode == KeyEvent.KEYCODE_HEADSETHOOK/*KEYCODE_HEADSETHOOK*/ && event.getAction() == KeyEven... | android | [4] |
1,527,810 | 1,527,811 | Do you have to check whether 'REQUEST_METHOD' exists in the $_SERVER variable before using it? | <p>Do I have to check whether the <code>$_SERVER</code> variable has a key <code>REQUEST_METHOD</code> before actually using <code>$_SERVER['REQUEST_METHOD']</code>?</p>
<p>That is, is it overly defensive to <em>always</em> check whether a key exists in array variable like <code>$_SERVER</code>?</p>
| php | [2] |
3,547,506 | 3,547,507 | orientation change in landscape mode | <p>my code is below but not call this method when screen orientation changed .</p>
<pre><code>public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig
Intent in=new Intent("com.world.delailsActivity")
startActivity(in)
}
</code><... | android | [4] |
3,434,663 | 3,434,664 | how to make a copy-paste script with jcreator? | <p>can u help me with the coding of java, so i can copy a single file using command prompt.</p>
<p>so, i wanna run the java file from command prompt of windows, like "java "my java script" "my file target"" and make a copy of my "my file target" at the same directory without replace the old one.</p>
<p>please help me... | java | [1] |
4,219,273 | 4,219,274 | Why can't display a DateTime object | <pre><code>$date = new DateTime(2011-10-05);
echo $date->format('Y-m-d H:i:s');
</code></pre>
<p>Running the above code, the page is displayed nothing. Just wondering is there anything wrong on the code and I used the <strong>PHP5 (Version 5.3.0)</strong>.</p>
<p>Can anyone help me? Thanks in advance!</p>
<p><str... | php | [2] |
2,416,453 | 2,416,454 | How is NSLocaleCountryCode determined? | <p>How is the NSLocaleCountryCode determined by the iPhone OS in versions greater than 3.0?</p>
<p>Can it be changed by the user?</p>
| iphone | [8] |
5,366,500 | 5,366,501 | How to change ScrollView's position after touch? | <p>I'm trying to make a ScrollView with a list of numbers in it that the user can select from. After the user touches and scrolls, after the finger is lifted I want the scroll to "snap" to the item in the middle of the ScrollView and give me the output. My ScrollView contains a vertical linear layout with TextView obje... | android | [4] |
143,254 | 143,255 | Troubleshooting division by zero warning | <p>I want to display like and unlike vote with count. my code is given below but it displays Warning: division by zero in filename.php.</p>
<pre><code><?php
include("db.php");
if($_POST['id'])
{
$id=mysql_escape_String($_POST['id']);
$name=mysql_escape_String($_POST['name']);
mysql_query("update messages set $nam... | php | [2] |
4,431,501 | 4,431,502 | Undefined parameters in function | <pre><code>#include <iostream>
using namespace std;
class Imp
{
public:
int X(int) {return 50;}
int Y(int y) {return y;}
};
int main()
{
Imp i;
cout << i.X(100) << endl;
return 0;
}
</code></pre>
<p>This code works and prints out 50. My question is what happens to ... | c++ | [6] |
5,781,859 | 5,781,860 | Need help using an if else statement and a loop together. JavaScript | <p>I'm just learning JavaScript and I'm trying to have an if else statement declare something, but I want to use a loop with it. Basically something like this: </p>
<pre><code>var myNum = 1;
var linebreak = "<br />";
var d3d = "You're very lucky! ^_^";
var p3p = "<p>Too Bad. Maybe Next Time.</p>";
fo... | javascript | [3] |
111,794 | 111,795 | Android IMEI binding with music file | <p>Is there any possibility to develop an application that binds the IMEI with the music file and should not play that music file if IMEI is not registered.</p>
<p>The core idea is to protect the licensed file from transferring to other devices.</p>
| android | [4] |
5,598,940 | 5,598,941 | Implement Android picture viewer | <p>i just wanted to write a picture viewer for my android app. I saw that the gallery view is deprecated. So i really dont want to use it for new code. I already searched for a replacement but only found "care for yourself" answers. So what's the best way to implement it? ViewPager? Horizontalscrollview?</p>
<p>I want... | android | [4] |
3,047,124 | 3,047,125 | php echo variable combining test problem | <p>I have the following in a for loop over $x. $x is from 1 to 100. I have variables t1 to t100 already assigned. I want to echo them without typing each one individually, hence the for loop. BUT the following does not work...How can I fix this?</p>
<p>echo "<br>'$t.$x'";</p>
| php | [2] |
507,537 | 507,538 | How to validate multiple dropdown list using jquery? | <p>I am trying to validate two checkbox lists in my usercontrole.after some googling i am able to validate my first checkbox list.code is given below</p>
<pre><code><script language="javascript" type="text/javascript">
function ValidateChkList(source, arguments) {
arguments.IsValid = IsCheckBoxChecked() ? ... | jquery | [5] |
4,959,837 | 4,959,838 | Checking individual pixels in a bitmap, how to store the bitmap? | <p>I'm doing an application where I need to detect if the user is selecting a longitude/latitude pair that's on land or at sea on a MapView. I could get this answered by sending a request to the Google Maps service, but I'd rather it work offline too. So I've come up with two ways that this could function, and since I'... | android | [4] |
3,932,416 | 3,932,417 | Using a sieve to find number of divisors but only for n^2 | <p>Normally I use the following code to find the number of divisors up until a given n (tau function):</p>
<pre><code>L=[0 for i in range(N+1)]
for i in range(1,N+1):
for j in range(i, N+1,i):
L[j]+=1
print L
</code></pre>
<p>Which outputs</p>
<pre><code>[0, 1, 2, 2, 3, 2, 4, 2, 4, 3, 4]
</code></pre>
<... | python | [7] |
2,018,330 | 2,018,331 | How to capture video stream from Android phone screen and show it on laptop? | <p>How to capture video stream from Android phone screen and show it on laptop? I've got Android 2.2 device.</p>
<p>I need this to show how my application work on the conference in real time. Something like IPhone presentation on Mac World.</p>
| android | [4] |
5,369,990 | 5,369,991 | Overriding Private Members of Parent Class | <p>Given the following classes:</p>
<pre><code>class foo
{
private:
int c;
public:
foo( int a = 42 ) { c = a; }
~foo();
};
class bar: public foo
{
public:
bar();
~bar();
};
</code></pre>
<p>How can I make <strong>bar</strong> override <strong>c</strong> with a different number? Can I do somethin... | c++ | [6] |
3,049,896 | 3,049,897 | BST toString in linear time | <p>how can i write a linear-time toString() method for BST that uses StringBuilder?
i just want to know how to start atleast</p>
| java | [1] |
148,638 | 148,639 | How can add the Websevice to my C# Form Application | <p>I had created a webservice , "service.asmx" and i need to add this service into my C# form application .</p>
| c# | [0] |
2,849,016 | 2,849,017 | how can i save the data to a text file after every loop? | <p>I have a for loop (slowed down by a timer) and every second the loop save the date on a text file. but if i close the program before the process ends, the text file remains. </p>
<p>the thing is when i present in class, i will not have enough time to waste waiting for the program to end, and at the same time i need... | c# | [0] |
3,830,374 | 3,830,375 | outputting image content type using two functions | <p>I'm using an image outside of my docroot and want to display that image inside of a function.</p>
<p>How do I correctly do this?</p>
<p>Here is what I have so far: (Both functions are in the same file)</p>
<pre><code>function page(){
echo'
test<br />
'.output().'
';
}
function output(){
hea... | php | [2] |
2,276,708 | 2,276,709 | How to append a child as second last. (Just before last) | <p>I have an application, Just you can imagine as Facebook comment system, where post, Comments for that post, and new Text area for post your comment is available.</p>
<p>Example - </p>
<pre><code>post1.. All comments for that post.. text area for new comment
post2.. All comments for that post.. text area for new c... | jquery | [5] |
4,936,470 | 4,936,471 | What can I do with my old iPhone | <p>I currently use my iPhone 3G for testing my apps, but I am thinking about upgrading to the iPhone 4. What can I do to my 3G so I can still use it for testing. I don't need it to have 3G access, I just want to be able to put apps on it for performance testing since it is a slower device. I would still like to keep... | iphone | [8] |
5,960,398 | 5,960,399 | I want to make scroll images onclick of button using android | <p>I have added multiple images in res >> drawable folder I want to make gallery of that photos and I have added left & right arrow images.After clicking on right arrow next image should display and left arrow previous image should display.In thia way I want to scroll that images using android.Please help me out..<... | android | [4] |
7,842 | 7,843 | Overloaded Types Mismatch | <p>How does overloading work in C++? I defined two overloaded functions one takes a float and the other takes an integer:</p>
<pre><code>void myFunc(float a) { ... }
void myFunc(int a) { ... }
</code></pre>
<p>BUT I cannot use the int version whenever I try to pass an integer the compiler panic about an ambiguous ca... | c++ | [6] |
4,170,447 | 4,170,448 | wait for jquery operation to finish before starting new one on focus/blur function | <p>When clicking out of an input field, I'm executing some jquery. If I click in and out really quickly it screws everything up. How can I let the current operation finish before starting a new one?</p>
<pre><code>$("#title, #desc").focus(function() {
}).blur(function() {
var frameHtml = $('.liveDemoFrame').html... | jquery | [5] |
2,402,120 | 2,402,121 | How to Get Image position in ImageView | <p>I use a full screen imageView to display the image, as follows:</p>
<pre><code>UIImageView*imageView=[[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,480)]
imageView.contentMode=UIViewContentModeScaleAspectFit;
imageView.image=srcImage;
</code></pre>
<p>As the srcImage size differs, its position (frame) in th... | iphone | [8] |
1,288,013 | 1,288,014 | C# loop through all MDI childer and close all other forms except the current | <p>I am working on a winforms application using c#. I have an mdi container which has a menu on the left and by pushing a button then the appropriate form is visible. If i click for ex 3 times the button which opens Form1 the 6 instances of the form are opened. Thus i thought that i have to write a method that disposes... | c# | [0] |
1,714,241 | 1,714,242 | 3 hash functions to best hash sliding window strings for a bloom filter with minimum collisions | <p>I need 3 hash functions to hash strings of a sliding window moving over a text, to be used later to search within a bloom vector. I'm using C# in my programming</p>
<p>I read something about rolling hash functions and cyclic polynomials, they are used for sliding window applications. But really, I did not find any ... | c# | [0] |
3,812,746 | 3,812,747 | Including JavaScript at runtime is not working in IE8 | <p>The below piece of code was working in IE6 & IE7 and almost all versions of FF. It just don't work in IE8. It doesn't work in the sense once I added the script tag in to HTML->HEAD element I don't see the script being loaded in the browser(the alerts in the script doesn't show up). I see the tags have been inse... | javascript | [3] |
2,137,057 | 2,137,058 | C# Windows application | <p>I'm using <code>DataGridView</code> to display all the details. How to use the search textbox using AJAX C# windows application?</p>
| c# | [0] |
3,466,861 | 3,466,862 | Recursive find and replace of attribute names on a nested Python object | <p>A third party has provided me with a data structure that's a bunch of nested Python objects. It is strictly a tree. Some of the attribute names on these objects are Python reserved words such that attempting to access them results in a SyntaxError:</p>
<pre><code> >>> print mat['model'].rules[8].def.blockl... | python | [7] |
4,986,263 | 4,986,264 | Java - Maps inside a Map or Key Object? | <p>Hi I am having 3 attributes (String) that are needed to identify a certain Object.</p>
<p>What is the better solution:</p>
<p>using a key object as those post by <a href="http://stackoverflow.com/questions/1190049/using-two-or-more-objects-as-a-hashmap-key">Pierre</a> and <a href="http://stackoverflow.com/question... | java | [1] |
150,063 | 150,064 | how to find the fieldset id in django's change_form.html using django jQuery | <p>I have many fieldsets in the change_form.html. Based on a click function I wish to hide/display some of the fieldsets. How do I get the fieldset id? There are more than 1 fieldsets. </p>
<p>In javascript
eg. $('fieldset')[1].hidden =true; //false based on some condition</p>
<p>I want a django jQuery equivalent ... | jquery | [5] |
2,197,132 | 2,197,133 | Assembly.LoadFile() throws exception about missing manifest | <p>The exception is:</p>
<p>The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018)</p>
<p>I get it at the line:</p>
<pre><code>Assembly lvAssembly = Assembly.LoadFile(aPathFileName);
</code></pre>
<p>The file being loaded is a plugin that is generated by a different applicati... | c# | [0] |
270,322 | 270,323 | inserting date using c#.Net into SQL Server 2008 using insert query | <p>I am making desktop application using C#.NET and SQL Server 2008.......in which i took one label name date and had a toolbox datetime picker.and also took field name date in database...........nw i want to insert the date throgh form using datetimepicker and get get inserted in datatbase.......</p>
<p>using code</... | c# | [0] |
3,563,756 | 3,563,757 | cannot convert `int*' to `float*' for argument `1' to `float mean(float*, float)' | <pre><code>#include <iostream>
#include <vector>
#include <numeric>
using namespace std;
float mean (float num[], float n)
{
int i;
float sum=0;
for(i=0;i<n;i++)
sum=sum+num[i];
return (sum/n);
}
int main()
{
int minusElements;
int n;
cout << "Enter numb... | c++ | [6] |
4,012,813 | 4,012,814 | Uploading large files with HttpClient | <p>I want to upload large video files (>=1Gb) with <code>HttpClient</code> to a servlet but I couldn't find any real examples.
Could you give me some useful code examples?</p>
<hr>
<p>I'd like to see both the HttpClient and FileUpload demo codes (as a one project). And it is quite interesting can I use FileUpload li... | java | [1] |
5,270,505 | 5,270,506 | how to communicate with embedded activity | <p>In my current project I have a full screen TabActivity. Each tab content is handled by two instances of same <code>ListActivity</code>. Now, I put an extra int in intent to know which data should be displayed.
So in <code>onCreate()</code> method of my <code>ListActivity</code>, I check the int in extra and I build ... | android | [4] |
5,848,864 | 5,848,865 | Table like data structure in Java | <p>Forgive me if this question has been answered elsewhere, but I have searched long and hard and have not found an answer.</p>
<p>I am new to Java programming and I wish to create a simple table like data structure, that I can manipulate as required.</p>
<p>For example:</p>
<p>Name,Age,Hair_Colour
Bob,20,Black
John... | java | [1] |
1,005,765 | 1,005,766 | How to redirect back to the previous page in PHP? | <p>I have a PHP site which have a login page.
I have also an order.php page. When the user is not login then the order page redirect the user to the login page first.
I want when the user redirect from the order page to the login page then on successfully login the user should redirect back to the order page.
And When ... | php | [2] |
922,400 | 922,401 | Add Multiple Term Search to my current query | <p>I have a basic search engine. In one script, it populates a MYSQL table with words scanned in the html web page. Based on one word search, it ranks the results when the words appeared the most in the web page. </p>
<p>But I need to work on multiple term querying. Is there a way to search multiple terms from my quer... | php | [2] |
1,900,705 | 1,900,706 | String.split won't deal with the spaces at the first | <pre><code>String test=" Begin with spaces";
for(String n:test.split("\\s"))
System.out.println(n);
</code></pre>
<p>The output is:</p>
<blockquote>
<p>Begin</p>
<p>with</p>
<p>space</p>
</blockquote>
<p>I want to delete all the space, but it creates null strings. I can't use trim... | java | [1] |
5,102,621 | 5,102,622 | I need a code that can read url parameter and select one option in two different dropdown menu according to the url parameter | <p>I need a code that can read url parameter and select one option in two different dropdown menu according to the url parameter.</p>
<p>I mean that i have two dropdown menus in mypage.html.</p>
<pre><code><select name="selecoptionI">
<option value="one">1</option>
<option value="two">2<... | javascript | [3] |
4,685,007 | 4,685,008 | Rotate image from specific point as fingure moves on screen in android | <p>In my application i need to rotate an image which is on another image and it feel both are joined at particular point. That point is on upper image at pixel 15,15. when user movies finger on below image surface i need to rotate upper image as both are fixed by that point so need to rotate upper image around that poi... | android | [4] |
1,051,145 | 1,051,146 | How to detect when UITextField become empty | <p>I would like to perform a certain action when UITextField becomes empty (user deletes everything one sign after another or uses the clear option).</p>
<p>I thought about using two methods </p>
<pre><code>- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSSt... | iphone | [8] |
1,875,569 | 1,875,570 | Localizing a single-page website | <p>Just curious how one would go about that? </p>
<p>Right now, I have a single-page website on <strong><em>mydomain.com</em></strong>, but I need to localise it to English too. The content translation itself isn't an issue, but I'm more curious about the easiest/best way to do so.</p>
<p>I've obviously thought of th... | php | [2] |
222,985 | 222,986 | How it is possible to stretch the image manually to our required pixel position | <p>How it is possible to stretch the image manually to our required pixel position.in my android application i want to stretch my image to the specified position by dragging the end points of it.can anybody suggest me how to do this............</p>
| android | [4] |
5,313,918 | 5,313,919 | Lots of nested functions can I make this simpler | <p>Here is the jQuery I've written to animate some items in a list:</p>
<pre><code>$("#titleTile").delay(5000).animate({top: "160px"}, 300, function() {
$(".tweet_msg.t0").animate({top: 0, height: "show"}, 300, function() {
$(".tweet_msg.t1").delay(5000).animate({top: 0, height: "show"}, 300, function() {
... | jquery | [5] |
2,991,193 | 2,991,194 | Shape Identification in Android | <p>I'm new to Android developing. I have develop an application which allows user to draw anything on the canvas.Now I want to identify the shape drawn by the user and then to tell which shape they drew.For example, if user draw a shape similar to a circle,app should be able to say that it is a circle.</p>
| android | [4] |
1,967,774 | 1,967,775 | Class best practice | <p>If I have a customer class with an overloaded constructor (default and one with params) what is the proper way to set the class members in the Overloaded constructor? Using "this" references or using the setter methods?</p>
<p>Just wasn't sure what the proper method was.</p>
<pre><code>public class Customer {
pri... | java | [1] |
593,157 | 593,158 | How to quit an application programmatically through button click | <p>I want to quit application through button click.</p>
<p>the code for button click is</p>
<pre><code>quitBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View paramView) {
// TODO Auto-generated method stub
MainActivity.this.finish();
... | android | [4] |
1,428,357 | 1,428,358 | Update Status on linkedin | <p>i want to update status on linkedin using linkedin user id, i am developing my final year degree project of social bookmaring site, i dont want to save username and password of the user, i am only saving userid of the user. plz help me.</p>
<p>when user login in to my site , only first time i want to authenticate u... | asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.