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,574,717 | 3,574,718 | How to get webcam on webpage with jquery? | <p>I'm trying to get a webcam on my webpage,<br>
it doesn't need to take a picture yet, but just the screen of what the webcam sees.<br>
I can't get it working at the moment. </p>
<p>I used this website: <a href="http://www.xarg.org/project/jquery-webcam-plugin/" rel="nofollow">http://www.xarg.org/project/jquery-webc... | jquery | [5] |
2,372,790 | 2,372,791 | Problem with adding an icon to a button with jquery ui | <p>All of my other buttons are showing up formatted correctly, with icons attached, aside from the createSave class button, in the after() function string. Anyone know what's up?</p>
<p>Jquery:</p>
<pre><code> $(".save,.createSave").button({
icons: {
primary: "ui-icon-disk"
... | jquery | [5] |
2,082,645 | 2,082,646 | ListView forms part of an activity, rather than the activity? | <p>For my next application, I'd like a ListView to form part of the app. Specifically, I'd like it to be the top half of the screen. Having looked through the documentation, I've only been able to find full screen list views, ie with the list taking up the full screen.</p>
<p>Is there any way of doing ListViews differ... | android | [4] |
219,610 | 219,611 | List creation and object initializers | <p>I'm struggling to get my head around what's happening with the List in the example below:</p>
<pre><code>public class DataObject
{
public List<object> SomeObjects { get; set; }
}
class Program
{
static void Main(string[] args)
{
var dataObj = new DataObject()
{
... | c# | [0] |
4,698,257 | 4,698,258 | Segmentation fault,C++,g++, | <p>I have this simple program, when I run this program, I get segmentation fault, I can not
recognize where is my mistake. any help welcomed.(segmentation fault for Di>=27). The point
is that when I remove function immediately segmentation fault disappears. Or when I transform the function to a void function. I know t... | c++ | [6] |
4,603,857 | 4,603,858 | Is 'bol === !0' and 'bol == true' the same? | <p>Is <code>bol === !0</code> exactly the same as <code>bol == true</code>?</p>
<p><strong>Example:</strong></p>
<pre><code>function myFunction(bol){
if(bol===!0){
return 1;
}else{
return -1;
}
}
alert(myFunction(true));//1
</code></pre>
<p>Will I ever run into problems if I decide to us... | javascript | [3] |
1,049,983 | 1,049,984 | How to remove the leading zero from number using jQuery? | <p>I use this pattern to check for numbers only in a quantity field from 0 to whatever. how can I make the code not allow 012, 010.. etc I mean the starting zero, but still allow 0 as standalone number.</p>
<p>0, 1, 10, 1, etc. are ok,</p>
<p>but not allow 012, 005, etc.</p>
<p>Is there a pattern that does that?</p>... | jquery | [5] |
1,491,056 | 1,491,057 | Sdk manager error in Android? | <p>When I open Eclipse,I got a message box having particular error. So I did uninstall the Android from <strong>Android</strong> folder in <strong>LocalDisk C</strong>. After I Reinstall the Eclipse and and Replugin the ADT ,at that time it ask about Eclipse restart.When Eclipse open after restart, I have seen the same... | android | [4] |
2,794,611 | 2,794,612 | Any geo libraries for javascript out there? | <p>I've been searching for a library to make easier geo tasks. For example, calculating the distance between two points.</p>
<p>I've seen methods written in some blogs and websites, but I would like to know some "complete" library.</p>
<p>Are you using one?</p>
<p>Thanks!</p>
<p>PS: I'm not referring to geocoding l... | javascript | [3] |
2,110,662 | 2,110,663 | How can I return two parameters from a javascript function? | <p>I have the following:</p>
<pre><code>function getPk(entity) {
var store = window.localStorage;
switch (entity) {
case "City":
if (store.getItem('AccountID')) {
// Need to return both of the below pieces of information
return store.getItem('AccountID') + "0... | javascript | [3] |
5,940,712 | 5,940,713 | Getting Rectangles stacked vertically to horizontally but keeping shape | <p>I have the input done correctly all my rectangles are stacked vertically and have different colors each time a new rectangle is drawn, but I am struggling to get the output to look like the bottom pic. Please can anybody help put me on the right path.</p>
<p><img src="http://i.stack.imgur.com/vqmTL.jpg" alt="rectan... | c# | [0] |
1,061,976 | 1,061,977 | Future of Asp.Net Dynamic Data | <p>Can anyone tell me what the future is for asp.net dynamic data? It seems like it is being put aside in favor of MVC. Is it worth investing time in dynamic data applications?</p>
| asp.net | [9] |
3,393,083 | 3,393,084 | array_search for string with space | <p>I have correctly created an array and have an array item with:</p>
<pre><code>$array[2] = "Automotive Repairs and Servicing";
</code></pre>
<p>I try to do a search on $array for Automotive Repairs and Servicing and it returns false:</p>
<pre><code>array_search('Automotive Repairs and Servicing', $array);
</code><... | php | [2] |
2,009,665 | 2,009,666 | how to remove the duplicate values from string list in c# | <p>i used this code:</p>
<pre><code>List<string> lists=new List<string>("apple","orange","banana","apple","mang0","orange");
string names;
names=lists.Distinct()
</code></pre>
<p>is that correct?</p>
| c# | [0] |
2,000,845 | 2,000,846 | Problem with onsubmit in DashCode for iPhone web app | <p>I'm new to the world of webdevelopment, but I'm giving it a try!
I'm building an iPhone web app to acces your MobileMe Gallery.
As I'm working with DashCode, I added a searchfield to enter a username, so if you enter your username and press return, he will open <a href="http://gallery.me.com/username" rel="nofollow... | iphone | [8] |
3,379,303 | 3,379,304 | Installing Stock Android Gingerbread 2.3.x on LG Optimus 2x | <p>I have a question that I've first googled a lot but still confuses me:</p>
<p>Can I install Android Gingerbread stock (basic official Google version) on my LG Optimus 2x? I've found some articles titled "Stock Android on LG Optimus 2x" or something like this, but they all tell me to download some custom Android rom... | android | [4] |
580,743 | 580,744 | How can I use a PHP function inside of another function? | <p>I need to use a function inside of another function, how can I do this? I realize that the function is out of the scope, I do not understand OOP and classes yet. can someone help me? </p>
<pre><code>function some_function ($dfd, $characters, $dssdf, $sdfds){
$sdfs = 'sdfsdf'; //random stuff goes on
//... | php | [2] |
1,076,417 | 1,076,418 | Check whether number is even or odd | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/160930/how-do-i-check-if-an-integer-is-even-or-odd">How do I check if an integer is even or odd?</a> </p>
</blockquote>
<p>How would I determine whether a given number is even or odd? I've been wanting to figure... | java | [1] |
1,339,229 | 1,339,230 | Upload Image on Myspace | <p>hi i am developing an application that needs to upload photos on Myspace , i had used Socialauth library for Mysapce integration and i have succesfully integrated Myspace but couldn't find any method to upload photo.Can anyone suggest me a link or tutorial for uploading photo on Myspace. </p>
<p>Please suggest fo s... | android | [4] |
2,923,805 | 2,923,806 | PHP files type checking | <p>Some weird case when I tried a simple php code to check the file type and it couldn't pass through. Any mistake from the below code ? Thanks in advance.</p>
<pre><code>if(($_FILES["file"]["type"]!="image/jpeg")||
($_FILES["file"]["type"]!="image/gif")||
($_FILES["file"]["type"]!="image/png")... | php | [2] |
4,634,614 | 4,634,615 | OpenInputStream Returning file not found exception but the file is there | <p>I am trying to scale a bitmap from an SD card and write it to phone memory. Then decode it at a later point to add it to <code>HashMap</code>. </p>
<p>The problem is that I am getting file not found exception although the path is right and the scaled image exists (I checked that)</p>
<p>Here is the saving part</p>... | android | [4] |
1,642,418 | 1,642,419 | jQuery replace spaces in word | <p>I have an <code>select</code> on my page with the <code>value</code> of <code>Test One</code></p>
<p><code><option value="Test One">Test One</option></code></p>
<p>I wondered if there was a way to replace spaces in words using jQuery</p>
<p>I'm aware of the jQuery Trim technique but this only gets rid... | jquery | [5] |
3,903,754 | 3,903,755 | Rewrite asp.net response before it gets cached with dynamicCompressionBeforeCache | <p>My ASP.NET library installs a response filter to parse and alter the HTML output of pages. This is working until the following is enabled in web.config:</p>
<pre><code><system.webServer>
<urlCompression doDynamicCompression="true" dynamicCompressionBeforeCache="true" />
</system.webServer>
</c... | asp.net | [9] |
2,272,837 | 2,272,838 | Which one to use - html label or Asp:label | <p>Which one to use </p>
<pre><code><label>Name</label>
<asp:Label Text="Name" runat="server"></asp:Label>
</code></pre>
<p>Genreally we are using label to show some text only(like not to many business logic on lables).
As a perfomance point of view which one to use.</p>
| asp.net | [9] |
4,036,641 | 4,036,642 | Proper way of getting variable from another class | <p>I can call variables 2 ways.</p>
<p>One is just to do it like this:</p>
<pre><code>MyClass myClass = new MyClass();
myLocalVar = myClass.myVarVal;
</code></pre>
<p>And the other way is to use a getter like this:</p>
<pre><code>myLocalVar = myClass.getMyVarVal();
</code></pre>
<p>Both ways are working fine,... | java | [1] |
1,803,789 | 1,803,790 | using 'variable.xyz' format in Python | <p>This is a silly question, but I can't figure it out so I had to ask.</p>
<p>I'm editing some Python code and to avoid getting too complicated, I need to be able to define a new variable along the lines of : Car.store = False.</p>
<p>Variable Car has not been defined in this situation. I know I can do dicts (Car['s... | python | [7] |
318,909 | 318,910 | How can I call android Activity without startAcitivity(intent)? | <p>In the main page of my android app I've added OptionsMenu.
What i want is when the option "ContactUs" is selected a new Activity called "ContactUs" should get called.</p>
<pre><code>public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
if (item.getTitle().toString().equals("Contac... | android | [4] |
4,657,355 | 4,657,356 | Detect presses to headset buttons on Android? | <p>How can I detect if a buton, on a pair of headphones, was pressed while running an Android app? Music applications use to this button to stop, play, pause music, etc.</p>
<p>Does a signal get sent to the microphone? Is it treated as a key press event? </p>
| android | [4] |
1,841,189 | 1,841,190 | Pass the parameter Object | <p>I have this test method:</p>
<pre><code>public void load(Class<? extends Object> className, XXXX)
{
Criteria criteria = session.createCriteria(className);
List<Object> list = criteria.list();
for (Object item : list)
{
list.add(new Object(item.getId, item.getCode); /* Object doesn't know ge... | java | [1] |
5,785,352 | 5,785,353 | How does in_array check if an object is in an array of objects? | <p>Does it do object comparison where it checks that all attributes are the same?
What if $obj1 === $obj2, will it just do pointer comparison instead?</p>
<p>I'm using an ORM, so I'd rather loop over the objects testing if $obj1->getId() is already in the array if it does object comparison. If not, in_array is much mo... | php | [2] |
1,921,338 | 1,921,339 | modify loop to display message 1 time for all instances | <p>My code check the 1st 3 messages of the twitter wall and looks for a string called "code". if its there it will echo "code available" and if its not it will echo "no code". Right now it echos 3 times for each message.</p>
<p>how would i modify this code to check all 3 messages still, but only echo the "no code" or ... | php | [2] |
2,041,553 | 2,041,554 | Android-Alert Dialog not working | <p>For some reason, I can not get this dialog to show up on the screen. It is triggered by a button press which I know works but the dialog doesn't launch, why not?</p>
<pre><code> AlertDialog.Builder builder = new AlertDialog.Builder(SummaryActivity.this);
builder.setTitle(R.string.please_confirm)
... | android | [4] |
5,842,476 | 5,842,477 | stop watch logic | <p>I want to develop a simple stop watch logic in android. </p>
<p>On clicking a list view the timer should start and on clicking the button the timer should stop. Can anyone please guide me. Any sample code will be of great help</p>
| android | [4] |
4,598,172 | 4,598,173 | Stop selecting text on a table element | <p>I have the following jQuery code that stops the user selecting text in a table element.</p>
<pre><code>$('table').live("selectstart", function(e) {
e.preventDefault();
});
</code></pre>
<p>This works in IE, but not in Firefox. How can I get this to work in Firefox?</p>
<p>Thanks</p>
| jquery | [5] |
4,594,811 | 4,594,812 | android project with multiple packages import R. file | <p>Background: big project with multiple packages. resources need to be shared among packages</p>
<p>I saw another developer importing the R file of classes in other packages and that compiles. However, I'm not sure of R being imported. Through my experience if I import R by accident, I'll only see compile errors. </p... | android | [4] |
5,544,631 | 5,544,632 | get a string value from a thread | <p>can someone tell me, how do get a Stringvalue from a thread to the mainActivity?</p>
<p>i have a thread like this:</p>
<pre><code>public class XMLHandler extends DefaultHandler {
XMLDataCollected data = new XMLDataCollected();
......
......
public String getInformation() {
String information = "";
... | android | [4] |
413,733 | 413,734 | how to decode string like this c'è | <p>i want to decode a string like c'è in utf8</p>
| php | [2] |
417,022 | 417,023 | jQuery how to insert <br/> tag after every Semicolon | <p>I am dumping some CSS into a div and I am looking to format it so it is more legible. Basically what I want to do is insert a break tag after every semicolon. I have searched around for a while but can't seem to find something that quite fits what I am trying to do.</p>
<p>I have something like this...</p>
<p><str... | jquery | [5] |
1,522,487 | 1,522,488 | How to add numbers in an editText | <p>I am new to java dev. I want to add numbers in an editText.
i.e if user types in 15 in editText, it should add the numbers 1 + 5 giving the result 6.
Is there a function for it in java. In C# it is ToCharArray() but I don't know what it's called in java.
Thanks</p>
| java | [1] |
383,107 | 383,108 | Is my C# Calculation Right? | <p>So this is the Question below and was wondering if my code is right can you guys correct me if I'm wrong? thanks:</p>
<p>Gold card coupon rules:</p>
<ul>
<li>if the balance is less than $2500 the coupon is 3% of the balance</li>
<li>if the balance is more than $2500 the coupon is 4% if their years is less than 2 y... | c# | [0] |
4,307,738 | 4,307,739 | Parsing, securing python expression before passing it to eval() | <p>I want to take an input from the user may be like <code>foo() > 90 and boo() == 9 or do() > 100</code> and use eval on the server side to to evaluate this expression.</p>
<p>For security I want to restrict user to add limited functions and operators by keeping a check (against some data-structure) before I pa... | python | [7] |
734,449 | 734,450 | C++ to C call: argument of type 'void (MyClass::)(u_char*,)' does not match 'void (*)(u_char*)' | <p>my rusty C++ skills got a fail after:</p>
<pre><code>#include <pcap.h>
...
void Sniff::pcap_listen() {
pcap_t *loc;
char *dev;
dev = pcap_lookupdev(errbuf);
loc = pcap_open_live(dev,BUFSIZ,0,-1,errbuf);
pcap_loop(loc,-1,pcap_callback,NULL);
}
</code></pre>
<blockquote>
<p>error: argument of type ‘void... | c++ | [6] |
1,036,578 | 1,036,579 | Caching Files in the Browser | <p>By using the below function I am caching js, css file in the browser.</p>
<p>Like wise I want to cahe the Image in the browser.</p>
<pre><code>private static void CacheOrFetchFromServer(string relativePath, string absolutePath, HttpContext context)
{
Cache cache = HttpRuntime.Cache;
string content;
if ... | asp.net | [9] |
3,345,092 | 3,345,093 | Runtime tar.gz browsing | <p>I have PHP code that uses random assets and I want to get them from tar.gz file without unpacking it at runtime.</p>
<p>Is there any way to do it? (Of course: I can unpack it, but why? I just want single image and base64 it (there are different images; this is just example)).</p>
| php | [2] |
2,292,216 | 2,292,217 | Scripting.Dictionary.this[ref object]' is not supported by the language | <p>I am converting a VB6 project to C# .Net but I have problems using <code>Scripting.Dictionary</code>. The error message is <strong>" Scripting.Dictionary.this[ref object]' is not supported by the language "</strong>. I want to get the item for a specific key.</p>
<pre><code>key=astr[n];
Scripting.Dictionary m_dicVa... | c# | [0] |
4,496,343 | 4,496,344 | How to change Jquery Animation course while animating? | <p>I have a small jquery game where turrets fire projectiles at other divs that have been animated to move across a field. My projectiles are fired to the last position the oncoming div was near so it never hits. What I need is a way to change the course of the projectile as its moving along and it will always hit the ... | jquery | [5] |
2,402,124 | 2,402,125 | Converting form data to an object | <p>I don't want to post the data to a server I want to pass it into a client side function that takes an object. What is the best way to do that?</p>
| javascript | [3] |
3,466,767 | 3,466,768 | What are PHP 5.2 settnigs which affect compatibility with old code (developed for PHP 4 and 3)? | <p>What are PHP 5.2 settnigs which affect compatibility with old code (developed for PHP 4 and 3)?</p>
<p>A web application using XTemplate 0.2.4-2 (officially meant for 3.0.11) works fine on one server running PHP 5.2 but works incorrect (seems that the form can't be submitted or processed correctly) on new PHP 5.2 a... | php | [2] |
5,282,329 | 5,282,330 | jquery draggble has a problem on dragging? | <p>I wanted to restore the position of red block which is a draggble div on the green and gray block and not in blue block it is not worked on green block but it worked on gray block please help me ... For this purpose i am using jquery revert. The code and lnk are below please help me
<a href="http://galtech.org/testi... | jquery | [5] |
5,808,660 | 5,808,661 | Reporting transfer datarate to an UI | <p>I have a Visual Studio 2008 C++ application where I'm copying data from a remote file <code>ifstream</code> to a local file <code>ofstream</code>. The transfer code looks basically like this:</p>
<pre><code>void MyTransferThread()
{
std::ofstream local_file( /*...*/ );
std::ifstream remote_file( /*...*/ );
... | c++ | [6] |
2,117,183 | 2,117,184 | How to get hold of a method name without using magic strings | <p>In java is there any library to get the field name without using any magic strings, for example, for following class</p>
<pre><code>class User
{
int id;
int getId()
{
return id;
}
void setId(int id)
{
this.id = id;
}
}
</code></pre>
<p>Now what i want is something like this,</p>
<pre><code>String fieldName = Ut... | java | [1] |
5,503,625 | 5,503,626 | JQuery - How to detect the value change on submit? | <p>Is there any function available in JQuery to detect the value change of a specific field on submit?</p>
| jquery | [5] |
58,568 | 58,569 | What is practiced in C++ to use for byte manipulation uint8 or char? | <p>I am coming from Java to C++ and I need something similar to <code>byte[]</code> from Java. I can use <code>std::vector<></code> for easy array like manipulation but I need answer what is practiced in C++ to use for byte manipulation <code>uint8</code> or <code>char</code> ? ( I have lot off packing bigger int... | c++ | [6] |
3,216,607 | 3,216,608 | Updating std::map object data | <p>I have a std::map object as follows</p>
<pre><code>typedef std::map<int,int> RoutingTable;
RoutingTable rtable;
</code></pre>
<p>and then I've initialized it in a function</p>
<pre><code> for (int i=0; i<getNumNodes(); i++)
{
int gateIndex = parentModuleGate->getIndex();
int address = topo->... | c++ | [6] |
796,528 | 796,529 | JQuery measuring position of a hidden element | <p>Is there a way to get <code>$element.position()</code> working for a hidden (i.e. <code>display:hidden</code>) element?</p>
| jquery | [5] |
1,826,586 | 1,826,587 | learning ecma script/javascript directly from the reference | <p>I am trying to learn Javascript.There are some excellent books and great authors that became standard in JS world - As I can see, they all have their own way of interpretation of language. It can be sometimes confusing for the novice in Javascript.I wonder, how usefull can be to learn directly from ECMAScript langua... | javascript | [3] |
5,479,113 | 5,479,114 | What is the most efficient way to do the String comparison? | <p>Both do the same thing. What is the most efficient way to compare two strings?
Equals() or Compare()? Are there any differences?</p>
<pre><code> if (String.Equals(StringA, StringB, StringComparison.OrdinalIgnoreCase))
{
// Your code goes here
}
if (String.Compare(StringA,... | c# | [0] |
5,733,627 | 5,733,628 | How to add event listener for html class? | <p>If I have HTML like this:</p>
<pre><code><a href="#" class="movieImg"><div class="previewBulk"></div></a>
<a href="#" class="movieImg"><div class="previewBulk"></div></a>
</code></pre>
<p>and Javascript like this:</p>
<pre><code>var movie = document.getElementsByCla... | javascript | [3] |
729,474 | 729,475 | Convert IList<T1> to IList<BaseT1> | <p>As the easiest way to convert the <code>IList<T1></code> to <code>IList<BaseT1></code>?</p>
<p><code>IList<T1>.Count()</code> is very large number!!!</p>
<pre><code>class BaseT1 { };
class T1 : BaseT1
{
static public IList<BaseT1> convert(IList<T1> p)
{
IList<BaseT1... | c# | [0] |
5,025,287 | 5,025,288 | Python string to integer value | <p>I'd like to know how to convert strings in Python to their corresponding integer values, like so:</p>
<p><code>>>>print WhateverFunctionDoesThis('\x41\x42')</code> </p>
<p><code>>>>16706</code></p>
<p>I've searched around but haven't been able to find an easy way to do this. </p>
<p>Thank you.<... | python | [7] |
3,085,502 | 3,085,503 | Why doesn't my date comparision return true? | <p>The if below never triggers, so c.after(a) must always return false. However, if I uncomment the second println, I clearly see that a is > 20050214, as I expect.</p>
<p><code>
Date a = slice.getCurrentRow().getTime();<br>
Calendar b = Calendar.getInstance();<br>
b.set(2005, 2, 14);<br>
if (b.after(a)) {<br>
Sys... | java | [1] |
4,503,005 | 4,503,006 | What is needed for a user to download and run a PHP application? | <p>I'd like to develop a PHP application that users would download and then could run. The application will have a web service. </p>
<p>I assume they will need Apache, but my main question is what is needed for PHP to run on their machine? Is there something needed like the JVM in Java or the .Net framework in .Net? W... | php | [2] |
1,891,692 | 1,891,693 | Turn Off Apache Common Logging | <p>I am using Apache Common Logging library in my standalone application. After searching through the web, I try to turn off the logging by using</p>
<pre><code>package javaapplication1;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
*
* @author yccheok
*/
public class Ma... | java | [1] |
6,011,537 | 6,011,538 | Dive Into Python Output Error | <p>I'm running this code from Dive Into Python:</p>
<pre><code>def buildConnectionString(params):
"""Build a connection string from a dictionary of parameters.
Returns string."""
return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
if __name__ == "__main__":
myParams = {"server":"mpilgrim", \... | python | [7] |
5,338,215 | 5,338,216 | Jquery - putting variables in :contains() | <p>I am trying to write a simple piece of Jquery in which the script will check whether a table cell contains a range of numbers.</p>
<p>I'm unsure how to do this, because if you were to do something like this:</p>
<pre><code>var num_range = ">1";
$("td:contains(" + num_range + ")").css('background-color', '#000')... | jquery | [5] |
4,449,670 | 4,449,671 | Unable to control checkbox checked status - jquery | <p>I can't get this onClick event to control the checked status of the checkbox.. any thoughts?</p>
<pre><code> init: function () {
$('.billing input[type="checkbox"]').bind('click', function (e) {
e.preventDefault();
iKeyless.page.toggleShippingForm($(e.currentTarget... | jquery | [5] |
1,734,258 | 1,734,259 | Removing single-quote from a string in php | <p>I have an HTML form that a user can input text into a <code>title</code> field, I then have php creating an HTML file called <code>title.html</code></p>
<p>My problem is that users can input spaces and apostrophes into the title field that can't be used in the html file name. I replaced the spaces with underscores ... | php | [2] |
1,395,105 | 1,395,106 | How to set Customized Progress Bars in Android | <p>How to set Customized Progress Bars. </p>
<p>I want to show <strong>two progress Bars</strong> </p>
<p>When i have to download 200 files.</p>
<p>1) <strong>First Progress Bar</strong> shows <strong>overall downloading status</strong>.How many files are downloaded.</p>
<p>2) <strong>Second Bar</strong> Shows what... | android | [4] |
4,718,758 | 4,718,759 | Automatically retrieve data from MYSql | <p>Hi i want to retrieve the data's from database(MySql) based on ID and want to display in the textbox on onkeyuo event(ex: display student details based on student reg no) using php with javascript. The textboxes were created by dynamically using javascript. i tried a method in javascript. bt it shows run time error.... | javascript | [3] |
4,617,433 | 4,617,434 | Strange Catch Try Finally Error | <p>I've got a strange error with the android LiveWallpaper catch try finally. When I set this
It works on API's around 2.3ish:</p>
<pre><code> Canvas canvas = null;
//Keep trying till wallpaper is set.
//Error around here..
try
{
canvas = this._surfaceHolder.lockCanvas(null);
synchr... | android | [4] |
1,959,162 | 1,959,163 | PHP and dropdown insert error | <p>Hello I want to insert in a table the values selected from a dropdown menu and values from a user that was previosly created . When I do the insert the only values that get inserted into the tables area the ones from the drop down list. But the other values dont get inserted. Please help me. Here is the code.</p>
... | php | [2] |
1,334,267 | 1,334,268 | Which Java library lets me initialize an object's properties from a properties file? | <p>Is there a Java library that lets you "deserialize" a properties file directly into an object instance?</p>
<p><strong>Example:</strong> say you have a file called init.properties:</p>
<pre><code>username=fisk
password=frosk
</code></pre>
<p>and a Java class with some properties:</p>
<pre><code>class Connection ... | java | [1] |
2,196,078 | 2,196,079 | Multiple instances of (this) referring to different elements in jQuery | <p>So I decided to combine multiple html files into a single file, hiding and showing divs instead of linking each page. I also combined all of the different scripts into a single tag.</p>
<p>However, not all of the code runs anymore - specifically functions referring to "(this)" - is this because it can only be used... | jquery | [5] |
589,251 | 589,252 | repeator control in asp.net | <p>can you explain about repeator control in asp.net and if its possble then give me one small example ..................plzz</p>
| asp.net | [9] |
1,972,575 | 1,972,576 | UIDevice Orientation not returning the correct value | <p>Hey this is the code I am using</p>
<pre><code>switch ([[UIDevice currentDevice] orientation])
{
case UIInterfaceOrientationPortrait:
[self displayActionSheetInPotraitMode];
break;
case UIInterfaceOrientationLandscapeLeft:
case UIInterfac... | iphone | [8] |
4,370,545 | 4,370,546 | Call to undefined function sqlite_open | <p>Searched already on many sites with no results. PHP keeps on saying:</p>
<pre><code>Call to undefined function sqlite_open()
</code></pre>
<p>If I manually load sqlite (it's already installed with <code>yum install php-pdo</code>) I get</p>
<pre><code>PHP Warning: Module 'PDO' already loaded in Unknown on line 0... | php | [2] |
4,077,801 | 4,077,802 | Can you lock screen from your app? | <p>Is it possible to lock the screen from an app?</p>
<p>ie, just like pressing the power button?</p>
| android | [4] |
3,173,662 | 3,173,663 | Elegant way to add and set property by condition in Javascript | <p>I am creating data object to send with Ajax to the server. I find myself repeating these lines to add properties to data object:</p>
<pre><code>var param1, param2;
if (param1 = $("field1").val())
data.param1 = param1;
if (param2 = $("field2").val())
data.param2 = param2;
etc.
</code></pre>
<p>I am just curio... | javascript | [3] |
1,724,226 | 1,724,227 | Javascript onclick not working on radio button | <p>I have a problem with javascript. I have downloaded a rating star plugin , this one to be exact: <a href="http://www.fyneworks.com/jquery/star-rating/#tab-Testing" rel="nofollow">http://www.fyneworks.com/jquery/star-rating/#tab-Testing</a></p>
<p>I have multiple things to rate on one page, so i thought i could use ... | javascript | [3] |
3,633,930 | 3,633,931 | how to bind data to spinner control using arrayadapter in which arraylist data is there? | <p>I am moving from one activity to other activity in that oncreate method i am calling a webserive and get data into arraylist and assign to adapter like this</p>
<pre><code>Arrayadapter<String> adapter=new Arrayadapter<String>(this,android.R.id.layout_simpleid, arraylistobj);
</code></pre>
<p>then</p>
... | android | [4] |
1,314,429 | 1,314,430 | how to make video player fluid width and height? | <p>how would you make these video players height and width 100% and resize with the page
<a href="http://scripts.reloadlab.net/customYtPlayer/" rel="nofollow">http://scripts.reloadlab.net/customYtPlayer/</a></p>
<p><code><a class="youtube" href="http://www.youtube.com/watch?v=CD2LRROpph0" style="width: 100%;">&l... | jquery | [5] |
4,293,828 | 4,293,829 | What should I focus on as I port a PHP 4 application to the current version of PHP? | <p>I have a couple of old applications which were written in around 2003 in PHP4 which I would like to port to a modern, current version of PHP. I want to first get the old functionality working on a modern server before I start rewriting the code to add feature, modernize the UI and update the code for the current sta... | php | [2] |
1,375,392 | 1,375,393 | 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] |
921,348 | 921,349 | Automatic opening of VPN connection | <p>On Android we'd like to use a VPN when the user is connected to the cell-network.</p>
<p>But the problem is that the VPN connection does not automatically open when switching between WiFi and cell-network.</p>
<p>It also doesn't automatically connect when the device is rebooted.</p>
<p>IS There any potential way ... | android | [4] |
4,058,226 | 4,058,227 | Are rvalues always constant? | <p>When <code>int i = 5;</code></p>
<pre><code>int j = i;
</code></pre>
<p>Will rvalue <code>i</code> in this expression be a constant when evaluating the result?</p>
<p>I'm asking this question because in my copy constructor its argument requires a <code>const</code></p>
| c++ | [6] |
3,211,939 | 3,211,940 | selector disable botton | <p>I have this selector for one of my button's background</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:drawable="@drawable/bg_bot... | android | [4] |
4,978,008 | 4,978,009 | why i cannot use the auto keyword in the last version of gcc | <p>All, recently i tried to use the new features supported by c++11, and i wrote such statement however the compiler ran failed.</p>
<pre><code>auto x = 1;
</code></pre>
<p>the report error listed below:</p>
<p>D:\DEV\CBCppTest\main.cpp||In function 'int main()':|
D:\DEV\CBCppTest\main.cpp|22|warning: 'auto' changes... | c++ | [6] |
915,458 | 915,459 | I get an error in Sonar-Correctness - Double assignment of field | <p>I am in my early days as a developer and need help to resolve the Sonar error which says double assignment of field for the below code.</p>
<pre><code>//Inside constructor
list1 = new ArrayList();
....
...
// in some method
if(description.equalsIgnoreCase(MAPPED_CATIA_MODELS)) {
tempList = new ArrayList()... | java | [1] |
269,745 | 269,746 | Timer, saving events to an array in C++ | <p>I want to create a timer in C++ and when a user presses a button, the program logs to an array the name of the button pressed and the time it was pressed.</p>
<p>Later, I want to be able to 'play back' what the user has done, eg. starting a timer, and simulating the button presses at the correctly logged time in th... | c++ | [6] |
4,661,438 | 4,661,439 | Locking user in specific activity | <p>Is it possible to lock a user in an activity, so that it is impossible to navigate away from it without entering a pin or in other ways "unlocking"? If so, how?</p>
<p>Would be very useful for a an app used in a public setting, like a tablet on display.</p>
| android | [4] |
4,884,837 | 4,884,838 | Change iPhone Grouped TableView's Width | <p>I wonder if it's possible to adjust the width of a grouped tableview.
I want to have a wider table.
Is this possible? and how?</p>
| iphone | [8] |
3,877,616 | 3,877,617 | Has jQuery core development been slowing down? | <p>So, I regularly head over to <a href="http://github.com/jquery/jquery/commits/master" rel="nofollow">jQuery's Commit History</a> on GitHub just to read through the new code committed to jQuery core.</p>
<p>But there hasn't been anything new committed since April 24th.</p>
<p>I've already read through jQuery core a... | jquery | [5] |
1,866,121 | 1,866,122 | How to remove first link from string? | <p>How to remove first link with image from this text with PHP?</p>
<pre><code><a href="some link"><img src="image link" /></a>Lorem ipsum dolor sit amet, consectetur adipiscing elit.**
</code></pre>
| php | [2] |
2,978,745 | 2,978,746 | How to display values entered in by user and round to the nearest decimal point? | <p>I am new to Java programing. I have an assignment for a program to calculate future investment value. The program I have already wrote and it works but my instructor is asking to display the user's input and I am unable to find any information about this topic either in my text or online. I have emailed my instru... | java | [1] |
4,152,633 | 4,152,634 | ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Ok to send data | <p>I wrote a FTP app that uploads files to a remote server with PHP FTP's functionality. However I constantly get the following error <code>ftp_put() [<a href='function.ftp-put'>function.ftp-put</a>]: Ok to send data.</code> and have no idea what this means.</p>
<p>This is how the line looks where I'm gett... | php | [2] |
3,645,701 | 3,645,702 | jquery list confusion | <p>I'm a new to the jQuery world and I'm having a problem that I just can't solve. I have an unordered list with multiple li's. I'm trying to make it so when the user clicks a row, the bg color on the row changes. And when another row is click, that row's bg color changes and the previous on goes back to the default... | jquery | [5] |
4,590,962 | 4,590,963 | expected } for some reason | <p>The following code is giving me these errors,</p>
<p>} expected</p>
<p>Type or namespace definition, or end-of-file expected</p>
<pre><code>namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
privat... | c# | [0] |
5,840,170 | 5,840,171 | ABPersonviewController | <p>Can we add any label to display some message on the info screen after using ABPersonviewController. it display a inbuilt info screen i need to display a label for custom message how to do it</p>
| iphone | [8] |
3,098,923 | 3,098,924 | Easy way to re-write multiple return statements | <p>I have some code that's written like so:</p>
<pre><code>private double function1()
{
double result2 = function2();
if (result2 < 0) { return result2; }
double result3 = function3();
if (result3 < 0) { return result3; }
return 0;
}
</code></pre>
<p>I need to re-write it such that it ha... | c# | [0] |
1,986,612 | 1,986,613 | Android, Add an extended view to xml layout | <p>i'm following this tut
<a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-listview.html</a></p>
<p>and i was wondering how can i add the customView to the main.xml layout</p>
<p>the xml:</p>
<pre><code>&... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.