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 |
|---|---|---|---|---|---|
226,504 | 226,505 | Textbox allows only alphanumeric and also allow leftarrow(<-) | <p><strong>Requirement:</strong> Textbox should allow only alphanumeric.</p>
<p><strong>My Problem:</strong>
My code is allowing only alphanumeric. But problem is leftarrow(<-) is not working in google cromo and IE. Its working in mozilla firefox. For enter the backward text, its not allowing leftarrow(<-) key... | jquery | [5] |
5,140,342 | 5,140,343 | Painting to a specific area of the browser in PHP | <p>I've been looking into PHP GD an awful lot, but all the examples seem to indicate that you need to redirect the browser to another page. Now I've managed to get it displayed inline by writing a php file that runs the picture painting code. What I need to do now, is to stop all the random text appearing at the top of... | php | [2] |
2,408,302 | 2,408,303 | How can I add a class member if the other class' constructor requires arguments? | <p>I'm not coding much in C++, so please forgive me if this is trivial.</p>
<p>My class "Foo" looks somewhat like this:</p>
<pre><code>class Foo {
public: Foo(int n) { }
};
</code></pre>
<p>Another class "Bar" is now supposed to have a class member of type "Foo".</p>
<pre><code>class Bar {
private: Foo f;
}... | c++ | [6] |
539,871 | 539,872 | How to use jQuery's load(fn) method so it actually works | <p>JQuery documentation has this to say about .load(fn) (<a href="http://docs.jquery.com/Events/load#fn" rel="nofollow">http://docs.jquery.com/Events/load#fn</a> ):</p>
<blockquote>
<p>Note: load will work only if you set
it before the element has completely
loaded, if you set it after that
nothing will happen... | jquery | [5] |
677,947 | 677,948 | How to convert hex string to hex number? | <p><br>
I have integer number in ex. 16 and i am trying to convert this number to a hex number. I tried to achieve this by using hex function but whenever you provide a integer number to the hex function it returns string representation of hex number, </p>
<pre><code>my_number = 16
hex_no = hex(my_number)
print ty... | python | [7] |
2,665,875 | 2,665,876 | Strange behavior in Date constructor | <p>Here's a little excerpt from my Javascript console:</p>
<pre><code>> x
"Dec 16, 2012 03:40 PM"
> typeof(x)
"string"
> new Date(x)
Invalid Date
> new Date("Dec 16, 2012 03:40 PM")
Sun Dec 16 2012 15:40:00 GMT-0800 (PST)
</code></pre>
<p>I am stumped about why <code>new Date(x)</code> doesn't work ... | javascript | [3] |
5,780,354 | 5,780,355 | Android share text and image | <p>I need to share text+image via Facebook, email etc. Now, I use this code:</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.settings_share_text));
//Uri path = Uri.parse("android.resource://com.android.mypackage/" + R.draw... | android | [4] |
1,804,583 | 1,804,584 | How to swap dataTable row values? | <p>MyScenario,I have three rows .I want swap values of first column.How to achieve this?</p>
| c# | [0] |
4,690,596 | 4,690,597 | PHP Continue sending email but stop page loading? | <p>My page executes a script that takes a relatively long time to complete. I would like to make it so that the user can submit information, immediately echo "Complete", and allow the user to exit the page while the script continues executing. How can I do this?</p>
| php | [2] |
702,910 | 702,911 | Missing Assembly Reference for OfficeMergeControlException | <p>When I try to use the code to combine multiple .docx files (the first listing at: <a href="http://stackoverflow.com/questions/247666/how-can-i-programatically-use-c-sharp-to-append-multiple-docx-files-together">How can I programatically use C# to append multiple DOCX files together?</a>), I seem to be missing an ass... | c# | [0] |
3,769,347 | 3,769,348 | Clear and add content | <p>I have the following paragraph to which content of array added </p>
<pre><code>$('#pop').html(arr.join('<br>'))
</code></pre>
<p>I want to do like clear and add.</p>
<pre><code>$('#pop').text('').html(arr.join('<br>'))
</code></pre>
| jquery | [5] |
1,883,763 | 1,883,764 | How to dynamically set textview height android | <p>In my application I need to set dynamic text to my textview so I want it to get resized dynamically. I have set:</p>
<pre><code><TextView
android:id="@+id/TextView02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textStyle="normal"
android:layout_weight="1"
android:single... | android | [4] |
4,292,384 | 4,292,385 | Php code that explodes tags from a form, puts commas after each one and breaks them in groups | <p>I have a form where I want to submit tags like this:</p>
<pre><code>tag1
tag2
tag3
tag4
...
tag n
</code></pre>
<p>*each tag on it's own line.</p>
<p>I get the tags in my php page:</p>
<pre><code>$tags = get_option('tags');
</code></pre>
<p>I now separate each tag by the new line criteria:</p>
<pre><code>$tag ... | php | [2] |
2,331,892 | 2,331,893 | javascript multidimensional Array and associative array | <p>i am new of javascript, i have been told by someone, he said "speak strictly, javascript doesn't have multidimensional Array and associative array ". but in a book, i saw the following </p>
<pre><code>var my_cars=Array();
my_cars["cool"]="Mustang";
$a=Array(Array(0,1),2);
</code></pre>
<p>so the opinion form he... | javascript | [3] |
721,844 | 721,845 | Comparing text in EditText | <h3>My code:</h3>
<pre><code>final EditText et1 = (EditText)findViewById(R.id.et1);
et1.setOnFocusChangeListener(new OnFocusChangeListener(){
@Override
public void onFocusChange(View v, boolean hasFocus) {
if ( hasFocus )
{
et1.setTe... | android | [4] |
5,658,808 | 5,658,809 | referencing external javascript file | <p>I want to store array value in an external javascript file and then use an internal script to write a loope that lists the values of the array stored in the external file.
my javascript file is:</p>
<pre><code>var Arr = new Array("one", "two", "three")
</code></pre>
<p>My internal script</p>
<pre><code><scrip... | javascript | [3] |
1,294,632 | 1,294,633 | SqlReader, Repeater controls and CommandArgument problem | <p>I have a repeater control that generates a list of links from a SqlReader. I'm trying to create a button alongside each link that will allow the user to delete that link. My original thought was to use the <%#Eval("URL") %> expression in the Item template like below. However the CommandArgument in the ItemCommand... | c# | [0] |
5,560,428 | 5,560,429 | Autotab input with javascript | <p>I have 3 inputs that need to tab to the next when the max length are reached.
These 3 inputs come with values and when the user change the value of the first input it focus on the next and so on.</p>
<p>My problem is that since my second input has already the length it jumps to the third input. If the use input the... | javascript | [3] |
1,698,295 | 1,698,296 | ASP.NETand TFS: Getting TF30076 Error | <p>i'm developing an ASP.NET application to deal with TFS server programmatically to list all TFS projects and give the ability to add work items to any TFS project. if i run the application locally using visual studio local host --> every this is running as required.</p>
<p>if i host the application on my iis , i fac... | asp.net | [9] |
382,373 | 382,374 | iPhone: How to create dynamic instances for any built-in class object? | <p>I want to create dynamic instances for a built in class object. I am not sure how to achieve this.
For example, the below audio player object instance i want to create dynamically, so that I can play dynamic multiple data.</p>
<pre><code>audioPlayer = [[AVAudioPlayer alloc] initWithData:pData error:nil];
</code></p... | iphone | [8] |
3,932,817 | 3,932,818 | Reload the view in iphone (in viewWillAppear) | <p>I got a little app that has a button whose click is handled via</p>
<pre><code>- (IBAction)click:(id)sender { }
</code></pre>
<p>Now, what I want is after click() runs, I want the view to refresh/reload itself, so that viewWillAppear() is re-called automatically. Basically how the view originally appears.</p>
<p... | iphone | [8] |
1,607,081 | 1,607,082 | Get joined string from list of lists of strings in Python | <p>I have a list of lists and a separator string like this:</p>
<pre><code>lists = [
['a', 'b'],
[1, 2],
['i', 'ii'],
]
separator = '-'
</code></pre>
<p>As result I want to have a list of strings combined with separator string from the strings in the sub lists:</p>
<pre><code>result = [
'a-1-i',
... | python | [7] |
4,975,195 | 4,975,196 | Fragment does not show when switching between tabs on TabHost | <p>i have a tab host with three tabs ,two of them have activities that contain the same subclass of Fragment (i am testing the behaviour of the fragment on different positions) .So when i switch from the first tab to the second the Fragment shows succesfully ,but when i come back to the fisrt nothing is on screen ... | android | [4] |
3,937,091 | 3,937,092 | Sublime Text 2 not detecting python library if installed in /opt | <p>I am attempting to install <a href="http://www.sublimetext.com/" rel="nofollow">Sublime Text 2</a> in /opt/sublime_text. Once all the files are in there, I believe the executable not detecting the python libraries and throwing the following error:</p>
<p><img src="http://i.stack.imgur.com/PC5xV.png" alt="enter imag... | python | [7] |
1,017,272 | 1,017,273 | Scroll position lost when hiding div | <p><a href="http://jsfiddle.net/cbp4N/16/" rel="nofollow">http://jsfiddle.net/cbp4N/16/</a></p>
<p>If you show the div. Change the scroll position and then hide and show it agian the scroll position is lost. </p>
<p>am I doing anything wrong or is this a bug.
Is there a way round it with som plugins.</p>
<p>/Anders... | jquery | [5] |
2,838,144 | 2,838,145 | Is it possible to change the title of a tab in a tabbed content while using tabber.js? | <p>I am using tabber.js script for creating a tabbed content and I would like to change the title of a tab during an onclick event.</p>
<p>I tried setting the title like this,
document.getElementById("mytab1").title = "New Title";</p>
<p>But this does not work.. Any other ideas?</p>
<p>Thanks </p>
| javascript | [3] |
2,349,899 | 2,349,900 | PHP - url question | <p>How can I turn example 1 into example 2 using PHP</p>
<p>Example 1</p>
<pre><code>http://www.example.com/categories/fruit/apple/green
</code></pre>
<p>Example 2</p>
<pre><code>http://www.example.com/categories/index.php?cat=fruit&sub1=apple&sub2=green
</code></pre>
| php | [2] |
2,520,524 | 2,520,525 | How can I have my activity display in android contact menu, like i.e. facebook app? | <p>I would like to launch my android application from a contact menu which is displayed after clicking on a contact shortcut on android desktop, like on attached graphic.</p>
<p>I couldn't find any materials on this in docs, but I think it should be possible, as i.e. facebook application puts it's icon in this menu. I... | android | [4] |
761,803 | 761,804 | Trying to keep age/name pairs matched after sorting | <p>I'm writing a program where the user inputs names and then ages. The program then sorts the list alphabetically and outputs the pairs. However, I'm not sure how to keep the ages matched up with the names after sorting them alphabetically. All I've got so far is...</p>
<p>Edit: Changed the code to this -</p>
<pre><... | c++ | [6] |
643,795 | 643,796 | .net functions of an exe used in excel. how to use some of the variables of the exe which may change in other functions or on load? | <p>I am using some of the functions of .net application in excel through COM. But whenever i call some function of the .net, i need to open exe and send some values to the form of the exe and use some of the values from the running exe. How do i do this? please help..</p>
| c# | [0] |
590,218 | 590,219 | Working with delegate method in pickerview | <p>i'm working with pickerview.. here the problem is, while changing the interface orientation the viewForRow method should call.But,here the delegate method is working only for the zero component and not for the another component.. here the problem is only for the device with ios5 remaining are working proper.Any sugg... | iphone | [8] |
3,895,227 | 3,895,228 | Set reminder to Calendar without UIInteraction | <p>I want to set reminder to calendar without user interface. means i have NSDate object to be set to calendar. how can it be done. i have gone through the UIEventKit framework. but it require UI interaction .</p>
<p>Looking for yr suggestion.</p>
| iphone | [8] |
398,641 | 398,642 | Tab icon guidelines and icons in general | <p>i recently downloaded a free app and noticed that the icons on the apps tab were colored. and had a slight 3d perspective. so i just wanted to find out if there is anything wrong doing this in a commercial related application. because from reading the icons guideline documentation for android, they kind of sound ver... | android | [4] |
4,158,243 | 4,158,244 | What is the usage of else: after a try/except clause | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/1316002/when-is-it-necessary-to-add-an-else-clause-to-a-try-except-in-python">when is it necessary to add an <code>else</code> clause to a try..except in Python?</a><br>
<a href="http://stackoverflow.com/question... | python | [7] |
1,399,580 | 1,399,581 | Java Design confusion | <p>I am having a bit of trouble with the design aspect of my JAVA program, there a couple of ways in which I have thought of doing, but I dont know which way is best, or if there is a better way to do it?. Below is an example of one way</p>
<pre><code> << ABSTRACT >>
... | java | [1] |
5,756,459 | 5,756,460 | can I use "lock" across projects? | <p>I have project and class library.
I need class library to update storage items. In my project i need to access these storage items. Can I use <code>lock</code> on the same instance from different projects and will this work?</p>
| c# | [0] |
199,534 | 199,535 | Write to specific line in PHP | <p>I'm writing some code and I need to write a number to a specific line. Here's what I have so far:</p>
<pre><code><?php
$statsloc = getcwd() . "/stats/stats.txt";
$handle = fopen($statsloc, 'r+');
for($linei = 0; $linei < $zone; $linei++) $line = fgets($handle);
$line = trim($line);
echo $line;
$line++;
ech... | php | [2] |
108,402 | 108,403 | Leave While Loop? | <p>I can't get out of the While Loop in my code and out of the method. The user has the option to enter 1 or 2 and 0 to cancel(to leave the menu and the method). But as the code are now, I guess the default option in the Switch prevent it from leaving the While Loop!? Can I do it in another and better way?</p>
<pre><c... | c# | [0] |
5,203,167 | 5,203,168 | Writing to a log, inside a timer, that's inside a thread, from another thread | <p>I'm working on writing an application that scans an imageboard for images, then downloads them. Ofcourse this has to be threaded, because multiple boards could be scraped at once. I've got the basic funcionality done already, but now I'm hitting a wall.</p>
<p>Currently I start threads by giving an url, then press ... | c# | [0] |
405,832 | 405,833 | PHP base navigation help | <p>currently i have :</p>
<pre><code>$page = basename($_SERVER['REQUEST_URI']);
<li<?php if($page == 'index.php?page=product') print ' id="current"'; ?>><a href="index.php?page=product">Products</a></li>
</code></pre>
<p>but however when url is something like index.php?page=product&... | php | [2] |
175,500 | 175,501 | Javascript split to split string in 2 parts irrespective of number of spit characters present in string | <p>I want to split a string in Javascript using split function into 2 parts.</p>
<p>For Example i have string:</p>
<pre><code>str='123&345&678&910'
</code></pre>
<p>If i use the javascripts split, it split it into 4 parts.
But i need it to be in 2 parts only considering the first '&' which it encount... | javascript | [3] |
3,738,041 | 3,738,042 | Dynamic id name in jquery | <p>I have this code to add class and remove attribute,but the problem is that I have dynamic id name who depends from row id. I try with <code>'#ee'+x</code> but doesn't work. Please help, how can I set dynamic value in jQuery </p>
<pre><code>$('#ee').change(function(){
if ($(this).is(":checked")) {
$('#w... | jquery | [5] |
2,888,410 | 2,888,411 | Customize Keyboard | <p>How we can make a custom keyboard with button on top next,previous and done..</p>
| iphone | [8] |
3,742,256 | 3,742,257 | Android loading in images of with different dpi, some do not appear | <p>I'm loading external images from a url, which they are all the same resolution. However, the images that are below 100dpi do not appear. The rest are 100 dpi and they do appear.</p>
<p>I can't wrap my head around this dpi resolution concept, and why I can't use these images even though they are the same resolution ... | android | [4] |
1,591,186 | 1,591,187 | Blink image with JQuery | <p>Is it possible to blink a image with JQuery?</p>
<p>I need to blink certain image with specific class. It should work in both IE and firefox</p>
| jquery | [5] |
4,765,514 | 4,765,515 | Global Variable Count | <p>How to count the number of global variables in C++ with a program that I can run with Grep?</p>
| c++ | [6] |
1,194,748 | 1,194,749 | calculating values from input, in PHP | <p>I'm studying for finals and i came across this question:</p>
<blockquote>
<p>Write a php script to read a positive integer, n from a input box and calculate the value of 1+2+-- n...</p>
</blockquote>
<p>ive have tried for long and done sufficient research, but i have not been able to complete this so far i have... | php | [2] |
70,913 | 70,914 | Which function to call? (delegate to a sister class) | <p>I just read about this in the C++ FAQ Lite</p>
<p>[25.10] What does it mean to "delegate to a sister class" via virtual inheritance?</p>
<pre><code> class Base {
public:
virtual void foo() = 0;
virtual void bar() = 0;
};
class Der1 : public virtual Base {
public:
virtual void foo();
};
void Der1::... | c++ | [6] |
4,727,928 | 4,727,929 | Static members in Java | <p>I've read Statics in Java are not inherited. I've a small program below which compiles and produces <code>2 2</code> as output when run. From the program it looks like k (a static variable) is being inherited !! What am I doing wrong?</p>
<pre><code>class Super
{
int i =1;
static int k = 2;
public stati... | java | [1] |
4,381,998 | 4,381,999 | File type is returning null in chrome browser | <p>I have used file uploader(used PHP) in my application.</p>
<p>In FireFox, and Internet Explorer8 working when I try below statement.</p>
<pre><code>print $_FILES['upladed']['type'];
</code></pre>
<p>But in chrome I am getting null value(not printing anything).</p>
<p>If I use <code>var_dump($_FILES['upladed']['t... | php | [2] |
1,268,489 | 1,268,490 | final table and add elements in android | <p>I have a final table:</p>
<pre><code> final Item itemsList[] = new Item[]{
new Item(R.drawable.per1,contacts.get(0).getName(),contacts.get(0).getTitle(), contacts.get(0).getPhone(),contacts.get(0).getTitle(),contacts.get(0).getEmail())
};
</code></pre>
<p>And this is my problem. I want to add t... | android | [4] |
2,115,651 | 2,115,652 | Static class object | <p>Why are static class objects allowed in C++? what is their use?</p>
<pre><code>#include<iostream>
using namespace std;
class Test {
static Test self; // works fine
/* other stuff in class*/
};
int main()
{
Test t;
getchar();
return 0;
}
</code></pre>
| c++ | [6] |
5,798,256 | 5,798,257 | microsoft agent for asp.net website | <p>hi is there a possibility of creating an agent like Microsoft office agent for a website.
i am planning to build one for my website.
any help in this context would be highly appreciable. thanks</p>
| asp.net | [9] |
18,810 | 18,811 | check if div contains li then removing another element using jquery | <p>If <code>div#FeatureIconsWrapper</code> contains NO <code>li</code></p>
<p>Then <code>div#productInfoGrid</code> is hidden by either by css or removed completly.</p>
<p>I have tried(is this correct?):</p>
<pre><code>$("div#FeatureIconsWrapper:not(li)")({
$("div#productInfoGrid").hide();
});
</code></pre>
| jquery | [5] |
2,468,089 | 2,468,090 | Explanation about a Java statement | <pre><code>public static void main(String[] args) {
int x = 1 + + + + + + + + + 2;
System.out.println(x);
}
</code></pre>
<p>I can compile above method. Is there any explanation about the allowed multiple "+" operator?</p>
| java | [1] |
1,291,127 | 1,291,128 | Invalid length for a Base-64 char array | <p>I'm receiving this error from one of our web pages: "Invalid length for a Base- char array".</p>
<p>This is the stacktrace from my exception:</p>
<pre><code>at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)
at System.Web.UI.ObjectStateForma... | asp.net | [9] |
2,012,031 | 2,012,032 | How to create dynamic String Array if we dont know number of strings in the beginning? | <p>I have the HashMap, if i want to create string array of hashmap.values(), we can create it as</p>
<pre><code>String[] strArray = new String[hashmap.size()]
</code></pre>
<p>But my problem is, if hashmap value contains for example "A,B,C" then i need to add A and B and C to strArray. <strong><em>Facing issue in cre... | java | [1] |
5,385,879 | 5,385,880 | alias for int32,int64 | <pre><code>class Program
{
static void Main(string[] args)
{
Int64 a = Int64.MaxValue;
Int64 b= Int64.MinValue;
try
{
checked
{
Int64 m = a * b;
}
}
catch (OverflowException ex)
{
Console.WriteLine("over flow e... | c# | [0] |
196,257 | 196,258 | Repeater Item template loading | <p>On a web page I have a repeater that I want to assign a template to it:</p>
<pre><code> repeater1.ItemTemplate = Page.LoadTemplate("Template.ascx");
</code></pre>
<p>On this template i have a buttons. I need to handle the Click events of those buttons.<br />
Is it possible to handle then on web page's codebehind f... | asp.net | [9] |
124,626 | 124,627 | Is it required to learn Python 2.6 along with Python 3.0? | <p>If I learn python 3.0 and code in it, will my code be still compatible with Python 2.6 (or 2.5 too!)?</p>
<p><hr></p>
<p>Remarkably similar to:</p>
<p><a href="http://stackoverflow.com/questions/410609/if-im-going-to-learn-python-should-i-learn-2-x-or-just-jump-into-3-0/410626">If I'm Going to Learn Python, Shoul... | python | [7] |
3,259,103 | 3,259,104 | How to lock back button | <p>I want to lock back button while my data process.
I use AsyncTask to process data as below:</p>
<pre><code>class Process extends AsyncTask<String, String, String> {
@Override
protected void onPreExecute() {
super.onPreExecute();
progDailog = new ProgressDialog(ShareFolderActivity.this.getParent());
progDailog... | android | [4] |
4,636,200 | 4,636,201 | Find time until a date in Python | <p>What's the best way to find the time until a date. I would like to know the years, months, days and hours. </p>
<p>I was hoping somebody had a nice function. I want to do something like: This comment was posted 2month and three days ago or this comment was posted 1year 5months ago.</p>
| python | [7] |
4,981,168 | 4,981,169 | Jquery, How to get prev() input box value? | <pre><code><tr>
<td>Arizona</td>
<td>AZ</td>
<td>
<input id="item_Rate" name="item.Rate" size="5" type="text" value="1.00" />
</td>
<td>
<a href="javascript:UpdateTaxRate(this, 4)">Update</a>
</td>
</tr>... | jquery | [5] |
5,971,527 | 5,971,528 | Yielding a dictionary containing an object's attributes in Python | <p>I'm currently trying to write a piece of code that will dump all attributes of a given class instance to a dictionary so that I can change them without changing the source object. Is there a method for doing this, or perhaps a built-in dictionary I can copy and access?</p>
<p>What I'm really doing is making a speci... | python | [7] |
1,255,270 | 1,255,271 | Python variable assignment confusion | <p>Why is it that when I do the following:</p>
<pre><code>x = y = {}
</code></pre>
<p>Everytime I modify, x like <code>x[1] = 5</code>, I also end up modifying y and vice versa?</p>
| python | [7] |
5,405,294 | 5,405,295 | javascript var declaration within loop | <pre><code>/*Test scope problem*/
for(var i=1; i<3; i++){
//declare variables
var no = i;
//verify no
alert('setting '+no);
//timeout to recheck
setTimeout(function(){
alert('test '+no);
}, 500);
}
</code></pre>
<p>it alerts "setting 1" and "setting 2" as expected, but after th... | javascript | [3] |
2,084,854 | 2,084,855 | Why is there no "++" operation in Python? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3654830/why-there-are-no-and-operators-in-python">Why there are no ++ and — operators in Python?</a> </p>
</blockquote>
<p>This question may seem strange, but I'm wondering why is there no such operation i... | python | [7] |
4,066,346 | 4,066,347 | Understanding large Java Code Base | <p>Are there resources on going about trying to understand a large java code base. Like for example, a graph persistence implementation. If there is minimal / missing documentation, what kinds of approaches do you take ? Are there any books that deal with this ? I know one called Brownfield App Development in .NET. </p... | java | [1] |
1,348,999 | 1,349,000 | I want to get data from two tables.my query is giving data but WHERE clouse is not giving me data which i want | <p>i have two tables DISCIPLINE and SUBJECT.</p>
<p>DISCIPLINE table has _DISCIPLINE_ID as a primary key and a DISCIPLINE_Name column.</p>
<p>SUBJECT table has _SUBJECT_ID as a primary key SUBJECT_Name and DISCIPLINE as a Forign key.
i want to select Subject from SUBJECT table Who has the same _DISCIPLINE_ID in the D... | android | [4] |
4,530,847 | 4,530,848 | Detect broken internet connection whenever the application is running | <p>I'm already using the code below to detect if the user is connected to the internet at the application's splash screen, but I need to detect this whenever the user is in a specific activity. Imagine you are using turn-by-turn navigation and you depend on internet connection, so you must detect a broken internet conn... | android | [4] |
5,287,745 | 5,287,746 | Values are not displaying on TextView | <p>I have a couple issues with a math program im currently working on im trying to make a delete button so the user can remove any mistake made and also i want to append("0") but it does nothing when i press both buttons. When i append values from 1-9 it displays it but wierdly it does nothing when pressing delete and ... | android | [4] |
1,977,569 | 1,977,570 | Why does the assignment operator return anything | <p>I have been thinking about this for a while. Especially since assignment operator is called on objects that have already been allocated a space on the heap/stack. While researching on this topic I came across the following <a href="http://faculty.cs.niu.edu/~hutchins/csci241/assignop.htm" rel="nofollow">link</a> wh... | c++ | [6] |
1,492,606 | 1,492,607 | What is wrong with the program | <p>I am getting error for below code:</p>
<pre><code>#include "parent_child.h"
#include "child_proces.h"
int main() {
childprocess::childprocess(){}
childprocess::~childprocess(){}
/* parentchild *cp = NULL;
act.sa_sigaction = cp->SignalHandlerCallback;
act.sa_flags = SA_SIGINFO;
... | c++ | [6] |
3,696,922 | 3,696,923 | asp.net logout authentication how to code? | <p>have completed the basic user login asp.net authentication services as well as the web data service. Now I am supposed to add the logout service. I was told that when the user logs out currently, 'they are not really logged out' in fact what happens is that you can back browser back into the app it reloads, so it is... | asp.net | [9] |
4,622,232 | 4,622,233 | copying elements of an array-list to the other array-list | <p>I have written such a simple code:</p>
<ul>
<li><p>I have written this line in my class's constructor : <code>List element = new ArrayList();</code></p></li>
<li><p>I have a variable named <code>cost</code> which its type is <code>int</code> </p></li>
<li><p>one method will return three lists with different object... | java | [1] |
1,871,734 | 1,871,735 | PHP: Forcing a download not working | <p>I have the following code to push a zip file for download.</p>
<pre><code>$filename = "ResourcePack_".time().".zip";
$destination = $basepath."downloads/$filename";
if($this->createdownload($files,$destination,false)){
header("Cache-Control: public");
header("Content-Descr... | php | [2] |
1,500,102 | 1,500,103 | difference between streams | <p>What is the difference between all these classes such as StreamReader, BufferedStream, FileStream, MemoryStream?</p>
| c# | [0] |
3,226,873 | 3,226,874 | implementing authentication in soap header | <p>i am trying to create a soap server in Java. i want to implement the authentication at soap header.
so when soap client is querying the soap server, first the soap header is verified from soap header and let the client access the soap server functions. </p>
| java | [1] |
1,476,943 | 1,476,944 | alternate CSV row deletion | <p>I have a csv file as follows:</p>
<pre><code>gindex
1
1
2
2
3
3
7
7
</code></pre>
<p>I printed each element twice by mistake. How can I delete each repeated row and get the following results:</p>
<pre><code>gindex
1
2
3
7
</code></pre>
| python | [7] |
218,575 | 218,576 | How can I preserve views and controllers across restart of an application in iPhone? | <p>I am building up a game and want to give user a continue functionality when he restarts the application. So I want to know how to code or what to do to start an application where it left last time.</p>
<p>Is there any sample code available in app center which explains how can this be possible.</p>
<p>Tnx in advanc... | iphone | [8] |
3,507,622 | 3,507,623 | Replace \n by \\n | <p>I have a xml string shown below:</p>
<pre><code>String xml = @"<axislable='ihgyh\nuijh\nkjjfgj'>";
</code></pre>
<p>Now when I try to output the xml it shows <code><axislable='ihgyh\nuijh\nkjjfgj'></code></p>
<p>But my requirement is to break the line like below</p>
<pre><code><axislable='ihgyh
u... | c# | [0] |
2,097,236 | 2,097,237 | How do I exclude elements whose ID ends in a certain suffix using jQuery | <p>I have this jQuery function:</p>
<pre><code>$(this).change(function(){
alert('I changed. ID: ' + $(this).attr("id"));
});
</code></pre>
<p>I need the alert to fire <strong>except</strong> when the id name ends in <code>-0</code>. I think I should be using the <code>$=</code> operator. I cannot figure out how to ... | jquery | [5] |
5,938,233 | 5,938,234 | Jquery Submit form and POST certain values to another script | <p>I have a payment button on a page that submits info to a payment processor and on the same page there is a form with some custom fields that updates a contact info when u submit it.</p>
<p>Im using a jquery script that submits the payment button and at the same time POSTS the values of the form to the updatecontact... | jquery | [5] |
5,423,389 | 5,423,390 | Display Images Using Android Native Library | <p>I want to improve the performance of my app by displaying images using android native library in C language.This issue is due to large amount of memory required by the images in my app.</p>
| android | [4] |
3,509,768 | 3,509,769 | Justify the output of bahavior of 'or' keyword | <p>Consider the statement below:</p>
<p>Prob 1:</p>
<pre><code>>>> a="abc"
>>> 'd' or 'e' in a
'd'
</code></pre>
<p>Someone please explain this . I was expecting a True or False ...</p>
<p>Prob 2:</p>
<pre><code>>>> print any(c in a for c in 'da')
True
</code></pre>
<p>Whats happening h... | python | [7] |
3,793,128 | 3,793,129 | spell check text editor plugin | <p>how can I spell check in my text area, I have dictionary which is provided by Javascript spell check but its not working it contains one <code>Testinstall.htm</code> while installing this I got struck in server test,i dont want to use third party tool is there any other way to achieve spell check for text area</p>
... | javascript | [3] |
558,082 | 558,083 | Javascript, why treated as octal | <p>I'm passing as parameter an id to a javascript function, because it comes from UI, it's left zero padded. but it seems to have (maybe) "strange" behaviour?</p>
<pre><code> console.log(0000020948); //20948
console.log(0000022115); //9293 which is 22115's octal
console.log(parseInt(0000022115, 10)); /... | javascript | [3] |
2,466,472 | 2,466,473 | Detect when the foreground application changes in android? | <p>My app is a service, and I want to do the different tasks according to the different foreground application.</p>
<p>I know that I could get the current foreground application info. by <code>ActivityManager.getRunningAppProcesses()</code>.</p>
<p>However, is there a way to detect when the foreground application cha... | android | [4] |
3,121,137 | 3,121,138 | Javascript window.print() defaults to PDF | <p>A print button on a site I am working on opens a new window and populates it with some HTML. I call <code>window.print()</code> which works fine, but the default printer for myself and others who have tested it is always a PDF writer if one is available on the system. Is there a way to open the print dialog box with... | javascript | [3] |
5,244,191 | 5,244,192 | Javascript:Build xml format | <p>I need to build a xml as
XML: </p>
<pre><code><Root>
<Item1 absord="aa">
<XItem n="a" v="b"/>
<XItem n="a" v="b"/>
<XItem n="a" v="b"/>
</Item1>
<Item1 absord="bb">
<XItem n="a" v="b"/>
<XItem n="a" v="b"/>
<XItem n="a" v="b... | javascript | [3] |
3,042,847 | 3,042,848 | how to specify the genric type in runtime | <p>I'm having a arraylist which I need to specify the type in runtime.</p>
<pre><code>ArrayList<String> alist = new ArrayList<String>();
</code></pre>
<p>I need to specify the type "String" at runtime. how can I do that.
It should not be static.</p>
| java | [1] |
3,586,859 | 3,586,860 | jquery loop and compare values | <p>Is it possible to use jqueries each loop in this form to dissolve hyperlinks?</p>
<pre><code> $(document).ready(function() {
var toExclude =['http://www.google.com', 'http://example'];
$.each(toExclude, function(key, value) {
$("a[href='+value+']").replaceWith(function(){
var matches = value.ma... | jquery | [5] |
3,154,120 | 3,154,121 | How to cast/ covert List of objects to queue of objects | <p>i need to convert a list of Objects to a Queue maintaining the same order</p>
<p>Any idea how to do it?</p>
<p>Thanks</p>
| c# | [0] |
3,377,801 | 3,377,802 | How to reference an object that was created in a different object | <p>I am testing my two classes with a file called test.py. I am just learning programming so this is just a practice program. There is one atlas(map) and i can put multiple 'robots' inside one map. </p>
<pre><code>#test.py
from Atlas import Atlas
atlas = Atlas()
atlas.add_robot('rbt1')
#atlas.py
from Robot import Ro... | python | [7] |
3,934,889 | 3,934,890 | moving text in textview | <pre><code>TextView txt = new TextView(this);
txt.setText(“This is moving text”);
txt.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 16);
txt.setTextColor(Color.rgb(187, 88, 15));
txt.setPadding(10, 10, 0, 0);
txt.setEllipsize(TruncateAt.MARQUEE);
txt.setSingleLine();
txt.setMarqueeRepeatLimit(10... | android | [4] |
765,810 | 765,811 | DropDownList SelectedIndex always = 1 | <p>I have a dropdownlist in a page. The values of all the list items = "0". I have viewstate turned off. When the page posts back, the selected index always = 1 in Page_load event, regardless of the selection in the list. If the values of the list items are different, the selectedIndex has the proper value. Is this nor... | asp.net | [9] |
1,218,364 | 1,218,365 | Assign numeric results from query to text from array | <p>I'm just learning PHP and I've searched for a while on this, but I'm afraid I may not know exactly how to ask it, so an explanation will probably work best. Basically I have a group by/count query returning 3 records.</p>
<pre><code>Status Total
0 2
1 3
2 2
</code></pre>
<p>On my ... | php | [2] |
5,745,553 | 5,745,554 | toggle on double click, jquery | <p>How do I show or hide a div on double click with jquery?</p>
<pre><code>$("body").dblclick(function() {
$("#plot_on_map_form").show("medium").css({top: event.pageY,left: event.pageX});
},
function() {
$("#plot_on_map_form").css({display:"none"});
}
);
</code></pre>
| jquery | [5] |
4,683,178 | 4,683,179 | How to improve the audio quality of RTSP links | <p>I am using rtsp links to stream audio in my application.</p>
<p>The quality of audio is poor in phone when compared to desktop. Is there a way to improve the audio quality in Android. I am using mediaplayer API's to play the audio.</p>
| android | [4] |
4,928,555 | 4,928,556 | How can I implement similar to the web query feature in Excel in java? | <p>I'm new here and I hope I'm not asking something which has already been answered. I have searched everywhere but am yet to discover an adequate answer.</p>
<p>My objective is fairly simple: I want to create a program which will stream the live gold and silver rates from: <a href="http://www.24hgold.com/english/gold... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.