Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
4,193,716 | 4,193,717 | SurfaceView (camera preview) goes black after screen On/Off | <p>I'm trying to understand interesting thing. I made simple application with SurfaceView and Button. SurfaceView shows camera preview and Button shoot picture. Everything goes good except one moment:</p>
<p>If i press home button, my app goes to background, ok, then i turn screen off/on, then i tap on app icon and my... | android | [4] |
5,663,887 | 5,663,888 | How can i use mouse right click button in a listBox on selected index? | <p>I have this selected index event of a <code>ListBox</code>:</p>
<pre><code>private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (listBox1.SelectedItem != null)
{
label4.Text = listBox1.SelectedItem.ToString();
string startTag = "Url: ";
string endTag = " --... | c# | [0] |
2,352,747 | 2,352,748 | Show last 7 days without week-end days (php) | <p>I need to show last seven day in a select box but without week end day, in php </p>
<p>my code </p>
<pre><code> for($time=0; $time<(86400*14); $time+=86400)
{
?> <option value="<?php echo $date=date('Y-n-j', time()-$time);?>"><?php echo $date=date('n/j', time()-$time);?></opti... | php | [2] |
5,826,499 | 5,826,500 | Using sprintf will change the specified variable | <p>I have a code,</p>
<pre><code>char* bin2hexchar( const unsigned char& ibin, char* pbcd )
{
sprintf( pbcd, "%02X", ibin );
return pbcd;
}
</code></pre>
<p>The problem is, the value of ibin variable will change to zero value.</p>
<p>Please advice.</p>
<p>Thanks</p>
| c++ | [6] |
1,766,210 | 1,766,211 | Use of Meter in Android App | <p>can any one tell me about this problem? I have an two image one image is frame and other image is mask and i want to use it like frame fill with the mask with respect to result of some kind of calculation.e.g result is 60 then then frame also fill with the masks but not full but 60% fill it.</p>
| android | [4] |
2,382,116 | 2,382,117 | curl output to database | <p><strong>curl_setopt($ch, CURLOPT_FILE, $fp)</strong> which is used for output to a file. Is any way to set </p>
<p>output to database.</p>
| php | [2] |
740,080 | 740,081 | how to implement google map5 feature in my application in android | <p>I want to implement google map5 feature in offline in my application .can anybody tell how to implement?</p>
| android | [4] |
2,834,970 | 2,834,971 | MegaVideo download (using Premium account) | <p>How to get the link to the original megavideo file (avi, mvk etc.) with Premium account using PHP? There are some scripts in the net, however all of them are enabling to download .flv only.</p>
| php | [2] |
3,412,263 | 3,412,264 | How to count all the entries in a table using javascript? | <p>I have a table in html template which might contain 100s of rows. Those data might be paginated. I want to count all the total number of rows in the table and write in this tag:</p>
<pre><code><p id="entry"> <span>.. Entries</span> </p>
</code></pre>
<p>How can I do that?</p>
| javascript | [3] |
5,993,905 | 5,993,906 | How to create a edit text with a permanent hint inside it | <p>I have a edit text in which the user enters amount. What I want to do is set a textview value before it that is not editable by the user like "INR" and then the user will enter the amount in front of it. I want edittext to look like the below one. How can I do that?</p>
<p><img src="http://i.stack.imgur.com/gFGIb.p... | android | [4] |
88,397 | 88,398 | open photo gallery on second tab bar click? | <p>How do I open a photo gallery on second tab bar click??</p>
| iphone | [8] |
3,125,114 | 3,125,115 | Android Simulate Roaming | <p>I have an application which takes certain action when Phone gets a Roaming event.To test that its perfectly working , can i simulate the SIM Roaming event.Its not practically possible for me to do that in reality</p>
| android | [4] |
1,813,341 | 1,813,342 | how can i read variable to other page by post | <p>i have link like this</p>
<pre><code><a href="PrintSingleCashier.php?id=<?=$objResult["cashiers_CashierID"]; ?>" target="_new"><img src="../images/print.png"></a>
</code></pre>
<p>and i wont to print variable <code>id</code> to other pages called <code>PrintSingleCashier.php</code>, i will ... | php | [2] |
5,701,132 | 5,701,133 | Traversing a JQuery object and replacing text | <p>Assuming I have the following html div which I want to replicate its children, changing the value of each span in the process</p>
<pre><code><div><span class="foo">[Name]</span> <span class="bar">[Name]</span></div>
</code></pre>
<p>Using jQuery I can get a reference to the "div... | jquery | [5] |
5,537,862 | 5,537,863 | Is there an online ECMAScript beautifier which supports chaining? | <p>Is there an online ECMAScript beautifier which supports aligning chained methods (and also, preferably, comma first)? </p>
<p>I've used jsbeautifier.org for years, and I've seen the modified version at <a href="http://jsfiddle.net/RabTN/29/" rel="nofollow">http://jsfiddle.net/RabTN/29/</a> which does comma first (... | javascript | [3] |
2,852,708 | 2,852,709 | Play iPhone audio in ear speker | <p>How can we play audio using the ear speaker from an application.
The audio plays like some one is talking at the other end of the phone.</p>
<p>Thanks</p>
| iphone | [8] |
2,780,980 | 2,780,981 | string array in spinner | <p>i have an array which is populated in the spinner adapter.
now i wanna change the size of the array! is it possible?
help!
thank u
`public void classpopulate() {
if (PEP.getUser() == null) {
return;
}</p>
<pre><code> classdetails = masterDataManager.getClassSections(PEP.getUser()
... | android | [4] |
1,504,654 | 1,504,655 | Object Oriented Programming | <p>Object Oriented Programming..
I have a problem in my main method, it says cannot find symbol. why?</p>
<p>in this part:</p>
<pre><code>double grossPay = payroll.getHoursWorked * payroll.getPayRate * payroll.getTaxRate ;
</code></pre>
<p>all I know is that I already declared it in my base class
in here:</p>
<pre>... | java | [1] |
2,310,016 | 2,310,017 | How could i manage to open a popup window in a secondary monitor if it exists using javascript? | <p>How could I manage to open a popup window in a secondary monitor if it exists using javascript??
Thank you so much...</p>
| javascript | [3] |
2,344,470 | 2,344,471 | Sending a web request with a python script to select a specific radio button on a web page | <p>I have to test an internal web page.
The web page contains text fields, buttons, and radio buttons.
Based on a specific radio button selected another sub-form is displayed in the web page.</p>
<p>I'm using urllib2, and some of its modules, to successfully connect to the web server and perform some actions.</p>
<p>... | python | [7] |
4,240,163 | 4,240,164 | How will GCM handle all queueing and delivery for messages to Android applications? | <p>If multiple PUSH messages are sent to the same device, then how is the queuing working in GCM.</p>
| android | [4] |
5,753,109 | 5,753,110 | Navigation bar similar to LinkedIn on Android | <p>So for Android's LinkedIn app, there is a navigation bar and once you click on the LinkedIn logo, a subnav will drop down. If you click the logo again it will go back up.</p>
<p>What is this referred to as for Android? What steps would I need to take to produce a similar effect?</p>
<p>I'm no so much looking for s... | android | [4] |
4,840,721 | 4,840,722 | why can't we declare object of a class inside the same class? | <pre><code>class A
{
A a;//why can't we do this
};
</code></pre>
| c++ | [6] |
727,655 | 727,656 | How do I create an instance of OnClickListener | <p>I wrote this code, but I get an error with View.OnClickListener.</p>
<p>The error said that View can't be resolve as type. I have imported android.view.View.OnClickListener but still get the same error.</p>
<p>If I use the quick fix another error appears.</p>
<pre><code>public class Net extends Activity implemen... | android | [4] |
5,654,365 | 5,654,366 | int a; ...; (a == a) fails? | <p>if we set <em>float</em> and <em>double</em> type to <em>NaN</em> then they are not equal to anything including <strong>themselves</strong>.<br>
can such a thing happens for <em>int</em>?</p>
| c++ | [6] |
5,648,856 | 5,648,857 | Uncatchable webview exception? | <p>I want to clear all webview data from my app. I'm doing the following:</p>
<pre><code>WebViewDatabase wvd = WebViewDatabase.getInstance(context);
if (wvd != null) {
try {
wvd.clearUsernamePassword(); <-- throws an uncatchable exception
} catch (Exception ex) {
Log.e(TAG, "nope!", ex);
... | android | [4] |
492,013 | 492,014 | jQuery replaceAll() function | <p>I want to replace every link by an input box whose value is the URL of the link. I would like to use the jQuery replaceAll() function. The standard format is</p>
<pre><code>$(content).replaceAll(target);
</code></pre>
<p>My question is: how do you refer to the target object? In other words, in the following code, ... | jquery | [5] |
4,636,622 | 4,636,623 | PHP Depend and @package-annotations | <p>Similar to <a href="http://stackoverflow.com/questions/2099431/whats-the-point-of-package-annotations">What's the point of package annotations?</a>, I'm running pdepend against a section of our source code, looking for problems. However, it spits out the following:</p>
<p><code>The parser doesn't detect package in... | php | [2] |
2,466,815 | 2,466,816 | C++ and SDL problem | <p>I want to blit surfaces that I've created in two classes. One is called <code>Map</code>, that holds the relevant map vector as well as some other stuff. The other is a <code>Tile</code> class. There is a problem when I run the program.</p>
<p>I get no errors, and the program runs as it should. Any ideas? It's pro... | c++ | [6] |
436,537 | 436,538 | jquery datepicker on jquery dialog won't show after cancel is pressed | <p>I've successfully created a jquery datepicker on jquery's dialog box that was loaded via load() function.</p>
<p>I was able to achieved it by overriding dialog box's open event:</p>
<pre><code> open: function (event, ui) {
if ($('input.date-picker').length > 0) {
$('i... | jquery | [5] |
5,510,157 | 5,510,158 | How to fix stack overflow error in visual C/C++? | <p>I am writing a file in C/C++ which generates <code>100000</code> lines of records <code>(name, int[5] grade, double[5].value)</code>. The code should generate <code>100000</code> random characters for name and integer for value. I am getting stackoverflow error. Can anyone pls help?</p>
| c++ | [6] |
3,639,185 | 3,639,186 | What is the "length" in the char[]? | <pre><code>char[] name = "VIKKYHACKS".toCharArray();
System.out.println(name.length);
</code></pre>
<p>In this program what is the "length" , If it were <code>(new String("VIKKYHACKS")).length()</code> then the length would be a method. But char[] is a datatype and cannot have fields or methods inside it. How does the... | java | [1] |
5,492,731 | 5,492,732 | Placing a button at a fixed position? | <p>How do I place a button at a particular position (i.e at a particular pixel) on the screen, on Android?</p>
| android | [4] |
5,661,696 | 5,661,697 | ViewFlipper crashes after orientation change | <p>I'm trying to use inflate while using ViewFlipper to access to the data inside my view. I've done sample project that crashes.</p>
<p><code>main.xml</code><br>
< ?xml version="1.0" encoding="utf-8"?><br>
< ViewFlipper<br>
xmlns:android="http://schemas.android.com/apk/res/android"<br>
a... | android | [4] |
5,291,423 | 5,291,424 | What is the numerical value for "slow"? | <p>If I were to do <code>.fadeIn('slow')</code></p>
<p>what would be the number that replaces the word slow but is the same exact speed?</p>
| jquery | [5] |
928,606 | 928,607 | Choosing application to open file with programmatically | <p>My application is trying to open a text file, and is presented with a list of apps that are able to open the text file, for eg (HTMLViewer, OpenOffice, etc). I want my application to open text file via OpenOffice automatically, without the list dialog popping out. Is there any ways to do that programmatically?</p>
... | android | [4] |
976,775 | 976,776 | How to make method calls dynamically in Java | <p>I'm trying to make a list of function calls. I want to be able to call a specific method by simply choosing the method from an array.</p>
<p>So for example if I want to call, drawCircle() and that method is in the first index than I could say runMethod[0].</p>
<p>Here's what I have so far. I've made an interface w... | java | [1] |
3,414,051 | 3,414,052 | Returning constructor-less object as output parameter | <p>I want to return an object from a function as an output parameter, but the object has no default constructor so I can't do this:</p>
<pre><code>bool FindFlaggedObject(MyObject& myObject)
{
std::vector<MyObject> myObjects = GetSomeObjectList();
for (UINT i = 0; i < myObjects.size(); i++)
{
... | c++ | [6] |
3,375,282 | 3,375,283 | jQuery: Use variables within selector | <p>Mind you, I'm not a jQuery guru and just still learning.</p>
<p>I have this looong function:</p>
<p><code>$('.client1 > *:first-of-type, .client2 > *:first-of-type, .client3 > *:first-of-type, .client4 > *:first-of-type, .client5 > *:first-of-type').append('<span class="jsi"/>');</code></p>
<... | jquery | [5] |
5,972,323 | 5,972,324 | Focus and select all input box after append of input box | <p>I need to implement a generation input box, and upon generation there is a default value, that default value should auto focus and all text should be selected;</p>
<p>Here is my function in JS assuming a button has been click and call this function </p>
<pre><code>function createFolder()
{
var newTextBoxDiv = $... | jquery | [5] |
749,356 | 749,357 | Jquery Mobile JSON Listview | <p>I have the following JSON returned:</p>
<p><code>{"aaData":[["Vision Plaza","KE ","JKIA","KE ","Myself"],["987 Avenue","KE ","654 Avenue","KE ","Laptops"],["Merimela","UG ","Nairobi","KE ","Antiques"],["Ngong Road","KE ","JKIA","KE ","Walter"]]}</code></p>
<p>These are four records i.e </p>
<p>This is the first r... | jquery | [5] |
649,830 | 649,831 | Upload file to remote server (PHP) | <p>I have a scenario where I have a page on one server which prompts a user to upload a file. I need this file to be uploaded to a different server with a larger storage facility. I then need to get the absolute path of where the file now resides on the server sent back to the originating page. </p>
<p>The file size... | php | [2] |
4,116,371 | 4,116,372 | Understanding Global & Local Scope in Javascript | <p>I've been learning Javascript using <a href="http://www.packtpub.com/object-oriented-javascript/book" rel="nofollow">Object-Oriented JavaScript by Stoyan Stefanov</a></p>
<p>He offers an example comparing global and local scope:</p>
<pre><code>var a = 123;
function f() {
alert(a);
var a = 1;
alert(a);
... | javascript | [3] |
3,649,123 | 3,649,124 | Alert Message with external js file | <p>I have a external test.js file with code:</p>
<pre><code>$(document).ready(function() {
alert("I am an alert box2!");
});
function show_alert()
{
alert("hihi");
}
</code></pre>
<p>In my .html, I have included test.js, jquery file and there is a button. When click on it, <code>show_alert()</code> funct... | jquery | [5] |
403,881 | 403,882 | image processing in android | <p>how to change the contrast and brightness of a picture, i have taken the image for that need to change the brightness and contrast when seekbar is changing</p>
| android | [4] |
2,189,157 | 2,189,158 | Programmatically clear browser cache/history | <p>During my activity I'm sending an intent to the browser in order to display a webpage :</p>
<pre><code>
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://ww.mywebpage.com");
startActivity(i);
</code></pre>
<p>I need to make sure that before sending the intent the browser cache and history are cle... | android | [4] |
3,104,192 | 3,104,193 | java array pass by reference does not work? | <p>guys i thought almost all language including java pass array into function as reference (modifiable) </p>
<p>but somehow it does not work here. and the testArray is still 1,2,3 with size of 3 </p>
<p>strange enough, when if i change result[i] = 2 to a[1] =2; it work . it did pass by reference</p>
<p>what is wrong... | java | [1] |
484,019 | 484,020 | add namespace to java dom attribute | <p>I am trying to create an attribute with a namespace prefix. The following code does not seem to work:</p>
<pre><code>Element newData = docFromXML.createElement("Data");
Attr typeAttr = docFromXML.createAttributeNS(namespaceContext.getNamespaceURI("ss"), "type");
typeAttr.setValue("String");
newData.setAttributeNode... | java | [1] |
5,390,037 | 5,390,038 | Java getAudioInputStream() Symbol not found | <p>I have created a <code>class</code> to play the sound when I click the buttons.</p>
<p>Here is the code : </p>
<pre><code>public void playSound()
{
try
{
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File("beep-1.wav"));
Clip clip = AudioSystem... | java | [1] |
2,293,278 | 2,293,279 | Android - Brain Cramping | <p>Alright, I have a simple boolean at the top of this class, standing. In the thread, I have the following code:</p>
<pre><code> @Override
public boolean onTouchEvent(MotionEvent event) {
if(event.getAction() == MotionEvent.ACTION_DOWN) {
if(standing == true){
player.handleActionDown((int)eve... | android | [4] |
1,431,197 | 1,431,198 | What's a good resource to build my first python project? | <p>I'm tired of books and tutorials who walk me through how to print things before I can do anything fun. I want to build simple apps or programs. Any suggestions for where to start so I can make and learn at the same time?</p>
| python | [7] |
4,172,424 | 4,172,425 | define local variable in some given scope | <p>How could I define local variable in some given scope? </p>
<pre><code>var f = function() {
// (1) var localVariable = 'some value';
alert(localVariable);
}
var defineLocalVariable = function(fnTarget) {
// (2) fnTarget['localVariable'] = 'blah...';
/* (3)
with (fnTarget) {
var localV... | javascript | [3] |
4,706,182 | 4,706,183 | How to embed <script> video in Shadowbox.js | <p>I'd like to embed a video delivered by Ooyala in a Shadowbox.js object using Wordpress. I've successfully installed Shadowbox.js and tested it with images and videos. The syntax for Shadowbox is something like:</p>
<pre><code><a href="mymovie.swf" rel="shadowbox;height=140;width=120">My Movie</a>
</code... | javascript | [3] |
5,818,857 | 5,818,858 | $GLOBALS["argv"] and $argv empty, $_SERVER["argv"] just fine | <p>I am fighting with a (perhaps) simple problem with PHP CLI running on Hostgator shared hosting. A simple code:</p>
<pre><code><?php
var_dump($argv);
var_dump($GLOBALS["argv"]);
var_dump($_SERVER["argv"]);
var_dump(ini_get("register_argv_argv"));
?>
</code></pre>
<p>When run on my local machine as well as sev... | php | [2] |
2,553,358 | 2,553,359 | How to quickly unbind an event wherever it's attached? | <p>I've bound a couple events like so:</p>
<pre><code>$('#window-overlay').on('click', overlayClickHandler);
$clickedObj.on('click', overlayClickHandler);
</code></pre>
<p>Is there some easy way so that if I click on one of these things, the click event is removed from the other thing? Removing it from <code>#window-... | jquery | [5] |
4,755,255 | 4,755,256 | c#: SerializableAttribute | <p>The <code>SerializableAttribute</code> class is explained on <a href="http://msdn.microsoft.com/en-us/library/system.serializableattribute.aspx" rel="nofollow">this link</a>. In the start it is written:</p>
<blockquote>
<p>Indicates that <strong>a class can be serialized</strong></p>
</blockquote>
<p>Can anybod... | c# | [0] |
1,836,170 | 1,836,171 | jquery and highslide | <p>I use this js <a href="http://highslide.com" rel="nofollow">http://highslide.com</a>.
I have a separate div and i want open the highslide with this div with onclick event..
I have try this but not work..</p>
<p><pre><code>
$('#po').click(function(){
var s = $('#ap_1');
return hs.expand(s, config1);
});
</pre></cod... | jquery | [5] |
2,538,153 | 2,538,154 | I need a regular expression to find out the marks from multiple lines between tags and number of lines are not specified | <p>I am having text file from which i want to find out the marks value which is 65 in the current text.</p>
<p>I need expression to find out the marks from each file which comes after My Marks statement.
The number of lines in the code are not specified or fixed it may be 2 or more.</p>
<p>I don't have any idea how t... | c# | [0] |
4,850,624 | 4,850,625 | "foo" and "bar" used commonly in php.net and other sites | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/53609/what-does-foo-really-mean">What does 'foo' really mean?</a> </p>
</blockquote>
<p>It is a very common thing to encounter in <a href="http://php.net/" rel="nofollow">php.net</a> statements like <cod... | php | [2] |
1,510,291 | 1,510,292 | Progress info on client side? | <p>I've a Servlet which is used to generate and download file using <strong>ServletOutputStream</strong>. It's working well. But the Servlet some time take several seconds to process request depending on size of the file. </p>
<p>My questions is I want show the some progress information to client side. How do I do it?... | java | [1] |
510,503 | 510,504 | How do I get a Java Set to iterate in the same order every time? | <p>Is there any way that I can get a Java Set object (not a SortedSet) to iterate over its elements in the same order every time that I run the program. (The elements are the same for each run.) I am trying to debug my program but I'm having trouble reproducing my error because the iterator returns the values in a diff... | java | [1] |
2,950,026 | 2,950,027 | How to refresh a folder's data in asp.net 2.0 using c# | <p>Again i rewrite my question with more details i.e. I am developing a website in Asp.net 2.0 in that i'm tracking the user's some details like their id,no of page hitted and time of hitting etc, in a LogfileDate(the LogfileDate contains whole day summary of all users) saved inside a folder(Folder is inside my projec... | asp.net | [9] |
133,737 | 133,738 | Passing array in popups to parent | <p>I have inherited an application that makes considerable use of popups, much to my dismay. I cannot find a way to close these popups when the parent page closes. This application also uses framesets. I've tried passing an array of with the names of the popups in it, but the parent doesn't see the array. Is this d... | javascript | [3] |
4,676,616 | 4,676,617 | Getting an unique id from an element | <p>Had a good crack at this, quite a few articles around but I can't make sense of them. Any help appreciated.</p>
<p>When I click 'slide-toggle', I need 'slickbox' to expand, but ONLY that instance of 'slickbox' within 'slide' (i.e. there is more than one slickbox element on the page).</p>
<p>I have tried to use thi... | jquery | [5] |
2,707,971 | 2,707,972 | boost::split: how to split a string with a character? | <p>I'm stuck with this simple problem.
Say I have a string which is consisted from characters [0-9]. What I would like to do is split the string by the single characters using boost::split.</p>
<pre><code>std::string str = "0102725";
std::vector<std::string> str2;
boost::split(str2, str, boost::is_any_of(SOMETHI... | c++ | [6] |
5,085,432 | 5,085,433 | Python script to copy files | <p>I am trying to write a Python script that will copy files from one user’s home directory into another user’s home directory. I want it to copy the permissions, as well. I read the Python API and I think that the copy2 method does just that. However, when I run the following code, I get errors.</p>
<pre><code>import... | python | [7] |
3,803,322 | 3,803,323 | What is the main difference in packaging an applet vs. an application (for deployment) in Eclipse? | <p>Couldn't find a thread that explained the difference between both.</p>
<p>What is the difference?</p>
<p>Thank you to all that helps!</p>
| java | [1] |
3,565,828 | 3,565,829 | How to get an object name? | <p>I have the following code snippet</p>
<pre><code>function receiver(callback)
{
console.log( callback );
}
function callback(){}
receiver( new callback() );
OUTPUT: callback {}
</code></pre>
<p>is there a method or way to get 'callback' out of callback parameter? I like to get an object's name.</p>
| javascript | [3] |
4,314,170 | 4,314,171 | jQuery Event for link click not firing | <p>I have the following function:</p>
<pre><code> $("a#mylink").click(function(e){
e.preventDefault();
$.ajax({ url: $(this).attr("href") });
$(this).parent().parent().fadeOut("slow");
});
</code></pre>
<p>A link is being created on the page with the following code:</p... | jquery | [5] |
4,842,228 | 4,842,229 | Multiple controls with single event using jquery | <p>I am trying to reduce some code here. I will explain how</p>
<p>I have multiple Button controls. I am using the click event for each</p>
<pre><code>$("#B1").click(function() {
var v1 = "abc";
});
$("#B2").click(function() {
var v1 = "efg";
});
$("#B3").cl... | jquery | [5] |
1,210,925 | 1,210,926 | how to check the value of sumbitted form field against an variable array | <p>I have a simple post code check, I'd to check the submitted value against a pre-made variable, how can I do this in Jquery,</p>
<p>any help would be appreciated.</p>
<pre><code> <form method="post" action="#">
<input name="textfield" type="text" id="textfield" size="8" maxlength="8" />
<i... | jquery | [5] |
450,520 | 450,521 | How do I make an instance of an object accessible to multiple swing forms? Java | <p>I'm making a text based RPG to help me learn Java. So I have a bunch of different classes that make swing forms right now and each of which will lead to one another. However, in one form I actually create the instance of the object called Player, where I will set the stats (strength, agility, level, etc.) based on... | java | [1] |
322,714 | 322,715 | jQuery - Display the value of a textbox and input the value to another | <p>Basically I want to get the value of a textbox which is to select a date and output the value that is selected to another textbox.</p>
<p>These textboxes are on the same page (different steps of the same page) and the document is loaded when the page is ready on click of the next step, I've tried using:</p>
<pre><... | jquery | [5] |
5,908,982 | 5,908,983 | Stopping an app generated log from running | <p>I am new to android programming and development. I am working on app that auto generates a log file and attaches it to an email. The problem I am having is making the log stop running. It generates the .text file to the sd card to attach to the email, but the log keeps running and never stops. The only way I am able... | android | [4] |
735,317 | 735,318 | modify function and If statement | <p>I have a inputbox that displays a default text "Input Network ID Here...". I need to take <code>$inputUri</code> and check it against function <code>checkUrl($string)</code> to see if its still there. If the text hasn't been cleared then display the <code>addError</code> message </p>
<pre><code>public function chec... | php | [2] |
1,412,626 | 1,412,627 | Incomplete type in c++ | <p>I have declared DynArray var_name in c++, but while compiling it gives me an error "incomplete type not allowed"
I tried to search but nothing came up with an example of dynamic array.
Could anyone please explain the error?
Thanks.</p>
| c++ | [6] |
3,276,724 | 3,276,725 | java newbie question | <p>if I have something like this</p>
<pre><code>Map<String, Foo> foos;
...
Foo f = foos.get("key1");
foos.removeAll();
</code></pre>
<p>Am I still able to do <code>String s = f.getSomeProperty();</code></p>
| java | [1] |
1,714,691 | 1,714,692 | Mail exchange without SMTP server | <p>Is there any way to create a mail server application without using SMTP server in c#?</p>
| c# | [0] |
4,873,102 | 4,873,103 | Authorization check using Global.asax | <p>In my ASP.NET web application, I want to check every time the user is trying to get a page from my application if the user exist in the DB (of course after the first time we save the user details in the session).
I tried to use the Application_AuthenticateRequest event in the global.asax to
check for each request b... | asp.net | [9] |
2,911,347 | 2,911,348 | Disable & resize IE | <p>I have a few questions in mind...</p>
<ol>
<li>I want to disable right click on my webpage so that noone can alter
the source code</li>
<li>I want to disable the addressBar as well</li>
<li>I wish to resize it to a particular size in the bottom right of my
screen & with a text area so that when ever I click the... | javascript | [3] |
653,417 | 653,418 | Dynamically add to TR class value from selected option | <p>Probably easy task but I can not find working solution?</p>
<p>I need add a class value of selected option to relative TR:</p>
<pre><code><table>
<tr class="odd views-row-first">
<td class="views-field views-field-website-id">1</td>
<td class="views-field views-field-changed">13494227... | jquery | [5] |
522,997 | 522,998 | Javascript variable returning blank | <p>I am testing this code:</p>
<pre><code>var thecol = '';
// Note: I know that value.cat = '3'
if (value.cat === '1') {
thecol = 'cat1';
} else if (value.cat === '2') {
thecol = 'cat2';
} else if (value.cat === '3') {
thecol = 'cat3';
} else if (value.cat === '4') {
theco... | javascript | [3] |
1,677,045 | 1,677,046 | Dynamic configuration object based on __setattr__ and _getattr__ | <p>I tried to create dynamic object to validate my config in fly and present result as object. I tried to achieve this by creating such class:</p>
<pre><code>class SubConfig(object):
def __init__(self, config, key_types):
self.__config = config
self.__values = {}
self.__key_types = key_type... | python | [7] |
1,081,298 | 1,081,299 | Indicative Python prints | <p>I would like it if there was some way to generate a more indicative python prints: when printing some value, not only the result will be printed out,
but also the expression that got me that result.</p>
<p>For example, lets say I have:</p>
<pre><code>>>> x = 1
</code></pre>
<p>Then, for printing x and it... | python | [7] |
44,495 | 44,496 | Jquery showing matching content when page loads | <p>I have a a particular page that I am showing two diff items on and when you click one of the items the content on the page switch's to that particular items info and hides the other items info. SO its pretty much a tab system in simple terms but my problem is that i would like to show the by default the first items ... | jquery | [5] |
2,886,652 | 2,886,653 | javascript print without print dialog box | <p>The below snippet working fine, but it opening the dialog box window, </p>
<p>but i dont want to open the print dialog box , </p>
<p>just print should done without dialog box, </p>
<p>what snippet i should add in the below snippet ,</p>
<p>And also one doubt, i want to take print out in DOT Matrix Printer, the ... | javascript | [3] |
5,394,525 | 5,394,526 | What is jQuery18007779947370290756 | <p>I use jQuery in my page, when I use Chrome developer tool, I found jQuery18007779947370290756 and jQuery object in Console. jQuery18007779947370290756 only contains a few methods. jQuery contains a lot more methods. so what is jQuery18007779947370290756 ? I do not have the url of the page, since it is internal page.... | jquery | [5] |
1,261,601 | 1,261,602 | PHP: how to print a variable value to screen if this is in a inner function | <p>how can I print the content of a php variable on screen if the code is inside a function that is called without refreshing the page, but just to store same values in the database ?</p>
<p>thanks</p>
| php | [2] |
5,076,716 | 5,076,717 | How do we determine the number of days for a given month in python | <p>I need to calculate the number of days for a given month in python. If a user inputs Feb 2011 the program should be able to tell me that Feb 2011 has 28 days. Could any one tell me which library I should use to determine the length of a given month. </p>
| python | [7] |
2,909,317 | 2,909,318 | Why is for(;;){…} an infinite loop? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4740979/empty-for-loop-for">Empty for loop - for(;;)</a> </p>
</blockquote>
<p>I just found a strange construct in the JS parser of UglifyJS (at <a href="https://github.com/mishoo/UglifyJS/blob/master/lib/parse-... | javascript | [3] |
3,567,406 | 3,567,407 | Script for login page in eclipse for robotium | <p>Can u tell me how to write the scripts for login page for the android application in eclipse using robotium tool.</p>
| javascript | [3] |
946,218 | 946,219 | Android connectivity with Desktop app | <p>Currently i am building a mobile app on ubuntu 11.10 system.For checking the local app on phone i am using emulator.Is it possible to check the local app through my android phone.via emulator i am accessing my app via 10.0.2.2:3000.For android mobile how to do</p>
| android | [4] |
839,094 | 839,095 | how to develop VOIP application for iphone | <p>Hi all great programmers,</p>
<p>just wanted to check how to start developing VOIP IPhone application what are the supported libraries API's available.</p>
<p>thanks in advance</p>
| iphone | [8] |
4,900,906 | 4,900,907 | fragments and mapView | <p>can i use fragments and map view in the same activity. I have seen a subject talking about this: <a href="http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb">MapView in a Fragment (Honeycomb)</a>
I was than able to create a fragment list and a map view in the right.
Can i print other fragment... | android | [4] |
3,953,308 | 3,953,309 | Getting checkboxes to maintain checked state on click | <p>I've tried various methods to get my checkboxes to be checked upon a click. </p>
<p>The following works on document ready:</p>
<pre><code>$('input[name=foo]').attr("checked","checked");
</code></pre>
<p>However as soon as I surround it with a click event the checkboxes won't maintain checked state. On the click t... | jquery | [5] |
238,610 | 238,611 | app release build issue for iphone | <p>just one query , i run the code via release mode since i am about to launch the app ,</p>
<p>i can see these info when i clikc on build result</p>
<pre><code>Validate build/Release-iphoneos/abc.app
cd /Users/applefan/Desktop/ssabc/Code/DatabaseTest
setenv PATH "/Developer/xcode3.2/Platforms/iPhoneOS.platform/Devel... | iphone | [8] |
4,821,309 | 4,821,310 | Bookmarking the page in which get attribute is written | <p>I am starting PHP. While reading form from <a href="http://www.w3schools.com/php/php_post.asp" rel="nofollow">here</a> I came across this text,</p>
<h2>When to use method="post"?</h2>
<blockquote>
<p>Information sent from a form with the POST method is invisible to
others and has no limits on the amount of inf... | php | [2] |
4,201,926 | 4,201,927 | Jquery getting a child class of a selector retrieved using .prev | <pre><code>back = $("#contactus_"+id).prev();
</code></pre>
<p>I'm probably asking a simple question, but how do I get at .up_btn class from the id above?</p>
<p>normally to target this class i would do $("#contactus_"+id+" .up_btn") however in this instance I can't place the class name in there like that since I wan... | jquery | [5] |
5,680,523 | 5,680,524 | Class factory mixin | <p>I would like to create in a mixin <code>class</code> that would impart a <code>class</code> factory method for the final class of a concrete type through several layers of inheritance. More specifically, I would like to have the factory method produce a new instance of the actual object it is called as a member of.<... | c++ | [6] |
5,872,013 | 5,872,014 | can we assign a integer value to a reference varible? | <p>It is not possible to assign an integer value to a reference varible directly, say like:</p>
<pre><code>int &x=10; //not possible
</code></pre>
<p>Is there any other way we can modify this statement to make it possible?</p>
<p>But not like this:</p>
<pre><code>int a=10;int &x=a;
</code></pre>
<p>This wo... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.