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 |
|---|---|---|---|---|---|
2,750,522 | 2,750,523 | Java initialize question | <p>What does the below code do when you instantiate the StudentRegistrar class?</p>
<pre><code>public class StudentRegistrar
{
public StudentRegistrar ();
{
new RecordManager().Initialize();
}
}
</code></pre>
| java | [1] |
4,447,002 | 4,447,003 | MPMediaPlaylist play specfic song | <p>i have to play particular song from a MPMediaPlaylist.when user click on the on particular song.right now i am getting the complete playlist and song get played in oder.so i want that after the song get played it will remain in order how to do that any help let me know thanks in advance !!!! </p>
| iphone | [8] |
3,626,919 | 3,626,920 | Compilation Error in g++ 4.3.4 compiler | <pre><code>#include <iostream>
#include <string.h>
char* basename(const char* filname);
int main()
{
return 0;
}
char *basename(const char* filename)
{
char* base = (char *)filename;
return base ;
}
</code></pre>
<p>compiling on g++ 4.1.2 20070115 (SUSE 10): No issue</p>
<p>compiling on g++ ... | c++ | [6] |
4,895,264 | 4,895,265 | Activity starts Remote service, Starts another activity and finish() initial activity. Is this a problem? | <p>My initial activiy is basically a splash screen while preforming initialization and login in to network server. To save memory I want to finish() the splash activity once it starts the main menu activity. I still want the remote service to operate. Testing shows it does. But am I going to get into trouble doing ... | android | [4] |
3,554,730 | 3,554,731 | Php: Why is this code not working? Is it cookies problem? | <p>I wrote some code to manage my wordpress mu website, but it seems to not work... It uses libcurl and is supposed to login and create new blog. After i load this script in my browser it only logs me in but no new blog is created and all urls on wp-admin are wrong (when i click on them, for example 'admin' or 'blogs' ... | php | [2] |
3,184,195 | 3,184,196 | php url to absolute function now work with spaces and arabic chars | <p>i have these functions <a href="http://code.google.com/p/archivepress/source/browse/trunk/archivepress_plugin/archivepress/classes/url_to_absolute/?r=93" rel="nofollow">url_to_absolute</a> its work good but not work if the image url has space or arabic chars</p>
<p><strong>this working example</strong></p>
<pre><c... | php | [2] |
3,162,173 | 3,162,174 | Install and use new font in iPhone Interface Builder? | <p>I need to install a new font and use it iPhone.I did the following steps:</p>
<ol>
<li>Install a Font in Fonts Folder.</li>
<li>Add Font in iPhone project file. test.otf.</li>
<li><p>Added font name "Fonts provided by application" in Plist file.</p>
<p>I check this font TextEdit. It is working fine, it is not aff... | iphone | [8] |
83,488 | 83,489 | how to get defined variables and its values in php? | <p>here....i have problem in creating a language translation concepts without using db...
so here, i have 3 diff. files which contain diff. arrays which has a respective language value, now i have to fetch the value of this variables and print it.</p>
| php | [2] |
3,703,478 | 3,703,479 | JQuery’s $(document).ready is not always being called, is it a known issue? | <p>I am testing my script in IE9. I noticed that $(document).ready is not always being called. That means 1 out of 8 times the function referred by $(document).ready is not being called.</p>
<p>As soon as I move the $(document).ready call to the end of the document, it works perfectly. The problem arises only if I mov... | jquery | [5] |
4,391,594 | 4,391,595 | create array with form data which groups and sorts data | <p>I have some input fields than I want as an array so that I can view them in a table on my page. I have been able to create an array using <a href="http://api.jquery.com/serializeArray/" rel="nofollow">.serializeArray()</a></p>
<p>In <a href="http://jsfiddle.net/aaronk85/VNSam/3/" rel="nofollow">this fiddle</a> I ha... | jquery | [5] |
918,570 | 918,571 | Android: How to use an xml string value to determine layout orientation | <p>I have a simple linear layout that I would like to change based on the screen size of the device. What I am trying to do is something like</p>
<p><code>
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"<br>
android:orientation="@string/cover_orientation"
android:layout_width="fill_pare... | android | [4] |
1,602,372 | 1,602,373 | Access control on other page in asp.net | <p>How to access control in other aspx page from other aspx page in asp.net</p>
| asp.net | [9] |
4,970,082 | 4,970,083 | Confused about Python's with statement | <p>I saw some code in the Whoosh documentation:</p>
<pre><code>with ix.searcher() as searcher:
query = QueryParser("content", ix.schema).parse(u"ship")
results = searcher.search(query)
</code></pre>
<p>I read that the with statement executes __ enter__ and __ exit__ methods and they are really useful in the f... | python | [7] |
2,114,625 | 2,114,626 | Reuse inflated views | <p>I am building a complex view based on dynamic data. Depending on the number of data elements in collections I am adding more views. Each of these subviews are complex and get inflated in the loop through the data collection.</p>
<p>This is of course inefficient and I would like to figure out a way to inflate the su... | android | [4] |
5,214,804 | 5,214,805 | Is it ok to abuse webview? | <p>With webview you can make a layout using plain html, posing that you do not need to alter anything by code is it ok to just use webview?Overall performances are the same of native component or decrease?</p>
| android | [4] |
65,552 | 65,553 | system.linq.strings is inaccessible due to its protection level | <p>I am having a problem with the last line of code because of the strings. It is giving me the error <code>system.linq.strings is inaccessible due to its protection level</code> even though I am
using the <code>Microsoft.VisualBasic</code> namespace.</p>
<pre><code>private byte[] CreateKey(string strPassword)
{
... | c# | [0] |
956,445 | 956,446 | php number_format() where formating string is a variable | <p>I get the following error when I try to use number format in php:</p>
<p>Notice: A non well formed numeric value encountered</p>
<pre><code>$number = 10345.34543;
$format = "0, ',', '.'";
echo number_format($number, $format);
</code></pre>
<p>I am almost positive it is because I'm holding the formating part in a ... | php | [2] |
5,314,657 | 5,314,658 | ASP.net simulate browser back button | <p>I'm working on my ASP.NET web project using VS2010, C#, I'm inserting a hyperlink in my page, labeled as BACK, and I want it to act like browser back button, how should I implement it? what is the easiest way?
how should I set its navigateURL property?
thanks</p>
| asp.net | [9] |
2,675,611 | 2,675,612 | android-application for study words | <p>I want to do an application for study words.</p>
<p>So, I want to make like a presentation of words-one follow one after 5 seconds.
What is the best way to do that?</p>
| android | [4] |
5,097,318 | 5,097,319 | Login failed for user 'sa'. in connection string | <p>i m getting error of "Login failed for user 'sa' " while i try to connect server by setting value through string variable </p>
<pre><code>private SqlConnection getDbConnection = new SqlConnection("Data Source="+dbname+";Initial Catalog="+catname+";User Id=sa;Password=sa;Integrated Security=false");
</code></pre>
<... | c# | [0] |
4,479,355 | 4,479,356 | Initialize properties at the load event or in the constructor? | <p>I have a property that references a service layer object and I need it every time I use a form.
What is the best pratice: initialize a property in the constructor or in the form's load event?</p>
| c# | [0] |
200,601 | 200,602 | How to set the default XML namespace for an XDocument | <p>How can I set the default namespace of an existing XDocument (so I can deserialize it with DataContractSerializer). I tried the following:</p>
<pre><code>var doc = XDocument.Parse("<widget/>");
var attrib = new XAttribute("xmlns",
"http://schemas.datacontract.org/2004/07/Widgets");... | c# | [0] |
437,327 | 437,328 | dictionary library in C++ | <p>I have to use write a program in which the dictionary should be used to check whether one string is a valid word in it. Is there any dictionary library I could use? If not, how could I construct a dictionary for query?</p>
<p>Thanks!</p>
| c++ | [6] |
990,526 | 990,527 | which tool should I use in order to create python API documentation? | <p>I am new in python and I am wondering which tool python developers use
in order to generate API. I have searched <a href="http://stackoverflow.com">here</a> but all the posts
that I found are not from 2011-2012 and I am wondering if a new tool has risen.</p>
<p>I have found Sphinx but as I understood Sphinx doesn't... | python | [7] |
3,200,091 | 3,200,092 | How to block iframe cookies? | <p>Is there a way to block iframe cookies,the solution should not be browser specific, I have got to allow/block third party cookies from getting downloaded to the users system depending on his/her consent. Is there any way this can be done.</p>
| javascript | [3] |
4,516,487 | 4,516,488 | Incomplete type named in nested name specifier | <p>I was compiling the following code:</p>
<pre><code>class B;
class A {
A();
friend A B::newAObject();
};
class B {
friend A::A();
public:
A newAObject();
};
</code></pre>
<p>This may seem strange, but the idea was to have a class <code>A</code> that could only be produced by an object of type <cod... | c++ | [6] |
5,860,785 | 5,860,786 | java : Parsing An ArrayList and setting them into a Object | <p>I have these two classes:</p>
<pre><code>class Student
{
String name;
String age ;
}
class Person
{
String name;
String age ;
String grade ;
}
</code></pre>
<p>In the code below, I am creating <code>Student</code> objects and setting them inside the <code>ArrayList</code>. Once the data is set in the <code>Arra... | java | [1] |
1,023,982 | 1,023,983 | How to setup a textarea with auto suggest from Dictionary | <p>This Question is bit broad, I did enough research and asking here so that I can get at least some suggestions. </p>
<p>I am trying to set up auto complete textbox/textarea dictionary suggestions. I have tried to setup auto-complete from <code>JSON data from server</code> and I am able to do that.. But here my ques... | javascript | [3] |
3,026,933 | 3,026,934 | What does Python's dir() function stand for? | <p>I know that the dir() function gives you back either the names defined in the current scope or the names defined in an object. But why is it called dir()? Is it some mysterious acronyms like LISP's CAR and CDR?</p>
| python | [7] |
3,869,730 | 3,869,731 | Clearing screen in Python (when using Pythonwin) | <p>When I use something like Pythonwin I always have to highlight everything in the debugging window and press delete to get rid of everything. Is there a way to make the program autoclear the debug window?</p>
| python | [7] |
2,466,533 | 2,466,534 | fingerprint reader | <p>i have a fingerprint reader device for pc but now i want to connect that fingerprint reader to my android mobile ?anyone help me which is the usb connector for this???</p>
| android | [4] |
1,365,304 | 1,365,305 | how to save images displayed in webview? | <p>I want to save the images displayed in webview into local storage, and webview should have cached the images it displays ,how can i access the cached images and save them into storage?</p>
| android | [4] |
4,851,779 | 4,851,780 | Destroy consume memory | <p><strong>hello friends</strong> </p>
<p>i have develop one application in which i have lots of <strong>images and sound</strong>, </p>
<p>i can release sound easily by <code>release()</code> method but i can't able to release image.<br>
can you tell me how can i release image ?<br>
earlier i have use <code>system... | android | [4] |
4,826,065 | 4,826,066 | get sibling that has id | <p>So I have the following structure:</p>
<pre><code><div id="some id">
<div>
<input id="some other id" ....>
.....bunch of other inputs with no id field....
<select onclick="findSiblingWithId()">
</div>
<div>
<i... | javascript | [3] |
3,498,639 | 3,498,640 | Remove elements from one List<T> that are found in another | <p>I have two lists</p>
<pre><code> List<T> list1 = new List<T>();
List<T> list2 = new List<T>();
</code></pre>
<p>I want remove all elements from list1, which also exist in list2. Of course I can loop through the first loop looking for each element in list2, but I am looking for elegant solu... | c# | [0] |
3,139,409 | 3,139,410 | how to explode a string and make an echo of a chosen attribute | <p>I have a string containing ; subdivided by , and would like to make an echo of a chosen value.</p>
<p>My string is <code>$string='Width,10;Height,5;Size,1,2,3'</code></p>
<p>I want to make an echo of the Height value (echo result must be 5)</p>
| php | [2] |
5,256,301 | 5,256,302 | java inventory checker with contains with method | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6881596/android-game-rpg-inventory-system">Android game rpg inventory system</a> </p>
</blockquote>
<p>Still stuck on making my rpg in java, there's one method I don't know how to implement. Right now, I want to... | java | [1] |
2,040,967 | 2,040,968 | iphone doesn't refresh the localized icon after you change language setting ! | <p>I manage to localized app icon and app name for different languages.I found the icon changes depending on the language setting on the iphone only when the first time when you install the app from xcode. </p>
<p>after that, if i change the language setting, the app icon stay the same but only the app name changes to... | iphone | [8] |
4,395,407 | 4,395,408 | Convert REST url in javascript literal | <p>I want to convert a REST style url into a javascript literal, like this:</p>
<p>from:</p>
<pre><code>var url = "/a/b/c/d";
</code></pre>
<p>to:</p>
<pre><code>var obj = {
a:{
b:{
c:{
d:{}
}
}
}
};
</code></pre>
<p>How would you do this?</p>
| javascript | [3] |
1,672,542 | 1,672,543 | Embbeding console application inside my application | <p>I have a console application who start two other console application (not written in C#).</p>
<p>Can I direct the output of the applications to the same CMD window of my application?</p>
<p>Or even just disable them from showing?</p>
| c# | [0] |
2,616,866 | 2,616,867 | What is the quickest way to translate char* to number? | <p>What is the quickest way to translate char* to number ? I need to convert 4 chars to int, or two chars to short int.
I tried like</p>
<pre><code>char* ar;
//fill ar with values
int x= ar[1]+1[2]<<8+ar[3]<<16+ar[4]<<24; // ar[0] number of chars for number (short 2, int 4)
</code></pre>
<p>but r... | c++ | [6] |
4,644,358 | 4,644,359 | defineGetter & defineSetter on CSSStyleDeclaration.prototype | <p>I want to implement a fake style named <code>myColor</code> on all elements. When setting <code>myColor</code> style on the element, the actual <code>color</code> should be set with the same value. The apparent way of doing this is to use <code>__defineSetter__</code> and <code>__defineGetter__</code> on <code>CSSSt... | javascript | [3] |
4,702,230 | 4,702,231 | C#, How do events differ from delegates? | <p>What does the event keyword do really?</p>
<p><a href="http://msdn.microsoft.com/en-us/library/8627sbea.aspx" rel="nofollow">msdn</a> says it is used to declare an event in a publisher class</p>
<pre><code>// Declare the event.
public event SampleEventHandler SampleEvent;
</code></pre>
<p>Would that mean the Samp... | c# | [0] |
1,592,654 | 1,592,655 | Issues around converting ASP Website to ASP Web Application | <p>We have a web site built as an 'ASP.NET Website' type project, rather than the 'ASP.NET Web Application' type. </p>
<p>Aside from the obvious debugging advantages that the app type offers and access to the designer files for each page: </p>
<ol>
<li><p>What, if anything, can be gained by switching from website pro... | asp.net | [9] |
5,105,791 | 5,105,792 | Why send mail received into spam folder in asp.net c#? | <p>I used below setting for send mail then why its send mails received in spam folder in asp.net c#</p>
<pre><code>System.Net.Mail.SmtpClient smtpclient = new SmtpClient();
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
smtpclient.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
s... | asp.net | [9] |
2,909,143 | 2,909,144 | Python equivalent to atoi / atof | <p>Python loves raising exceptions, which is usually great. But I'm facing some strings I desperately want to convert to integers using C's atoi / atof semantics - e.g. atoi of "3 of 12", "3/12", "3 / 12", should all become 3; atof("3.14 seconds") should become 3.14; atoi(" -99 score") should become -99. Python of ... | python | [7] |
567,119 | 567,120 | reading file from web with android programmatically | <p>How to read file saved from web with android programmatic ally? Not view source. I tried , but get view source. Please help me.</p>
| android | [4] |
1,641,846 | 1,641,847 | jQuery filter class that contains certain value | <p>in jQuery, how do i filter all contents that contain certain class?</p>
<p>HTML:</p>
<pre><code><div class='item 10'>10</div>
<div class='item 20'>20</div>
<div class='item 30'>30</div>
<div class='item 40'>40</div>
<div class='not-an-item 50'>50</div>
</... | jquery | [5] |
5,884,271 | 5,884,272 | How does this code work for JUnit in JAVA? | <p>I have the following code for JUnit testing:</p>
<pre><code>import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
public class JUnitHelloWorld {
protected String s;
@Before
public void setup() {
s = "HELLO WORLD";
}
@Test
public void testHelloWo... | java | [1] |
5,868,224 | 5,868,225 | Properties added to object are undefined? | <p>I'm trying to create an object that acts similarly to a hash or dictionary in other languages. I'm doing this with a <code>for</code> loop and assigning a key and value from an array but if I have more than one property the others become undefined. I'm trying to create key value pairs of from data (<code>i</code>). ... | javascript | [3] |
2,232,052 | 2,232,053 | tinyMCE - Check which tab is currently selected | <p>Does tinyMCE have a function to check the currently active tab between "Visual" and "Text"? I have external buttons that add source into the textarea..</p>
<pre><code>tinyMCE.execInstanceCommand("template-source","mceInsertRawHTML", false, $(select).val());
</code></pre>
<p>This function only adds text to the "Vis... | javascript | [3] |
682,761 | 682,762 | Delete Buttons with list items | <p>I can't tell what is wrong with this jQuery code. I'm receiving no errors from the debugger. I'm at a lost with what is wrong.</p>
<pre><code><ul id="list"></ul>
<script>
$(document).ready(function() {
$('#show_place_on_screen').click(function () {
var address = $('#address').val();
$("#list"... | jquery | [5] |
5,835,143 | 5,835,144 | What does ? (question mark) after a type name mean in C#? | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/2079334/what-does-the-mean-after-a-type">What does the ? mean after a type?</a><br>
<a href="http://stackoverflow.com/questions/2699373/c-basic-question-what-is">C# - Basic question: What is '?' ?</a> </... | c# | [0] |
2,669,519 | 2,669,520 | Content of a .aspx file replaced by clinet side HTML | <p>I have hosted a site on server. Problem is, content of a particular .aspx file (index.aspx/content.aspx) is periodically replaced by clinet side HTML code(the source we see in browser by right click>view source).</p>
<p>What can be reason behind this?</p>
<p>Thanks</p>
<p>Suren </p>
| asp.net | [9] |
858,866 | 858,867 | Show constant URL for site in asp.net | <p>I have a web site with number of pages, developing in asp.net.
I have a page URL's like:
example: </p>
<pre><code>1) http://www.xyz.com/Home.aspx
2) http://www.xyz.com/Index.aspx
3) http://www.xyz.com/viewMember?Name=abc&id=1
</code></pre>
<p>But the end user is at any page, i would like to show the U... | asp.net | [9] |
2,888,374 | 2,888,375 | How to treat a php file as directory | <p>I wanted to know if it is possible to treat a php file as a directory so that <code>index.php/abc/def</code> really calls index.php. The index.php should then know the subdirectory path (ie <code>/abc/def</code>). </p>
<p>I'm searching a plain php solution. I know that I could use mod_rewrite to map the directory t... | php | [2] |
2,878,180 | 2,878,181 | AdView missing requied xml attribute adSize in android using google adds | <p>here i need to display adds using google admob.i tried below code but am getting "AdView missing requied xml attribute adSize" error.</p>
<pre><code> jarfile:GoogleAdMobAdsSdk-4.3.1.jar
main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schem... | android | [4] |
2,828,967 | 2,828,968 | Module appears in module list but can't be imported | <p>I'm getting an error because the <code>ssl</code> module isn't available</p>
<p>If I run <code>help('modules')</code> from the python interpreter it is listed there</p>
<p>When I try to import it from the interpreter, I get </p>
<pre><code>>>> import ssl
Traceback (most recent call last):
File "<st... | python | [7] |
2,749,394 | 2,749,395 | fill edit text to the complete screen android | <p>Hello
In my android application on click of image i would like to display a page which could provide a notepad facility to user.
I placed a edit text with fill parent but the cursor starts from the middle of the screen.
Is there any way that i can start the cursor from the beginning.</p>
<p>Please share your valuab... | android | [4] |
5,282,436 | 5,282,437 | A big integer input in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/849813/large-numbers-in-java">Large Numbers in Java</a> </p>
</blockquote>
<p>I need to take and manipulate an integer input with <= 500 digits. How can it be done in java? Any help would be appreciated. </p... | java | [1] |
1,267,660 | 1,267,661 | Reading Java command line arguments on Unix | <p>I am trying to read a folder name from command line for a Java application on Unix.</p>
<p>I have a ksh script (test.ksh) and it has the line:</p>
<pre><code>java SomApp $*
</code></pre>
<p>I am trying to execute this as below:</p>
<pre><code>test.ksh ../folder
</code></pre>
<p>But this fails; I mean my Java ap... | java | [1] |
742,386 | 742,387 | Initialization Vector in encryption | <p>I've never done any encryption before, but I've been all over MSDN and google. I finally got something working. </p>
<p>I've seen this a ton of times:</p>
<pre><code>Dim IV() As Byte = {&H12, &H34, &H56, &H78, &H90, &HAB, &HCD, &HEF}.
</code></pre>
<p>My question is this - do the h... | asp.net | [9] |
3,099,185 | 3,099,186 | How to add the Project root to the localhost path | <p>My asp.net project, currently runs from <strong>http://localhost:51143/default.aspx</strong></p>
<p>Is there anyway, I could include the root to this like <strong>http://localhost:51143/TOrders/default.aspx</strong> The reason I want to do this is because the URls that get called on the menu click events refer to ... | asp.net | [9] |
3,694,942 | 3,694,943 | Working with PHP objects | <p>I was previously mostly scripting in PHP and now considering getting "more serious" about it :)</p>
<p>I am working on a hiking website, and I needed to put some values into an object that I then try to pass back to the calling code.</p>
<p>I tried doing this:</p>
<pre><code>$trailhead = new Object ();
</code></p... | php | [2] |
4,893,086 | 4,893,087 | Passing value from one page to another using master pages | <p>my problem is i want to pass value of a label and hidden control which are resides in a datalist say in page1.aspx and i want to access these value in page2.aspx. How can i get the values to another page while clicking on submit button. Is there any better option we have without using sessions, server.transfer, requ... | asp.net | [9] |
4,337,959 | 4,337,960 | What is the difference between accessing a class method via -> and via ::? | <p>What is the difference between accessing a class method via -> and via ::?</p>
| php | [2] |
1,620,747 | 1,620,748 | Editing an object in a list<objects> without creating a new instance of that object? | <p>I'm making a database in EF4.1 Code First. I have a table, MedicalPlan, with a one-to-many relationship to a CoverageLevel. CoverageLevel primary key is incrementing. When I create the MedicalPlan I declare the coveragelevels and it creates those tables, like so:</p>
<pre><code>medicalPlan.CoverageLevels = new List... | c# | [0] |
4,755,336 | 4,755,337 | How to implement back functionality in a asp.net web page? | <p>I have a page which has a panel whcih contains various buttons to load different pages.
I have two butons in that panel one is "Search Products" and one is "Add Product".
When i click Add Product it loads the corresponding page , on this page I have a button
which takes me back to Serach Products page , now I want t... | asp.net | [9] |
5,342,537 | 5,342,538 | onOptionsMenuClosed() executed when the 'back' key pressed immediately after the menus were displayed. BUT | <p>From the onPrepareOptionsMenu(Menu) method, I stopped the thread when I was about to display the menus because background thread, which consumes lots of processng time, makes displaying and clicking one of the menus(not the menu button) nearly impossible. After the thread stops, displaying and clicking menus(not the... | android | [4] |
1,505,937 | 1,505,938 | Why web controls does not have sufficient events like windows application? | <p>Hai , An asp panel contains only 6 events. if they provide a visibilechanged event it may very useful for me. if it is in windows application ,how easy it is.I dont know why thy are not providing all these.This is same as in the case of gridView, button ,etc. </p>
<p>just think , I have an Iframe in an asp panel an... | asp.net | [9] |
5,532,691 | 5,532,692 | difficulty with arrays | <p>I am a bit stuck so if anyone has a spare moment it would be a great help for me. I am using eclipse and the program is compiling and running. but there is a runtime error.
in the array {2, 1, 1, 2, 3, 3, 2, 2, 2, 1} I want to print {2, 2, 2} which is the numbers with the highest repeating times in the array. What I... | java | [1] |
1,366,561 | 1,366,562 | controls in code behind | <p>i was working on a vb.net project and i couldn't find some controls in the code-behind file(*.vb). i was wondering is it because i was working in page_load function so controls are not loaded until after page_control event. however i was able to find them with findcontrol function of formview objective.</p>
| asp.net | [9] |
4,352,466 | 4,352,467 | Passing a reference of a base class to another function | <p>Hello stack overflowers,
Here is the problem i am facing, does anyone have solution?</p>
<pre><code>Class A: public class B
{
// I want to pass a reference of B to Function
}
void ClassC::Function(class& B)
{
//do stuff
}
</code></pre>
| c++ | [6] |
1,029,839 | 1,029,840 | Detecting end of page during scrolling in WebView | <p>first I would like to say that I have searched for my problem everywhere, but solutions I have found were not satisfactory. Secondly I'm quite new to Android SDK so please be patient :). </p>
<p>And here is my question: How I can detect if scrolling in WebView has been ended and reach edge of page (Y axis)? </p>
<... | android | [4] |
3,589,250 | 3,589,251 | Checking redirect in PHP before actioning | <p>Is there a way to check if the server responds with an error code before sending a user there?</p>
<p>Currently, I am redirecting based on user editable input from the backend (client request, so they can print their own domain, but send people elsewhere), but I want to check if the URL will actually respond, and i... | php | [2] |
5,685,638 | 5,685,639 | Asp.net prevent modal popup to get displayed while clikcing on browser back button | <p>GoodEvening Everyone,</p>
<p>I am having one asp.net application which contains many links. some of the link displays modal popup Now if i move to link which nabvigates me and click on browser back button so modal popup gets display which i dont want. i need the previous page should get displayed instead of modal p... | asp.net | [9] |
5,578,820 | 5,578,821 | C# : How to generate unique passwords with the length of 7 or 8 characters | <p>I need to repeated generate unique password many times, Ensure that every time the generated passwords are unique, Please help me.</p>
<p>Thanks!</p>
| c# | [0] |
872,015 | 872,016 | jQuery Click Event PreventDefault | <p>If I have an <code>a</code> tag:</p>
<pre><code><a id="delete-event" href="/delete/1234">Delete</a>
</code></pre>
<p>And some javascript which prompts to confirm the delete:</p>
<pre><code> $("#delete-event").click(function(e) {
e.preventDefault();
bootbox.confirm("Are you sure you wish to de... | javascript | [3] |
661,513 | 661,514 | What does this mean in jquery $('#id', javascript_object); | <p>what does this <code>$('#id', javascript_object);</code> mean in jquery . I know that we can pass a context in the second parameter to the selector . But what happens when the second parameter is a javascript object . </p>
<p>Thanks in advance for the help .</p>
| jquery | [5] |
582,971 | 582,972 | Looping objects then deleting them | <p>Hey I have a simple loop which iterates a bunch of objects and checks if they match a variable and if they do, I want to remove it from the that list.</p>
<p>But i don't know how to do it... this is the idea of what I am trying to do :</p>
<pre><code>//my_objects is global (window.my_objects)
for(var i in my_obje... | javascript | [3] |
4,274,414 | 4,274,415 | How to use a searchbar in application? | <p>i am new in iphone application Development and i want to put search bar in my application so please give me some suggestion how to implement search bar. </p>
| iphone | [8] |
1,956,001 | 1,956,002 | What does a database structure of topic id's look like? | <p>I am creating a forum for practice but I am stuck on how to do the topics. Do I need a seperate topic table, and If yes why, cant I just check them in the posts table?</p>
<p>Also, do I record the topic id or the topic name, and if it is the Id, how do I switch them?</p>
<p>Thanks a lot, I am working in PHP</p>
| php | [2] |
1,305,343 | 1,305,344 | Cookie it's not working (hide div with script) | <p>Based on a script I saw I did a modification to fill out my needs, however it was suposed to close the alert box and not display it again as set on code below, however as soon as I refresh page the box shows up again.
Unfortunately my knowledge of jquery is almost none, actually I can't believe how I was able at lea... | javascript | [3] |
1,430,625 | 1,430,626 | how to rid "" from a string to non string | <p>I have this</p>
<pre><code>a = "'Something': False"
</code></pre>
<p>I want it to be this</p>
<pre><code>a = 'Something': False
</code></pre>
<p>How do I do it? I can strip things within the double quotation marks, but not the quotation marks itself. Have researched, cant find. I have mind block at moment. Sorry... | python | [7] |
3,363,400 | 3,363,401 | Downloading file is corrupted - header | <p>I have be trying to figure out what is wrong but every time i download the image and try to open it, it says that the file is corrupt.</p>
<p>$h is the path which is pulled from the database, the $h displays the image on the page successfully but I dont get why it wont download. Any ideas ?? </p>
<pre><code>header... | php | [2] |
3,037,096 | 3,037,097 | How to create only a week calendar with previous and next week buttons | <p>I am really stucked at this.what i want is that there should be 6 table cells in which i should have days with date. like
Monday 4/3/2013 Tuesday 5/3/2013 and so on till saturday
.i have two more buttons,previous week and next week button.. it should automatically show next week when i click the next week button an... | asp.net | [9] |
3,178,605 | 3,178,606 | Python 3.1 Installation missing Tkinter on OS 10.6.4 | <p>Has anyone else had this problem? I have re-installed twice with the same result. The pre-install of 2.6 on the Mac had a lib-tk folder with the correct modules. Nothing like this is being created for 3.1. There is a Tkinter folder but it contains only a few obscure modules. Importing _tkinter and tkinter works but ... | python | [7] |
3,411,385 | 3,411,386 | How to change visibility for MenuItem dynamically? | <p>I'm developing some Android application and I have ActionBar with 2 tabs. I need to show 2 icons on ActionBar when user select the second tab. I have the following code:</p>
<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_main, menu);
mOptionsMe... | android | [4] |
5,076,349 | 5,076,350 | Pure virtual function vs. virtual function? | <p>I'm developing a class with some functionality that I think might need to be extended later, but not now. If the class were to be extended, then I think this would make instantiating the base class meaningless. </p>
<p>For example, let's say my base class is a tree. One approach would be to just put everything that... | c++ | [6] |
3,943,053 | 3,943,054 | Is it possible to get the caller context in javascript? | <pre><code>var test = {
demo: function(){
//get the caller context here
}
}
//when this gets called, the caller context should be window.
test.demo();
</code></pre>
<p>I tried <code>arguments.callee</code> and <code>arguments.callee.caller</code>,and no luck...</p>
| javascript | [3] |
521,307 | 521,308 | How do I check if an image has preloaded successfully? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1977871/check-if-an-image-is-loaded-no-errors-in-javascript">Check if an image is loaded (no errors) in JavaScript</a> </p>
</blockquote>
<p>After being loaded by javascript by setting img.src.</p>
<p>Thanks...... | javascript | [3] |
3,501,611 | 3,501,612 | DLL doesn't store string C# | <p>I have an application that can be launched from the explorer context menu for a Windows drive. When you click the menu item the drive letter is passed to the new instance. I want to make sure that any old instance is closed.</p>
<p>I also want to make sure that the last drive that was selected is persisted, so that... | c# | [0] |
2,281,752 | 2,281,753 | How to bind to checked for a checkbox only? | <p>I have a checkbox and I am using jquery. I want to popup a dialog box when a user checks the checkbox. However if they uncheck the box nothing should popup.</p>
<p>How can I do this? Also I need to use jquery live or livequery as the checkbox is not displayed on page load.</p>
| jquery | [5] |
4,960,604 | 4,960,605 | Slow recursive destructor call in C++ | <p>I am using C++ do represent large graphs using reference counted objects. Something like:</p>
<pre><code>// Public class
class Pointer{
public:
// Constructors
Pointer(...){ node = ...; node->counter++;}
// Copy constructor
Pointer(Pointer& const other){ node = other.node; node->counter++;}
... | c++ | [6] |
1,439,015 | 1,439,016 | Bit count in the following case | <p>I got the following questions in one of the interviews plz help me some ideas to solve it as am completely unaware how to proceed</p>
<p>A non-empty array A of N elements contains octal representation of a non-negative integer K, i.e. each element of A belongs to the interval [0; 7]</p>
<p>Write a function:</p>
<... | c++ | [6] |
4,075,378 | 4,075,379 | BeanUtils Copy Properties: Registering ConvertUtils | <p>I have web application written in Java. Im using <code>BeanUtils.copyProperties</code> method. If a <code>date</code> field is null, it throws an error. I solved it by using <code>ConvertUtils.register</code> method.</p>
<pre><code>ConvertUtils.register(new DateConverter(null), Date.class);
</code></pre>
<p>It wor... | java | [1] |
3,022,036 | 3,022,037 | How to stop PHP source from being printed to my browser? | <p>I just downloaded this "PHP Code Snippet Library" scrpt from <a href="http://www.sourceforge.net/projects/php-csl/" rel="nofollow">http://www.sourceforge.net/projects/php-csl/</a> , when I try to run it from my local dev server, all the PHP on every page is output as PHP code, instead of compiling and running the co... | php | [2] |
1,316,269 | 1,316,270 | Play any video file using asp.net in IE and mozila | <p>i have used "embed" tag for Flv file, Flash Player for "swf" file and "object tag for other files...
everything working fine with IE but in Mozilla only swf files working properly..
can anybody suggest me right way to play video of any type in IE and Mozilla both</p>
| asp.net | [9] |
16,991 | 16,992 | java Regex Question | <p>In Java - I need to search/validate an input string for a number or for a specific string. it must be one of them.
For example - If I have this input lines:</p>
<pre><code>cccccccc 123 vvvvvvvvv jhdakfksah
cccccccc ABC vvvvvvnhj yroijpotpo
cccdcdcd 234 vcbvbvbvbv lkjd dfdggf
ccccbvff ABC jflkjlkjlj fgdgfg
</code><... | java | [1] |
1,590,024 | 1,590,025 | how to display ModelPopupextender to content page from master page | <p>I am new to ASP.NET and C# and have one doubt.</p>
<p>I have one link button in master page and I have one modalpopupextender in my content page.
I need When I click that button the modal popup window will open in the content page..
Can anyone help, it's very useful for me?</p>
<p>Thank you</p>
| asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.