Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
1,837,407 | 1,837,408 | new popup window on every click | <p>I've a pop up window which i'm opening using below script. On every click, i want to open new pop up.
I understand, having unique name for the window will solve the problem (In this case "SampleWindow").
What's the best way to maintain the uniqueness of the window ? Is there any other way to manage javascript popu... | javascript | [3] |
4,987,282 | 4,987,283 | javascript variable is undefined | <p>First , let's see the code.</p>
<pre><code>var a=0;
b=1;
document.write(a);
function run(){
document.write(b);
var b=1;
}
run();
</code></pre>
<p>I think the result is <code>01</code> .but in fact , The result is <code>0undefined</code>. </p>
<p>Then I modify this code.</p>
<pre><code>var a=0;
b=1;
docum... | javascript | [3] |
4,874,137 | 4,874,138 | Adding border div pushing other divs out of box | <p>I am adding a div border on the mouseover of the div, but its pushing other divs out of the box.</p>
<p>I have fixed height and width and have 4 divs for row. finally there are two rows with 8 divs and with fixed height.
When i mouseover any div , it pushes all the divs below it outside the main box.</p>
<p>I trie... | jquery | [5] |
4,663,688 | 4,663,689 | Selecting select fields in jQuery 1.4 not working | <p>This works in jQuery 1.3.2, but not in 1.4</p>
<pre><code>$("#container").children().map(function() {
var child = $(this);
if (child.is(":select")) {
//do something with child
}
});
</code></pre>
<p>What is the right way to do this in jQuery 1.4?</p>
| jquery | [5] |
2,327,702 | 2,327,703 | flash player it is supported on the emulator | <p>I want to install the flash player into the emulator. It's possible??</p>
| android | [4] |
3,861,893 | 3,861,894 | Moving the Expandable List view indicator top or bottom | <p>The indicator can be moved right side of the screen but how to move it top or bottom. I have given the screenshot i want to move the indicator parallel to the texts.</p>
<p><img src="http://i.stack.imgur.com/GLsog.png" alt="enter image description here"></p>
| android | [4] |
1,697,168 | 1,697,169 | Proxy for URL request on iPhone | <p>I'm trying to make a URL request to my server but the request needs to go through a proxy (IP address, not used for authentication). Can anyone get me any pointers on how to achieve this?</p>
<p>Can I programatically set a proxy for an URL request?</p>
<p>thanks</p>
<p>Thomas</p>
| iphone | [8] |
2,775,466 | 2,775,467 | Send ArrayList<GeoPoint> array in putExtra method | <p>I have created Intent and I put data using <code>putExtra</code>method.</p>
<p>Now I want to put my <code>geoPointsArray</code>type variable to my intent object, here is type of geoPointsArray :</p>
<pre><code>List<GeoPoint> geoPointsArray = new ArrayList<GeoPoint>();
</code></pre>
<p>In existing meth... | android | [4] |
3,427,282 | 3,427,283 | Is there a way to detect whether the apk is stored on SD-card or not? | <p>Is there a way to detect whether the apk is stored on SD-card or not?
How?</p>
| android | [4] |
2,259,179 | 2,259,180 | Direct backwards with PHP | <p>How do you direct back with <code><?php include("./php/content/index.php"); ?></code>?</p>
<p>Asin, if you are already on the page:</p>
<blockquote>
<p>www.address.com/about/index.php</p>
</blockquote>
<p>how do you link it to the file:</p>
<blockquote>
<p>www.address.com/php/menu.php</p>
</blockquote>... | php | [2] |
2,035,218 | 2,035,219 | Filter contentresolver query by date and time - Android | <p>I'm using the "MediaStore.Images.Media.EXTERNAL_CONTENT_URI" to query for photos stored on the sd-card. Now I only want photos that were added after some specific date. I'm using the "contentResolver.query()" method to query but I don't understand how to filter by Date_ADDED or DATE_MODIFIED. Can this be done?</p>
... | android | [4] |
5,316,439 | 5,316,440 | Implementing a framework with static methods or non-static methods? | <p>I know that at first you want to say we should use all static or non-static. I've read two books about PHP (Professional PHP design patterns & PHP5 social networking). The first one most of the time has used static methods, but the second one there is no static method. If you were me and wanted to implement a ef... | php | [2] |
1,273,678 | 1,273,679 | Logic in if/else (javascript) | <p>Have a small if/else problem in javascript. i don't see the logic...</p>
<p>The function should check if two dates are present and give alerts if it's not present. If everything is OK, it should say so...</p>
<pre><code>function update_booking() {
//from_date = The date of arrival
//to_date = The date of d... | javascript | [3] |
5,580,080 | 5,580,081 | Trying to format a string and it is not working! Android/Java | <p>Here is the XML: </p>
<pre><code><string name="feature3_intro">You shot %1$d pounds of meat!</string>
</code></pre>
<p>Here is the java code: </p>
<pre><code>int numPoundsMeat = 123;
String strMeatFormat = getResources().getString(R.string.feature3_intro);
String strMeatMsg = String.format(strMeat... | android | [4] |
2,909,673 | 2,909,674 | Can anyone recommend a query graph plugin that does this | <p>I am trying to create a graph using query (or any other javascript solution) that can graph raw web traffic data over a period of time at 1 hour intervals. The problem with the graphs I've looked at, is that they map every single hit at the exact time, like this:</p>
<pre><code>12:17 - 1 hit
12:30 - 1 hit
12:34 - ... | jquery | [5] |
3,020,915 | 3,020,916 | Javascript href link counter | <p>I need to make a button that increments and decrements a variable. When you click a link it increments a variable in the link href.When you click another link it decrements a variable in the link href.The variable can only go up to the last number in a specified array.PHP will be embedded around it. Any ideas?</p>
... | javascript | [3] |
4,036,482 | 4,036,483 | rdlc in asp.net | <p>I want to create rdlc report at run time. I don't want to fix the columns b'coz every time my query has been changed.................
And also i wan to set the report layout at runtime..........
How is it possible............
plz help me !!!!!!!! </p>
<p>Thanx in advance............ </p>
| asp.net | [9] |
2,285,695 | 2,285,696 | Retrieve characters from a string | <p>What is the best way to get a list of characters [a-z] from a string ignoring any other special character or number?</p>
| java | [1] |
4,337,225 | 4,337,226 | fadeout time slipping jquery | <p>I've been having a bit of trouble getting the following fadeout code to work as i'd like. </p>
<p>Both temporary divs ($tempBackgroundTop, $tempBackground) should fadeout at the same time but one is fading out at just before the other.</p>
<p>Any ideas?</p>
<p>Cheers!</p>
<pre><code>jQuery(document).ready(functi... | jquery | [5] |
1,197,832 | 1,197,833 | Save WebSQL database as .sqlite | <p>I am using WebSQL for a web project. I can view WebSQL databases using SQLite Manager. I learnt the database itself is saved in the browser's app data folder somewhere (using a funny file extension).</p>
<p>I was wondering if there was a way to save the WebSQL database as a .sqlite file and to specify the location ... | javascript | [3] |
1,187,593 | 1,187,594 | how to call another function in javascript? | <p>how do i call the doSubmit() function from the conFirmUpload() when the confirm msg box is true? </p>
<pre><code><script type="text/javascript">
function confirmUpload() {
if (confirm("Are you sure want to upload '" + document.getElementById("txtWS").value + "' ?") == true) {
return ... | javascript | [3] |
4,413,660 | 4,413,661 | Android Layout doesn't fit into contiguous rectangles | <p>I am a new Android developer, and though I have spent a LOT of time reading through the official developer guide/reference (as well has hours of guessing/checking), I'm still stumped about the best way to do my layout. I am creating a board game, and here is an image of <a href="http://techfeed.net/gameBoard.png" r... | android | [4] |
3,063,302 | 3,063,303 | SMS type TEXT or MMS or other? | <p>How to capture incoming MESSAGE type whether it is Text or MMS or something else in Android programmatic ally?</p>
| android | [4] |
562,532 | 562,533 | invalid characters in a file name | <p>As per the MSDN , the following characters cannot be part of the file name:</p>
<blockquote>
<p>Use any character in the current code page for a name, including Unicode characters and characters in the extended character set (128–255), except for the following:</p>
<p>◦The following reserved characters:</p>
... | c# | [0] |
459,817 | 459,818 | jQuery jPicker colorpicker: How to convert from 8 digit (w Transparency) to standard 6 digit hex? | <p>I've got a jPicker installed and running fine; its a pretty sweet script.</p>
<p>However, the value it returns to my input box is 8 digit hex. I need it to return 6 digit hex.</p>
<p>Rather than post-process the 8 digit into 6, I'd rather just hack into the script and force 6 digit. Alternately, I'd be ok with hoo... | jquery | [5] |
3,164,785 | 3,164,786 | creating textbox at runtime | <p>how to create as many textbox at runtime on button click. And also what will be the id's of textboxes created at runtime and send the value of textbox to next page through session</p>
<p>please someone help me. I've stucked at this point for many days but could not solve it.</p>
<p>thanks</p>
<p>prasanna</p>
| asp.net | [9] |
1,461,163 | 1,461,164 | Clarification needed in static methods in Collections in java? | <p>I know generics but I am not clear on this syntax. For instance, in Collections.sort() :</p>
<pre><code>public static <T> void sort(List<T> list, Comparator<? super T> c)
</code></pre>
<p>What is the significance of static <code><T></code> before return type void ?</p>
| java | [1] |
2,600,040 | 2,600,041 | Cannot update php.ini in Mac OS Lion | <p>Something is very wrong in my php/apache setup in Mac OS Lion.</p>
<p>If I change <code>/private/etc/php.ini</code> then I do <code>sudo apachectl -k restart</code>, the changes are not reflected.</p>
<p>After I do <code>sudo apachectl -k stop</code>, I can still connect to <code>localhost</code> in browser, and m... | php | [2] |
898,746 | 898,747 | ASP.Net Fileupload progressbar | <p>Well the title say is all, is there any tutorial out there on how to write a FileUpload in asp.net with a progress bar? i cant find any of if there is a free component that would also work!</p>
| asp.net | [9] |
3,992,179 | 3,992,180 | What is the use of __threshold__ in Python? | <p>I was going through some Python automation scripts and I saw the new (for me) keyword of <code>___threshold__ = 0.6</code>. What it indicate? What it is used for?</p>
| python | [7] |
4,183,257 | 4,183,258 | How do I call a function without the Main function in C sharp? | <p>trying to run a function without putting it in the Main() when the program is run.
how do I start the new created function?
trying to call RunMix() in the Main() but get an error because of the lable1</p>
<pre><code>namespace mixer
{
public partial class Form1 : Form
{
public Form1()
{ ... | c# | [0] |
141,989 | 141,990 | In Android User Interface Button not set Text? | <p>I am developing an UI(Home screen) just like this screen
given in this link<br>
<a href="http://www.flickr.com/photos/78431491@N07/7023063473/" rel="nofollow">http://www.flickr.com/photos/78431491@N07/7023063473/</a></p>
<p>but in ldpi text of button is showing properly in mdpi and hdpi its not show and pa... | android | [4] |
1,477,774 | 1,477,775 | Python object conversion | <p>Greetings,</p>
<p>let assume that we have a an object <code>k</code> of type <code>class A</code>. We defined a second <code>class B(A)</code>. What is the best practice to "convert" object <code>k</code> to <code>class B</code> and preserve all data in <code>k</code>?</p>
<p>Thanks,</p>
<p>Shakov</p>
| python | [7] |
704,069 | 704,070 | Process.start in c#, not firing | <p>I am trying to create some files using fsutil, but no files are getting created with the following loop, neither is an error getting generated, any suggestions?</p>
<pre><code>foreach (string extension in extensions)
{
Process.Start("fsutil", @"file createnew e:\attachments\" + DateTime.Now.ToString() + extensio... | c# | [0] |
1,853,704 | 1,853,705 | Best (free) online C++ tutorial? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/909323/what-are-good-online-resources-or-tutorials-to-learn-c">What are good online resources or tutorials to learn C++</a> </p>
</blockquote>
<p>I've just started programming in C++ and am looking for a nice on... | c++ | [6] |
5,137,512 | 5,137,513 | javascript window.open() to a html file opens the browser download dialog | <p>I'm creating a print (preview)window, for which I want to load the core html from the site assets:</p>
<p>The code:</p>
<pre><code>window.open('/SiteAssets/reportingPrintBase.html','_blank','width=1250,height=800,menubar=yes,scrollbars=yes,resizable=yes');
</code></pre>
<p>The html: </p>
<pre><code><!DOCTY... | javascript | [3] |
5,963,621 | 5,963,622 | android Call Forwarding programatically | <p>I want to forward any calls received to another predefined phone number. I have searched forums and found some contradictary answers. so i m confused.</p>
<p>First I looked at this post <a href="http://stackoverflow.com/a/5735711">http://stackoverflow.com/a/5735711</a> which suggests that it is not possible through... | android | [4] |
5,744,383 | 5,744,384 | Is there a better approach for dealing with mulitple processes reading/writing to a file | <p>I have 3 processes each of which listens to a data feed. All the 3 processes need to read and update the same file after receiving data. The 3 processes keep running whole day. Obviously, each process needs to have exclusive read/write lock on the file.</p>
<p>I could use "named mutex" to protect the read/write of ... | c# | [0] |
5,927,543 | 5,927,544 | Weird FileNotFoundException exception from Android app in the wild | <p>I'm working on an Android app which is now in production, and am occasionally seeing exceptions (reported via airbrake) with stuff like this:</p>
<pre><code>[1.0.4] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mycompany.android/com.mycompany.android.activities.MainActivity}: android.view.I... | android | [4] |
1,303,474 | 1,303,475 | How to duplicate a table row when a button is clicked | <pre><code> <tr id="myid">
<td><input type=textbox id="myid-1" name="myid-1" value="" /></td>
<td><img src="/images/add.png" /></td>
</tr>
</code></pre>
<p>I have a row in a table, that has a textbox and an image that is an icon of a '+' sign.</p>
<p>When the u... | jquery | [5] |
3,060,356 | 3,060,357 | Module framework other than OSGI, EJB(not really) and Impala | <p>I am interested in looking at module frameworks that support many of the goals of OSGI such as:</p>
<ul>
<li>a module can be restart/replaced</li>
<li>a module can hide classes and control what is exported.</li>
</ul>
<p>Impala: </p>
<p>Seems quite interesting but seems tightly coupled to the Spring Framework whi... | java | [1] |
564,332 | 564,333 | How to get lyrics from here? | <p>How can I read lyrics from here ; </p>
<p><strong>api.chartlyrics.com/apiv1.asmx?WSDL</strong></p>
<p>I have worked with visual studio ,but I do not know how can I use that in android , I only need a class that read from WSDL in android and show result , everything will be ok after that .</p>
<p>thanks.</p>
| android | [4] |
1,777,531 | 1,777,532 | Image uploading concept in PHP | <p>how to take image from one folder and rename and re-size the images and move to another folder?
I need to get image from one folder and rename and re-size the same image and move into another folder using php </p>
| php | [2] |
3,832,936 | 3,832,937 | Can't make distribution provisioning profile | <p>Does anyone know what causes this? I get this each time I try to make a Distribution provisioning profile, and on both my <code>Apple Developer Accounts</code>. Can anybody tell me what I do wrong or is this a error caused by Apple.</p>
<blockquote>
<p>We are unable to process your request.</p>
<p>Please go ... | iphone | [8] |
1,524,362 | 1,524,363 | Basic Authentication : Inactivity Session I need to close the window with confirmation | <p>My application is with basic authentication so in that session is not invalidating without closing window.So if my application is idle for 10 mins then by using setTimeout() giving alert with confirm box ,if i press it OK its reloading the page CANCEL means i am redirecting the page to JSP page where in that page LO... | javascript | [3] |
1,054,035 | 1,054,036 | How to add a period at end of print | <p>Basic stuff, I am getting a syntax error for this. How do I include a period at the end of the printed line?</p>
<pre><code>first_name = raw_input("Enter your first name: ")
last_name = raw_input("Enter your last name: ")
print "Enter your date of birth"
month= raw_input("Month? ")
day= raw_input("Day? ")
year= ra... | python | [7] |
4,434,238 | 4,434,239 | Can one have client-side and server-side code invoked from an Asp:RadioButtonList? | <p>I am currently invoking client-side functions and server-side functions from the same button click thus...</p>
<pre><code><asp:Button id="myButton"
runat="server"
cssclass="myButtonClass"
text="Do Stuff"
onclick="Do_Foo"
OnClientClick="Do_Bar();"/>
... | asp.net | [9] |
174,322 | 174,323 | Android Licensing Verification Library server response codes | <p>To anyone who has implemented Android Licensing Verification Library</p>
<p>When you tested the following server response codes, did you get these two individual responses or did you get the NOT_LICENSED response code?
ERROR_CONTACTING_SERVER and ERROR_CONTACTING_FAILURE</p>
<p>It appears that I am not getting ERR... | android | [4] |
5,664,276 | 5,664,277 | Regarding joining of threads | <p>I have developed the below program on java threads , I have two threads which are executing and accessing the method inside run() now if I want to first thread to begin first and then second thread that I have done through synchronization mechanism but if I want first thread to end first and then began with second t... | java | [1] |
2,595,256 | 2,595,257 | ASP.Net: Eval Format for money expressions | <p>how I can format my database-query in a list view with 2 signs after comma?</p>
<p>Now: 100
Should be: 100,00</p>
<p>Now: 75,3
Should be: 75,30</p>
<p>How I get it when I insert the data in the list view with Eval(xxx)?</p>
| asp.net | [9] |
3,759,068 | 3,759,069 | Why enhanced for loop is not performing the null checking | <p>Why the enhanced for loop is not performing null checking before iterating over the collection.</p>
| java | [1] |
5,745,168 | 5,745,169 | Undefined test not working in javascript | <p>I'm getting the error <code>'foo' is undefined.</code> in my script when i test my function with an undefined parameter. As far as I understand, This shouldn't be happening.</p>
<p>My calling code:</p>
<pre><code>//var foo
var test = peachUI().stringIsNullOrEmpty(foo) ;
</code></pre>
<p>My function (part of a lar... | javascript | [3] |
5,410,642 | 5,410,643 | Caller function in PHP 5? | <p>Is there a PHP function to find out the name of the caller function in a given function?</p>
| php | [2] |
2,662,274 | 2,662,275 | Open gridview inside another gridview | <p>I have a gridview which contains columns <code>vacancy id</code> and <code>vacancy title</code> and a few image buttons. </p>
<p>When the user clicks on button <kbd>show criteria</kbd>, another gridview should open inside existing gridview.</p>
<p>This inner gridview should show criteria for that vacancy. </p>
<... | asp.net | [9] |
3,371,260 | 3,371,261 | How to show dialog during the Receiver? | <p>I want to show the dialog during the Receiver , i used this code but it's not true, can anyone help me?</p>
<pre><code>public class Call_Sevice extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
String num... | android | [4] |
4,648,496 | 4,648,497 | How to dismiss previous activities in android at a certain point? | <p>I have activities A -> B -> C where A and B are for login and verification purpose. When a user reaches activity C, A and B are not necessary any more. That means if a user press BACK in C, the application should not go thru A and B, instead it should go back to HOME screen.</p>
<p>What's the conventional way to im... | android | [4] |
4,700,992 | 4,700,993 | Array Not Resizing | <p>I'm trying to resize an Array[] using a method named resize(). I think I've coded the method correctly, however the original array does not resize after running it through the method, and I'm not sure what I'm doing wrong.</p>
<p>I've tested that the newArr[] is in fact twice the length of the oldArr[] and containe... | java | [1] |
1,458,818 | 1,458,819 | how to add a link of other apps in a current app | <p>I have a bunch of similar apps which the user might be interested in downloading.
I have a button 'get more of this' so when the user clicks on this button , it shows a link of other apps. Clicking on that link should take him to the download page in the
android market. I tried google but couldn't find any answers... | android | [4] |
3,183,391 | 3,183,392 | Java: Is there a shortcut for doing this (simple accessors/getters stuff) | <p>Suppose I have a class called Person:</p>
<pre><code>public class Person
{
private String name, ID, location;
}
</code></pre>
<p>Instead of writing individual accessors for name, ID, and location, is there anyway to do something like this:</p>
<pre><code>public String get%s
{
return this.%s
}
</code></p... | java | [1] |
5,883,912 | 5,883,913 | array_multisort to sort several arrays | <p>I've searched for this but can't seem to find the exact answer. I want to use array_multisort to simultanously sort 3 arrays based on numeric values in 3 of the arrays. Basically I want to make a "standings" table similar to what you'd see for NFL/NHL standings etc. I have 3 arrays, tempIDs (string), tempWins (numer... | php | [2] |
110,142 | 110,143 | Why can't I get this value from the next dropdown with jQuery? | <p>I am attempting to get the value of a dropdown menu. I have several on the page.</p>
<p>The way it works is there is a radio button before each dropdown and ideally, on selecting the radio button, we simply get the current value displayed on the next select -> option.</p>
<p>What I have so far is:</p>
<p><strong>... | jquery | [5] |
5,333,075 | 5,333,076 | how to convert xls to xml in android | <p>Recently i am working with reading excel file and need to show it on android view.
I have even tried with both the java libraries say apache poi and jexcel api which helps
in parsing excel sheet in java but failed to parse in android when i tried.</p>
<p>I am even tried with converting excel to xml,than parse the... | android | [4] |
2,659,476 | 2,659,477 | how to make sure that the value in a dynamic textbox is not empty using javascript | <p>I have nearly 80 textbox controls being created dynamically on the change of a dropdownlist item.</p>
<p>I need to make sure that none of these textboxes are empty when the user clicks on add item button.</p>
<p>I am aware of document.getElementbyid , however it does not serve my purpose as I will not know the id ... | asp.net | [9] |
4,952,680 | 4,952,681 | jQuery Drop Menu Click Function with Parent Disabled | <p><strong>I'm currently using:</strong></p>
<pre><code>$(".navigation ul ul, .shoppingbasket ul ul").css({display: "none"});
$(".navigation ul li, .shoppingbasket ul li").click(function(){
$(this).find('ul:first').slideToggle(400);
});
</code></pre>
<p><strong>I'm wanting to disable parent li if has child items<... | jquery | [5] |
4,022,267 | 4,022,268 | Android getTargetFragment().getView() returning null | <p>I have an issue with orientation changes and a retained Fragment.</p>
<p>In the retained Fragment in <code>onActivityCreated()</code> I use <code>getTargetFragment().getView().find...</code></p>
<p>Sometimes the method returns null. I do not know why. I use the compatibility library v.4.</p>
| android | [4] |
1,789,355 | 1,789,356 | Drag and drop in API level 9 | <p>Can I implement drag and drop in android API level 9.Is there any jar file so that I can use it in Api level 9 and above.Please help me.</p>
| android | [4] |
106,279 | 106,280 | Display occurrence of number based off user input... array, java | <p>I am trying to have a user enter in any amount of numbers they like then based upon their input use an array to count each occurrence of the numbers entered by the user. I know where i have my occurrence counter per say i am missing my return statement as that was one of the things i am confused on, basically i am ... | java | [1] |
2,519,017 | 2,519,018 | Tips on where to go for PyOpenGL communication with wxPython? | <p>Tips on where to go for PyOpenGL communication with wxPython?
How do i communicate amongst panels and canvasses?</p>
<p>Ignore the following:</p>
<pre><code>from OpenGL.GLU import *
from OpenGL.GL import *
import sys,math
name = 'ball_glut'
class myGLCanvas(wxGLCanvas):
def __init__(self, parent):
wxGLCanvas.__i... | python | [7] |
2,003,717 | 2,003,718 | __defineSetter__ replacement for firefox 3.5.x and up | <p>It seems that <code>__defineSetter__</code> no longer works in firefox latest version. It works in Chrome. </p>
<p>do you know Any replacement function that does the same thing and also works in other browsers like IE, Opera,Safari?</p>
| javascript | [3] |
1,317,765 | 1,317,766 | Java AES/CBC/PKCS7Padding missing one part of decrypt code | <p>Im new of Cryptography and BouncyCastle and i want to encrypt/decrypt with AES/CBC/PKCS7Padding ; maybe Encrypt is ok , but when ill decrypt the first part of sms3 is missing . somebody can help me?
Thanks</p>
<pre><code>String sms3 = "allora i Saiyan atterrarono sulla Terra e Napa disse";
byte iv2 [] = new byte... | java | [1] |
378,553 | 378,554 | passing values across classes | <p><br>
I am doing a Java application in which i have two .java files (Connect.java and Handler.java).In Connect.java i have a function where i am getting some values from some other Response.java file . Now i need to pass these values as input parameters to a function in Handler.java . Following is my java file... | java | [1] |
2,798,348 | 2,798,349 | how to call a file from back end through asp.net | <p>i want to open a file in front end which is located at different location and the location is mentioned in a different file at the backend through asp.net
in details it will be
on clicking a link at front end it will open a file (stored at backend and the path and address of the original file location is mentioned i... | asp.net | [9] |
6,018,672 | 6,018,673 | How should onClick Listener by defined and instantiated for an Activity | <p>My Activity has multiple lists so I have defined MyClickListener as below:</p>
<p>My question is how I should instantiate this class:</p>
<pre><code> MyClickListener mMyClickListener = new MyClickListener();
</code></pre>
<p>Or maybe it is better to instantiate inside the onCreate(Bundle) and just define above. ... | android | [4] |
2,252,107 | 2,252,108 | Android: Separate intents for email & SMS | <p>I have an app that has two buttons – one for email & one for SMS. Depending on the button pressed I want to email or else SMS a certain text. I have coded the email button and it is working fine. The problem is that the dialog box that pops-up gives an option of e-mail or Messaging the text. I want to separate o... | android | [4] |
5,678,418 | 5,678,419 | JavaScript New Date() | <p>I have the following JavaScript code but for some reason time is not including minutes:</p>
<pre><code>var austDay = $("#<%= hiddenFieldTime.ClientID %>").val().split(" ");
var year = austDay[0];
var months = austDay[1];
var days = austDay[2];
var time = austDay[3];
var timeUntil = new Date(parseInt(year... | javascript | [3] |
555,609 | 555,610 | Determine if begindate is weekend | <p>I need to check if the selected date from a datepicker is not on a weekend. The function needs to keep checking if the new startdate is a weekend. Also it need to add days to the startdate if a weekend occurs.</p>
<p>Code should be something like this:</p>
<pre><code>int startday = Datepicker1.SelectedDate;
if (st... | c# | [0] |
2,234,262 | 2,234,263 | java script array | <pre><code>Array
(
[0] => giri
)
Array
(
[0] => ramya
)
Array
(
[0] => sangeetha
)
Array
(
[0] => hemalatha
)
Array
(
[0] => umar
)
</code></pre>
<p>How to convert this php array like the below java script array?</p>
<pre><code>var availableTags = [
"ActionScript",
"AppleScr... | php | [2] |
4,525,977 | 4,525,978 | File data changed after encrypting then decrypting | <p>I encrypted a file using DES then After decrypting it successfully at the server and using </p>
<pre><code>System.IO.File.WriteAllBytes(@"c:\test\" + fileName, decryptedFile);
</code></pre>
<p>method the file data changed a little it the text is "Encrypting and Decrypting usind DES blah blah blah blah"
the text in... | c# | [0] |
4,845,555 | 4,845,556 | alternative to maps | <p>Since maps dont allow duplicate values . Are there any other containers that are part of C++ standard library that allow duplicates that store values by key value pair?</p>
| c++ | [6] |
4,700,613 | 4,700,614 | Displaying phone number in US format in iPhone application | <p>In my iphone app i have a text field to accept phone number. I need to display the number
in US Phone number format .That is like (000) 000-0000. Typically like iPhone Contact phone
number entry. How can i do this . Any idea will be greatly appreciated.</p>
<p>Thanks in advance!!!</p>
| iphone | [8] |
4,017,254 | 4,017,255 | Why are textwrap.wrap() and textwrap.fill() so slow? | <p>Why are <a href="http://docs.python.org/library/textwrap.html#textwrap.wrap" rel="nofollow"><code>textwrap.wrap()</code></a> and <a href="http://docs.python.org/library/textwrap.html#textwrap.fill" rel="nofollow"><code>textwrap.fill()</code></a> so slow? For example, to wrap a string of 10000 characters on my laptop... | python | [7] |
4,321,786 | 4,321,787 | Configuring proxy from code | <p>I have a requirement like as following</p>
<pre><code>if(condition){
//configure the proxy
}
</code></pre>
<p>Now I am able to browse the web from the emulator after I configure the proxy from </p>
<blockquote>
<p>settings -> wireless network -> Mobile network -> Access Point name -> Telkila -> proxy.</p>
</blo... | android | [4] |
1,954,064 | 1,954,065 | What extension to enable in order to use scandir() in php? | <p>I read from the php documentation that since 5.1.0 scandir() is by default not usable in php. </p>
<p>How can i enable it? </p>
| php | [2] |
2,191,844 | 2,191,845 | jQuery - remove select option :selected attribute on click | <p>I'm working on a multiselect that pops up in a modal dialog. When the dialog closes, I'm populating a <code><ul></code> with <code><li></code>'s that contain text from the <code>:selected</code> options. When each individual <code><li></code> is clicked, I want the <code><li></code> to fade... | jquery | [5] |
3,461,255 | 3,461,256 | Simple PHP Login does not work | <p>This is my script:</p>
<pre><code>session_start();
include "../inc/conn.php";
if ($_GET['login']=="yes") {
echo 'test2';
$username=$_POST('username');
$password=$_POST('password');
echo $username.' '.$password;
$userq=mysql_query("SELECT * FROM members WHERE username='$username' AND password='$password'") or die(... | php | [2] |
4,401,611 | 4,401,612 | singleton-early initialization ,static field initialization and class loading | <p>Conside this code:</p>
<pre><code>class MyClass {
private static MyClass myobj = new MyClass();
private MyClass() {
}
public static MyClass getMyobj() {
return myobj;
}
}
</code></pre>
<p>1)IN above code when will <code>myobj</code> get initialiazed-when <code>Myclass</code> gets loa... | java | [1] |
3,176,479 | 3,176,480 | jquery binding to a form submit | <p>I'm doing the following:</p>
<pre><code> // Post to the server
$.ajax({
type: 'POST',
url: $("form.edit_item").attr("action"),
data: $("form.edit_item").serialize(),
success: function(e) {
}
});
$(".edit_item")
.bind('ajax:loading', function() {
alert... | jquery | [5] |
4,911,663 | 4,911,664 | android aidl nullpointer | <p>Are there anyone knows why I always get null pointer in the "myService.getMountPoint();"?</p>
<p>I think I do it almost as the same as the example on the Internet.</p>
<pre><code>public class mainActivity extends Activity {
/** Called when the activity is first created. */
private IMountService myService = null;
... | android | [4] |
5,910,262 | 5,910,263 | cycle through four list elements, applying an "active" class | <p>I would like to cycle through four li elements that all contain tags, setting the appropriate class to "active" and remove the "active" class. I'm having a bit of trouble figuring out how to achieve this via jQuery.
HTML:</p>
<pre><code><ul class="liveMenu">
<li id="leftScroll"></li>
<li ... | jquery | [5] |
4,192,455 | 4,192,456 | How can I create a character array in Java without a specified length? | <pre><code> char ret[] = {};
</code></pre>
<p>Doesn't work seem to work and I'm not sure what the best way to do this is.</p>
<p>Any help would be greatly appreciated.</p>
| java | [1] |
5,076,821 | 5,076,822 | ChangePassword control, Text required error message does not appear | <p>I have a ChangePassword control on a page like thus:</p>
<pre><code><asp:ChangePassword ID="ChangePassword1" runat="server"
NewPasswordRegularExpressionErrorMessage="Password must be atleast 8 characters, containing upper & lowercase, numeric and special characters."
ConfirmPasswordRequiredErrorMessage="Co... | asp.net | [9] |
1,706,964 | 1,706,965 | Random in python 2.5 not working? | <p>I am trying to use the import random statement in python, but it doesn't appear to have any methods in it to use.</p>
<p>Am I missing something?</p>
| python | [7] |
3,678,988 | 3,678,989 | dynamic drop down - user selection used for table creation. Is it possible? | <p>ok I've gotten this far with your wonderful help, just trying to work out where I'm going wrong still?</p>
<pre><code> <script>
function disp_text()
{
var w = document.myform.mylist.selectedIndex;
var selected_text = document.myform.mylist.options[w].text;
location.href="By_regions_report2.php... | php | [2] |
1,928,654 | 1,928,655 | jQuery Toggle Checkbox state | <p>I have a table with each row containing a checkbox as well as some other cells. To make the entire row clickable so that it can be used to toggle the state of the checkbox I used this piece of code: </p>
<pre><code> $('#eoiTable tr').click(function(){
var $checkbox = $(this).find('input[type=checkbox]');
... | jquery | [5] |
3,797,455 | 3,797,456 | mysqli->prepare('Update') | <p>is this code ok? because I don't get my db updated and I get no errors. Thank you.</p>
<pre><code>//connect to db
$email = $mysqli->real_escape_string($_POST['email']);
$bo = $mysqli->real_escape_string($_POST['bo']);
$p1 = $mysqli->real_escape_string($_POST['p1']);
$p2 = $mysqli->real_escape_string($_... | php | [2] |
4,941,393 | 4,941,394 | Why does console.log inside this self invoking function not get executed? | <p>The following code prints "true". I can understand why ff.f is equal to undefined, but I don't understand why console.log("Hi") is not executed inside ff.f when checking this value. Isn't f immediately executed upon definition?</p>
<pre><code>var ff = function(){
var f = function(){
console.log("Hi");
... | javascript | [3] |
5,618,392 | 5,618,393 | jQuery combine toggle with click | <p>here is the code: <a href="http://jsfiddle.net/sxqwp/1/" rel="nofollow">http://jsfiddle.net/sxqwp/1/</a></p>
<p>My question is when I press 'close' then press 'toggle' nothing happens, after second click shows text. When I click 'toggle' it hides text then I click 'open' it shows text but when click again 'toggle' ... | jquery | [5] |
1,193,964 | 1,193,965 | C++ cout pointer | <p>Hello
Can somebody explain why second <strong>cout</strong> in func(char *p) doesn't work:</p>
<pre><code>#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
using namespace std;
char *strhex(char *str);
char *func(char *p);
int main()
... | c++ | [6] |
3,857,078 | 3,857,079 | object to xml serialization error | <p>There was an error generating the XML document. Can anyone help?? The code is below. thanx in advance</p>
<pre><code> Public Shared Function toXml(ByRef objectToConvert As Object) As String
Dim ns As New XmlSerializerNamespaces()
Dim ms As New System.IO.MemoryStream()
Dim xs As New Syste... | asp.net | [9] |
5,834,295 | 5,834,296 | smiley to image - optimized PHP code | <p>is it a good code or it can be optimized ?</p>
<pre><code> $tempmsg = str_replace("[:)]","<img src='img/smiley0.png' title='Smile' height='100' width='100'>",$tempmsg);
</code></pre>
| php | [2] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.