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
3,555,007
3,555,008
DateTimePicker ValueChanged Event repeats with month arrow
<p>When the month forward or backward arrow is clicked on my DateTimePicker control it repeatedly fires the ValueChanged event. I have to use the debugger to stop the application.</p> <p>Note: My application works fine as long as I click on one of the dates.</p> <p>The MSDN documentation shows examples for creating...
c#
[0]
4,280,775
4,280,776
Can we modify this code to return the name of a method instead of a property?
<p>Looking for a clean way to discover the string name of a method in a type safe way.</p> <p>Here is what I have for properties, but I'm having trouble figuring out how to do it for methods.</p> <pre><code>class Program { class Customer { public String Id { get; set; } } public static String...
c#
[0]
2,674,811
2,674,812
How to make a button appear pressed when it is not?
<p>I have a button that plays a sound clip when it is pressed. I would like the button to appear pressed during the duration of the sound clip. By that, I mean that I would like the button to take on the default pressed-button appearance while the sound is playing. How can I implement this? I have tried using a num...
android
[4]
3,315,589
3,315,590
jQuery Alert -jAlert OK click
<p>On click of OK in jAlert nothing is triggered, even the dialog box doesn't close:</p> <pre><code>$(document).ready(function () { $("#confirm_button").click(function () { jAlert("Submitted", "Approval", function () { //My code goes in here }); }); }); </code></pre> <p>I nee...
jquery
[5]
4,341,471
4,341,472
why we use constructor in javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/12622137/what-is-the-constructor-property-really-used-for">What is the `constructor` property really used for?</a> </p> </blockquote> <p>I would like to understand, exactly why we use constructor in javascript. ...
javascript
[3]
1,230,070
1,230,071
Problem with Javascript onUnload method
<p>I have a requirement that when the user clicks on [X] button of the browser, I should give them a message.</p> <p>I accomplished this task using the onUnload method of JavaScript.</p> <p>Now, if even I refresh the page, then also the same message appears!</p> <p>Why this is so and how to overcome?</p> <p>The cod...
javascript
[3]
903,846
903,847
Whats the inverse of var $removable = $container.find(selector);?
<p>Am trying to select all elements that aren't 'selector'.</p> <p>Something like <code></p> <pre><code>var $removable = $container.find(.not(selector)); </code></pre> <p></code> But I know the syntax is wrong. Can anyone help please? Thanks</p>
jquery
[5]
5,439,177
5,439,178
RESTful webservice in iphone
<p>How can i use Restful webservice in iphone instead of soap?</p>
iphone
[8]
2,672,206
2,672,207
How to retrieve Object from arraylist in c#
<p>How to retrieve Object and its member from arraylist in c#.</p>
c#
[0]
862,247
862,248
PYTHON - how to write my python maths equation correctly
<p>I have an equation T=0.0804*x +16.081 which I want to convert to a python script.</p> <p>I have written a script but I think there is a problem as when I run it embedded in diamond it says it is dying and there is an error and aborts what I am trying to do</p> <p>The script is:</p> <pre><code>def val(X,t): im...
python
[7]
2,019,954
2,019,955
Sending messages fail when bulding a simle chat room
<p>I try the tutorial on net to build chat room.</p> <p>First I create a database in MYSQL called chatroom and buld a datasheet called chat with three columns:chtime, nick, words.</p> <p>Then I write four PHP files, login.php, main.php, display.php, speak.php but encounting problem about display and speak. My speak d...
php
[2]
4,593,057
4,593,058
Set up variables in a file instead of in a class JAVA
<p>im not sure if the title is correct but currently i have :</p> <pre><code>private String destinationPDF = "D:/Documents/NetBeansProjects/printing~subversion/fileupload/web/resources/pdf/"; public static String destination ="D:/Documents/NetBeansProjects/printing~subversion/fileupload/Uploaded/"; public String fileL...
java
[1]
660,103
660,104
the gif cannot be decoded
<p>i met a problem now , the android system can not decode gif files , but we need to do that job , how can i do that , if you know that , pls tell me , thanks.</p>
android
[4]
4,676,757
4,676,758
Why does it say invalid expression?
<p>Why does this not work?</p> <pre><code>private void btnEquals_Click(object sender, EventArgs e) { if (plusButtonClicked == true) { total2 = total1 + double.Parse(txtDisplay.Text); } else if (minusButtonClicked == true); { total2 = total1 - double.Parse(txtDisplay.Text); } ...
c#
[0]
5,761,959
5,761,960
videoView progressbar shows a wrong time
<p>The problem is that my video has 8 minutes and the progressbar just shows 1,20 minutes!</p> <pre><code>public class MainActivity extends Activity { VideoView v; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); v = (Vi...
android
[4]
3,937,306
3,937,307
Android downloading
<p>I downloaded the Android SDK installer file and when i installed it, it launches the SDK manager which then installs many things. i have the following doubts</p> <ol> <li>Are the things which the Android SDK manager asks us for installing essential because i have a very slow Internet connection and the file size un...
android
[4]
3,386,386
3,386,387
Emulator is not launching
<p>Getting warning when i am launching emulator please help me</p> <pre><code>Data partition already in use. Changes will not persist! Cache partition already in use. Changes will not persist! </code></pre>
android
[4]
5,723,220
5,723,221
Sliding Drawer From Top
<p>I'm trying to get a sliding drawer to pull down from the top in my application, but I can't figure out a way to do it. Any help?</p>
android
[4]
1,711,503
1,711,504
Countig points in boxes of a grid
<p>assume there is a grid with some points in it just like in the plot below. <img src="http://i.stack.imgur.com/x8dwF.png" alt="Demo"> My goal is to count the points per box of the grid. And this is my first try.</p> <pre><code> for tupel in point_list: a=0 b=0 ...
python
[7]
1,159,215
1,159,216
Error in XML Parsing due to special characters
<p>I am parsing an XML which has links with link tags. But it gives me an error because I think the link has special characters (Also I am using string replace function for "&amp;").</p> <p>Example link: <a href="http://tizentr.net/ara/linkler_tPEE9ZwTmy0.xml" rel="nofollow">http://tizentr.net/ara/linkler_tPEE9ZwTmy0....
android
[4]
4,327,868
4,327,869
write unicode characters into a file in php
<p>I have a json array which is holding the correct string independent of language but when the json is encoded and wrriten into the file it doesnot have the correct values. Its has the the other value random english alphabets eg:(uuadb) I want to write a string into a file where the string could be in any language.N...
php
[2]
3,307,674
3,307,675
How to toggle the refresh of another table element
<p>I am not sure how this is referred to, but I am trying to toggle the view within a table element. To analogize, say I have a table cell that displays two icons, one for displaying files by icon and a second icon for displaying files by list. When either of these icons are clicked, they should refresh another table...
jquery
[5]
1,352,111
1,352,112
How do I bold certain parts of text with jQuery?
<p>For example, I have the HTML...</p> <pre><code>&lt;span class="userscontentname"&gt;Test&lt;/span&gt; &lt;span class="userscontentname"&gt;Testman&lt;/span&gt; </code></pre> <p>then I have the jQuery...</p> <pre><code> if ($("#userlist_"+search_id+" &gt; span.userscontentname:contains("+search_text+")").length &...
jquery
[5]
261,811
261,812
How to use multiple selectors when said selectors are stored in variables in jQuery?
<p>I tried this but it's not working:</p> <pre><code>var a = $('a'); var b = $('p'); var c = $('div'); $(a, b, c).hide(); </code></pre>
jquery
[5]
4,333,512
4,333,513
Boolean argument for script
<p>In Python, I undertsnad how int and str arguments can be added to scripts.</p> <pre><code>parser=argparse.ArgumentParser(description="""Mydescription""") parser.add_argument('-l', type=str, default='info', help='String argument') parser.add_argument('-dt', type=int, default ='', help='int argument') </code></pre> ...
python
[7]
870,890
870,891
jquery change transform(rotateY)
<pre><code>$("#div").css("transform", "rotateY("+ '+='+90 +"deg)"); </code></pre> <p>I want to increase <code>rotateY</code>, but my syntax is bad, is it possible to fix it?</p>
jquery
[5]
2,726,068
2,726,069
Twitter-like follow system with PHP
<p>How can I make a Twitter-like follow system between users on the site? </p> <p>I am just wondering what is the basic structure to make something like that.</p>
php
[2]
268,988
268,989
JavaScript image cropping issue
<p>I'm using this code to select the image area which needs to be cropped.</p> <pre><code>function preview(img, selection) { var scaleX = 100 / selection.width; var scaleY = 100 / selection.height; $('#thumbnail + &gt; img').css({ width: Math.round(scaleX * 354) + 'px', height: Math.round(scaleY * 448) + 'px', margin...
javascript
[3]
1,505,184
1,505,185
Difference between .delegate() and .live()
<p>So I was looking at the <a href="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js" rel="nofollow">jQuery source</a> and I found this:</p> <pre><code>delegate: function( selector, types, data, fn ) { return this.live( types, data, fn, selector ); }, </code></pre> <p>So <code>.delegate()</code> function i...
jquery
[5]
2,679,965
2,679,966
Allow PHP in textarea
<p>How Can I allow php script in textarea. I know its risky by security means but I want to do it through admin panel so no worries about security. I want to include 1 php file in textarea and want to execute it when i display textarea content. How can I do it?</p>
php
[2]
4,965,850
4,965,851
C++ how can I refactor this?
<p>I have the code below in my test code in many places:</p> <pre><code> // // Make a function call while expecting an exception should be thrown // bool exceptionThrown = false; try { expectNotEqual(someData, anotherData, methodName); } catch(std::logic_error&amp;) { exceptionThrown = true; ...
c++
[6]
935,265
935,266
Why does in Android apk and other app files like db file,preferences and etc are stored in different places?
<p>For example: /data/data/package_name/shared_prefs/Preferences.xml and<br> /system/app/Application.apk</p> <p>For what purposes it?</p>
android
[4]
1,442,355
1,442,356
Trying to load in more then 50 sounds using soundPool.load
<p>I have a sound board with about 80 sounds. After it loads 53 sounds, there is like a minute delay, then it works fine. Is there a way to fix this?? The sounds are loaded by soundPool.load(this, cGlobals.mSounds[i], 1);. I tried it on both a acer tablet (3.0 )and a Virgin smart phone (2.2) The smart phone delay ...
android
[4]
967,878
967,879
Execute a IQueryable object?
<p>i am doing some research about entity data model in asp.net and there is one make me confused. e.g. </p> <pre><code>var tombstoneQuery = from t in crnnsupContext.Tombstones from p in crnnsupContext.ProvStates where t...
asp.net
[9]
1,434,983
1,434,984
.find css class in a jQuery variable for further manipulation
<p>I have some html in a jQuery variable</p> <pre><code>var banner = $("&lt;div class='banner-textarea'&gt;&lt;/div&gt;"); </code></pre> <p>hot can i search "banner" and find banner-textarea so i can amend the html.</p> <pre><code>var LIs=ul.find("div.banner-textarea"); </code></pre> <p>Above is not working!</p> <...
jquery
[5]
4,525,306
4,525,307
Working with PHP $_SERVER['SERVER_ADDR'] varible when used in command line script
<p>It seems as if I cannot use the $_SERVER vars in a command line script in PHP as the return seems to be blank? If this is the case then does anyone have a suggestion for getting the IP of the server I am running the script on?</p> <p>Thanks in advance.</p>
php
[2]
5,455,460
5,455,461
how to apply jquery patch file
<p>I googled for an issue in jQuery, and found patch file form jQuery site for that. I have downloaded it. It has jus the following 4 lines of code.</p> <pre><code>572c572 &lt; if (inst.input[0].type != 'hidden') --- &gt; if (inst.input[0].type != 'hidden' &amp;&amp; inst.input[0].disabled == false...
jquery
[5]
4,340,638
4,340,639
Timestamp calculation function
<p>I am trying to write Java code as a part of my project to get current time for a process and then i need to add a fixed timeout period to it. This new time has to be compared with my above currenttime and take decision based on that. I am not able to add time to the currenttime and compare it. Can anyone help me by ...
java
[1]
332,045
332,046
Java polymorphism basics
<p>I am reading the SCJP book by Kathy Sierra. I find Polymorphism a little confusing. </p> <p>Could you please help me out with a real world example for the following?</p> <p>I understand that Polymorphism only works when you have overridden methods, no matter if you do it via class or interface, and at run-time the...
java
[1]
5,331,337
5,331,338
PHP: What is an efficient way to sort two arrays, which each contain objects with datetime properties?
<p>Anyone know the best way to sort an array by date? I would set the date as the array key but I don't want to overwrite anything with the same date. Thx in advance!</p>
php
[2]
2,103,467
2,103,468
Creating Android vpn profile
<p>I want to Programmatically create vpn profile; somehow i figure out how to access <code>android.net.vpnmanager</code> and <code>android.net.vpn.vpnprofile</code> (they are not part of offical API and are part of hide APIs) but they have no function create new vpn profile. any suggestions?</p>
android
[4]
1,030,809
1,030,810
C# method name expected
<p>I just trying to pass some values but it's throwing an error all the time. Can some one correct me what I am missing here? </p> <p>Am getting error here </p> <pre><code>Thread t_PerthOut = new Thread(new ThreadStart(ReadCentralOutQueue("test")); </code></pre> <p>I want to pass this string value to <code>ReadCentr...
c#
[0]
3,570,566
3,570,567
jQuery disable enable event handler of link
<p>here is the code: <a href="http://jsfiddle.net/4WyPq/" rel="nofollow">http://jsfiddle.net/4WyPq/</a></p> <p>So basically when I click 'button1' it animates then disables the button, after that I need to press button2 and enable the 'button1' event so I press again 'button1' it should do the same event.</p>
jquery
[5]
2,163,976
2,163,977
jQuery code not working on IE 8
<p>following code works perfectly on FF and Chrome but not in IE8. </p> <pre><code>$(window).keyup(function(e) { var code = e.which if (code == 9) { alert("do stuff"); cellContent(); autoDate(); } }); </code></pre> <p>This code will recognize the tab and does the function cel...
jquery
[5]
970,551
970,552
Suppress click event using JQuery
<p>I have an html button that is being rendered as HTML like such:</p> <pre><code>&lt;input type="button" value="Select" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvAttendants','Select$0')" /&gt; </code></pre> <p>I'm attempting to use JQuery to suppress the click event of the above input tag, but I ...
jquery
[5]
5,731,008
5,731,009
Increment through array with onclick- Javascript
<p>I have a carousel of titles and images. When an image is clicked on, the question/title changes. I'm having trouble writing the function/code that will allow me to increment through the questionList array onclick.</p> <pre><code>var mycarousel_questionList= [ {qID: 1, title: "Question 1"}, {qID: 2, title: "Question...
javascript
[3]
4,625,424
4,625,425
jQuery autocomplete - adding to underlying local datasource array
<p>In this basic example using jQuery autocomplete:</p> <pre><code>$("#textboxid").autocomplete( { source: testdata, delay: 100, minLength: 1 }); </code></pre> <p>where <code>testdata</code> is a local array of data, what is the recommended way to have any changes to the underlying sou...
jquery
[5]
3,040,547
3,040,548
Can pages loaded into an iframe from another domain be scrolled via JavaScript?
<p>If yes, could you please show me an example of how to do it?</p>
javascript
[3]
4,425,392
4,425,393
Posting data from Database
<p>I am validating a form (checking if field are empty etc and at the end I am using my last validation rule:</p> <pre><code>//Database Information //Connect to database mysql_connect($dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error()); mysql_select_db($dbname)or die(mysql_error()); $email = mysql_...
php
[2]
1,492,693
1,492,694
First split then slice value
<p>I know how to split a value using deliminators. I also know how to slice a value to remove the last couple chars. I need to combine these now, which is the part I can't figure out.</p> <pre><code> $("#product").val(value.split('|')[0]); </code></pre> <p>How would I add <code>slice(0,-1)</code> to this function ...
jquery
[5]
1,934,201
1,934,202
Java linq equivalent for getting property in list with highest value
<p>Im having a list of results, <code>ArrayList&lt;PlacedObject&gt; result</code>:</p> <pre><code>for(PlacedObject po : result){ float[] results = new float[3]; Location.distanceBetween(lastlocation.getLatitude() ,lastlocation.getLongitude() ,Double.parseDouble(po.lat) ,Double.parseDouble(po...
java
[1]
5,782,771
5,782,772
Thread Monitor class in c#
<p>In my c# application multiple clients will access the same server, to process one client ata a time below code is written.In the code i used Moniter class and also the queue class.will this code affect the performance.if i use Monitor class, then shall i remove queue class from the code.</p> <p>Sometimes my remote ...
c#
[0]
2,720,823
2,720,824
drawable shape causing eclipse problems
<p>I have a shape defined in a drawable resource this is just textView background with rounded edge. It actually works just fine, but when I reference the shape :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangl...
android
[4]
4,342,928
4,342,929
How to change Actionbar Tab from fragment
<p>i have 3 actionbar tabs home:video:purchase by default home will be selected.I can switch between different tabs where i'm able to replace the fragments.I have a gridview in home fragment on click of any grid cell i'm using the below piece of code to navigate to purchase tab,i'm able to replace the home fragment wit...
android
[4]
5,978,901
5,978,902
What PHP function will print the name of an array with its contents?
<p>When I use Smart::Comments in Perl, I can see the name of the hash I am dumping (i.e. %person, below). . .</p> <pre><code>[pdurbin@macbook ~]$ cat /tmp/person.pl #!/usr/bin/perl use strict; use warnings; use Smart::Comments; my %person = ( 'hair' =&gt; 'golden', 'eyes' =&gt; 'blue', ); ### %person [pdurbin@...
php
[2]
4,658,788
4,658,789
How to copy a folder and all its subfolders and files into another folder
<p>How can I copy a folder and all its subfolders and files into another folder?</p>
java
[1]
2,326,302
2,326,303
record system sound directly
<p>Instead of playing something out the speaker and recording it through the mic, can I just record the system sound and not use the mic at all? How should I proceed for this? What should I use as framework?</p>
iphone
[8]
1,664,955
1,664,956
javascript closure scope chain- how to see the variables bound to the scope chain?
<p>Javascript functions are objects and they have scope chain associated with them. If some closure exists with a function that has a different scope chain than the one that was in effect when they were defined.As an example invoking function is a returned function object from some other (parent) function that had a sc...
javascript
[3]
5,891,747
5,891,748
making a javascript library
<p>I want to make a javascript library of my own. can anybody give me some suggestions that from where to start. I will be very thankful.</p>
javascript
[3]
4,469,919
4,469,920
Is it always safe to cast Context to Activity within View
<p>May I know, is it safe for me to always cast <code>Context</code> to <code>Activity</code> within a <code>View</code>?</p> <pre><code>View { Activity activity = (Activity)this.getContext(); } </code></pre> <p>So far, it works fine all the moment. I was wondering, is there any edge cases that the above code wil...
android
[4]
1,807,672
1,807,673
raw escape in python except last char
<p>Why in python I can't use:</p> <pre><code>r"c:\" </code></pre>
python
[7]
4,099,283
4,099,284
Can I define a "fallback" method in JavaScript?
<p>Is it (in a performant way) possible to define "fallback" methods in JavaScript?</p> <p>For example</p> <pre><code>function MyObject () { /* what do i have to add here to have my defaultMethod? */ } var obj = new MyObject (); obj.doesntExistInMyObject (); // I want defaultMethod to be called obj.doesntExistEit...
javascript
[3]
373,428
373,429
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]
1,516,474
1,516,475
Calling c_str of empty string
<p>Is this code fragment OK or does it result in undefined behavior? </p> <pre><code>std::string s; assert(strlen(s.c_str())==0); </code></pre> <p>If it isn't undefined behavior, will the above assertion pass?</p>
c++
[6]
3,928,247
3,928,248
What is the use of an abstract class, interface or an abstract method
<p>I have a confusion in why we use abstract classes or interfaces to implement or extend. interfaces doesn't contain any code so does the abstract methods. then why we use them. why don't we directly create methods and define them in our class rather we use interfaces or abstract classes. they don't contain any sort o...
php
[2]
1,930,447
1,930,448
ASP.NET [Horizontal scroll fro GridView]
<p>how to make an horizontal scroll for my large GridView ?</p>
asp.net
[9]
4,956,177
4,956,178
How to extract unique characters from a string?
<p>How to extract unique characters from a string using c#? </p> <p>For example:</p> <p>I have string "aabbcccddeefddg" and I want to extract unique charecters from the string, the result set should be "abcdefg". </p> <p><strong>Note</strong>: I don't want to use string.distinct function in c#.</p> <p>Thanks,</p> ...
c#
[0]
5,624,641
5,624,642
how to write on facebook wall in ASP .Net
<p>I want to post on facebook wall from my website, i had built the site in ASP .Net, I don't know how to perform this task. Can anyone please guide me or give me a script to post on facebook wall. </p>
asp.net
[9]
1,151,874
1,151,875
What is the path of logging.java?
<p>When I try and search in Windows it just gives me "java" or "java/util" I can't find that in explorer. Thanks.</p>
java
[1]
3,851,990
3,851,991
Echo New Line in PHP
<pre><code>&lt;?php include 'db_connect.php'; $q = mysql_real_escape_string($_GET['q']); $arr = explode ('+',$q); foreach($arr as $ing) { echo $ing; echo "&lt;br/&gt;"; } mysql_close($db); ?&gt; </code></pre> <p>Calling:</p> <pre><code>findByIncredients.php?q=Hans+Wurst+Wurstel </code></pre> <p>SourceCode HTML:</...
php
[2]
1,268,317
1,268,318
android providing different drawable resources for orientations
<p>I would like to provide different drawable resources for different orientations. What is the proper folder name to provide a landscape and portrait version of a drawable? I looked through the android documentation and haven't seen anything like <code>drawable-hdpi-land</code> or <code>drawable-hdpi-port</code>. Ar...
android
[4]
5,286,158
5,286,159
Call functions doesnt work in onCreate android
<p>I have two functions with be names of rounOne() and roundTwo(). In both of these functions somethings happen and then an AlertDialog will be appeared. in my onCreate function, I want to call these functions like this: roundOne() , roundTwo(), roundTwo(), roundOne(). I mean that first, roundOne function executes and ...
android
[4]
4,610,150
4,610,151
seek() function?
<p>Please excuse my confusion here but I have read the documentation regarding the seek() function in python (after having to use it) and although it helped me I am still a bit confused on the actual meaning of what it does, any explanations are much appreciated, thank you.</p>
python
[7]
5,988,500
5,988,501
Partially Evaluating Python Classmethod Based on Where It's Accessed From
<p>I have what is essentially the following in python:</p> <pre><code>class X(object): pass class Y(object): @classmethod def method(cls, x_inst, *args, **kwargs): #do some work here that requires an instance of x pass </code></pre> <p>What I would like to do is add a dynamic property to all instances of...
python
[7]
984,576
984,577
Web user control calling event on another User control
<p>can this be done?</p> <p>I have c# .aspx page with two web user controls on both displaying Listview of data.</p> <p>Now if you delete item from 2nd user control listview I want 1st update to show changes as well.</p> <p>I've added the following in 2nd user control</p> <pre><code>&lt;%@ Reference VirtualPath="co...
c#
[0]
2,318,213
2,318,214
PHP - Check if a file exists in a folder
<p>I wanna check if there any image on a folder from my server. I have this little function in PHP but is not working and I don't know why:</p> <pre><code>$path = 'folder/'.$id; function check($path) { if ($handle = opendir($path)) { $array = array(); while (false !== ($file = readdir($handle))) { ...
php
[2]
5,842,758
5,842,759
jQuery - getting a height and re-using it
<p>Can someone explain to me how to get the height of one element, and then re-use it elsewhere on another element, using jQuery?</p> <p>For example, to have 2 divs, 1 &amp; 2, and to get the height of div 1, then have an on-click event on div 2 that animates it to the same height as div 1.</p> <p>Cheers</p>
jquery
[5]
4,912,599
4,912,600
Including JS in head or immediately after opening body tag
<p>What is the difference between including Javascript in the <code>&lt;head&gt;</code> as opposed to immediately after the OPENING <code>&lt;body&gt;</code> tag?</p> <p>Facebook Like widget is one example where they suggest placing the code immediately after the opening <code>&lt;body&gt;</code> tag. SiteCatalyst al...
javascript
[3]
3,458,147
3,458,148
Hi all how to rectify this errors
<blockquote> <p>The type 'Sdi.Pss.Site1' already contains the definition for 'logout'</p> <p>The type 'Sdi.Pss.Site1' already contains the definition for 'btnfresh'</p> <p>The type 'Sdi.Pss.Site1' already contains the definition for 'lblshow value'</p> </blockquote>
asp.net
[9]
3,490,889
3,490,890
Html escaping in java?
<p>Is there a standard class in Java that has a method to HTML-escape a string?</p> <pre><code>&lt; ... &amp;lt; &gt; ... &amp;gt; </code></pre>
java
[1]
5,505,176
5,505,177
List View display row completely
<p>I have list view with text view in it. I have to make sure that on scrollStop A row is displayed completely or it is not displayed , if the row height is less than 50% of visible area of row(I mean if the row has gone up more than 50%). how is it possible to achieve this...do i need to do animation based on calculat...
android
[4]
4,963,196
4,963,197
PHP require_once or include_once nesting
<p>Directory structure,</p> <ul> <li>A.php</li> <li>folder <ul> <li>B.php</li> <li>C.php</li> </ul></li> </ul> <p>A.php includes B.php and B.php includes C.php.</p> <p>But B.php needs to include C.php relative to A.php. Is there any way I can include C.php relative to B.php?</p>
php
[2]
2,743,241
2,743,242
dragging an image
<p>I'm trying to make a floating joystick for my android game but am unable to do so. Here is my onTouch() function:</p> <pre><code>@Override public boolean onTouchEvent(MotionEvent event) { int action = event.getAction(); c = holder.lockCanvas(); switch (action &amp; MotionEvent.ACTION_MASK) { case Mo...
android
[4]
3,949,914
3,949,915
how to upload a Folder from Windows to Linux machine using Java
<p>how to upload a Folder from Windows to Linux machine using Java. Windows machine is the client machine. I am establishing the connection to Linux machine on windows machine using putty, java code will be running on linux machine. This is a servlet based project.</p>
java
[1]
1,728,382
1,728,383
Java: library to calculate the mean?
<p>Is there a function in Jave to calculate the mean ?</p> <p>I've tried by myself but I'm afraid that sum has too high value: 5 642 782 840</p> <p>Can a integer be 5 642 782 840 in Java ? I don't think so...</p> <pre><code>for (int i = 0; i &lt; timeValues.length; i++) { sum = sum + Integer.parse...
java
[1]
4,080,579
4,080,580
ASP.NET HTTP Handler for returning images from a database
<p>Assuming that I have already fetched a byte array from the database, how do I create a ASP.NET HTTP Handler that would return the image? </p> <p><a href="http://zombies.test/GetImage?id=10" rel="nofollow">http://zombies.test/GetImage?id=10</a></p>
asp.net
[9]
620,549
620,550
JavaScript: How to find IP address
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/391979/get-client-ip-using-just-javascript">Get Client IP using just Javascript?</a> </p> </blockquote> <p>Using JavaScript how can I find the IP address of the any user who clicks on my link (which shows a htm...
javascript
[3]
5,000,837
5,000,838
Why the object of wrapper classes like Boolean etc. direct takes value without initialization but property of object is not allow?
<p>Why the object of wrapper classes like Boolean etc. direct takes value without initialization but property of object is not allowed?<br> Code:</p> <pre><code>class TestByte{ public static void main(String[] a) { Byte b=125; System.out.println(b); } } </code></pre>
java
[1]
698,656
698,657
Get notification on a Java process termination
<p>There is a console Java application which is supposed to run untill it is stopped by Ctrl+C or closing the console window. How that application can be programmed to execute a clean up code before exit? </p>
java
[1]
5,138,124
5,138,125
Is there a list of notifications which are posted by the default notification center?
<p>I tried to find one, but couldn't. Would like to know what kind of notifications are posted around in iPhone OS, by default.</p>
iphone
[8]
5,303,059
5,303,060
Start function with both mousewheel and doubleclick jQuery
<p>I have a function that starts like this:</p> <pre><code>jQuery(function($) { $('#map').bind('mousewheel', function(e, delta) { </code></pre> <p>The function starts when I scroll with my mouse, how do I do if I also want to execute this function with doubleclick? So that the user can choose himself.</p> <p>Tha...
jquery
[5]
3,247,747
3,247,748
Save Export CSV to desired location - PHP
<p>I have a code like this.</p> <pre><code>header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=\"$filename\""); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); header("Pragma: public"); </code></pre> <p>Now, this gets saved in m...
php
[2]
560,296
560,297
How to show default c++ object value
<p>I would like to create a c++ type that mimic the build-in type exactly. Below is an example of an "integer" type that "boxed in" an "int" type. Problem I have is, I want to show the value of "integer" using only the stand alone "integer" object d, such that cout &lt;&lt; d will show the value, not cout &lt;&lt; d....
c++
[6]
62,193
62,194
php mail with attachment dosen,t show message
<pre><code>$to="example@example.com"; $from = $email; $subject = "Registration"; $message ="This is to inform you that $name is registerd with oursite."."\n"."\n"."\n"."\n"."Name : $name"."\n"."\n"."Mobile :$phone"."\n"."\n"."Email : $email"."\n"."\n"."Position : $position"; ...
php
[2]
2,075,512
2,075,513
find all images on page with specific url and delete it using java script
<p>im trying to find all images on page with a specifc url /images/icons/bollWhiteDown.gif and delete or change them can it be done?</p> <p>and how?</p> <p>thank you</p>
javascript
[3]
563,964
563,965
Invoke Delegate with Timer Control?
<p>I am using Invoke delegate with Timer Control and Thread Pool and i am worried about my Application Performance. So is there any other method apart from Timer.</p> <p>Also my windows application refreshes every 10 sec and memory size increases. What should i do for that to restrict the memory.</p>
c#
[0]
2,694,561
2,694,562
If Else error in java code
<p>I'm getting an error at the line</p> <pre><code>else break; </code></pre> <p>I think it might have to do with the location of the "{}"</p> <pre><code>public class Palindrome { private static String number; public static void main(String[] args) { display(); } private static int getUserI...
java
[1]
3,977,323
3,977,324
How to convert a Unicode text file in ANSI format using Java
<p>I have one Text File abc.txt which is in Unicode format. I want to convert this into ANSI format. How to do this.</p> <p>I have done google and got the following , but Its very lengthy to understand.</p> <p><a href="http://stackoverflow.com/questions/7943781/java-converting-from-unicode-to-ansi">Java- Converting ...
java
[1]
2,776,766
2,776,767
JQuery Ajax returned blank data
<p>I am learning how to use JQuery to help check data availability.</p> <p>I have written a function in a Controller for checking data input, and the URL is like this: <a href="http://www.mywebsite.com/controllers/action/avariable" rel="nofollow">http://www.mywebsite.com/controllers/action/avariable</a></p> <p>But th...
jquery
[5]
880,515
880,516
jquery selectable: How to make items selected at 1st load
<p>I am using jquery selectable to select items within a .net listview. user can select his desired item and can save it by clicking a save button. Next time when the user will come to page, he will be able to see his previously selected item. </p> <p>Using Jquey selectable plugin user can select an item by clicking i...
jquery
[5]