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 |
|---|---|---|---|---|---|
3,960,704 | 3,960,705 | Jquery - hide() then fadeIn() then fadeOut() is there a cleaner way? | <p>I'm trying to achieve some animation using jQuery. I have it working but I'm 100% sure there is a cleaner better way of doing and I'm hoping someone can point me in the right direction.</p>
<p>Here is my code:</p>
<pre><code>$(document).ready(function () {
$("#1-popup").hide(); // Hides the first popup
... | jquery | [5] |
3,662,828 | 3,662,829 | iphone - is it possible to do push notification service with adobe flash cs3? | <p>just like in the title, is it possible to do push notification service with adobe flash cs3 ? *sending a push notification via flash to an iPhone, maybe in javascript?</p>
| iphone | [8] |
3,425,397 | 3,425,398 | How do I stop an infinite animation on an ImageView, but let it complete its current cycle? | <p>I applied an infinite animation on an ImageView to indicate a running background thread in my app. When the thread finishes, I'm able to stop the animation by using clearAnimation(), but it snaps the ImageView back to its starting position, and I'd like the current animation cycle to complete (which is designed to ... | android | [4] |
1,141,532 | 1,141,533 | C++ syntax help dealing with recursive definition (or so my compiler tells me) | <p>I'm building a game and I was compiling seeing what sort of errors were coming up and there is one there is very common and very puzzling to me:</p>
<pre><code>1>c:\users\owner\desktop\bosconian\code\bosconian\ship.h(9) : error C2460: 'Ship::Coordinate' : uses 'Ship', which is being defined
</code></pre>
<p>Thi... | c++ | [6] |
4,231,326 | 4,231,327 | How can we temporary off the running website & gives a message "This site is Temprorary unavailable" | <p>How can we temporary off the running website & gives a message "This site is Temprorary unavailable", actully i want to gives a power to admin he can temporary on/Off the website... according to my need i dnt want to add web_offline.htm page. I simply do it by button control i.e. Active website & Deactive we... | asp.net | [9] |
5,966 | 5,967 | Offline version of java api reference docs | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1521823/download-java-api-documentation">Download Java API Documentation?</a> </p>
</blockquote>
<p>Are there any offline version of this :</p>
<p><a href="http://download.oracle.com/javase/7/docs/api/" rel="no... | java | [1] |
4,430,593 | 4,430,594 | $(element).on(event) vs $(ancestor).on(event, element) | <p>I've been using the latter of the below functions pretty much ever since <code>.on()</code> was added, but I've noticed recently that quite a lot of answers use the former.</p>
<p>What is the difference between:</p>
<pre><code>$(ancestor).on(event, element, function() { ... })
</code></pre>
<p>And:</p>
<pre><cod... | jquery | [5] |
935,305 | 935,306 | Variable property | <p>Is this both the same:</p>
<pre><code>private int x;
public int X
{
get { return x; }
set { x = value; }
}
</code></pre>
<p>and</p>
<pre><code>public int X
{
get { return x; }
set { x = value; }
}
</code></pre>
<p>I mean is it enough to use the second case or there are special cases I should use ... | c# | [0] |
704,279 | 704,280 | Custom Design in IPhone Applications | <p>I want to create the following design to my IPhone application. I dont know any idea about this. If anybody knows any idea, please help me.</p>
<p><img src="http://i.stack.imgur.com/WPL1g.jpg" alt="alt text"></p>
<p>Thanks.</p>
| iphone | [8] |
5,916,743 | 5,916,744 | How do I use today's date in a folder path | <p>So I am creating lots of folders as part o fum jobs say and part of the naming strategy is to use today's date as part of the Path<br>
When I use DateTime.Now.ToShortDateString() I keep getting a forward slash<br>
Is there anyway to stop that or any other strategy to use the date in a temporary folder </p>
| c# | [0] |
2,438,728 | 2,438,729 | JavaScript help: Simple script won't work when calling setTimeout | <p>I want to change the exist in a span element every 2 seconds, but it showing only what is in case 0: 'asd'.</p>
<p>Could anyone tell me why this is not working? </p>
<pre><code>var n = 0;
function hideVideoSpan(type){
switch(type)
{
case 0:
{
$("#hideVideoSpan").html('asd');
... | javascript | [3] |
5,961,476 | 5,961,477 | Problem in creating LDAP user through php script | <p><strong>1.</strong> I have created user in LDAP using php script under pre defined "ou" but unable to create "ou" or "cn" through my script.
<strong>2.</strong></p>
<pre><code>// configure privileged user
$root_dn = "cn=test,dc=design,dc=com";
$root_pw = "your password";
// specify the LDAP server to connect to... | php | [2] |
3,869,704 | 3,869,705 | How to stop foreach loop in a given state | <pre><code>foreach (String host in hostArray)
{
string s1 = hostArray[t];
string s2 = branchArray[t];
string con_msg;
t=t+1;
TcpClient socketForServer;
try
{
socketForServer = new TcpClient(s1, 10);
con_msg="Connected";
}
catch
{
ListViewItem item = new ... | c# | [0] |
4,999,494 | 4,999,495 | How to send images in MMS in Android programmaticaly | <p>I want to make Android apps for sending images using MMS. Here is the problem:</p>
<pre><code>final ConnectivityManager connMgr =
(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
final int result =
connMgr.startUsingNetworkFeature( ConnectivityManager.TYPE_MOBILE,
... | android | [4] |
3,037,860 | 3,037,861 | Show content only for organic traffic | <p>I want to show some content only for visitors from search engines,
can you help me please ? :)</p>
<p>I already have this php, but it show only for google.com but I want whole google and yahoo :)</p>
<pre><code>if(substr((trim($_SERVER['HTTP_REFERER'])), 0, 23) == "http://www.google.com/")
{
echo "Show what I ... | php | [2] |
3,286,901 | 3,286,902 | pure virtual and inline definition | <pre><code>struct device{
virtual void switchon()=0{}
};
int main()
{
}
</code></pre>
<p>I wrote code similar to following and it gave error.</p>
<blockquote>
<p>pure-specifier on function-definition
compilation terminated due to
-Wfatal-errors.</p>
</blockquote>
<p>When I asked him, he showed me the f... | c++ | [6] |
1,308,680 | 1,308,681 | How to get keyCode in android | <p>I have the following code:</p>
<pre><code>tv.setOnKeyListener(new View.OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEvent event) {
switch(keyCode)
{
case KeyEvent.KEYCODE_0:
Log.v(TAG, "Keycode_0");
return true;
... | android | [4] |
1,708,112 | 1,708,113 | Use php to generate snippet code of html or javascript | <p>Simply want to use php to generate snippet in javascript or html that can access images from another server if they meets criteria as they are registered and active.</p>
<p>Example.
if i have some users that have avatars if they want to embed their avatar on their own website they use snippet code generated by php ... | php | [2] |
2,556,527 | 2,556,528 | Android.mk file for Executable: accRuntimeTest | <p>Can you please tell me where I can find the Android.mk file for Executable: accRuntimeTest?</p>
<p>I am getting the following error when I compile android source on ubuntu 9.10. I think it misses a linker flag to link a library 'dlsym', I just don't know where is the Android.mk file I should go and fix it?</p>
<pr... | android | [4] |
4,698,491 | 4,698,492 | Python string list to string | <p>I am doing something painfuly simple, and rather than looping over the list, and += everything, I was wondering if there was a "sleezier" way to do it.</p>
<p>Simple concept I have something like:</p>
<pre><code>some_string_array = [ "s", "t", "a", "c", "k", " ", "o", "v", "e", "r", "f", "l", "o","w" ]
some_strin... | python | [7] |
1,050,580 | 1,050,581 | how to unblockUI relative when the page finished loading or a "content" finished loading | <pre><code>$(document).ready(function() {
$('#storefront').click(function() {
$(".centerdiv").load("storefront_a.php");
$.blockUI({ css: {
border: 'none',
padding: '15px',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-mo... | jquery | [5] |
5,498,349 | 5,498,350 | android- How to differentiate the Emulator and Device Programatically | <p>In My application one button is there. if you click on that button we are getting current Location. Based on this current Location i am doing some operations. In device it is working properly. But in emulator we are not getting the current Location thats why i am using the Some default Latitude and Longitude values ... | android | [4] |
1,098,839 | 1,098,840 | want to edit emulator settings to charge emulator battery in android? | <p>Here i am attaching emulator screenshot ,please see battery in screenshot any one suggest me how to charge battery.</p>
<p>I tried this with telnet commands but emulator is not responding.</p>
<p><img src="http://i.stack.imgur.com/Y60HT.png" alt="emulator image"></p>
| android | [4] |
1,684,991 | 1,684,992 | How to create a datatable in one method, and reference it in another? | <p>c#/oop noob here. I am creating a datatable from the schema of a sql server database. I want to have a button that lets the user pick some tables out of this schema and do something (insert rows for example). However, the method is unable to reference the datatable of my first method - how can I reference the data... | c# | [0] |
3,560,640 | 3,560,641 | T_IF error in php registration form | <p>I am trying to get an php registration form working, but i am having problems with an if/else statement. but can't quite figure it out.</p>
<pre><code>ERROR: Parse error: syntax error, unexpected 'if' (T_IF) in E:\xampp\htdocs\test\register.php on line 21
</code></pre>
<p>PHP Code :</p>
<pre><code>$username = $_P... | php | [2] |
3,944,646 | 3,944,647 | Store function result or call it each time? | <p>I have a class with a protected variable in it which can be get by a function <code>getVariable()</code>.</p>
<p>How much difference will it make if i'll call <code>getVariable()</code> every time instead of storing the result once and then use it? (the <code>getVariable()</code> does nothing more than <code>return... | php | [2] |
1,344,843 | 1,344,844 | PHP's passthru() vs shell_exec() | <p>The function <code>passthru()</code> is good when the output contains binary data as the function outputs the raw output. However, the documentation for the function <code>shell_exec()</code> does not say whether the data returned is binary safe (=raw).</p>
<p>So, my question here is that does <code>shell_exec()</c... | php | [2] |
2,054,303 | 2,054,304 | Android : How do i use authToken to send email | <p>Somehow I managed to get AuthToken from Google in android but now I can't find that how could I use this token to send email using the email id and the authToken without user interaction
Please provide some example.</p>
| android | [4] |
3,164,351 | 3,164,352 | How to refresh gridview after every insert command automatically? | <p>I am inserting data to database when i click submit button data inserted into Database but no changes get reflected in GridView without refreshing the page.
I used DataBind() also.</p>
| asp.net | [9] |
5,217,794 | 5,217,795 | Start and stop div scrolling between two other divs | <p>Someone else recently helped me out with the start of this question but I'm after a little more help. I currently have this working - </p>
<pre><code>var windw = this;
$.fn.followTo = function ( elem ) {
var $this = this,
$window = $(windw),
$bumper = $(elem),
bumperPos = $bumper.offset().top,
this... | jquery | [5] |
5,827,732 | 5,827,733 | Looking for ways to shorten my code that text aligns an array | <p>just started learning java. This takes an array and lines the columns up, but it seems like there would be a way shorter way of coding this. I have no ideas though.. </p>
<pre><code> int longestString = 0;
int numberOfChars;
String information[][] = { {"First Name:", "a" },
{"Last Name:", "b"},
... | java | [1] |
5,502,763 | 5,502,764 | Killing children of children in python with subprocess | <p>Does python provide a way to find the children of a child process spawned using subprocess, so that I can kill them properly? If not, what is a good way of ensuring that the children of a child are killed?</p>
| python | [7] |
4,729,064 | 4,729,065 | Animation triggering for the .hide() part of slideToggle, but not the .show() part | <blockquote>
<p>When I use .slideToggle on an element, it doesn't display an animation
for the "show" event, but it does do an animation for the "hide" part of
the toggle.</p>
</blockquote>
<p>I hope this is not an idiotic question, but i've been searching around and I cannot find an answer. I am just learning J... | jquery | [5] |
901,232 | 901,233 | C# : Looping forever foreach CheckedListBox item | <pre><code>foreach (CheckedListBox item in itemInfoCheckList.Items)
{
if (item.CheckState == CheckState.Checked)
SW.WriteLine(item.Text + " : YES");
else
SW.WriteLine(item.Text + " : NO");
}
</code></pre>
<p>THe above code... | c# | [0] |
4,331,512 | 4,331,513 | How to retrieve post vars sent by another page? | <p>I have a php page that opens and sends some variables to an external payment service (Sermepa). This page remains open while the payment process is active. When the payment process finishes it responds by sending a post request to a specified URL, without opening a browser window with the URL.</p>
<p>My question is... | php | [2] |
382,891 | 382,892 | Are there some practical examples that use Object::* | <p>I just heard of that there is a kind of type like this,a point to Object member. Here is it </p>
<pre><code>class Point{float x, y;};
float Point::*p2 = &Point::x;
</code></pre>
<p>but I haven't use before,and wonder some-body really use it.Do you have any experience of that?</p>
| c++ | [6] |
4,525,695 | 4,525,696 | How to replace multiple occurences of a string in a text file with a variable entered by the user and save all to a new file? | <pre><code> public static void main(String args[])
{
try
{
File file = new File("input.txt");
BufferedReader reader = new BufferedReader(new FileReader(file));
String line = "000000", oldtext = "414141";
while((line = reader.readLine()) != null)
{
... | java | [1] |
604,233 | 604,234 | How to find N facorial using a For loop? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5136447/function-for-factorial-in-python">Function for Factorial in Python</a> </p>
</blockquote>
<p>I need to write a program in python that returns N!, without using the factorial function. I have a program wr... | python | [7] |
785,890 | 785,891 | How to send report via email monthly automatically in asp .net | <p>can any one send me solution on this problem . Here i want to send crystal report that is automatically generated and attach to mail . Here report can be generated monthly automatically with asp .net along with c# Lang. Send me solution for this.</p>
| asp.net | [9] |
5,440,882 | 5,440,883 | What is the simplest way to have one PHP script execute a different PHP script and assign the value it returns to a variable? | <p>I'm hitting a wall with this. It's difficult to find an answer because I'm not sure how to word the question, and I can't think of decent keywords either.</p>
<p>I'm writing a view object for use in an MVC framework I'm writing and it assembles pages by tying script outputs together. I'm stuck on the tie together p... | php | [2] |
3,883,584 | 3,883,585 | Dictionary transformation and counter | <p>Object:</p>
<pre><code>data = [{'key': 11, 'country': 'USA'},{'key': 21, 'country': 'Canada'},{'key': 12, 'country': 'USA'}]
</code></pre>
<p>the result should be:</p>
<pre><code>{'USA': {0: {'key':11}, 1: {'key': 12}}, 'Canada': {0: {'key':21}}}
</code></pre>
<p>I started experiment with:</p>
<pre><code>result... | python | [7] |
1,353,328 | 1,353,329 | How this code works to add the cache value? | <pre><code>public static void Add<T>(T cacheObject, string keyName)
{
HttpContext.Current.Cache.Insert(keyName, cacheObject, null, Cache.NoAbsoluteExpiration,
TimeSpan.FromMinutes(30));
}
</code></pre>
<p>Hello friends I am new to asp.net my question is I have this code t... | asp.net | [9] |
1,025,811 | 1,025,812 | Is a control's OnInit called even when attaching it during parent's OnPreRender? | <p>My original understanding was that the asp.net page lifecycle is run once for all pages and controls under normal circumstances. When I attached a control during a container's OnPreRender, I encountered a situation where the control's OnInit was not called. OK, I considered that a bug in my code and fixed as such, b... | asp.net | [9] |
4,651,286 | 4,651,287 | How can i sell products through my android app (what are steps i have to follow) | <p>In my app i have several products to sell ,
if user clicks on any product it shows product details with pay button, how can i integrate paypal to that button,
i don't have good knowledge on integrating paypal please provide steps to do this.
thank you in advance.</p>
| android | [4] |
1,542,767 | 1,542,768 | Geolocation to Country Level | <p>I want to be able to determine just what country a person is in (on Android, without using the GPS), so I was thinking to use a web API, that I can call and it will return the country based on the request IP. But I can't find any web API that does this, does any exist?</p>
| android | [4] |
320,850 | 320,851 | PHP -> JavaScript | <p>Here is my PHP code..</p>
<pre><code>$input = "zergling-light"
$output = str_replace('-', ' (', $input).")";
$output = strtoupper(substr($input, 0, 1)).substr($input, 1);
echo $output;
// Prints.. Zergling (light)
</code></pre>
<p>..I'm extremely crappy with my JavaScript code, could someone help me convert this? ... | javascript | [3] |
1,623,568 | 1,623,569 | "Comparison method violates its general contract!" | <p>Can someone explain me in simple terms, why does this code throw an exception, "Comparison method violates its general contract!", and how do I fix it?</p>
<pre><code>private int compareParents(Foo s1, Foo s2) {
if (s1.getParent() == s2) return -1;
if (s2.getParent() == s1) return 1;
return 0;
}
</code>... | java | [1] |
437,958 | 437,959 | confused about compiling a basic java test program with package | <p>This is follow-up on my question:</p>
<p><a href="http://stackoverflow.com/questions/7593320/error-in-java-basic-test-program">error in java basic test program</a></p>
<p>This is still confusing me.
So specific problem is:</p>
<p>I already have a package and directory done.
say com.learn.java.mypackage</p>
<pre>... | java | [1] |
2,381,463 | 2,381,464 | how to implement search box in my application in android? | <p>i have one activity in my android application in which a list of orders is populated. I want to implement a search functionality on this activity so that user can search for particular order. </p>
<p>I have read about the search box facility provided by adding a <code>searchable.xml</code> file in the application b... | android | [4] |
2,347,539 | 2,347,540 | PHP caching class | <p>I'm a AS3 coder and i do a bit of php and i am having a hard time doing a static class that can cache variables.</p>
<p>Here's what i have so far :</p>
<pre><code><?php
class Cache {
private static $obj;
public static function getInstance() {
if (is_null(self::$obj)){
$obj = new stdClass();
}
... | php | [2] |
4,763,121 | 4,763,122 | How to display the contents of a directory | <p>I need to write a recursive algorithm to display the contents of a directory in a computer's file system but I am very new to Java. Does anyone have any code or a good tutorial on how to access a directory in a file system with Java??</p>
| java | [1] |
359,810 | 359,811 | How can I avoid rewriting construction logic present in initializer lists? | <p>Suppose I have a CPP class like</p>
<pre><code> class A {
A() :
max_(0),
num_(0),
sum_(0),
sum_squares_(0) {}
void Clear() {
min_ = bucketMapper.LastValue();
max_ = 0;
num_ = 0;
sum_ = 0;
sum_squares_ = 0;
}
void SomethingElse {}
}
</code></pre>
<... | c++ | [6] |
2,176,234 | 2,176,235 | FedEx Label image on pdf document | <p>I have a fedex shipping label obtained using FedEx API with php. I am using FPDF library to create a pdf document. I need to add the FedEx shipping label image in that document. The image has been generated with 4x6 (800 x 1200 pixels) inches dimensions and with 200 dpi and they say that we need to convert it into 9... | php | [2] |
809,129 | 809,130 | get file where class has been declared/required from | <p>how is it possible to get the file and line where a class has been declared from and/or required?</p>
| php | [2] |
3,095,050 | 3,095,051 | i want to draw circle around my current location and find out other users which are come in range of this circle on my google map in android | <p>in this my gps application i want to draw circle around my current location i did it ...but now i find out other users which are come in cirle range so i want popoup in my application screen so can anyboby help me...</p>
| android | [4] |
3,630,529 | 3,630,530 | Hide a div using jQuery when | <p>I have a list of items, each of which needs to show a div. Click on one, and it shows you a div with tweets in it. I've been able to successfully show the divs with jQuery. Unfortunately, I have no clue how to hide the divs when the user clicks outside of said div. I've tried fiddling around with the .not() selector... | jquery | [5] |
1,613,791 | 1,613,792 | How to get Uri of res folder? | <p>I am trying to get the Uri of an image I have in the drawable folder. I tried many possible ways but nothing seems to work. Can anyone suggest me how to get the Uri of res folder. Any help is much appreciated. </p>
| android | [4] |
1,693,702 | 1,693,703 | Stuck with date compare in php | <pre><code><?php
date_default_timezone_set('America/Los_Angeles');
$urlYear = '2013';
$currentYear = date('Y');
$systemDate = date('d-m-Y');
if ( ($systemDate >= '01-06-'.$currentYear) || ($currentYear < $urlYear) ) {
echo 'Here are your results <br>';
echo 'System Date '.$systemDate.'... | php | [2] |
4,066,481 | 4,066,482 | C# reading and writing from & to same file | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/605685/how-to-both-read-write-file-in-c-sharp">How to both Read/Write File in C#</a> </p>
</blockquote>
<p>I want to write and read text to and from the same text file. Here is the code </p>
<pre><code>TextWrit... | c# | [0] |
3,689,764 | 3,689,765 | String Comparison in Java...? | <p>why first comparison ( s1 == s2 ) displays equal whereas 2nd comparison ( s1 == s3 ) displays not equal....?</p>
<pre><code> public class StringComparison
{
public static void main( String [] args)
{
String s1 = "Arsalan";
String s2 = "Arsalan";
S... | java | [1] |
2,492,690 | 2,492,691 | Calling char method into main method | <p>How do I call this method into my main method: </p>
<pre><code> public static char shiftLetter(char aLetter, int offset){
if((aLetter >= 65 && aLetter <= 90) || (aLetter >=97 && aLetter <=122)){
char shifted = (char) (aLetter + offset);
return shifted;
}else{
... | java | [1] |
2,989,864 | 2,989,865 | Develop an android application to manipulate the data of remote server? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7681510/best-way-to-load-external-data-in-android">Best way to load external data in android</a> </p>
</blockquote>
<p>I want to develop an Android application to manipulate data on remote servers, but I don't k... | android | [4] |
5,798,032 | 5,798,033 | how to play song in my php web site when click on play link | <p>I need to play song in my php web site, when click on the play button.
but i don't know how implement this? Please advise.. Also which one is the best song file type to upload via input type file method . Is Mp3 ?
Please reply</p>
| php | [2] |
5,748,945 | 5,748,946 | the jquery script refresh back after it excecutes | <pre><code><script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".comment").click(function(){
$(".commentForm").slideToggle("slow");
});
});
</script>
</head>
</code></pre>
<p>this script above will slide in a fr... | jquery | [5] |
3,989,390 | 3,989,391 | DataRow conversion issue in asp.net | <p>How to convert system.data.datarow to an integer?</p>
<p>I Have a datarow which is returning the count of records which i want to store in an integer variable
The statement is as follows</p>
<pre><code>int TotalRecords=ds.Tables[1].Rows[0];
</code></pre>
<p>here ds is the DataSet.</p>
<p>when i am trying to writ... | asp.net | [9] |
110,103 | 110,104 | assigning value to a textfeild in Android application? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4590957/how-to-set-text-in-an-edittext">How To Set Text In An EditText</a> </p>
</blockquote>
<p>how can we assign value to a textfeild in android application?</p>
| android | [4] |
5,109,172 | 5,109,173 | is it possible to replace images in an array dynamically | <p>hi i am new to iphone.what i am need is to place a 20 images names in an array . if i place those images in an array whether it is possible or not to change replace the first image by last means changing the positions of images dynamically if it is not possible pls suggest in what way i can done this. pls post any s... | iphone | [8] |
2,947,176 | 2,947,177 | C++ setting reference variable in a class and afterwards changing | <p>Say I have a class Foo with a reference variable of type Bar and a constructor like so: </p>
<p>Foo.h: </p>
<pre><code>class Foo {
public:
Bar& m_b;
Foo(Bar& b);
}
</code></pre>
<p>Foo.cpp</p>
<pre><code>Foo::Foo(Bar& b) : m_b(b) {
}
</code></pre>
<p>And in a separate class I have:</p>
... | c++ | [6] |
3,882,619 | 3,882,620 | How to make Slide show for Apple iphone | <p>HI anyone Please let me know i need to Make a Slide show Application which can have 10 images and i need to keep all these Images in a Slide show manner </p>
| iphone | [8] |
5,765,746 | 5,765,747 | Using a variable as part of a variable name | <p>I have object1 which has many sub-objects in it. These sub-objects are accessed in the form <code>object1.subobject</code>. I have a function which returns a list of sub-objects of the original object. All I would like to do is iterate through the list and access each sub-object. Something like this: </p>
<pre>... | python | [7] |
4,068,290 | 4,068,291 | Getting extra data from server along with POST request | <p>So I've got some pagination working, but there's a variable I need access to (total pages). When I get the data to display in the table from changing the page (or otherwise updating the table), what's a good way to get the variable in the same request?</p>
| jquery | [5] |
2,359,488 | 2,359,489 | Android library project - how to get context? | <p>I have been happily refactoring code from different versions of the same app (paid/free) into Android library projects so that the actual apps can simply customize the library and reduce code duplication.</p>
<p>One thing I'm started to wonder is what getApplicationContext() inside the library code means? Is is the... | android | [4] |
3,843,949 | 3,843,950 | android: Flurry Ads Banner taking Full screen | <p>I am implementing flurry banner ads in my app. But it takes full screen.
My main activity.xml is</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:ba... | android | [4] |
2,646,150 | 2,646,151 | how to round up to the next x20 number with php? | <p>I know ceil, which will round 15.1 to 16 and 31.2 to 32.
But how to round up to the next x20 number? like 15.1 to 20 and 31,2 to 40?</p>
<p>Is needed to make sensefull labels for the y-axis of a chart.</p>
| php | [2] |
3,290,374 | 3,290,375 | every element of list is True boolean | <p>I know that</p>
<pre><code>all(map(compare,new_subjects.values()))==True
</code></pre>
<p>would tell me if every element of the list is True. However, how do I tell whether every element except for one of them is True?</p>
| python | [7] |
191,485 | 191,486 | can i use throw function on android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3217925/enable-exception-c">Enable Exception C++</a> </p>
</blockquote>
<p>when i use throw function ,like as follow:</p>
<pre><code>throw "SobelGradient => cannot allocate memory";
</code></pre>
<p>this er... | android | [4] |
4,358,315 | 4,358,316 | Swap value of two properties on object(s) | <p>I'm trying to make a simple function that will swap the values of two properties on the same or different global objects. </p>
<pre><code>object1 = {"key 1":"value 1"};
object2 = {"key 2":"value 2"};
swapValuesInObject ("object1['key 1']","object2['key 2']",true)
// should result in:
// object1 === {"key 1":"value... | javascript | [3] |
310,870 | 310,871 | multiple controls in UIView using IB | <p>How can I create multiple controls (such as UISwitch) in a UIView (or on top of UIScrollView) using the interface builder? I have about 20 such controls.</p>
<p>Appreciate any pointers.</p>
| iphone | [8] |
2,279,366 | 2,279,367 | Send data to server URL and read back responses | <p>I have a program that I have a text file full of raw data which I would like to send to a server. I have the URL of the server, and an Array which I have all the responses I need to send. I would like to send the responses then echo back what the server receives into a text box just to double check what's being sent... | c# | [0] |
4,081,672 | 4,081,673 | encapsulating javascript inside a namespace | <p>I'm looking to encapsulate my javascript inside a namespace like this:</p>
<pre><code>MySpace = {
SomeGlobal : 1,
A: function () { ... },
B: function () { ....; MySpace.A(); .... },
C: function () { MySpace.SomeGlobal = 2;.... }
}
</code></pre>
<p>Now imagine that instead of a few lines of code, I ha... | javascript | [3] |
5,408,974 | 5,408,975 | Get the number from the element's id | <p>I have some inputs as below:</p>
<pre><code><input type="hidden" id="selected_id-1" name="id[]" />
<input type="hidden" id="selected_id-2" name="id[]" />
<input type="hidden" id="selected_id-3" name="id[]" />
<input type="hidden" id="selected_id-5" name="id[]" />
</code></pre>
<p>The list c... | javascript | [3] |
2,685,641 | 2,685,642 | How to create a dynamic ASP:ImageMap | <p>I want to create an ASP:ImageMap with a dynamic number of hot spots. I tried the code below, but it complains about having a repeater nested inside an image map. Any ideas on how to do this?</p>
<pre><code> <asp:ImageMap ID="imgMap" runat="server" ImageUrl="~/circles.png"
HotSpotMode="PostB... | asp.net | [9] |
3,546,070 | 3,546,071 | Java program execution | <p>Please explain me how this program is behaving?</p>
<pre><code>class A
{
//public static String name = "asdf";
public static final String name = "asdf";
static {
System.out.println("static block inside A");
}
{
System.out.println("regular code block");
}
}
public class tt... | java | [1] |
1,385,307 | 1,385,308 | How to select images from a folder in a directory? | <p>am using a slideshow similar to <a href="http://tympanus.net/codrops/2010/05/23/fresh-sliding-thumbnails-gallery-with-jquery-php" rel="nofollow">http://tympanus.net/codrops/2010/05/23/fresh-sliding-thumbnails-gallery-with-jquery-php</a>, i want each image of a folder to be displayed instead of drop down as am tryin... | php | [2] |
4,207,039 | 4,207,040 | Handling map of files in c++ | <p>I need to write to a bunch of files simultaneously, so I decided to use <code>map <string, ofstream></code>.</p>
<pre><code>map<string, ofstream> MyFileMap;
</code></pre>
<p>I take a <code>vector<string> FileInd</code>, which consists of, say <code>"a" "b" "c"</code>, and try to open my files wi... | c++ | [6] |
2,218,952 | 2,218,953 | How to catch or receive android os ' broadcasts' of installed applications? | <p>I want to receive broadcasts of android installed applications. What would be the procedure ?</p>
| android | [4] |
2,234,974 | 2,234,975 | In C++, how do I correctly load a file into an array of wider than char data types? | <p>Specifically, I'm trying to program an FPGA with a binary file. The transaction register is 16-bits wide. So I need to create an array of uint16_t and fill it with an input file. Here is what I tried:</p>
<pre><code>int bufferSize = 512;
uint16_t buffer[bufferSize];
std::ifstream *pStream = new std::ifstream( fi... | c++ | [6] |
809,590 | 809,591 | Terminate android app | <p>I have an app with an intro screen, there will be two buttons in this screen (Ok and Cancel)</p>
<p>If the user clicks the cancel button the application will terminate, and if the user clicks the ok button ,the main screen appears, the main screen got a back button to go back to the intro screen.</p>
<p>Now, my pr... | android | [4] |
3,205,799 | 3,205,800 | Function-pointer syntax ambiguity | <p>Take the following example. I create a function pointer named <code>s</code>, set it to <code>f</code> and call it. This compiles fine of course:</p>
<pre><code>void f() {}
int main() {
void (*s)();
s = f;
s();
}
</code></pre>
<p>But take this next example, where I declare <code>s</code> now as a ... | c++ | [6] |
2,970,904 | 2,970,905 | Creating Js object with Object.create(null)? | <p>I know a lot of ways to create JS objects but I didn't know the <code>Object.create(null)</code> one.</p>
<p>and so : is it exactly the same as</p>
<p><code>var p={}</code> ? </p>
<p>vs</p>
<p><code>var p2=Object.create(null);</code></p>
<p>?</p>
| javascript | [3] |
5,270,039 | 5,270,040 | PHP Variables Link/Display | <p>I'm passing variables from my Flash MP3 player to a PHP script to record what songs have played. Now I want the PHP script to display one varable and include it in an Amazon link.</p>
<p>This is what I have but can't seem to get it to work.</p>
<pre><code><?php
$var1 = $_POST['var1']; //get the Artist Name an... | php | [2] |
3,842,527 | 3,842,528 | Java casting resulting in run-time error instead of compilation error | <p>The following code snippet will result in a run-time:</p>
<pre><code>class Vehicle {
public void printSound() {
System.out.print("vehicle");
}
}
class Car extends Vehicle {
public void printSound() {
System.out.print("car");
}
}
class Bike extends Vehicle {
public void printSou... | java | [1] |
4,618,019 | 4,618,020 | Issue with for loop of checkboxes | <p>I have series of checkboxes whom value I am taking and generating a string like....if checkbox is selected I add '1' to string and if it is not selected I add '0' to string. </p>
<pre><code><input type="checkbox" name="auth_0" id="auth_0" class="checkboxes" value="Yes"/>
</code></pre>
<p>My php script is...<... | php | [2] |
4,784,682 | 4,784,683 | Directly add Clip icon to Home Screen of an iphone when webapp is first accessed | <p>I want to know that is there any way that I can add my webapp's clip icon to the Homescreen of an iPhone directly when user first acessess my webpage through the Safari ?</p>
| iphone | [8] |
5,817,220 | 5,817,221 | Java Final - an enduring mystery | <pre><code>suggestBox.addKeyUpHandler( new KeyUpHandler() {
public void onKeyUp(KeyUpEvent event) {
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
String boxText = suggestBox.getText();
if (!boxText.equals("")) {
suggestPanel.add(checkBoxFactory(boxText, candidateNames));
sugge... | java | [1] |
5,434,007 | 5,434,008 | How to get elements where data-ZZZ is not blank | <p>I've got html that looks something like:</p>
<pre><code><div id="1" class="lineItem" data-options="">Line1</div>
<div id="2" class="lineItem" data-options="{size: M;}">Line2</div>
<div id="3" class="lineItem" data-options="{color: black;}">Line3</div>
</code></pre>
<p>Can I cons... | jquery | [5] |
4,449,170 | 4,449,171 | its it possible to have two ELSEIF clauses in a IF ternary? | <p>can this be made into an IF ternary to shorten the code? I don't know how to do it with multiple elseif clause</p>
<pre><code>if ($ext == "m") {
$extype = "mp3";
}elseif ($ext == "w") {
$extype = "wav";
}elseif ($ext == "a"){
$extype = "aac";
}
</code></pre>
<p>the is the full function </p>
<pre><code>function... | php | [2] |
2,399,182 | 2,399,183 | Convert HTML to PDF in ASP.NET | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/564650/convert-html-to-pdf-in-net">Convert HTML to PDF in .NET</a> </p>
</blockquote>
<p>How can i use the acrobat driver to covert web page to pdf , i have a icon on my browser. How can i use that in ASP.NET to... | asp.net | [9] |
5,255,263 | 5,255,264 | How to create torrent files using javascript | <p>I want to create torrent files with a Firefox extension written using javascript.
Torrent file creators are currently available as desktop applications in anything but javascript.
May be it is also possible to find a decent torrent file spec in java, as azurious, an open source p2p client, is written in java.
Can s... | javascript | [3] |
5,460,683 | 5,460,684 | Generate PDF when clicking on a link | <p>MY PROBLEM STATEMENT IS,</p>
<p>I have a set of links in a webpage,which was created in javascript.</p>
<p>Now what I want is if anybody clicks the link it should go to that
corresponding page and a pdf file should generate automatically. In
Ubuntu OS there is an option to generate PDF of any page, but how ... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.