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 |
|---|---|---|---|---|---|
1,303,975 | 1,303,976 | Android Development: Keypress/keyEvent | <p>Im developing an application and got stuck. i have a normal simple Button. What i want to do is that if i click this button it will behave just like you press the SPACE on the soft keyboard.</p>
<p>How do i do this. there must be a way because you can develop a softkeyboard.</p>
<p>So repeat xP How do i "inject" a... | android | [4] |
1,294,931 | 1,294,932 | what is the difference between StringBuilder and Stringbuffer? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/355089/stringbuilder-and-stringbuffer-in-java">StringBuilder and StringBuffer in Java</a> </p>
</blockquote>
<p>what is the difference between StringBuilder and Stringbuffer?</p>
| java | [1] |
5,250,971 | 5,250,972 | Missing expected identifier | <p>Getting message <code>expected identifier</code> in red for below these two statements </p>
<pre><code>} else if ([playpauseButton.state == UIControlStateSelected])
} else if ([playpauseButton.state == UIControlStateNormal])
</code></pre>
<p>I m not getting where i m missing identifier in below play/pause/resume... | iphone | [8] |
2,190,475 | 2,190,476 | Is it a good thing create jquery plugins | <p>So let's say i'm building a huge website, something close to facebook size, and i'm using jquery for most of the client side stuff, now obviously there is probably going to be at least 4k lines of code and thousands of ajax request etc..</p>
<p>So my question is fairly simple, what is the best way to build my jquer... | jquery | [5] |
3,134,782 | 3,134,783 | Error in moving file in php | <p>I have following script which is showing me warning on <code>move_uploaded_file</code>.</p>
<blockquote>
<p>Warning: move_uploaded_file(/home/oxfordmo/public_html/ticket/attachement/1320610829.docx) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/oxfordmo/public_html/ticke... | php | [2] |
1,117,922 | 1,117,923 | How to handle collection of sounds for a game? | <p>We are working on a number of games that have a variety of sound effects as well as spoken phrases and expressions. The current design stores the sound snippets as individual numbered files. A set of #defines maps a human-readable name to the file name. For example:</p>
<pre><code>#define SOUND_COOL ... | iphone | [8] |
4,733,571 | 4,733,572 | I need to write to a SQL Express db in my ASP.NET web site, is NETWORK SERVICE the account to use? | <p>I need to write to a SQL Express db in my ASP.NET web site, is NETWORK SERVICE the account to use?</p>
<p>Thanks</p>
| asp.net | [9] |
5,019,723 | 5,019,724 | Extracting string between <title> and </title> using PHP | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/3054347/php5-extracting-a-title-tag-and-rss-feed-address-from-html-using-php-dom-or-reg">(PHP5) Extracting a title tag and RSS feed address from HTML using PHP DOM or Regex</a><br>
<a href="http://stackoverflow.c... | php | [2] |
586,478 | 586,479 | What can cause a java.util.noSuchElementException? | <p>I'm getting a <code>java.util.NoSuchElementException</code> when running the following code, and I can't identify the cause of it:</p>
<pre><code>package jBittorrentAPI;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamRe... | java | [1] |
1,558,496 | 1,558,497 | Jquery slideshow | <p>Help me to find some jquery plugin like this - <a href="http://fr.grandluxuryhotels.com/hotel/hotel-du-palais/offre-speciale/633-imperial-gourmet/" rel="nofollow">http://fr.grandluxuryhotels.com/hotel/hotel-du-palais/offre-speciale/633-imperial-gourmet/</a> ... Wide photos miving and changing each oother</p>
| jquery | [5] |
3,324,703 | 3,324,704 | Python USSD via com port | <p>I am new to python. Is there anyway i can use python to send ussd with a phone via at+cusd commands. i can do that using hyperterminal. i want to automate using python. thanks.</p>
| python | [7] |
5,161,420 | 5,161,421 | Accessing JavaScript objects | <p>Can someone please explain this bit of piece of code?
Thanks.</p>
<pre><code> alert({foo:"test foo", bar:"test bar"}.bar); // "test bar"
</code></pre>
| javascript | [3] |
1,253,881 | 1,253,882 | user input field | <p>how to create the database where allow user to key in the goal time?
Based on the code below, the goal time has been assigned, so i would like to change that code and allow user key in the goal time as input..is it possible to do that? </p>
<pre><code><?php
$currenttime = date("H:i:s");
$goaltime = "04:10:00";
e... | php | [2] |
4,351,266 | 4,351,267 | In which memory static variables,local variables are presents? | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/405364/whats-up-with-static-memory-in-java">Whats up with static memory in java?</a><br>
<a href="http://stackoverflow.com/questions/6569557/what-is-the-actual-memory-place-for-static-variables">What is the actua... | java | [1] |
5,409,624 | 5,409,625 | problem with simple dll in c++ | <p>Hello
i do not use c++ but i try to make a simple dll in c++ by usin Microsoft visual studio 2008 this my steps
1-new project
2-select win32 and chose win32 project
3- from the win Application Wizard i chose Dll and in Additional Option i celect Empty Project
4-right click "Source Files" and add new item<br>
5- ch... | c++ | [6] |
2,520,905 | 2,520,906 | How to get items from feed in iphone? | <p>iam developing RSS Reader, i need to get the items from the given Feed URL.I used Touch XML for this, but this is very slow.Is there any faster way? thanks.</p>
| iphone | [8] |
1,884,850 | 1,884,851 | Execute multiple jQuery effects on the same element in parallel | <p>I see that this question was asked many times, but none of the solutions worked for me.
I have two effects that I want to execute in parallel.</p>
<p>I want the box to fade-in and bounce simultaneously:
<a href="http://jsfiddle.net/6VVUG/">http://jsfiddle.net/6VVUG/</a></p>
| jquery | [5] |
1,303,085 | 1,303,086 | unble to replace string | <p>This is my replace method in java but unble to replace for following.</p>
<p>It replace only one \</p>
<p>Please help. If any body have any different method for replace?</p>
<p>I had tried java standard API but that is not working can please try following senario
--> System.out.println(replace("this%s is the pro... | java | [1] |
4,794,444 | 4,794,445 | using LARGE_INTEGER gives me back error error C2679: '=' binary no operator found which takes a right-hand operand | <p>i have the following code:</p>
<pre><code>QueryPerformanceCounter(&timeStart);
winMain::render(); //do stuff
QueryPerformanceCounter(&timeEnd);
numCounts = ( timeEnd.QuadPart - timeStart.QuadPart);
</code></pre>
<p>All the 3 variables are declared as LARGE_INTEGER, the code should work since im following a... | c++ | [6] |
3,189,028 | 3,189,029 | Is it possible to animate each line of text with jquery? | <p>Is it possible to reveal text one line at at time in jquery? I know it can be done in flash I have an example here <a href="http://iliketoplay.dk/#/blog/deff" rel="nofollow">http://iliketoplay.dk/#/blog/deff</a>. On the video playing, the mouse clicks a circle which opens a box that contains text but each line of t... | jquery | [5] |
570,977 | 570,978 | Is it possible to Left align the Gallery Images in android? | <p>Images in the gallery view are starting from the center.How to make the images start from the left edge of the Gallery in android?</p>
| android | [4] |
1,575,457 | 1,575,458 | Extracting data from a window in an application using c# | <p>I have an application which consists of a couple of windows along with
the main one. Please help me to extract some data present in one of these
windows using c#.. </p>
| c# | [0] |
429,002 | 429,003 | Android : Writing part of text file to another file | <p>I have a multipart format text file. i am going threw the file looking for start of content and from then on writing the content to another file until i hit end of content.</p>
<pre><code>FileInputStream in = new FileInputStream(getContentPath());
InputStreamReader sr = new InputStreamReader(in, "UTF-8");
Buffere... | android | [4] |
3,167,186 | 3,167,187 | Unable to delete a developer's certificate | <p>I mistakenly imported someone else's certificate(with his priv key) to my mac, and now I have two developer's certificates shown in my xCode. When I delete the unneeded certificate with its key in "Keychain Access", both the cert and the priv key magically reappear after sometime, how can I get rid of this? Is it au... | iphone | [8] |
5,233,137 | 5,233,138 | addProximityAlert and BroadcastReceivers | <p>I am currently working on a map app that has points of interest built into it.
These points are supposed to be announced to the user by means of a proximity alert trigger.
Here is the addproximityAlert() code that I'm using</p>
<pre><code>loc.addProximityAlert(lat, longe, radius, -1, PendingIntent.getActivity(
... | android | [4] |
1,003,005 | 1,003,006 | C++ Loop: expected primary-expression before ‘;’ token | <p>I have a loop like below, I think the problem is with the inner for loops marked "See here". Whats the problem with that? </p>
<pre><code>// measure time to write different sizes of data
for (int i = 0; i < sizeof(sizes)/sizeof(int); i++) {
lengthMod = sizes[i]/sizeof(int) - 1;
start = wall_clock_time()... | c++ | [6] |
898,039 | 898,040 | Modify jQuery function to add onload | <p>I have a page with several drop-down selectors. When an option is selected a matching piece of HTML is found and placed in the immediately following the drop-down. When selection is made a function checks to make sure that not of the previously selected options is selected again...</p>
<hr>
<p>UPDATE: Sorry, not ... | jquery | [5] |
1,401,479 | 1,401,480 | Use PHP to convert PNG to JPEG | <p>I have a website where users have been uploading a bunch of high quality PNG files. I want to use PHP to convert them to JPEG and re-size them to make them smaller in file size.</p>
<p>How can I do this when they upload the file? What is the process for doing this? Is a new image created or is it edited? </p>
<p>T... | php | [2] |
112,834 | 112,835 | setting a variable to each element of an array | <p>i have function:</p>
<pre><code>function getFieldNames(arrayOfRecords) {
var theStuff;
for (var i = 0; i = arrayOfRecords.length - 1; i++){
theStuff = arrayOfRecords[i];
theList = theStuff.split('" ');
for (var j = 0; j = theList.length - 1; j++) {
var v = theList[j].split('="');
fName1[... | javascript | [3] |
946,061 | 946,062 | How to append to a JavaScript array dynamically? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2250953/how-do-i-create-javascript-arrayjson-format-dynamically">How do I create Javascript array(JSON format) dynamically?</a> </p>
</blockquote>
<p>I am attempting to create the following:</p>
<pre><code>var ... | javascript | [3] |
3,592,983 | 3,592,984 | How to use external projects in an ASP.NET project | <p>UPDATE :
It turned out that the project I was referring to was a console app. Rebuilding it as a class library was the solution.</p>
<p>I guess this should be an easy one : </p>
<p>I have only just started ASP.NET and for now need it only as a tool for some quick intranet reporting. I have an existing project ... | asp.net | [9] |
1,199,268 | 1,199,269 | Custom PHP App with a wordpress site | <p>I have created a new 'page template' and (this is probably not the right way to do this, but this is the way I have got it working), and created a new page using that template. Within the page template (PHP file) I have made, I have put lots of PHP which makes the page function, like it has a simple login an view i... | php | [2] |
5,836,944 | 5,836,945 | ECG healthcare monitoring system in android | <p>i just need to do ECG healthcare monitoring system in android.I don't have any idea regarding that. what are the necessary things & how could i do that.?Pls help me.Its urgent.Thanks in advance.
Rgds,
Sudhir.</p>
| android | [4] |
834,622 | 834,623 | How can I change the entered key through keyboard outside my application in C#? | <p>I am trying to change the entered key by keyboard.</p>
<p>I have managed to restrict key entered by keyboard.</p>
<p><strong>Code in C#:</strong></p>
<pre><code> using System.Runtime.InteropServices;
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent()... | c# | [0] |
205,978 | 205,979 | Make a relativeLayout and it's child im my case an imageview act like one button | <p>Hi im trying to accomplish the following layout.</p>
<p>I have two RelativeLayout, each one contains a TextView and an ImageView. </p>
<p>the imageView show to the user the choice that he picked!!.These two picture explains more what i want to do:</p>
<p><img src="http://i.stack.imgur.com/CVD7N.jpg" alt="normal s... | android | [4] |
389,599 | 389,600 | PHP emulator based website | <p>I want to make a website which is containing a mobile and i want to open a website inside this interface like mobile emulator.I tried with Iframe but this is not working properly.
Any idea ?
thanks</p>
| php | [2] |
3,399,393 | 3,399,394 | App works on real phones but no longer on emulator | <p>My app works on two different phones, but it no longer works on the emulator. I immediately get the stopped unexpectedly error on the emulator. I have rebooted my computer, and it did not change things. I am at wits end!</p>
<p>The debugger shows this:</p>
<pre><code>Thread [<1> main] (Suspended (exception R... | android | [4] |
370,355 | 370,356 | How can I popup when no connection the default Connection Failed dialog? | <p>Whenever a application needs internet and connection fails, I get a message dialog </p>
<p><code>Connection failed<br>
This application requires network access. Enable mobile network or Wi-Fi to download data.</code></p>
<p>and two buttons, Settings, Cancel.</p>
<p>How do I detect there is no internet connection?... | android | [4] |
5,492,112 | 5,492,113 | Invalid view state exception in asp.net. do you know any solution? | <p>this problem make me crazy!
i have asp.net website it raise periodically this error (in IE8):</p>
<pre><code> System.Web.HttpException: Invalid viewstate.
at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType)
at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler
.Proces... | asp.net | [9] |
648,926 | 648,927 | Parse csv file and generate graphs in HTML file using C# | <p>I want to parse one csv file and generate the charts/graphs in the html file.
I have worked with Microsoft Charts for Win Form Apps but dint find a way to extract/export them to HTML file.
Can anyone help me with that?</p>
<p>thanks in advance.</p>
| c# | [0] |
2,602,907 | 2,602,908 | reading a file saved by another app in iphone | <p>Is there a way to have an app write a into a file and then have another app read from that file?</p>
<p>I mean writting into the file system of the iPhone.</p>
<p>I want to do this without using an internet connection. So uploading the file and then downloading from the other app is not what i mean.</p>
<p>Thanks... | iphone | [8] |
466,083 | 466,084 | Python Scripts for mac, how to run a program and get value back | <p>I am trying to build a script in python to mac OS, I need the script to run two other scripts; the only thing my scripts does is run a website, and return value 1 or 0. </p>
<p>I just need to get the values, in windows i am getting then from CMD with "Exit value". </p>
<p>But i am new to mac, and in my job i need ... | python | [7] |
81,769 | 81,770 | image enlarge onmouseover | <p>I need a script which will be applied to a set of images around a circle..</p>
<p>Now whats required through script is that</p>
<p>on mouseover image around the circle should get enlarged and should move to the centre.</p>
<p>How to do this using Javascript and CSS.</p>
<p>Be specific about the attributes of CSS... | javascript | [3] |
2,889,435 | 2,889,436 | Referencing an observablecollection from the class | <p>I have a class called <code>NewsEntry</code> and news entry is part of an observable collection called <code>NewsItems</code>.</p>
<p>What I want to do is create two functions inside <code>NewsEntry</code> called <code>following</code> and <code>previous</code>.</p>
<p>in pseudo-c# it needs to do this.</p>
<pre><... | c# | [0] |
84,697 | 84,698 | Scroll a div with Jquery | <p>I have a click function that slides a contact form down from the top of the page and pushes the rest of the page down. I have an absolute position DIV which stays where it is currently and I need it to scroll down as if it didn't have an absolute position.</p>
<pre><code>$("#contact-tab").toggle(function() {
$(... | jquery | [5] |
2,103,070 | 2,103,071 | Avoid (limit) low memory force close of an activity | <p>I have a problem with an activity force close in android when memory fell down.</p>
<p>My activity has a button that calls a particular class, where some tasks are performed in a separate thread (it should take up to 10').
On the emulator I have no problem, but on the phone sometimes the activity went closed for l... | android | [4] |
4,824,694 | 4,824,695 | How can I let my function crash? | <p>In certain cases I want my function to simply crash and my app to stop execution:</p>
<pre><code>public void foo() {
if(lifeIsWorthLiving) {
/*code ...*/
}
else {
/* log the problem, throw an exception and die */
}
}
</code></pre>
<p>Now if I add <code>throw Exception("lifeIsWorthL... | java | [1] |
1,710,586 | 1,710,587 | wakelock disable slider | <p>Have I completely mis-understood android Wakelock?</p>
<p>I want the screen to dim and shut down; but on the wake button being pressed, I don't want the user to then have to do a slide to open the running app - I want that app immediately available in the state it was left in.</p>
<p>Is that possible?</p>
| android | [4] |
4,962,702 | 4,962,703 | Input Method without a view | <p>I have a service that gets Unicode characters over WiFi, which should be entered to a EditText in which the cursor is currently positioned (sort of a remote desktop)</p>
<p>I'm trying to figure out what will be the best way to input text to EditText views (and similar view) without showing a keyboard layout on the ... | android | [4] |
52,005 | 52,006 | How to pass a click on an image from one activity to another? | <p>In my application i created a button when the button is clicked it will load all images from the sdcard.</p>
| android | [4] |
950,938 | 950,939 | How do I use jQuery to return the class of each checked checkbox as they are checked? | <p>I am using jQuery for the first time (my js knowledge is poor at best) and attempting to create a Section filter (hides/shows divs depending on class) that is based around checkbox options.</p>
<p>To start with I was wanting to retrieve the class of each checkbox that was checked so I have something like this (the ... | jquery | [5] |
1,451,886 | 1,451,887 | Find out what exception is being thrown in PHP | <p>I'm trying to learn PHP on the fly here, and something is broken, but I am unsure how to figure out what the problem is. An exception is being thrown, and I was able to isolate the line that is throwing the exception by printing debugging messages, but how do I figure out the nature of the error that is being throw... | php | [2] |
5,227,618 | 5,227,619 | Reverse the contents of Array | <p><strong>This is what I need to do</strong></p>
<p>Ability to reverse the contents of a single dimensional array of variable size, without using another temporary array.</p>
<p>Given a single dimensional array of integers, numbers, write the Java code to reverse the contents of numbers in-place without using a temp... | java | [1] |
4,586,149 | 4,586,150 | Reading a full line of input | <p>I'm trying to store the input that user enters through console. so I need to include the "enter" and any white space.</p>
<p>But <code>cin</code> stops giving me input after the first space.</p>
<p>Is there a way to read whole lines until CTRL+Z is pressed, or something?</p>
| c++ | [6] |
4,985,603 | 4,985,604 | How to check existence of a JAR file and a specific file inside JAR? | <p>Assume the file name is in this URL:</p>
<pre><code>URL file = new URL("jar:file:/path/to/foo.jar!/META-INF/file.txt");
</code></pre>
<p>This operation leads to <code>IOException</code> if there is no <code>foo.jar</code> or there is no <code>file.txt</code> inside the existing jar:</p>
<pre><code>import org.apac... | java | [1] |
1,829,260 | 1,829,261 | Get the "size" (length) of a C++ function? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4156585/how-to-get-the-length-of-a-function-in-bytes">How to get the length of a function in bytes?</a> </p>
</blockquote>
<p>I'm making a Hooking program that will be used to insert a method into the specified ... | c++ | [6] |
3,549,664 | 3,549,665 | Trying to place javascript statements in an array | <p>I have the line <code>document.getElementById('slot2').src ="snail.gif";</code> in my code and it works to change the img element to the appropriate gif.</p>
<p>However I also have an array called slots of three elements each of which is <code>document.getElementById('slotN')</code> or 1 2 and 3 in place of N.</p>
... | javascript | [3] |
252,658 | 252,659 | Jquery change input text value | <p>this is driving me nuts! I can't find the right selector for:</p>
<p></p>
<p>I want to change the value to = 000000</p>
<p>Shouldnt this work?:</p>
<pre><code>$("text.sitebg").val("000000");
</code></pre>
<p>Regards
Joricam</p>
<p>PS: I need the selector to find the "name" not the id of the text input.</p>
<p... | jquery | [5] |
5,359,825 | 5,359,826 | UIViewController orientation changes in a UINavigationController stack | <p>I have a UINavigationController with two UIViewControllers on it (A and B). From A, I push B onto the stack. Then the user re-orients the device. I need to move some things around the screen (buttons, etc) to be visible in the new orientation on A.</p>
<p>I find that -shouldAutorotateToInterfaceOrientation is ge... | iphone | [8] |
5,778,895 | 5,778,896 | alternate method of Mootools addEvent in Jquery | <pre><code>$('test_div').addEvent('click', function() {
formElement = $$('.field_search_criteria')[0]; // get it from <form class="field_search_criteria" id="field_search">
// On search
formElement.addEvent('submit', function(event) {
event.stop();
alert(formElement.t... | jquery | [5] |
1,614,988 | 1,614,989 | AIDE Won't Build App Stuck on "Running AADT" Stage | <p>I've moved an app to mmy device so that AIDE can build it and so I can install but it is stuck at the AAPT stage. Any suggestions?</p>
| android | [4] |
2,036,914 | 2,036,915 | How do I work with appended divs? | <p>I'm a massive newbie to jquery so please excuse my lack of knowledge, how do I go about doing anything with the elements i've appended here? for instance I want to have all but the first '.larger' to be hidden when these elements are appended. thanks.</p>
<pre><code>function loadXML()
{
$.ajax({
typ... | jquery | [5] |
5,448,023 | 5,448,024 | Configuring Asp.NET Application in subfolder - Without IIS config | <p>I have a free hosting account, and two ASP.NET project.<br/>
<br/>
I want to upload both apps in my hosting, like:<br/>
<code>www.hosting.com/myaccount/project1/</code><br/>
<code>www.hosting.com/myaccount/project2/</code><br/>
<br/>
But the problem is when I run project1 or project2<br/>
Asp.net considers <code>app... | asp.net | [9] |
2,597,412 | 2,597,413 | Suggestions for archive file creation and validating the archive file during iphone uploading process | <p>I am trying to upload an iphone application.I've got my certificates (development and distribution ) the App id is also available in my provisioning profile on the developer section of apple.com and my app is awaiting upload in iTunes connect.</p>
<p>I manage to get my app archived but when i try to validate it i g... | iphone | [8] |
3,898,165 | 3,898,166 | How can I play continuous music in the background when my iPhone app is running? | <p>I want to run light music (non-stop) when user is running my application actively. When user exits my application, then the music will be stopped automatically. I tried the following code to execute continuous music play (that is, play the music on a loop). But it doesn't actually loop; it ends the music once said m... | iphone | [8] |
5,376,915 | 5,376,916 | Suggestions for inbox notifications in android? | <p>i have few activities in android application with inbox Textview in the title.</p>
<p>i want to implement something like Inbox(Number of messages) to be shown on each screen</p>
<p>any one guide me what is the suitable way to show number of messages in each screen title bar?</p>
<p>one of my friend is calling web... | android | [4] |
212,577 | 212,578 | How to iterate over two Collections of Objects simultaneously? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1365793/how-to-most-elegantly-iterate-through-parallel-collections">How to most elegantly iterate through parallel collections?</a><br>
<a href="http://stackoverflow.com/questions/2118932/is-there-an-accepted-java... | java | [1] |
4,151,402 | 4,151,403 | use of HTMLEditor or HTMLEditorExtender in asp.net 2008 .net 3.5 with database storage details | <p>I am making one project of online examination, I am finding problem in maths paper bcz
i can't write maths equations in our asp.net textbox, So i need to use HTMLEditor or AJAX Editor Extender. So I need help to use this control in our application or web page.</p>
<p>How to use this control, because I tried it with... | asp.net | [9] |
4,199,190 | 4,199,191 | is it possible to intigrate google checkout with iphone? | <p>i want to know...is it possible to integrate googlecheckout with iphone?</p>
| iphone | [8] |
2,469,885 | 2,469,886 | Android longClickEvent and swipe event together | <p>I have an activity with a ViewFliper. Also it contains GestureListener for swipe events.</p>
<p>ViewFlipper contains various views. One of them has multiple elements witch expect longClick.
Basicly It looks like that:</p>
<pre>
FlipperView
Container
Element1
Element2
Element3
</pre>
<p>My pro... | android | [4] |
2,397,409 | 2,397,410 | Why fadeOut() wait delay() and hide() not? | <p><a href="http://jsfiddle.net/RsVF2/" rel="nofollow">This</a> you will find an example :</p>
<pre><code><div id="first_div">First Div<div>
<div id="second_div">Second Div<div>
$('#first_div').show().delay(2000).fadeOut(300);
$('#second_div').show().delay(2000).hide();
</code></pre>
<p>as yo... | jquery | [5] |
2,921,503 | 2,921,504 | Get autocomplete selector after ajax call | <p>I am trying to find the selector of a jquery autocomplete in the "success" after making an ajax call. In the "success" I am looking for $(this) to be $(".itemDescInput") but it is not. How would I find that selector at that point?</p>
<pre><code>$(".itemDescInput").autocomplete({
source: "invoices/invoice_ite... | jquery | [5] |
588,106 | 588,107 | how to assign variable value to jquery? | <pre><code>var s="attr"
var i=$(s)
// jQuery(elem).attr(attr,eval("elm"+attr));
jQuery(elem).$(s)(attr,eval("elm"+attr));//i tried this.
</code></pre>
<p>how to assign a variable name in the above code(in place of s) so that i need to add an attribute to the element "elem".</p>
| jquery | [5] |
2,706,924 | 2,706,925 | Is this the correct way of using a void* member pointer? | <p>Can I use the method doSomething like this; first having assigned the pointer to the A class to the void* member of b?</p>
<pre><code>class A
{
public:
A(int);
int m_x;
int doSomething(){};
};
class B
{
public:
void* m_y;
};
#include "x.h"
using namespace std;
A::A(int x)
... | c++ | [6] |
2,040,592 | 2,040,593 | Only getting DatePickerDialog's value when Done button is being pressed | <p>By referring <code>DateWidgets1.java</code> in API demo, I tend to show date picker widget through the following way.</p>
<pre><code>private void initDateTextView() {
dateTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
showDialog(DA... | android | [4] |
4,023,451 | 4,023,452 | retval = false && someFunction(); // Does someFunction() get called? | <p>I'm currently working with the Diab 4.4 C++ compiler. It's a total POS, non ANSI-compliant, and I've found problems with it in the past.</p>
<p>I'm wondering if the following problem is an issue with the compiler, or a shortcoming in my knowledge of C++</p>
<p>I realize that the form of x = x && y; will sh... | c++ | [6] |
915,590 | 915,591 | Linq Query - Selective Fields as DataTable? | <p>I want to create a datatable from linq query.
The below code selects all filed, but i need select few fileds like "door_no","street_name","city_name","post_code","date of birth" and need to create it as Datatable.</p>
<pre>
var Results = from SelRow in MyDtb1.AsEnumerable() where SelRow.Field("door_no") != null se... | c# | [0] |
3,836,158 | 3,836,159 | jquery using data for cross-function variables | <p>Hey all. Basically I have a page full of text input fields with default values in them.</p>
<p>When a user focuses on the input, I want the value to be set to nothing, but then if the user focusses out (on blur) and the input is still empty, I want to change its value back to what it was originally.</p>
<p>At the ... | jquery | [5] |
4,804,915 | 4,804,916 | java scanner - how to split a mac address? | <p>The mac address string may be in format:</p>
<p>00:aa:bb:cc:dd:ee</p>
<p>or </p>
<p>00aabbccddee</p>
<p>I need a good way to retrieve the 6 parts. </p>
<p>Here my code:</p>
<pre><code>public class Mac
{
public static void main(String[] args)
{
String mac = "00:aa:bb:cc:dd:ee"; /* 00aabbccddee *... | java | [1] |
3,400,073 | 3,400,074 | Login page that resolves direct url copy paste issue | <p>I have to make Login page in asp.net.</p>
<p>But this is not happening when I copy and paste the direct URL in browser.
How can i achieve that?</p>
<p>Example: If I have project.aspx and login.aspx and Project.aspx should not get accessed without Login.aspx even if URL is pasted in browser.</p>
| asp.net | [9] |
5,667,552 | 5,667,553 | List view customization issue while scrolling | <p>I have the below code which overrides the getView, What i want is always the first row should show some custom view and the item cell below this first will show regular cells. My code works fine without any errors, but when i scroll the first cell get repeat after continuos use of scroll upside down, Please refer th... | android | [4] |
4,060,190 | 4,060,191 | plus and non-plus for id-beginner wonder | <p>I am an Android beginner and I don't understand what exactly the plus (+) before <code>id</code> reference means.
The tutorials I found on the web only say it is for <code>new id reference</code> and non-plus definition means it references the defined <code>id</code>. Could you offer an example to clarify my non-und... | android | [4] |
2,348,031 | 2,348,032 | how to get click or tab select a panel? | <p>how to get a click or a tab to select either north, west, or center panel?
This is tab code works but don't know how to integrate it with a click-panel code</p>
<p><strong>JAVASCRIPT :</strong></p>
<pre><code>$(document).ready(function(){
var divs = ["north", "west", "center"];
var startIndex = 0;
$(do... | jquery | [5] |
3,880,890 | 3,880,891 | Is there a quasi-standard set of attributes to annotate thread safety, immutability etc.? | <p>Except for a blog post here and there, describing the custom attributes someone created, but that do not seem to get any traction - like one describing how to <a href="http://blogs.msdn.com/b/kevinpilchbisson/archive/2007/11/20/enforcing-immutability-in-code.aspx">enforce immutability</a>, another one on <a href="ht... | c# | [0] |
4,519,260 | 4,519,261 | Check for binary string length? | <p>Is there a native or inexpensive way to check for the length of a string in bytes in PHP?</p>
| php | [2] |
5,080,976 | 5,080,977 | Android InAPP Purchase? | <p>I have a Wallpaper APP, with several wallpaper. Some Wallpaper's have a price (0.2 euro).</p>
<p>Can I use InApp purchase to buy a wallpaper OR I can only sell my APP with InAPP Purchase?</p>
<p>Thanks,
Leslie</p>
| android | [4] |
2,063,018 | 2,063,019 | Detect application foreground event | <p>Does anybody know some event listener for detecting when the application comes back to the foreground from the background? I searched a lot, but I didn't find such a listener. Any other solution is appreciated. Thank you!</p>
| android | [4] |
4,732,627 | 4,732,628 | check if one value exists in an array | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2440506/how-to-check-if-an-array-value-exists">How to check if an array value exists</a> </p>
</blockquote>
<p>I have a problem in PHP. So, my problem is that I want to see if a particular value exists in a sess... | php | [2] |
1,707,308 | 1,707,309 | How can I set the Page.User Property in ASP.NET? | <p>This is mostly a theory question, for example if I wanted to create my own alternative to forms authentication.</p>
| asp.net | [9] |
3,876,613 | 3,876,614 | Getting sms while phone is asleep | <p>I have an app that receives sms (via BroadCastReceiver) and starts an Activity to handle incoming sms (including playing a sound to notify user, updating database and showing a message to user). </p>
<p>The problem is that sometimes that app is not running and mobile is asleep, I receive nothing but as soon as I un... | android | [4] |
2,509,029 | 2,509,030 | how to find email has been delivered in android | <p>how to find email has been delivered in android</p>
| android | [4] |
2,607,083 | 2,607,084 | assign onclick event to function | <p>I want to call a function onclick and pass the event object to the function:</p>
<pre><code> progressBarOuter.onclick = function(e) {
var x; if (!e) {
x=window.event.clientX;
}
else {
x = e.clientX
}
yt.clickedOffset = x; yt.progressBarClicked
}
</code></pre>
<p>S... | javascript | [3] |
1,340,676 | 1,340,677 | How to check if a date is in a given range of day+month? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/976669/how-to-check-if-a-date-is-in-a-given-range">How to check if a date is in a given range?</a> </p>
</blockquote>
<p>Having each year divided into periods such as</p>
<pre><code>from 11-28 to 01-20
from 01-... | php | [2] |
3,473,948 | 3,473,949 | How to assign text size in sp value using java code | <p>If I assign an integer value to change a certain text size of a TextView using java code, the value is interpreted as pixel (px), now does anyone know how to assign in sp?</p>
| android | [4] |
3,542,367 | 3,542,368 | How do i search the java api? | <p>Since the java api page has no search function, at least not one that I see. How do I find out what methods are in which packages?</p>
| java | [1] |
15,729 | 15,730 | selected dropdown list value changes after page reload | <p>I have a <code>dropdown</code> list in my application's layout . So in every page it is visible . In the <code>dropdown</code> list I have a list of hotels , when I change a hotel in <code>dropdown</code> , it redirects to the main page , with the changed <code>id</code> , it works fine , but the problem is when rel... | jquery | [5] |
1,264,344 | 1,264,345 | create a string of variable length in python | <p>i need to create a string consisting of spaces, and the length of the string needs to be determined at runtime.</p>
<p>here is what i am doing:</p>
<pre><code>suffix = "".join([' ' for x in range(0, max)])
</code></pre>
<p>There must be a <strong>better</strong> way, a more <strong>clever</strong> way, and an <st... | python | [7] |
2,938,399 | 2,938,400 | how to find the index based on rowposition and column position | <p>I have an two-dimenstional array..</p>
<p>I know the rowposition and column position.</p>
<p>How to find the index of the array based on the row position and column position.</p>
<pre><code>Ex: if rowPosition =1 and columnPosition = 1,
</code></pre>
<p>the index should be 2.
The Pictorial representation is</p>
... | javascript | [3] |
1,864,367 | 1,864,368 | how to play video in webview by html 5 | <p>I have problem, i can't play video in webview by html5 here,my code</p>
<pre><code> webView = (WebView) findViewById(R.id.web);//new WebView(this);
webView.setBackgroundColor(android.R.color.transparent);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);
webView.g... | android | [4] |
5,296,594 | 5,296,595 | rollover images with Jquery | <p>Beginner question here. I'm going to make a Jquery function that is used to change an image when hovering over it. I use the id name as the selector. How do I make it generic so that I don't have to have a copy of the function for every single tag with a rollover image?</p>
<pre><code>$("#home img").hover(
... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.