Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
4,521,690 | 4,521,691 | Problem with Ctrl+Z and textarea | <p>I use this code <a href="http://www.openjs.com/scripts/events/keyboard_shortcuts/index.php" rel="nofollow">http://www.openjs.com/scripts/events/keyboard_shortcuts/index.php</a> for handling keyboard shortcuts.</p>
<pre><code> shortcut.add("Ctrl+Z",function() {
setTimeout(function() {
var val= $("textarea").v... | javascript | [3] |
2,525,315 | 2,525,316 | How to convert string to symbol in PHP | <p>How to convert a password string to specified symbol like <code>*</code> or something else.</p>
<p>I'm currently working on change password page.
I would like to display the password to page, and i want to avoid the password overlook by someone, so i want to covert the password's string to symbol like <code>*</code... | php | [2] |
1,738,963 | 1,738,964 | Why doesn't C++ have virtual variables? | <p>This might have been asked a million times before or might be incredibly stupid but why is it not implemented?</p>
<pre><code>class A
{
public:
A(){ a = 5;}
int a;
};
class B:public A
{
public:
B(){ a = 0.5;}
float a;
};
int main()
{
A * a = new... | c++ | [6] |
5,525,449 | 5,525,450 | scale-independent pixel | <p>I don't know how it convert to the unit of pixels. For example, if I assign 10sp to my font size on 160 dpi device, how much px of my font size is it ? Or, if I assign 10sp to my font on 240 dpi device, how much px of my font size is it ?</p>
| android | [4] |
2,053,844 | 2,053,845 | JQuery update javascript snippet | <p>The scenario is that I'd like to update a javascript snippet (that renders a widget) when a user clicks a button.</p>
<p>The idea is that a user can enter a number of parameters to configure their widget and then click a button to see a preview of it.</p>
<p>Is there a way to do this via jquery?</p>
<p>The snippe... | jquery | [5] |
3,115,860 | 3,115,861 | Appending Date to the end of line in multiple textbox | <p><img src="http://i.stack.imgur.com/tMpk5.png" alt="enter image description here"></p>
<p>how could i add a date to the very end of each line with another font and size ?!
for example i want to add 1:15 AM to the end of "hello World" line.</p>
| c# | [0] |
636,107 | 636,108 | Best way to implement Web client for existing C++ application?(i wanted to web client implement in java) | <p>I have existing C++ application i wanted to implement web client for that application.suggest me best way to implement.</p>
| c++ | [6] |
1,730,521 | 1,730,522 | phone to phone...unlimited SMS? | <p>I have an idea for an app that requires a lot of data exchange between users of the app. SMS seems like a very simple way to get this done, but is it safe to assume that all smart phone users have unlimited SMS? Otherwise this app won't be very popular due to expensive rates for SMS.</p>
<p>If this is really a bad ... | android | [4] |
694,384 | 694,385 | Php without start/end tags? | <p>Is it possible to have php not to require the begin/end tags (<code><?php ?></code>) for some of the files?
The code should be interpreted as php by default.</p>
<p>I'm aware that I can leave out the end tag (<code>?></code>).</p>
| php | [2] |
4,491,114 | 4,491,115 | cannot go to detail view from table view on iphone | <p>i have table view and when user click on any row then he should go to next view
but in my case its not working, what i am doing wrong here??</p>
<pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic -- create and push a new view controll... | iphone | [8] |
4,691,211 | 4,691,212 | publishProgress from inside a function in doInBackground? | <p>I use an AsyncTask to perform a long process.</p>
<p>I don't want to place my long process code directly inside doInBackground. Instaid my long process code is located in another class that I call in doInBackground.</p>
<p>I would like to be able to call publishProgress from inside the longProcess function.
In C++... | android | [4] |
5,194,453 | 5,194,454 | JS: Events and variables | <p>Is there a way to raise event where some variable is changed?</p>
| javascript | [3] |
5,542,433 | 5,542,434 | java print out a double array | <p>i have an array with some double value inside:</p>
<pre><code>private double speed[] = {50, 80, 120, 70.3};
public void printSpeed() {
for(int i = 0; i<=speed.length-1; i++ ) {
System.out.println(speed[i]);
}
}
output
50.0
80.0
12.0
70.3
wanted output
50
80
12
70.3
</code></pre>
<p>How to do... | java | [1] |
1,348,729 | 1,348,730 | base64_encode and decode escape char problem | <p>Hi I've made a paste bin site to share code with a school work group, the problem that I have is when I save code in the db I use <code>base64_encode(code)</code>, when I try to show with
<code>base64_decode(code)</code> it shows with escaped chars like: </p>
<pre><code>#!/bin/bash
printf \"thi is a test\"\\n
exi... | php | [2] |
2,350,501 | 2,350,502 | Best way in PHP to ensure in a class that all the class functions are called only if a given condition is true | <p>I have a class in which each function of the class have to check the exact same condition before executing its code:</p>
<pre><code>class myObject
{
public function function1($argument)
{
if($condition === true)
{
//Do Something
}
}
public function function2($arg... | php | [2] |
4,725,512 | 4,725,513 | Adding admob to Android app before or after putting it on android market? | <p>Do i need to put android app to market first before adding admob or some other display ads on the mobile app? As when i was signing up for admob it asks for android url. I am new to this can anyone explain in detail. How i can do this? </p>
| android | [4] |
5,599,822 | 5,599,823 | How to get an image to appear when someone clicks a checkbox | <p>I want a little happy face to float up and disappear after someone clicks a checkbox. Is there a simple way to do this with jQuery?</p>
| jquery | [5] |
4,033,381 | 4,033,382 | namespacing javascript in user control | <p>I have created a jquery slider usercontrol in asp.net using jquery UI slider. The user control have some javascript functions to set the value of the slider when the textbox value changes in the main page. Everything works fine if I have only usercontrol. But if I have multiple user controls, I am not sure how to na... | asp.net | [9] |
5,127,626 | 5,127,627 | how to stop media player through my application in android | <p>I have created one new application, from which I want to stop the media player which is already running in the background.</p>
<p>Can any one help on this please?</p>
| android | [4] |
3,567,724 | 3,567,725 | Is it okay to use data-attributes to store Javascript 'state' | <p>I often use data-attributes to store configuration that I can't semantically markup so that the JS will behave in a certain way for those elements. Now this is fine for pages where the server renders them (dutifully filling out the data-attributes).</p>
<p>However, I've seen examples where the javascript writes dat... | javascript | [3] |
1,115,179 | 1,115,180 | File save in asp.net and save information in DB | <p>I am creating the user ,using asp.net + C#.there is the form (UI) who collects the information and send data to Business layer. now, while collecting the information from UI I want to also save the image of user, at file system in application domain.</p>
<p>There is function in the business layer as SaveImage, whic... | asp.net | [9] |
1,259,274 | 1,259,275 | Retrieve values from a pop up window to the parent window | <p>I have a pop up window that contains some selections. Once the user selects options, the selected options need to be displayed in the main window. The main window doesn't need to be refreshed when options are selected from the pop up window. I'm using javascript for this, but I cannot figure out how to access the <c... | javascript | [3] |
1,979,258 | 1,979,259 | Access to Site.Master objects from an asp.net file | <p>I have a asp page that is using Site.Master.</p>
<p>I put a link in Site.Master, and master included default.aspx. How can I access link attribute in asp file?</p>
<p>in Site.Master :</p>
<pre><code><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Register.aspx"
Target="_blank"... | asp.net | [9] |
3,131,762 | 3,131,763 | Remove anchor tags using jQuery | <p>My html:</p>
<pre><code><div class="example">
<a id="link" href="http://www.google.com">Example</a>
</div>
</code></pre>
<p>jQuery</p>
<pre><code>$('a#link').remove();
</code></pre>
<p>What I would like to do is have the html look like this after the is removed:</p>
<pre><code><di... | jquery | [5] |
465,566 | 465,567 | Binding with collections and Lists | <p>Can anyone please tel me an example for how to bind the data with the Collections and Lists. I know how to bind the data with databound controls. But, binding with the collection and Lists sounds little bit tougher.</p>
<p>Thanks.</p>
<p>Regards,</p>
<p>Naren.</p>
| asp.net | [9] |
4,246,888 | 4,246,889 | Can an event be dispatched to Activity after onDestroy? | <p>Consider that activity is destroyed and onDestroy was fired. Can I be sure that no other messages will be dispatched into this activity handlers like onKeyDown?</p>
| android | [4] |
3,671,112 | 3,671,113 | How can I reload the entire page when only the url hash changes? | <p>How do I reload a page if the only change to the url is a hash? <code>location.href</code> doesn't work as I expect.</p>
<pre><code>location.href= CURRENT_SITE_URL . '#T_blockName';
</code></pre>
<p>This doesn't refresh the page unless I change <code>CURRENT_SITE_URL</code>. How is it possible?</p>
| javascript | [3] |
5,863,013 | 5,863,014 | click multiple times a submit button | <p>I encountered a problem that I can't solve. My point is to "click" my sybmit button and every time increase a counter, while this counter reach 10. For the first time it works, but this is it!
My test code is below :</p>
<pre><code><form name="testForm" method="post">
<?php $cnt=0; ?>
<input type="s... | php | [2] |
3,766,743 | 3,766,744 | Change Video position while playback | <p>Is there any way on Android to dynamically change position of VideoView or SurfaceView while playing video?<br>
I've tried to use view animators, Surface.setPosition(), View.layout(), push Surface view with ralated LinearLayout with bigger weight( this approach helps sometimes and i see that video jumps to new posit... | android | [4] |
2,277,643 | 2,277,644 | Questions every good PHP Developer should be able to answer | <p>I was going through <a href="http://stackoverflow.com/questions/365489/questions-every-good-net-developer-should-be-able-to-answer">Questions every good .Net developer should be able to answer</a> and was highly impressed with the content and approach of this question and so in the same spirit, I am asking this ques... | php | [2] |
596,313 | 596,314 | How to add elements to an array( which is an element in dictionary(item) in plist)? | <p>In plist,I want to keep an array in each dictionary (Item).And if it is created,how I can send elements to that array.For example,If I created an account for an user,I will keep name,sex,email,password everything in a dictionary(item),in the similar way an array which contains inbox messages.Then I want to know that... | iphone | [8] |
2,093,246 | 2,093,247 | Private inheritance hides base class with "inaccessible within this context" error | <p>I'm having a problem similar to that described in the following link where a privately inherited base class gives an "inaccessible within this context" error when I try to declare a member of the base class inside the derived class:
<a href="http://bytes.com/topic/c/answers/164246-private-inheritance-renders-class-i... | c++ | [6] |
1,524,704 | 1,524,705 | Myspace video upload in android | <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.
A</p>
| android | [4] |
1,580,257 | 1,580,258 | Can we added changing image/text on android app | <p>Is there a way in android app that we can add some text or image and we can change that dynamically without adding new version. Like we have this text: Today's deal is: 1
then in a week if i want that text to show as: Today's deal is: 2.
Is there a way to do this, for an app which does not have a server and is stan... | android | [4] |
1,984,717 | 1,984,718 | C# remove children added by loop | <p>I am adding children by loop to the Main grid. But how do I remove them? I want to remove only the children I added each time the function was called and then add the new ones.</p>
<pre><code>void flcl_Selection(object sender, MyEventArgs e)
{
//remove children here
for (int i = 0; i < e... | c# | [0] |
2,744,692 | 2,744,693 | Slider works fine in Firefox but not in Chrome and Safari | <p>My slider works fine in firefox but it does not work in Chrome or Safari. I am new to jQuery. I only ben using it for a month. I can tell that my script is creating my elements but after that I cannot tell what is tripping it up.</p>
<p>Here is my slider code. </p>
<pre class="lang-js prettyprint-override"><code>(... | jquery | [5] |
4,118,925 | 4,118,926 | Problems Scanner in Java | <p>I was having difficculties when trying to read from a JOPtionPane input dialog using a Scanner object (text below)</p>
<pre><code>int array[] = new int[6];
for (int i=0; i<6; i++)
{
Scanner sc = new Scanner(System.in);
JOptionPane.showInputDialog("Enter a number to fill the array: ");
... | java | [1] |
3,170,848 | 3,170,849 | How to read data custom attribute from DOM in jquery | <p>I try to read the user id from "data-user-id" using jquery "data" api but I am not able to get the value of custom data attribute</p>
<pre><code>var userId = $(".invited-user").data("user-id");
</code></pre>
<p>I try above jquery code but I am not get the user id</p>
<pre><code><div id="selected-items" style="... | jquery | [5] |
990,304 | 990,305 | How to upgrade android 2.2 to android 2.3? | <p>i have samsung galaxy ace s5830. Can some one help me with the steps to upgrade 2.2 to 2.3?</p>
| android | [4] |
3,020,576 | 3,020,577 | Android - 4.0 is out, which version to use? | <p>I'm just starting to learn Android development and writing my first app. I started with V2.2 but up until now mostly wrote generic Java code. Now that I started to write Android specific code I saw that a new version was out.
After installing it, eclipse IDE lets me choose between v2.1 and v4.0. non of the others a... | android | [4] |
2,360,525 | 2,360,526 | confused on how my code work and want to understand the logic in it | <p>Please dont discourage this question..I am very new to c++ and really want to understand the code I work on.</p>
<pre><code>// bintodec.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main(){
stri... | c++ | [6] |
5,026,861 | 5,026,862 | Strange sum problem | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1458633/elegant-workaround-for-javascript-floating-point-number-problem">Elegant workaround for JavaScript floating point number problem</a> </p>
</blockquote>
<pre><code>var sum = 0;
$('[id$=percentOfTotalEdito... | javascript | [3] |
4,485,114 | 4,485,115 | Ellipsis doesn't work | <p>I have an edittext and I want to show 3 dots at the end when the text is longer than the edittext.</p>
<p>I found that there is a method setEllipsize so I've used that, but it is not working..<br>
This is my code:</p>
<pre><code> edt.setInputType(InputType.TYPE_CLASS_TEXT);
edt.setFocusable(false);
edt.... | android | [4] |
981,541 | 981,542 | android : I need a scrollbar to the activity without affecting the lists | <p>I'm using 2 lists in the my activity, and I have to add scroll bar but I need to see all the elements in my lists.</p>
<p>if I put all the elements in scrollbar , I can see only the first element of the list.
If I put the elements of my activity in linearlayout I can't scroll anymore to see the other elements belo... | android | [4] |
1,959,899 | 1,959,900 | Ternary operator in varargs returning object or array is invalid | <p>This is puzzling me and I would like an explanation.</p>
<pre><code>public foo(EventPoint... eventPoints) {
//...
}
boolean isThisHappening;
foo(isThisHappening ? new EventPoint() : new EventPoint[]{});
</code></pre>
<p>Even though <code>foo(new EventPoint());</code> is valid and <code>foo(new EventPoint[]{}... | java | [1] |
1,795,727 | 1,795,728 | How to bind textbox to the datable and make it search like google for some field of datable? | <p>i have a populated datatable and a search textbox,
i want to bind datatable to the search text box and
want to make it search like google, how can i achive this?</p>
<p>Edited :<br>
Like i want my search box to start searching all the first name which are similar when i start typing characters it starts searching ... | asp.net | [9] |
4,854,393 | 4,854,394 | Convert jquery function into javascript | <p>I have to use javascript for below mention work which is done in jquery and working perfect. Reason to use javascript is to know how it can be done with javascript.I google it but not find any clue to how get it done</p>
<p><a href="http://jsfiddle.net/2vP24/" rel="nofollow">http://jsfiddle.net/2vP24/</a></p>
<pre... | javascript | [3] |
5,926,361 | 5,926,362 | Impossible to set an attribute to a string? | <p>Usually, you can set an arbitrary attribute to a custom object, for instance </p>
<pre><code>----------
>>> a=A()
>>> a.foo=42
>>> a.__dict__
{'foo': 42}
>>>
----------
</code></pre>
<p>On the other hand, you can't do the same binding with a string object :</p>
<pre><code>----... | python | [7] |
100,558 | 100,559 | <hr> with display block is adding scroll bars if I dynamically change the margin | <p>I have created a hr tag with below style </p>
<pre><code> hr{
/* margin:5%; */
height:10px;
display:block;
}
</code></pre>
<p><a href="http://jsfiddle.net/thKb8/4/" rel="nofollow">here</a> is the fiddle
It is displayed properly. Occupying 100% width of the screen. But if I change the margi... | javascript | [3] |
3,398,221 | 3,398,222 | Jquery mouseenter and mouseout animation | <p>Im trying to do an event on mouseenter and mouseout.
If i put mouseover more than one time it will repeat the number of times i did it, even if still on first animation. Im also trying to stop the animation on mouseleave and animate it back.
Thanks in advance</p>
<p>Here's the javascript</p>
<pre><code>$('.velejad... | jquery | [5] |
3,408,114 | 3,408,115 | RE:Got an error while using Web service | <pre><code>import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import org.ksoap2.transport.HttpTransportSE;
public class FirstWebActivity... | android | [4] |
3,602,481 | 3,602,482 | NFC between two different applications Android | <p>I new at NFC with Android, and I am beginning to develop apps using NFC to communicate each other.</p>
<p>By now, what I was doing is communication between the same Activity and so on.
Well, now, I would like to see if it is possible to communicate TWO DIFFERENT APPS through NFC. </p>
<p>So, is it possible to comm... | android | [4] |
249,202 | 249,203 | Find first id in jquery | <pre><code><div class="activity" id="4">
<div class="activity" id="3">
<div class="activity" id="2">
<div class="activity" id="1">
</code></pre>
<p>and jquery code to find first id</p>
<pre><code>var ID = $('.activity:first').attr('id');
</code></pre>
<p>whats wrong there? error in firebug</p... | jquery | [5] |
4,359,847 | 4,359,848 | To access a variable in a class in Java, is it better to return its value via a method, or just acces it via myClass.variable? | <p>I think that the title says it all. Maybe I should ask: Is it ever bad to not use a method to return the variable, or its value? An example would be a 2-d point class with an x and a y variable.</p>
<p>Is there anything wrong with using <code>myPoint.x</code> to get the x variable of <code>myPoint</code> as oppo... | java | [1] |
3,019,130 | 3,019,131 | Custom Error Page not showing | <p>For some reason, when I get an ASP.NET runtime error, it's not loading my custom error page</p>
<pre><code><customErrors mode="On" defaultRedirect="app_offline.htm" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="app_offline.htm"/>
<error statusCode="500" redirect="app_o... | asp.net | [9] |
2,763,150 | 2,763,151 | How do I get a sum of two numbers in C#? I can't figure out what I'm missing | <pre><code> //Declare three double variables. num1, num2, sum.
double num1 = 0;
double num2 = 0;
double sum = num1 + num2;
//Prompt the user to enter in the first number. Must be less than 100.
Console.Write("Please enter a number less than 100: ");
num1 = double.Parse(Console.ReadLine());
... | c# | [0] |
4,047,008 | 4,047,009 | How to have accordion type of menu? | <p>I'm creating a folder view type of plugin and i've put my code in jsfiddle...</p>
<p><a href="http://jsfiddle.net/masnR/1/" rel="nofollow">http://jsfiddle.net/masnR/1/</a>
Basically i'm trying to have accordion type in this...</p>
<p>When i click on Folder2, folder1 should collapse and only folder2 should be visib... | jquery | [5] |
5,008,050 | 5,008,051 | Javascript: access to an object's member by name | <p>I have an object called <code>themesData</code>:</p>
<pre><code>var themesData = {}
themesData.a = { key: "value" }; themesData.b = { key: "another value"};
</code></pre>
<p>...and I want to access one of the members by its name. I get a string which contains either "a" or "b" and I want to get the appropriate mem... | javascript | [3] |
1,320,772 | 1,320,773 | How to add a link to a particular word in a sentence? | <p>I have to create a link after the user enters his statement in the text box. </p>
| jquery | [5] |
1,056,742 | 1,056,743 | How to access to Data key Row in gridview | <p>I have a gridview and set a DataKeyNames to ID (<code>DataKeyNames="ID"</code>).
In this GridView I crate a column to select a row by Select command.
I want to get row id by datakeyname but I can't do it.</p>
<p>Think my Gridview rows are</p>
<pre><code>1
3
4
6
9
10
15
</code></pre>
<p>Numbers are taken from the ... | asp.net | [9] |
3,284,337 | 3,284,338 | Confused by earlier errors - Bailing out | <p>I am getting an unusual error when I try building or running my iphone game. </p>
<p>//GameScene.mm </p>
<pre><code>- (void) onExit
{
if(!([SimpleBox2dScrollerAppDelegate get].paused)) //error comes here
{
[SimpleBox2dScrollerAppDelegate get].paused = YES;
[super onExit];
}... | iphone | [8] |
4,560,694 | 4,560,695 | What's a good resource to build my first python project? | <p>I'm tired of books and tutorials who walk me through how to print things before I can do anything fun. I want to build simple apps or programs. Any suggestions for where to start so I can make and learn at the same time?</p>
| python | [7] |
1,248,854 | 1,248,855 | adding html with jquery | <p>is there a neat way to add html with jQuery instead of </p>
<pre><code>$("#elm").html($("#elm").html() + "some text");
</code></pre>
<p>It'd be great to just do <code>$("#elm").html(+= "some text")</code> or something similar...</p>
| jquery | [5] |
4,781,968 | 4,781,969 | breadcrumb does not display title of the nav in Php | <p>I recently started learning php and I'm not being able to understand why my code does not get the parent value <strong>("Clients")</strong> when I click on the sublink UX/UI.</p>
<p>$sel_subject is the Titles on the Navbar and $sel_page is the subpage titles
When I click on the Title it shows up on the breadcrumb b... | php | [2] |
4,957,064 | 4,957,065 | jquery datepicker set default date to empty string | <p>Is it possible to hide the initial text that the datepicker display. I do not want the user to see any text in the textbox, unless he selects the date ?</p>
| jquery | [5] |
4,325,908 | 4,325,909 | accessing a static map from a static member function - segmentation fault - C++ | <p>I am trying to implement factory pattern by registering the function pointers of the derived class to the factory in a static map(member of the factory)and creating objects by looking up the map. But I am getting a segmentation fault in doing this. </p>
<p>Code Snippet:</p>
<p>factory.cpp</p>
<pre><code>typedef ... | c++ | [6] |
4,545,986 | 4,545,987 | Type casting and automatic type promotion in Java | <p>Let's consider some simple expressions in Java.</p>
<pre><code>byte var=0;
var=(byte)(var+1);
</code></pre>
<hr>
<p>Here, in the above statement, obviously type casting is needed because of automatic type promotion. </p>
<p>The evaluation of the expression <strong>(var+1)</strong> is automatically promoted to i... | java | [1] |
993,890 | 993,891 | Why does Java Pattern class use a factory method rather than constructor? | <p>There's a good discussion of this in the <a href="http://stackoverflow.com/questions/628950/constructors-vs-factory-methods">general case</a>.</p>
<p>However, I was wondering specifically why the Pattern class uses the <code>compile</code> static method to create an object, rather than the constructor?</p>
<p>Seem... | java | [1] |
592,648 | 592,649 | How to produce a unique number from combination of 2 numbers (in any order) in PHP? | <p>How to produce a unique number from combination of 2 numbers in PHP ? For example, combination of these two numbers; 68 and 73, produce X ( X is a unique number). It does not matter how the order of the combination numbers, it should still produce same unique number. E.g: (68,73)=X or (73,68)=X
or combination of (1,... | php | [2] |
4,788,808 | 4,788,809 | Long running, polling, queueing process for Python. What's the best stuff to use? | <p>Feel free to close and/or redirect if this has been asked, but here's my situation:</p>
<p>I've got an application that will require doing a bunch of small units of work (polling a web service until something is done, then parsing about 1MB worth of XML and putting it in a database). I want to have a simple async ... | python | [7] |
141,567 | 141,568 | Multithreading - StringBuffer and StringBuilder | <blockquote>
<p>If your text can change and will only
be accessed from a single thread, use
a StringBuilder because StringBuilder
is unsynchronized.</p>
<p>If your text can changes, and will be
accessed from multiple threads, use a
StringBuffer because StringBuffer is
synchronous.</p>
</blockquote>
... | java | [1] |
4,080,948 | 4,080,949 | Connecting to server over WIFI reliably during bootup | <p>There is quite a bit of varience in how long it takes for WiFI connectivity to be established. I would like some input on what is the best way to get connectivity established. In particular I am considering how to make multiple attempts to connect to a server where one does not know ahead of time how long it will ... | android | [4] |
4,216,041 | 4,216,042 | Java random collection | <p>Is there a kind of Java collection that the order of my fetching is random? For example, I put integer 1, 2, 3 into the collection and when I try to print them all the result can be "1 2 3","3 2 1" or "1 3 2"?</p>
| java | [1] |
2,340,170 | 2,340,171 | How to detect the path to the application root? | <p>I'm trying to dynamically detect the root directory of my page in order to direct to a specific script.</p>
<pre><code>echo ($_SERVER['DOCUMENT_ROOT']);
</code></pre>
<p>It prints /myName/folder/index.php</p>
<p>I'd like to use in a html-file to enter a certain script like this:</p>
<pre><code><a href="<?... | php | [2] |
3,574,493 | 3,574,494 | php add days to date in PHP | <p>I want to add or remove a day (or more) depending on a dynamic value. Some times i want to remove / add 4 days, and next time maybe 9. How would i be able to do this in PHP? I was hoping there was i timestamp solution so i could use number of secounds.</p>
<p>Example: 2012-04-21 + 86400 // Add one day</p>
<p>Is th... | php | [2] |
2,604,201 | 2,604,202 | get the publishing date of web page | <p>Hi in google when search I can see the publishing date of any url </p>
<p>can I do something in adnroid , I have list of urls, I want to get the publishhing date of those URL </p>
<p>any idea</p>
| java | [1] |
3,483,149 | 3,483,150 | Python 3.3 Mysql Connector | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/384471/mysql-db-lib-for-python-3-0">MySQL-db lib for Python 3.0?</a> </p>
</blockquote>
<p>I use python3.3 and can't connect to MySQL, because I don't find module for MySQL connector.</p>
<p>How do I connect to... | python | [7] |
5,728,771 | 5,728,772 | Decision of Static methods vs instance methods in java? | <p>As per my understanding we should go for instance methods only when they are dealing with state of object i.e instance variable . If method does deal with state of object they should always be declared as class methods i.e static. But still in most of the projects
i ihave seen the methods which never not operates on... | java | [1] |
3,106,400 | 3,106,401 | Droid DNA Not Supported in Android Device List | <p>Why is my application shown as unsupported device for the new HTC Droid DNA, my manifest is This application is only available to devices with these features, as defined in your application manifest. Screen densities: NORMAL,LDPI NORMAL,XHDPI NORMAL,HDPI NORMAL,MDPI SMALL,LDPI SMALL,XHDPI SMALL,HDPI SMALL,MDPI XLARG... | android | [4] |
2,157,708 | 2,157,709 | Getting values from a single array | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6126512/how-to-find-the-value-from-this-array-in-php">How to find the value from this array in php?</a> </p>
</blockquote>
<p>hello coders.I have an array like this</p>
<pre><code>Array
(
[0] => Array
... | php | [2] |
2,350,834 | 2,350,835 | Use Jquery to alter an item in a selectlist? | <p>Before: </p>
<pre><code><select id="NumberId" name="NumberId">
<option value="">ZERO</option>
<option value="4">FOUR</option>
<option value="5">FIVE</option>
</select>
</code></pre>
<p>Using JQuery, modify the value of the option with an empty value to 0 (zero)... | jquery | [5] |
2,964,254 | 2,964,255 | Creating a simple sales calculator in Java code | <p>I'm trying to figure out how to write this?</p>
<p>Write a Java program that will serve as a basic sales calculator. The program should present the user with a choice of four different products of your choosing in a simple menu. After the user selects a product by entering a character corresponding to a product, th... | java | [1] |
2,487,182 | 2,487,183 | Android upgrading the existing app | <p>I am trying to upgrade the existing application by changing the following in the manifest file.<br>
changing From</p>
<pre><code>android:versionCode="1"
android:versionName="1.0"
</code></pre>
<p>To</p>
<pre><code>android:versionCode="2"
android:versionName="1.1" .
</code></pre>
<p>I am using the same keystore,... | android | [4] |
3,604,422 | 3,604,423 | jQuery click target selector | <p>I have the following HTML in a page:</p>
<pre><code><a href="javascript:void(0)" class="move-next"><img src="/Content/images/small-next-arrow.png" height="16" width="16" alt="Next status arrow" title="Progress to next status"/></a></div>
</code></pre>
<p>and I have the following javascript ... | jquery | [5] |
2,120,884 | 2,120,885 | Handle 8 labels on single cell in UITABLEVIEW | <p>I want to use different information and use different format,lines for information,when i drag down then the UITable view is not run smooth...What will i do?</p>
| iphone | [8] |
2,851,321 | 2,851,322 | Program received signal: "EXC_BAD_ACCESS" while adding subview to main view | <p>i am adding two labels and two image view to subview.</p>
<p>when ever i tap on the button i add this subview to mainview.</p>
<p>I am getting images from the web server and save it in local simulator documents.</p>
<pre><code>NSMutableString *about_name_str = [[NSMutableString alloc]init];
[about_name_str ap... | iphone | [8] |
2,815,997 | 2,815,998 | Error 1400 Invalid window handle | <p>I have code:</p>
<pre><code>......
g_hWnd = CreateWindow( L"Urok6WindowClass", L"TitleWindow", WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, rc.right - rc.left, rc.bottom - rc.top, NULL, NULL, hInstance,
NULL );
if( !g_hWnd )
return E_FAIL;
... | c++ | [6] |
5,541,293 | 5,541,294 | Reference to Function syntax - with and without & | <p>What's the difference between</p>
<pre><code>typedef void (&FunctionTypeR)();
</code></pre>
<p>vs</p>
<pre><code>typedef void (FunctionType)();
</code></pre>
<p>Is the second also a reference to function? Is <code>FunctionTypeR</code> equivalent to <code>FunctionType&</code> when used as the type of an ... | c++ | [6] |
2,888,539 | 2,888,540 | html a click event use jquery | <p>hi every I writed a line like this:</p>
<pre><code><a href="#">delete</a>
</code></pre>
<p>I want do some in js function when click this,so I use jQuery, and like this</p>
<pre><code>$('a[href='#']').click(function(){
alert("test");
return false;
});
</code></pre>
<p>I use this to test, but it do... | jquery | [5] |
4,340,718 | 4,340,719 | How do I pass a variable in URL using PHP? | <p>I have a variable called <code>$tags</code>, which just references from a database field. When the user clicks a link with the given <code>$tags</code> output in it, I want that data to be stored in a variable on the target page.</p>
<p>For instance, the user is on a <code>todolist.php</code>, that contains several... | php | [2] |
789,620 | 789,621 | How to assign a string? | <p>I have this command for wake on the system <code>os.system('sudo sh -c "echo date \'+%s\' -d \'+ 24 hours\' > /sys/class/rtc/rtc0/wakealarm"')</code>. After executing this command i just open wakealaram file. It is empty, nothing is written.</p>
<ol>
<li>Why is it empty, shouldn't it write some date?</li>
<li>Ho... | python | [7] |
1,219,895 | 1,219,896 | derived class member function failed in c++ | <p>To make long story short:</p>
<pre><code>class A {
public:
A();
~A();
void SetID(char* ID);
char* GetID();
protected:
char ID[10];
};
class B: public A {
public:
B();
~B();
protected:
... | c++ | [6] |
3,692,611 | 3,692,612 | How to get ASP.net (1.1) to look for the assembly.dll file in your Application Folder | <p>I'm running ASP.Net (vers 1.1) with code-behind that generates a assembly.dll file which it looks for in the Root/Bin folder of the WebServer. My question is .... how can I get ASP.Net to look for my assembly.dll file in the Root/ Application folder / Bin folder?
Where "Application folder" is the folder from which... | asp.net | [9] |
346,015 | 346,016 | reason for using three open-close quotes when using re.verbose in python | <p>I'm just curious as to why most examples I've seen that make use of re.verbose when using regular expressions, use '''?</p>
<p>An example I found is shown below</p>
<pre><code>address = re.compile(
''' #THIS
[\w\d.+-]+ # username
@
([\w\d.]+\.)+ # domain name prefix
(com|o... | python | [7] |
1,674,846 | 1,674,847 | Built in encode/decode function with support for keys, other than mcrypt | <p>Does php has any built-in function for encoding and decoding a string, I want it very simple, mcrypt does the job but still I dont need top of class encryption.Other than urlencode()</p>
| php | [2] |
3,802,033 | 3,802,034 | Design Web application | <p>I want to build a java web application and I don't have any background how to do that.
Can you plz tell me what is the starting point to do that and where can I found useful open source codes that I can use them to design my web application.</p>
| java | [1] |
3,524,874 | 3,524,875 | Application.EnableVisualStyles() not working | <p>I cann't make my application to apply Windows visual styles.
Application.EnableVisualStyles() in program.cs not changing RenderWithVisualStyle property to true.</p>
<pre><code> [STAThread]
public static void Main(string[] startArgument)
{
Application.EnableVisualStyles();
App... | c# | [0] |
3,932,437 | 3,932,438 | Jquary droppable ignore the z-index? | <p>My problem, the drop-function starts when i sort the list. </p>
<p><strong>js</strong></p>
<pre><code>$(document).ready(function rt()
{
$("#div1").draggable();
$("#k1").sortable({ revert: '100' });
$('#droparea').droppable({ accept: 'li', drop: function() { alert('ssss'); } });
});
</code></pre>
<p><s... | jquery | [5] |
3,285,411 | 3,285,412 | If you grow a div and shrink a div in the same column of divs simultaneously, how can you keep the vertical position stable? | <p>Say I have a column of DIV siblings. A click on DIV 3 causes DIV 1 to "unexpand" and DIV 3 to expand (grow longer). This is usually okay if DIV 1 and DIV 3 are about the same height when expanded and unexpanded. But if DIV 1 and DIV 3 are very different heights, then the the browser viewport shifts the mouse pointe... | jquery | [5] |
3,603,900 | 3,603,901 | Where to download a vector file of Google's green android robot? | <p>Does anyone know where to download a vector file of Google's green android robot?</p>
<p>The <a href="http://www.android.com/branding.html" rel="nofollow">Android Brand Guidelines page</a> does not have a link to it!</p>
<p>Thankyou, Mel</p>
| android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.