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,865,515 | 1,865,516 | how to replace string when Javascript string variable may contain forward slash? | <p>I'm trying to sort out how to replace a substring in a string when the substring to be found/replaced is a variable that may have one or more occurrences of a forward slash. I suspect the issue is in escaping the incoming string properly....but I'm kind of lost on the syntax to insert the escapes correctly. </p>
<... | javascript | [3] |
1,284,232 | 1,284,233 | How To loop the names in C# | <p>I have 10 text boxes namely TB1, TB2, TB3, TB4 and so on.. to TB10</p>
<p>I want to store them into a single string value named toBeStored.</p>
<p>Now I m doing the manual way</p>
<pre><code>String toBeStored=null;
tobeStored=TB1.text.toString();
tobeStored+=TB2.text.toString();
</code></pre>
<p>and so on..</p>
... | c# | [0] |
141,284 | 141,285 | How to Support GESTURE, left/right slip, many transition effect in Android application | <p>In My application i want to flip the view.. I have seen such animation in Go SMS pro in Android. And Same thing i want in to my android application.</p>
<p>I want to flip the whole activity view. is it possible ? I have seen some example for the flip in android. But in that all example the view is in the same activ... | android | [4] |
3,035,040 | 3,035,041 | jQuery: how to replace .live with .on? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8021436/jquery-1-7-turning-live-into-on">jQuery 1.7 - Turning live() into on()</a> </p>
</blockquote>
<p>According to the jQuery API (http://api.jquery.com/on/) the function 'live' is deprecated, it is recommend... | jquery | [5] |
4,371,682 | 4,371,683 | Javascript setHours have unexpected behaviour for UTC+2 timezones | <p>I have following javascript function</p>
<pre><code>function DateIncrement(_Date,_Inc)
{
return (new Date((new Date(_Date)).setHours(_Inc*24,0,0,0)))
}
</code></pre>
<p>The purpose is to increment _Date by _Inc days.
This works fine for all the timezone except <strong>UTC+2</strong> time zones <strong>(Amman, ... | javascript | [3] |
2,600,391 | 2,600,392 | Does a two-dimensional array of character pointers need to be terminated by two null? | <p>The other day, I was reading a book where I found this code:</p>
<pre><code>char *words[][40] = {"Goat", "A herbivore",
"Dog", "An omnivore",
"Fox", "A carnivore",
"Bear", "An omnivore"
"", ""};
</code></pre>
<p>And the book said, ... | c++ | [6] |
1,814,072 | 1,814,073 | What are unused variables set to? | <p>Particularly for <code>localStorage.foo</code></p>
<p>For Safari it is set to:</p>
<pre><code>undefined
</code></pre>
<p>For Firefox it is set to:</p>
<pre><code>null
</code></pre>
<p>Does anyone know the values for Chrome and IE?</p>
<p>Why is it different? Just random choices by browser programmers?</p>
| javascript | [3] |
5,584,589 | 5,584,590 | Python syntax and other things checking? | <p>I wrote a nice little script to do some lightweight work. I set it to run all night, and when I eagerly checked it this morning, I found that I had left a module name prefix out of one of its variables. Is there any way to check for this kind of chicanery statically? The trouble is that this thing sleeps a lot, so r... | python | [7] |
1,502,681 | 1,502,682 | jQuery - .prepend() for each element in list of input's? | <p>Is it possible to use <code>prepend</code> for each element in a list of <code>input</code>'s within a <code>form</code>?
The prepend below only prepends the first element - is it possible to prepend the label for all items: </p>
<pre><code><script>
$(document).ready(function(){
$("#sg1").each(function(){... | jquery | [5] |
1,030,807 | 1,030,808 | How to access values from "strings.xml" dynamically in android? | <p>App version 2.3.3</p>
<p>Here is what i am looking for...</p>
<p>I have few strings in "values/strings.xml". I wish to retrieve the values depending on the string's "name" attribute and use it my application. The input to which string in the xml should be used comes dynamically. Here is an example...</p>
<p>My in... | android | [4] |
5,565,505 | 5,565,506 | C# static method from object | <p>I have various objects of different types.
For all of them, I want to call a static method of their class. All the classes share the same method.
How can I call this static method without explicitly calling the class?</p>
| c# | [0] |
2,993,228 | 2,993,229 | C++ tutorial from softlookup.com | <p>Few years back, I read the C++ tutorial on softlookup.com. Now I guess they have removed it. It was one of the best tutorials I have read so far. Does any one have an idea where I can find that tutorial?</p>
| c++ | [6] |
2,608,124 | 2,608,125 | ASP.Net Extensionless URL | <p>I have an online store in which I have certain URL's such as </p>
<p>www.giveindia.org/iGive-XYZ. </p>
<p>The "XYZ" can be variable. </p>
<p>This is redirected to a page such as </p>
<p>www.giveindia.org/Donatefromigivepage.aspx?id=XYZ. </p>
<p>This use to be working fine until two weeks back. Despite all our e... | asp.net | [9] |
5,579,255 | 5,579,256 | change href jquery | <p>On a search results page I have links. I would like to change the href of certain href from <code>DispForm.aspx?ID=n</code> to <code>AllItems.aspx?ID=n</code> but just for the href that have <code>/R/I/P/</code> in the url.</p>
<p>I would like to use jQuery to change those href.
Any suggestions?</p>
<pre><code><... | jquery | [5] |
1,704,362 | 1,704,363 | help me understand python | <p>Initialize an array of arrays:</p>
<pre><code>M = [[]]*(24*60/5)
</code></pre>
<p>Append the number 2 to the 51st array in <code>M</code></p>
<pre><code>M[50].append(2)
</code></pre>
<p>What is in M?</p>
<pre><code>...
[2]
[2]
[2]
[2]
[2]
[2]
[2]
[2]
...
</code></pre>
<p>Every element in M is the array <code>[... | python | [7] |
3,388,922 | 3,388,923 | Passing args from main class | <p>I'd like to ask easy question for somebody else but not me - 'cause i'm beginner.
I have a bit problem with passing arguments from 'main' to variable "server" under "public JavaApplication6()"
Simple code to make it clear:</p>
<pre><code>public final class JavaApplication6 {
String server;
public static void ma... | java | [1] |
4,637,619 | 4,637,620 | How to detect The movement of the device? | <p>I want to detect a movement like a Moo Box, I reverse the phone and when I turn it back it fire an action...
For Android.
What is the best way</p>
<p>It is possible to custom an event listenner</p>
| android | [4] |
3,633,817 | 3,633,818 | Arbitrary image resizing in PHP | <p>What would be the best way to resize images, which could be of any dimension, to a fixed size, or at least to fit within a fixed size?</p>
<p>The images come from random urls that are not in my control, and I must ensure the images do not go out of an area roughly 250px x 300px, or 20% by 50% of a layer.</p>
<p>I ... | php | [2] |
2,142,202 | 2,142,203 | How do I make this JQuery code more efficient | <p>(new to JQuery) I have a list of around 20 or so elements that need to be disabled when the page loads. The list of elements contains the full range of HTML <input> elements, each having distinct IDs that follow a general naming convention.</p>
<pre><code> $('#rmX\\.val').prop("disabled",true);
... | jquery | [5] |
2,862,760 | 2,862,761 | jQuery Hover Problem | <p>I am trying to get an element on my page to disappear and reappear when a user clicks on another element. My code looks like the following:</p>
<pre><code><script type="text/javascript">
$('.affordable').hover(function () {
$('#reason-a').toggle();
});
</script>
<span class="affordab... | jquery | [5] |
716,229 | 716,230 | Is there any way to insert own items in history in Javascript? | <p>I want to add some items in history using javascript? Is there any way to do it?</p>
<p>Thanks in Advance !</p>
<p>Uday</p>
| javascript | [3] |
5,291,129 | 5,291,130 | C++ dynamic 2D array | <p>I am using the following code to create dynamic 2D array.</p>
<pre><code>uint32_t** arrays = new uint32_t*[10];
uint32_t number = take input from console ;
arrays[0] = new uint32_t[number];
number = take input from console ;
arrays[1] = new uint32_t[number];
delete arrays[0] ;
number = take input from console ;
ar... | c++ | [6] |
2,209,778 | 2,209,779 | How can I help Google's Closure Compiler optimize my JavaScript code? | <p>I've been tinkering with Google's Closure Compiler and was able to get everything compiling perfectly using the advanced compilation option. How can I get the best compilation results from my code?</p>
| javascript | [3] |
478,954 | 478,955 | How set the number phone for Emulator Android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4867286/change-phone-number-in-emulator-android-development">Change phone number in emulator - Android development</a> </p>
</blockquote>
<p>I'm running 2 emulator (A and B). </p>
<p>(A) has number default 5554... | android | [4] |
305,861 | 305,862 | Start system_server before class preloading | <p>I was wondering what will happen if the system_server is started in parallel to class preloading in zygote?</p>
<p>I experimented with that a bit but didn't see any problem with activities getting slow.
There is a good reason for that but I don't know why this is happening.</p>
<p>Can anyone share some info?</p>
... | android | [4] |
4,403,051 | 4,403,052 | Automate login to a site and click a button | <p>To need to login to a site, go to a particular page (eg. local router page) and click a button to do an operation(eg Connect). Since I do it almost everyday, I thought of automating it through small C# application. I don't have any idea how to do it.Any pointers?</p>
| c# | [0] |
3,672,578 | 3,672,579 | How to force-stop the application programatically-Android | <p>I want to force-stop an application from my android app, (Instead of doing manually by Man apps->force-stop). How to achieve this.</p>
| android | [4] |
3,710,391 | 3,710,392 | What is the easiest way to provide additional installable component for my Android app? | <p>I have an additional component that I can not distribute inside my app. The component is a third-party viewer for a proprietary format, and it is not distributed through Android Market.</p>
<p>So, when a user clicks on a file of that type, I'd like to provide a way to install that third-party viewer with the least ... | android | [4] |
4,666,843 | 4,666,844 | keep getting this error message when submitting, compiles fine, but marking software says its incorrect | <p>we're meant to be making a moving bike, everything compiles but we keep getting this error message:</p>
<pre><code>% java Main
== Benchmark program's output == | == Your program's output ==
The starting position of the bike is 0 | 0.0
Pedalling three times... ... | java | [1] |
4,389,940 | 4,389,941 | Android: List View Selected item -1 | <p>Im getting a -1 value when i try to get the selected item position on my listview that is already populated.</p>
<pre><code>list.setOnItemClickListener
(
new AdapterView.OnItemClickListener()
{
public void onItemClick(AdapterView adapterView, View view,int arg2, long arg3)
{
int selec... | android | [4] |
6,021,387 | 6,021,388 | Trim a String to last '.'? | <p>say I have String <code>xxx.yyy.zzz</code></p>
<p>I only want zzz. What string operation can do this?</p>
<p>Thanks</p>
| java | [1] |
5,168,865 | 5,168,866 | Android Object Models | <p>I've worked in software development for a number of years (10+) and am just starting to have a proper look at Android. From my current understanding, a GUI is built up of Activities (replacing Forms, etc) and each of those is treated almost like its own mini program since passing references to data is not the simple... | android | [4] |
1,409,750 | 1,409,751 | Addin FOrm with steps | <p>HI, i want to make a step by step form.</p>
<p>I've made a very basic example in JS. On Each step, i would validate it and then save the stuff into a JS array and save it to DB. Or should i save it into session and use URL parameters? I have a session for sure.</p>
<p>Here the JS example: <a href="http://pastebin.... | php | [2] |
1,230,449 | 1,230,450 | How do I detect the FIXED keyboard on Droid Pro? | <p>I use getResources().getConfiguration().hardKeyboardHidden to detect if a device has a sliding keyboard drawer open (like on the G1).</p>
<p>Now I have a Droid Pro, and it returns 1 always, so my app thinks it has a slider open.</p>
<p>Is there a way I can tell the device has a keyboard, and that it's ALWAYS open ... | android | [4] |
5,513,345 | 5,513,346 | How can we play a .m3u8 file in android 2.2 or android 2.3? | <p>How can we play a .m3u8 (m3u file that uses unicode) file in Android 2.2 or 2.3?
Is <code>Android</code> capable of playing files in this format?</p>
| android | [4] |
4,554,449 | 4,554,450 | jQuery function queueing confusion | <p>I'm trying to understand exactly what it means when I put multiple calls in a row on jQuery, because I'm not getting the results I expect in similar situations.</p>
<p>Example 1:</p>
<pre><code>$(this).animate({opacity: 0.25}, 250).animate({opacity: 1.0}, 250);
</code></pre>
<p>As expected, this gives a quick fla... | jquery | [5] |
2,339,540 | 2,339,541 | Is the behavior from (other question) a bug or expected from the JVM spec? | <p>Is the behavior of the code from this question expected?</p>
<p><a href="http://stackoverflow.com/questions/3831341">http://stackoverflow.com/questions/3831341</a></p>
| java | [1] |
1,843,818 | 1,843,819 | Android user interface on xml | <p>Hello i am trying to create a android app and I need some help to start, i would like to know if there is some software which i can use to create all the buttons and other stuff connected with the user interface on xml .</p>
<p>thanks in advance.</p>
| android | [4] |
1,708,186 | 1,708,187 | how to find the textbox value changed by setting val() function? | <p>I am trying to Implement an <strong>New AutoComplete Control</strong>. I have an textbox <code>$("#Code")</code>. When the values has been selected from the table I am assigning the selected value using </p>
<pre><code>$("#Code").val(selectedValue);
</code></pre>
<p>Since I have to check the validation for the sa... | jquery | [5] |
4,424,315 | 4,424,316 | iPhone: plist with NSDictionaries | <p>I have a pList in which I have 5 Dictionary items. I'm trying to read this dictionaries to array </p>
<pre><code>NSString *plistPath =
[[NSBundle mainBundle] pathForResource:@"pListName" ofType:@"plist"];
NSArray *myArray = [NSArray dictionaryWithContentsOfFile:plistPath];
NSLog(@"%d", myArray.count);
</code><... | iphone | [8] |
2,592,940 | 2,592,941 | Paste Function Not working for first time jquery | <pre><code><script type="text/javascript">
$(document).ready( function() {
$(".editableContent").bind('paste', function() {
var value = $(this).text();
var string = value.replace(/(<([^>]+)>)/ig,"");
$(this).text(string);
});
});
</script>
</code></pre>
<p>Paste Function Does not work for first ti... | jquery | [5] |
1,270,225 | 1,270,226 | Get child repeater textbox value using jquery to validate? | <p>I have a textbox inside child repeater, which i need to validate using jquery on button click, to check isnumeric and display an alert... the parent repeater is inside an update panel...
when i try to loop through the parent repeater items and then child repeater items using .each function, and then finding the text... | jquery | [5] |
5,709,005 | 5,709,006 | android how to highlighted an text | <p>I have created a listview. and there I also did the drag n drop of items.
I want on which item mouse touched that text should be highlighted.(For example U open the Google & if put the mouse on Google then it highlit the text Google in small letters)
I wanna same on my list items TextView items.
How can I do it... | android | [4] |
817,556 | 817,557 | Perference Dialog | <p>I created a Preference activity</p>
<p>And I create a ListPreference</p>
<pre><code><ListPreference
android:key="my_list"
android:title="@string/my_list_label"
android:entries="@array/my_list_array"
android:entryValues="@array/my_list_values"
android:defaultValue="@strin... | android | [4] |
4,863,379 | 4,863,380 | Show/hide div when checkbox is selected | <p>I would like to show/hide a div when a single checkbox is selected. It currently works with "Select all" but I can't get it to work with a single checkbox. Here's the code for "Select All":</p>
<p><strong>JS:</strong></p>
<pre><code><script language='JavaScript'>
var checkboxcount = 1;
function doCheckOne(... | javascript | [3] |
1,615,449 | 1,615,450 | How to pass the array from one view to another view controller? | <p>Iam developing the one applciation.In that i want to pass the one two arrays from one view controller to another view controller.I think this is very simple question.But iam very new for this technology.SO iam asking this simple question.Please tell me.</p>
| iphone | [8] |
2,121,066 | 2,121,067 | javascript toString converts long numbers to Infinity | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1685680/how-to-avoid-scientific-notation-for-large-numbers-in-javascript">How to avoid scientific notation for large numbers in javascript?</a> </p>
</blockquote>
<p>Hi All,</p>
<p>Doing something like this</p>... | javascript | [3] |
1,782,995 | 1,782,996 | android: how to create multiply views screen? | <p>I want to create an activity, which shows a question with 4 answers, and at the bottom of the screen i want to place a timer.</p>
<p>I have already found timer example, and i created a question with the answers. the problem that they are 2 different projects and activities, and i am looking for the best way to impl... | android | [4] |
3,357,557 | 3,357,558 | Android BroadcstReciever | <p>I am creating an application in which i am using a broadcast receiver. I m new to android , so i am not sure how to add receiver in manifest file. My code is</p>
<pre><code><receiver android:name="Reciever"></receiver>
</code></pre>
<p>"Reciever" is name of class which extends "BroadcastReceiver".When... | android | [4] |
6,005,538 | 6,005,539 | How to play with devices like accelerometer and camera using C/C++? | <p>As you can see in architecture diagram below android platform has been built using different layers.</p>
<ul>
<li><code>Application</code> are developed in <code>Java</code></li>
<li><code>Application Framework</code> is written using <code>Java</code> (according to my understanding)</li>
<li><code>Libraries</code>... | android | [4] |
2,398,992 | 2,398,993 | java callable statment .next help | <p>I have this right now:</p>
<pre><code>public java.util.Vector getList() {
java.util.Vector myuserList = new java.util.Vector();
DbUtil db = null;
java.sql.CallableStatement cstmt = null;
ResultSet rset = null;
db = new DbUtil();
cstmt = db.prepareCall("{ call sample.user.get_user_... | java | [1] |
2,399,592 | 2,399,593 | how to customize list view item spaces between them? | <p>I want to customize list view item spaces between different items. We generally display list item with default space between them to get viewed in list.I want to customize the space difference between them so that more data can be displayed in the list within the display part at a time.</p>
<p>Please provide me som... | android | [4] |
1,019,097 | 1,019,098 | Use same JQuery function in differents pages with different parameters | <p>I have a several pages which has the same ul (unordered list) with the same content, bur differents links:</p>
<pre><code><ul class='actions'>
<li><a href='...'>1</a></li>
<li><a href='...'>2</a></li>
<li><a href='...'>3</a></li&... | jquery | [5] |
4,915,058 | 4,915,059 | Data Layer, Model Layer and interfaces in Java | <p>Lets say we wish to represent a Person</p>
<pre><code>public interface Person {
String getFirstName();
String getLastName();
}
</code></pre>
<p>This is implemented with JPA (code I am missing out since it is pretty banal)</p>
<p>Now, I wish to have a Model, the interface of which is an extension of the... | java | [1] |
3,628,761 | 3,628,762 | C# - Casting a Reflection.PropertyInfo object to its Type | <p>In my application, I have a Reflection.PropertyInfo variable named 'property'. When I do a property.GetValue(myObject,null), the value is Master.Enterprise. Enterprise is a class in my application. So, 'property' contains a reference to a class in my app.</p>
<p>At runtime, I would like to somehow cast 'property' t... | c# | [0] |
5,399,848 | 5,399,849 | Streaming mp3 music files with php and jquery | <p>I am working on (or at least plan to) an online music streaming website. I know a little bit of php, but don't know how to work with sounds or music files...so i just need some tips and advice,i.e a push in the right direction.</p>
| php | [2] |
5,761,074 | 5,761,075 | Orientation change crashes my app | <p>I have a class for constructing AlertDialog that contains spinner widget. When spinner shows its popup, if I change phone's orientation, my app crashes with exception saying something about leaked window. This matter has been discussed many times before, but only in the context of multithreading. But I have one thre... | android | [4] |
3,463,538 | 3,463,539 | How can I make my view return the sum of a collection? | <p>I am trying to do this with the following code but it gives me many errors:</p>
<pre><code>public abstract class BaseGridViewModel
{
protected BaseGridViewModel()
{
Events = new List<ViewEvent>();
Watch = Stopwatch.StartNew();
}
public SelectList Statuses { get; set; }
pub... | c# | [0] |
4,263,463 | 4,263,464 | How to get favicon's URL from a generic webpage? | <p>I need a way to get the favicon's URL from a generic webpage considering that the favicon is not always at the base url.</p>
<p>P.s. without using an external service.</p>
| php | [2] |
1,310,610 | 1,310,611 | How to get crash dialog with report button | <p>I purposely make my own application crash. I get the following dialog.</p>
<p><img src="http://i.stack.imgur.com/Xvy0k.jpg" alt="enter image description here"></p>
<p>However, I wish to get the following crash dialog with report button.</p>
<p><img src="http://i.stack.imgur.com/y58Yi.png" alt="enter image descrip... | android | [4] |
2,490,326 | 2,490,327 | I am trying to ad a countdown timer to my maze game | <p>I am making a maze game </p>
<p>I wrote this:</p>
<pre><code> private int counter = 60;
private void button1_Click(object sender, EventArgs e)
{
int counter = 60;
timer1 = new System.Windows.Forms.Timer();
timer1.Tick += new EventHandler(timer1_Tick);
... | c# | [0] |
1,441,319 | 1,441,320 | Rgd: Vector Iterator to get Index Position | <p>This is my iterator position code</p>
<pre><code>struct node {
int nodeid;
vector<fingerTable> fTable;
vector<string> data;
};
vector<node> cNode;
vector<node>::iterator position = find(cNode.begin(),cNode.end(), id);
</code></pre>
<p>I got about 100 objects, i am trying to find the index... | c++ | [6] |
2,195,526 | 2,195,527 | how to display the tamil content website in default browser | <p>how to show tamil language characters in android ,i have simple webview apllication ,it loads the url of tamil news site which contains tamil characters ,but its showing [][][][ at place of those characters ,even the default android browser shows the same (not showing the hindi or tamil characters ) the android ver... | android | [4] |
4,689,427 | 4,689,428 | Create a jar file from the java code | <p>i want to create a jar file from java program i looked at some examples <a href="http://stackoverflow.com/questions/2977663/java-code-to-create-a-jar-file">Java code to create a JAR file</a> but it didnt impressed me as this will not create the proper package structure my original command was </p>
<pre><code>jar -c... | java | [1] |
2,541,538 | 2,541,539 | Is there a way to remove ShareIntent latency? | <p>I create a share intent in this way:</p>
<pre><code>Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "the share content body";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.co... | android | [4] |
1,772,494 | 1,772,495 | Syntax error on token ";" - really unexpected | <p>I got the problem with the following error:</p>
<p>Syntax error on token ";", { expected after this token<br>
Syntax error, insert "}" to complete EnumBody</p>
<pre><code>public enum ImpNoise {
INSTANCE;
private int p[] = new int[512];
for(int i = 0; i < 256; i++) {
}
}
</code></pre>
<p>I strip... | java | [1] |
1,579,022 | 1,579,023 | How short can this script be and still achieve the same thing - display a message "loading.." followed by an extra period every 1 second for 7 seconds | <pre><code><script>
var dot = ".";
var counter = 0;
var message = "Loading Page";
function writeLoadingMessage(){
if (counter > 6) return;
setTimeout('writeMessage();',1000);
}
function writeMessage(){
document.getElementById('loadingMessageSpan').innerHTML... | javascript | [3] |
3,274,295 | 3,274,296 | Why can't my site access a linked JavaScript file? | <p>I run a sub-site at my work, and while my live site is on the same "main server" as the company's main site, my dev environment is hosted on a separate server. </p>
<p>For some reason my dev site is unable to access a specific JavaScript file that is hosted on the "main server". All of the other JavaScript files, ... | javascript | [3] |
1,152,088 | 1,152,089 | SMTPClIENT send through second lan port | <p>As of right now I have a server client program that is not connected to a gateway... one to one connection. However the user has the ability to send a log via email. The computer has 2 lan ports... first one being for the program and the second for if the user wants internet connectivity. How can I set the smtp obje... | c# | [0] |
775,426 | 775,427 | Why preg_match fails to get the result? | <p>I have the below text displayed on the browser and trying to get the URL from the string. </p>
<p>string 1 = voice-to-text from #switzerland: <a href="http://bit.ly/lnpDC12D" rel="nofollow">http://bit.ly/lnpDC12D</a></p>
<p>When I try to use preg_match and trying to get the URL, but it fails</p>
<pre><code>$urlst... | php | [2] |
3,709,333 | 3,709,334 | iPhone provisional vs distribution installation on device | <p>Is there a way to install a provisional app on the iPhone without it overwriting the distribution app? I would like to have both running since the provisional development app points to our test servers, while the distribution app, which is from the app store, points to our production servers.</p>
<p>Any help would ... | iphone | [8] |
14,062 | 14,063 | How to check if iOS can open a specified binary filetype? | <p>I need to create an iPhone app that will connect to an Amazon S3 bucket, where it will download potentially <em>any</em> type of binary file. I am assuming that I could easily handle images, videos, web pages, and pdfs right from the app (or safari). But is there a way to see if there are other apps that can suppo... | iphone | [8] |
4,217,713 | 4,217,714 | Can I provide a download button for content in an iPhone app? | <p>I am working on an iPhone application called IYoga-Classic which will provide high quality videos for Yogs instructions. I want to add a download option to the videos so that the users can download their desired positions even when they are offline? Is there a way to do this?</p>
| iphone | [8] |
1,338,262 | 1,338,263 | Count Number of Visitors in WebSite using ASP.Net and C# | <p>I want to keep track of the number of visitors to my site. </p>
<p>I tried the following code in the Global.asax class,</p>
<pre><code><script runat="server">
public static int count = 0;
void Application_Start(object sender, EventArgs e)
{
Application["myCount"] = count;
}
void Session_Star... | asp.net | [9] |
5,620,747 | 5,620,748 | creation of object | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2103089/is-there-any-other-way-of-creating-an-object-without-using-new-keyword-in-java">is there any other way of creating an object without using “new” keyword in java</a> </p>
</blockquote>
<p>how ... | java | [1] |
2,893,582 | 2,893,583 | Getting functionality from two classes | <p>Say I have an abstract class A and an abstract class B:</p>
<pre><code>abstract class A {
public void doA(){
//some stuff
}
}
abstract class B{
public void doB(){
//some stuff
}
}
</code></pre>
<p>Now I want to accomplish the following situation:</p>
<p>class <code>C</code> has fu... | java | [1] |
2,008,299 | 2,008,300 | How to read muliple values from a config file using config parser | <p>I have made a Config file and have multiple values for a keyword as:</p>
<p>[section]</p>
<p>database: mysql , sqlite</p>
<p>and i want to access the values separately..How to go about it??</p>
| python | [7] |
3,574,462 | 3,574,463 | Difference between assigning a property and adding a attribute in a asp.net control | <p>I am creating ASP.NET textbox controls dynamically. I want to know the difference between assigning the property of the control and adding it as an attribute. </p>
<p>For ex:
I can do:</p>
<pre><code>TextBox txtBox = new TextBox();
txtBox.MaxLength = 100;
</code></pre>
<p>or I could do</p>
<pre><code>txtBox.Attr... | asp.net | [9] |
5,133,124 | 5,133,125 | Java Average Temperature | <p>Program works, but my average temperature is 1 decimal place off. Can't seem to figure out where I'm going wrong. Should one of my variables be a float? Any help is greatly appreciated!</p>
<p>Code:</p>
<pre><code>import java.util.Scanner;
public class NumberAboveAverage {
public static void main(Strin... | java | [1] |
2,298,417 | 2,298,418 | on click on "ONLY" all input text unchecked and current one should get checked | <p>I hover on class <code>".airportdetails"</code> and text only is get appear now if i click on whole div input get checked bt i want i i click on only then all other get unchecked and only current will get check</p>
<p>here is the fiddle</p>
<p><a href="http://jsfiddle.net/VRE9n/4/" rel="nofollow">http://jsfiddle.... | jquery | [5] |
2,792,389 | 2,792,390 | how to use a value (which is get by .text() when a li is clicked) as a selector to hide some div | <p>i have a ul li list like</p>
<pre><code><ul class="dropdown-menu" id="dropdown">
<li><a id='l1' href='javascript:void(0);'>batch1</a></li>
<li><a id='l2' href='javascript:void(0);'>batch2</a></li>
<li><a id='l3' href='javascript:void(0);'>ba... | jquery | [5] |
5,814,412 | 5,814,413 | why my php code create unneccesary spaces? | <p>This my php code. this is creating to html codes that is below.</p>
<pre><code>foreach($sorular->soruCek($_GET["kategori"]) as $data)
{
$kontrol = $sorular->cevapCek($data["id"]);
if($kontrol)
{
echo $data["soru"] . '<br/>';
foreach(@$sorular->cevapCek($data["id"]) as ... | php | [2] |
4,899,556 | 4,899,557 | How to get the exact href value only without their domain? | <p>I'm having trouble in getting the exact value of href only. Here is the code:</p>
<pre><code>Link:
<a href="monthly"></a>
Script:
'a': function(target, process){
if(process == "stripe"){
document.location.href = "/accounts/stripe/payment"+target[0].href;
}else{
......
}
},
<... | jquery | [5] |
3,133,528 | 3,133,529 | How can I use local and remote settings in the same PHP file? | <p>My basic thoughts would be to do something like:</p>
<pre><code>$isLocal = // test here
if ($isLocal) {
// local settings here
}
else {
// remote settings here
}
</code></pre>
<p>I've tried $_SERVER['HTTP_HOST'] but when I debug in Netbeans, HTTP_HOST does not appear as a parameter. Basically I'm looking for a r... | php | [2] |
4,167,275 | 4,167,276 | Best way to list Alphabetical(A-Z) using PHP | <p>can any one please let me know, i need to print/list Alphabetical(A-Z) char to manage Excel cells. Is there any php function to list Alphabetic?</p>
<p>I need result as</p>
<pre><code>A1
B1
C1
D1
...
...
...
</code></pre>
<p>OR</p>
<pre><code>A
B
C
...
...
</code></pre>
| php | [2] |
2,850,872 | 2,850,873 | Switch Statement Survey | <p>I am having a few problems with this build. First it is not all it will not load the main class. Second I need the user to input their choice of music and then I need the compiler to print selection. Can someone help me with this code? Please excuse me but I am totally new to programming.</p>
<pre><code>public clas... | java | [1] |
4,397,379 | 4,397,380 | Android - SMS BroadcastReceiver Working on Emulator but Not on Phone | <p>I just wanted to know why my simple sms receiver works on my emulator(2.3) but not working on my phone(2.3).</p>
<p>My simple program will show a toast whenever I receive a new SMS.
It is showing on the emulator, and again not on the phone.</p>
<p>I tried two emulator and it works. </p>
<p>Here are the codes.</p>... | android | [4] |
153,690 | 153,691 | Select particular dates from nsdictionary | <p>I have an <code>NSDictionary</code> which looks like.</p>
<pre><code>dic is : {
city = #;
country = #;
date = "2011-08-12 05:00:00 +0000";
"day_of_week" = Fri;
high = 79;
icon = "/ig/images/weather/chance_of_storm.gif";
low = 61;
startdate = "2011-08-12 05:00:00 +0000";
state = #;
}
dic is : {
city = #;
country =... | iphone | [8] |
4,880,965 | 4,880,966 | Weird line of c# code that works | <pre><code>return Json(new { ErrorMessage = scheduleBase.ErrorMessage }, JsonRequestBehavior.AllowGet); ;
</code></pre>
<p>Is this just a weird case of me not being able to correctly see what the other semi-colon relates to? This code compiles and actually works fine, but I'm stumped as to why.</p>
<p>I found it in a... | c# | [0] |
4,174,718 | 4,174,719 | SimpleHTTPRequestHandler Override do_GET | <p>I want to extend SimpleHTTPRequestHandler and override the default behavior of <code>do_GET()</code>. I am returning a string from my custom handler but the client doesn't receive the response.</p>
<p>Here is my handler class:</p>
<pre><code>DUMMY_RESPONSE = """Content-type: text/html
<html>
<head>
&... | python | [7] |
5,688,664 | 5,688,665 | decompress an archive in android | <p>Does anybody knows how could one programmatically decompress an archive in android ?</p>
| android | [4] |
3,619,127 | 3,619,128 | Javascript object creation? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6439579/what-does-var-foo-foo-mean-in-javascript">What does “var FOO = FOO || {}” mean in Javascript?</a> </p>
</blockquote>
<p>I am finding this kind of statement in javascript object creation repea... | javascript | [3] |
1,731,019 | 1,731,020 | jquery++ drop function | <p>Hi im trying to make a darg and drop question.</p>
<p>I want top use this ++ code:
<a href="http://jsfiddle.net/donejs/3NkZM/light/" rel="nofollow">http://jsfiddle.net/donejs/3NkZM/light/</a></p>
<p>i want the box to turn green for correct and red for incorrect.</p>
<p>Ie i am drag would be correct
and drag me to... | jquery | [5] |
819,359 | 819,360 | How can I add a "copy to clipboard button" to copy the output of the following scripts (browser checks) | <pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JavaScript Flash HTML Generator Library</title>
<script type="text/javascript" src="flash_detect.js"><... | javascript | [3] |
3,555,841 | 3,555,842 | Javascript error : object required | <p>I am calling a javascript function in a button in aspx page like </p>
<pre><code>OnClientClick= "printText(document.getElementById('PrintPayslipPart').innerHTML)"
</code></pre>
<p>and function is;</p>
<pre><code>function printText(elem)
{
PrintPaySlip = window.open('RP_PrintPaySlip.html','PrintPayS... | javascript | [3] |
4,313,638 | 4,313,639 | passing parameters to a soap webservice in android | <p>I am working on an android application.I want to pass values to soap webservice.But i am not getting any response.Can anybody tell how should i pursue..</p>
<p>Thanks in advance
Tushar</p>
| android | [4] |
4,935,648 | 4,935,649 | Exception Stack Trace difference between Debug and Release mode | <p>The code below generates different exception stack trace in both debug and release mode:</p>
<pre><code>static class ET
{
public static void E1()
{
throw new Exception("E1");
}
public static void E2()
{
try
{
E1();
}
catch (Exception e)
... | c# | [0] |
3,628,553 | 3,628,554 | Spinning iphone based on ground | <p>I am rotate iphone based on the ground</p>
<p>But the UIAcceleration values of (x&y&z) are same . Can you tell me exactly what happens here ?</p>
<p>Also i want know how to its calculate UIAcceleration values of(x&y&z) ?</p>
<p>I am really interested to work with UIAcceleration values.</p>
<p>Ca... | iphone | [8] |
4,539,086 | 4,539,087 | jQuery syntax error | <p>I am trying to set saveData when there is at least one field filled in:</p>
<pre><code> $(document).ready(function () {
$(":input").each(function() {
if($(this).val() != "")
window.setInterval(saveData, 5000);
}
});
</code></pre>
<p>There is a syntax error <code>... | jquery | [5] |
5,746,740 | 5,746,741 | add a class to every other three lines in jquery? | <pre><code><ul id="test">
<li>test</li>
<li>test</li>
<li>test</li> // add a class to this li
<li>test</li>
<li>test</li>
<li>test</li> // add a class to this li
<li>test</li>
<li>test</li>
<li>test</li> /... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.