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
5,938,707
5,938,708
Concise way of pronouncing :: in C++?
<p>How do you pronounce <code>::</code> in C++ in a concise way?</p>
c++
[6]
2,312,105
2,312,106
Conditional Redirection
<pre><code>&lt;a href="/delete/&lt;?php echo $prod_name; ?&gt;" onClick="dropItem()"&gt;delete&lt;/a&gt; </code></pre> <p>Now is it true that only if the function dropItem return true will the page be redirected to the url given in the href attribute? <strong>If not then can anyone suggest any method to implement thi...
javascript
[3]
3,423,223
3,423,224
Mouse dragger on keyboard in android
<p>I need to create a keyboard .when i drag over keyboard,a highlighted pointer should move according to its position on keys.How could i do that?Coding is much better for me.Thanks.</p>
android
[4]
5,364,597
5,364,598
Jquery function when a textbox loses focus
<p>I have textbox that I want to run some jquery when the textbox loses focus, so after the user clicks out of the text box.</p> <p>I have tried to do this</p> <pre><code>$("#textbox").focusout(function () { alert("hello"); }); </code></pre> <p>but I get an error saying Object doesn't support this property or m...
jquery
[5]
700,385
700,386
Form submit called using Link. Need Help
<p>I have tried different ways but no success. Googled but can not find this code working.</p> <p>I want to submit form by clicking Link. Below is the code. Link Click is called but submit function is bypassing.</p> <pre><code>&lt;a id="Save" class="pageAddLink" href="#" title="Save Page Contents"&gt;Save Page&lt;/a...
jquery
[5]
1,257,743
1,257,744
Decimal to binary conversion in c #
<p>How to convert a decimal no into binary in c #</p> <p>Now i'm using like:</p> <pre><code> String str="8"; String Ans= Convert.ToInt32(str,2).ToString(); </code></pre> <p>But its throwing some Exceptions.</p> <p>Please help me to do this</p> <p>Thanks in advance</p>
c#
[0]
121,848
121,849
C#: overwriting string value in if else statemnt?
<p>I have a fairly simple if else statement in C# that looks something like this;</p> <pre><code> string BodyContent = ""; if (Request.Form["value1"] != "") { BodyContent = "bla bla 1"; } else if (Request.Form["value2"] != "") { BodyContent = "bla bla 2"; } else if (Request...
c#
[0]
4,708,300
4,708,301
jquery scroll to top animation
<p>im trying to implement a scroll to top animation on my site <a href="http://www.cmclove.org/bootstrap" rel="nofollow">http://www.cmclove.org/bootstrap</a> </p> <p>but whenever i scroll to top and try to scroll back down it seems like the page is fighting me and doesent want to go back down. </p> <p>you might hav...
jquery
[5]
6,019,898
6,019,899
what does << do in javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/141525/absolute-beginners-guide-to-bit-shifting">Absolute Beginner&#39;s Guide to Bit Shifting?</a><br> <a href="http://stackoverflow.com/questions/1822350/what-is-the-javascript-operator-and-how-do-you-use-it">Wh...
javascript
[3]
2,959,146
2,959,147
Populating checkedListBox using c# windows application
<p>I want to populate the checkedListBox control with file names from a directory which i can do now using the following code.</p> <pre><code>System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(txtPath.Text.ToString()); System.IO.FileSystemInfo[] files = di.GetFileSystemInfos(); checkedListBox1.Items.AddRange(fil...
c#
[0]
1,165,574
1,165,575
.one() doesn't work like jquery.com suggests for first use
<p>I've exhausted my researched on using .one() for my needs, and get it to work correctly per class selector instance, where it only shows once. But on jQuery.com it states the following will work, where if clicked once, it will not run again if another element is clicked with that same class selector. However, that...
jquery
[5]
2,955,517
2,955,518
How Linq and Lambda works
<p>How does lambda expression works internally and what is the role of Expression tree?</p> <p>Also how linq gets expanded to lambda and heceforth to expression tree?</p> <p>... it has been asked in an interview</p> <p>If anyone knows, please share....</p> <p>Thanks</p>
c#
[0]
4,085,506
4,085,507
What value to use to clear out different data types?
<p>Say you have a property that has a value and you want to clear out that value. Do you always want to set it to null or undefined, or does the data type matter.</p> <p>The only reason I could think that the data type would matter would be for documentation purpose of what this property's data type should be.</p> <...
javascript
[3]
3,429,227
3,429,228
Please explain why these two builtin functions behave different when passed in keyword arguments
<p>Consider these different behaviour::</p> <pre><code>&gt;&gt; def minus(a, b): &gt;&gt; return a - b &gt;&gt; minus(**dict(b=2, a=1)) -1 &gt;&gt; int(**dict(base=2, x='100')) 4 &gt;&gt; import operator &gt;&gt; operator.sub.__doc__ 'sub(a, b) -- Same as a - b.' &gt;&gt; operator.sub(**dict(b=2, a=1)) TypeError...
python
[7]
4,709,606
4,709,607
Iphone App Installation Error
<p>I am trying to install an application on my iphone for testing. I have installed projects on the phone before. The project compiles and links fine, but when xCode tries to install my app on the phone I get the error:</p> <p><strong>Xcode has encountered an unexpected error (0xE800003A)</strong></p> <p>0xE800003A...
iphone
[8]
476,139
476,140
Regarding Intents
<p>According to what i have learnt from passing data using Intents is that when you pass Object O from Activity A to Activity B via intents, activity B receives a COPY of object O. The way things work is that The object O gets serialized (converted to a sequence of bytes) and that sequence of bytes is then passed to Ac...
android
[4]
2,578,230
2,578,231
Button Click event not performed
<p>I have write the following code in the onCreate() method of Activity class</p> <pre><code>Button btn=(Button)findViewById(R.id.button1); btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { WindowManager.LayoutParams params = getW...
android
[4]
5,033,748
5,033,749
change querystring value with jquery
<p>i am using a jquery Script to create a Tab Panel. Now, what i need is to change the querystring value on click on each tab. can we do this without page refresh.</p> <p>I am using below script for tab panel.</p> <pre><code>function tabPanel() { var tabContent = $('div.tabsBG &gt; div.tabsWrapper'); tabConte...
jquery
[5]
2,040,793
2,040,794
Passing and retrieving a URL variable
<p>I am trying to pass and retrieve a variable from one page to another. When i run the page i'm getting the error 'URL not found'. So im guessing my variable hasn't been passed to the page. </p> <p>When i click on the pages edit.php and delete.php the corresponding url is being displayed. i.e edit.php?id=1, edit.php?...
php
[2]
2,959,103
2,959,104
Is it possible to run my Android app immediately after the OS reboots?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/10613538/automatically-run-an-application-on-android-phone-startup">automatically run an application on Android phone startup</a> </p> </blockquote> <p>I have developed an Android app (not for phone). Is it poss...
android
[4]
935,407
935,408
how to get respected person details saved in arrays from selected value in table view
<p>i am having 3 arrays with info regarding peoples.</p> <p>one array is with name,second array with email,third array with phone number.</p> <p>eg:{jon,Willems...},{jon@example.com,Willems@example.com...},{123456,123456,...} </p> <p>I need to display agent names in table.</p> <p>when ever i selects people name in ...
iphone
[8]
3,940,275
3,940,276
Exception to be handled for HttpConnection
<p>Kindly provide me the code for handling the <strong>HttpConnection or related Exceptions &amp; how to display that to the user.</strong></p> <p>Specifically , I would like to know how to handle <strong>TimeOut for HttpConnection &amp; how to display that alert to the user.</strong></p> <p>Kindly provide the same c...
android
[4]
4,976,812
4,976,813
onPostExecute cant use Main Activity elements
<p>I have doinBackgroung function. after function I want to change some textview on mainactivity. but When I trigger the function on main activity I got nullpointerexception on TextView line.</p> <pre><code>protected String doInBackground(Object... arguments) { some code.. return result; } @Override protect...
android
[4]
4,713,287
4,713,288
remove form element from document in javascript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7020788/how-to-remove-dom-element">How to remove dom element?</a> </p> </blockquote> <p>How to remove form from document?</p> <pre><code>var formeEl=document.createElement("FORM"); formeEl.method="POST";...
javascript
[3]
1,059,787
1,059,788
How can i change a value of html tag after evry n sec with using jquery?
<p>I want a make a custom script.By using this script i want to change the value of a div after every 4 sec. Is there any method by which i can do this?</p>
jquery
[5]
4,649,203
4,649,204
How do you handle pause and resume of speech when using the Flite libraries?
<p>i have developed sample application in which i have used Flite libraries for Text to Speech conversion. But now i am not able to get how can i pause and resume speech using API/Classes of Flite, because i think Flite convert our text string as a wav file and then once recording completed then it plays that sound fil...
iphone
[8]
5,121,563
5,121,564
How to install custom font in android device
<p>I want to install custom font which is .ttf file in android device when my application start. Actually i need to install burmese font in my android device when i run my application. is it possible ? if yes then how? Thanks. I don't need typeface.. i want to install in system.</p>
android
[4]
1,795,928
1,795,929
using implode to combine multiple select
<p>I have a php page like this :</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;form method="post" action="catch_combo.php"&gt; &lt;select name="selr[]" multiple&gt; &lt;option value="1"&gt;1&lt;/option&gt; &lt;option value="2"&gt;2&lt;/option&gt; &lt;option value="3"&gt;3&lt;/option...
php
[2]
3,551,759
3,551,760
login_form_seq ? in python
<p>can some one give me example and explain how to use login_form_seq in python and login_form_data .. and this simple example but i don't know really how to deal with that !!</p> <pre><code>login_form_seq = [ ('log', sys.argv[2]), ('pwd', word), ('rememberme', 'forever'), ('wp-submit', 'Login &gt;&gt;'), ('redire...
python
[7]
3,366,229
3,366,230
How exactly the line is getting printed on "Console" using System.out.print()
<p>If i want to print a line </p> <blockquote> <p>This is Java programming language</p> </blockquote> <p>in console using <code>System.out.print()</code> ,So from which and how many process it goes to print this line, and how we can compare it with writing the same Line in file using <code>FileWriter</code> or <cod...
java
[1]
2,396,844
2,396,845
Javascript reference manual in chm format
<p>Where to get the Javascript reference manual?</p> <p>All I found is : <a href="https://developer.mozilla.org/en/JavaScript" rel="nofollow">https://developer.mozilla.org/en/JavaScript</a></p> <p>But I want a downloadable version.</p>
javascript
[3]
2,880,678
2,880,679
jquery mouseout event
<pre><code>$(document).ready(function() { $(".main_image .desc").show(); //Show Banner $(".main_image .block").animate({ opacity: 0.65 }, 1 ); $(".image_thumb ul li:first").addClass('active'); $(".image_thumb ul li").click(function () { var imgAlt = $(this).find('img').attr("alt"); ...
jquery
[5]
5,498,348
5,498,349
How can I repopulate an array?
<p>I have code that populates an array:</p> <pre><code>var counters = new[] { 1,2,4,8 } </code></pre> <p>This works good but later on in my code I would like to do something like this:</p> <pre><code>counters = new[] { 2,2,3,5 } </code></pre> <p>Is there some way I can do this? I am very new to C# and still learnin...
c#
[0]
4,625,531
4,625,532
sharing feature in android
<p>Is it possible to share my video or my photo from my application on the web in android?If possible how to do this? I made a application and now i want to share some my feature on the web so how i can do it? Thanks </p>
android
[4]
1,084,961
1,084,962
How to get UILabel (UITextView) auto adjusted font size?
<p>Is it possible to get final font size, after autoadjusting? (property adjustsFontSizeToFitWidth set to YES, and text font size is being shrinked to fit into the label)</p> <p>I am subclassing drawTextInRect in UILabel to put gradient on the text, but the gradient size needs to be the same, as the size of the font. ...
iphone
[8]
3,915,103
3,915,104
How to store variable in phone memory android?
<p>i need to store a variable in phone memory, and later get that variable to show it.</p> <p>Please, give me some information or anything to search. Thanks</p>
android
[4]
1,858,801
1,858,802
Simple typewriter program error
<p>So I am getting an error that doesn't seem to make any sense, and the solution is most likely staring at me in the face. I do understand the "String index out of range: XX", but it seems to change that value even if I input the same string multiple times. It says (unknown source) which I presume is the phrase variab...
java
[1]
4,205,461
4,205,462
problem in xml parsing in android
<p>I am developing an android application in which i have to post some data to url.I did googling and got some samples.I tried them out.But i did not got the response as required.</p> <p>Below is the link which i tried</p> <p><a href="http://www.androidsnippets.com/executing-a-http-post-request-with-httpclient" rel="...
android
[4]
5,395,188
5,395,189
initializing a class using a property in c# -
<p>I dont understand properties very well. the line of code: method2(x.str1, x.str2, x.str3, x.str4); --- throws me a "object reference not set to an instance of the object error". Any thoughts appreciated. x.str1 is not resolving?</p> <p>(I am adding some code and adding more functionality to an existing set up. I w...
c#
[0]
5,162,935
5,162,936
Android : Saving the generated QR code image to a SD card
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/649154/android-bitmap-save-to-location">Android : Bitmap save to location</a> </p> </blockquote> <p>I have successfully created a QR code generator application but cannot save the generated image to a external s...
android
[4]
2,331,298
2,331,299
PHP selecting from db to display username?
<p>So I'm trying to select the username from the users table BASED ON if they are in a gang.</p> <p>Vars used.: </p> <pre><code>$member_gang = mysql_fetch_assoc(mysql_query("SELECT level,gangid,rating FROM user_stats WHERE id = '" . $_SESSION['user']['id'] . "'")); $gang_info = mysql_fetch_assoc(mysql_query("SELECT *...
php
[2]
3,653,818
3,653,819
How to traverse all the members inside a class?
<p><br> suppose I have a class</p> <pre><code>class CAT { private: int a; long b; double c; string d; }; </code></pre> <p>now I need a function which can initialize all the members to a specific value, for example:</p> <ul> <li>int set to 0 </li> <li>long set to -1 </li> <li>double set...
c++
[6]
1,764,414
1,764,415
Intercept every request originating from a webpage
<p>Is it possible to intercept every request made from a page using javascript? i.e. Clicking on a link, loading an image, ajax request...</p>
javascript
[3]
4,584,421
4,584,422
Why can't I assign a string of numbers as a key in a javascript object?
<p>This is done in the node shell:</p> <pre><code>&gt; results = [] [] &gt; num = 5 5 &gt; results[num] = [] [] &gt; results [ , , , , , [] ] &gt; </code></pre> <p>And even if I try to stringify the number:</p> <pre><code>&gt; results = [] [] &gt; num = 5 5 &gt; results[num.toString()] = [] [] &gt; results [ , , , ,...
javascript
[3]
2,640,924
2,640,925
How to store one string and arrayvalue in sharedpreference?
<p>I have array values of up[]={0,0,0,0,0} and view="adult" thesetwo value i want to store and retrieve in from sharedpreference how to do that...</p>
android
[4]
3,186,161
3,186,162
Store Bitmap Screenshot in Android Cache
<p>Can someone please help me make my code below store to cache rather than my sd card. I am taking a screenshot of my application to use for sharing on social media.</p> <pre><code> // image naming and path to include sd card String mPath = Environment.getExternalStorageDirectory().toString() + "/" ...
android
[4]
2,322,460
2,322,461
JQuery wait x seconds after document ready
<p>following code waits till dom ready</p> <pre><code>jQuery(document).ready(function(){ </code></pre> <p>what do i have to write to simple let the execution of the jquery function wait for 2 seconds after the document is ready?</p> <p>i need this to narrow down a conflict between multiple instances of a plugin.</p>...
jquery
[5]
4,202,664
4,202,665
avoiding returning an object from within an object
<p>I have an object that looks like this:</p> <pre><code>public class MyObject { public int UserID {get;set;} public List&lt;SomeObjects&gt; {get;set;} public List&lt;SomeOtherObjects {get;set} public MyObject TheObjectForDB {get;set} //HERE: creating a new object public MyObject(int TheUserID) ...
c#
[0]
3,138,979
3,138,980
Notice: Undefined index: $key in C:\wamp\www
<p>when I define variable <code>$key</code>, then appears </p> <blockquote> <p>Notice: Undefined index: $value in C:\wamp\www</p> </blockquote> <pre><code>&lt;?php $prices['Oil'] = 10; $prices['Spark Plugs'] = 4; $prices['Tires'] = 100; $prices['Fuses'] = 50; while ($element = each($prices)){ echo $element['$ke...
php
[2]
2,810,421
2,810,422
Dynamically Updating Launcher Icon in Android
<p>I am trying to put a dynamic value in the launcher icon of android, as number of messages will be displayed in the message icon. As the icon is static and initialised before the application starts, Is there any way to achieve this??</p>
android
[4]
1,350,076
1,350,077
Verify method returns true
<p>I am trying to verify whether the method in my class is returning a true value. Please look at my object below the class and tell me if it is a valid statement. I am using this to verify whether an email address already exists in the database.</p> <p>My class and it's constructor </p> <pre><code>class CheckEmail {...
php
[2]
4,241,047
4,241,048
return char array function error
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2514539/is-it-a-good-idea-to-return-const-char-from-a-function">Is it a good idea to return &ldquo; const char * &rdquo; from a function?</a><br> <a href="http://stackoverflow.com/questions/7769998/how-to-return-c...
c++
[6]
1,845,658
1,845,659
Android Notepad3 run-time error forece close
<p>When I run the Notepad3 tutorial, I got this error message:</p> <blockquote> <p>The application com.android.demo.notepad3 (process com.android.demo.notepad3) has stopped unexpectedly</p> </blockquote> <p>It force close. What's wrong?</p>
android
[4]
5,780,898
5,780,899
Difference between Total Private Dirty,Total Pss,Total Shared Dirty in Android
<p>I am just wondering what is the difference between Total Private Dirty,Total Pss,Total Shared Dirty. Though the explanation is on the <a href="http://developer.android.com/reference/android/os/Debug.MemoryInfo.html" rel="nofollow">website</a> it doesn't really make any sense to me.</p> <p>getTotalPrivateDirty() Ret...
android
[4]
5,316,375
5,316,376
PHP shipping cost
<p>Im trying to make a shippment cost to a php store, the point is to get the $subtotal number and add +5 +8 to the subtotal if the subtotal has a specific amount.</p> <p>What i´ve got so far... Im not an PHP expert</p> <pre><code>&lt;?php $t=price($subtotal); if ($t&lt;50) { echo ($t+5); } else if ($t&gt;=...
php
[2]
2,128,275
2,128,276
get the data from the database and display in the UITextField
<p>how to i connect to mysql database and execute my query and display in iphone application may be in tabular view ..but not in any webview (safari)</p>
iphone
[8]
674,465
674,466
Difference between two PHP variable definitions
<p>I have two variable definitions, and I am trying to understand the difference between the two so I can merge them into one.</p> <p><strong>PHP Definition 1:</strong></p> <pre><code>$page = $_GET['page']; </code></pre> <p><strong>PHP Definition 2:</strong></p> <pre><code>$page = 0; if(isset($_GET['page'])){ ...
php
[2]
3,977,485
3,977,486
Changing multiple image extension using jquery
<p>sorry, im new in jquery. I have this code on tag:</p> <pre><code>&lt;img class="fluidimage" src="img/picture1.jpg"/&gt; &lt;img class="fluidimage" src="img/goodimage1.jpg"/&gt; </code></pre> <p>and i want to change all src on fluidimage class if the user resize their web browser. so my desired output is : </p> ...
jquery
[5]
339,840
339,841
background image in html page in iphone
<p>I m the beginner in iphone development.</p> <p>How i call the background image from my project directory in Xcode in html page. I have taken previously UISegment control and after that i calling two html page on webview in uisegmentcontroller. Now i want to set background images on those html pages. It is possible?...
iphone
[8]
2,286,994
2,286,995
What is the difference between animate and setInterval in my case
<p>HTML</p> <pre><code>&lt;div id="answer" style="width:100px;height:50px;"&gt;Answer&gt;&lt;/div&gt; </code></pre> <p>JS</p> <pre><code>$(function () { var answer = $('#answer'); var sizeChangerHandle; function setBackground() { sizeChangerHandle = setInterval(changeConstantly, 1); } ...
jquery
[5]
2,844,178
2,844,179
What is the difference between WCHAR and wchar_t
<p>I was wondering if there was any practical difference between WCHAR and wchar_t. </p>
c++
[6]
3,950,600
3,950,601
How can i Access a control into a class?
<p>I Have a Gridview in page.aspx. this gridview i want to pass as a parameter to the constructor of a class1.cs.Can anybody tel me, How can this be done? </p>
asp.net
[9]
3,872,011
3,872,012
jquery addclass
<p>This is probably simple but I am new at jQuery so... In IE 8 the link color does not turn pink even in compatibility mode. Now if I run it on firefox,chrome it works. But here is the thing that baffles me. If I add an alert to the function then in IE 8 the link turns pink and the message box displays. Can someone...
jquery
[5]
4,084,022
4,084,023
store different objects
<p>I want to create different classes and they should be all stored in one ArrayList. If i use:</p> <pre><code>interface ProgramInterface { void someMethods(); } public abstract class CustomProgram implements ProgramInterface { // stuff } </code></pre> <p>Then i can make my own class like</p> <pre><code>cla...
java
[1]
5,059,314
5,059,315
jQuery add next to (add after)
<p>HTML is<br> <code>&lt;a&gt;ref&lt;/a&gt;</code></p> <p>I need to get<br> <code>&lt;a&gt;ref&lt;/a&gt;text</code></p> <p>How can i do this? <code>$('a').append('text')</code> only insert text into <code>&lt;a&gt;&lt;/a&gt;</code>, not after it</p>
jquery
[5]
3,621,804
3,621,805
JavaScript Beginner Question (Loops)
<p>Today is my first day in JavaScript. The book (JavaScript Definitive Guide) has an excersice printing all the factorials.</p> <p>This is what I did:</p> <pre><code>&lt;html&gt; &lt;b&gt;&lt;head&gt; Factorial - JavaScript - Ex1&lt;/head&gt;&lt;/b&gt; &lt;body&gt; &lt;h2&gt; Factorials List &lt;/h2&gt; &lt;...
javascript
[3]
1,883,315
1,883,316
Run Java Application Inside Another Container
<p>I have several commercial embedded systems designed to be controlled from a web browser which I am managing through a single interface. Each embedded system provides a "console" facility through a Java application designed to run using Java web start. These Java applications communicate with the embedded systems u...
java
[1]
3,538,018
3,538,019
Android - Steering with orientation sensor
<p>I am writing a simple 2d game similar to breakout or pong, where you move a bar along the bottom of the screen by tipping the phone left and right.</p> <p>I am trying to use the Orientation sensor to achieve this movement however i've run into some issues.</p> <p>After printing out the orientation sensor's values ...
android
[4]
4,244,252
4,244,253
counting session units from array PHP
<p>I want to count my $_SESSION['cart'] (units) products from my basket. </p> <pre><code>#check added stock $units = (int) $_POST['units']; $sizes_id = (int) $_POST['size_id']; $in_stock = $db-&gt;GetScalar("SELECT p.units FROM products_sizes s INNER JO...
php
[2]
314,099
314,100
Again about pressing Home button and resuming from last activity
<p>I saw a lot of topics, but no normal solution to my problem. I have 2 activities A and B. The sequence is: A->B->Home->Launch again->A In documentation it's said that whole stack will go to foreground. And it actually goes, but it also launches A again, so the stack now is: A B A. I tried to make A "singleTask" hopi...
android
[4]
4,279,510
4,279,511
What's the preferred way to design navigation in a large Android application?
<p>The droid application I'm currently working on is getting quite large -> many Activities. I'm concerned about the way I should design the navigation in this app.</p> <p>I have a main menu Activity, which should be the only entry point to the app. If the user start from here, he/she can go quite deep, through many A...
android
[4]
5,186,117
5,186,118
Server side validation in java
<p>Can any one explain me the need and scenarios of server-side validation in java. why can't we use the validation at the client-side using javascript?</p>
java
[1]
4,861,294
4,861,295
A PHP script to publish book/documentation
<p>I am looking for an opensource PHP script that will publish and organize table of contents. Something like Web2py book would be wonderful, <a href="http://web2py.com/book" rel="nofollow">http://web2py.com/book</a>. </p> <p>Thank you,</p>
php
[2]
3,170,732
3,170,733
Detecting keyPress inside an IFRAME using jQuery
<p>can i detecting keyPress inside an IFRAME using jQuery? when user paste any copy text in ifram i want to check this text, Is this text contain HTML tags or not.</p> <p>Please help me. </p> <pre><code>&lt;iframe class="abc"&gt; &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; some text here(This tex...
jquery
[5]
33,975
33,976
C++ Variable Type Selection at Runtime
<p>I am upgrading an old application which was written for a specific hardware interface. I now need to add support for a modern hardware to the existing application.</p> <p>To do this, I would like to create a class for each hardware type, and assign a variable to one type or the other whenever the user selects whic...
c++
[6]
608,086
608,087
Include headers of both base and inherited class in main
<p>I have a class <code>calendar</code> and a class <code>extendedCalendar</code> that inherits from <code>calendar</code></p> <p>I want to be able to create objects of both classes in main, so i include both of their headers in <code>main.cpp</code> :</p> <pre><code>#include "calendar.h" #include "extendedCalendar.h...
c++
[6]
4,896,372
4,896,373
JavaScript/HTML/CSS - Multiple forms on one page
<p>I'm trying to create a simple web page in JavaScript, HTML, and CSS. The web page generates 5 div elements. Each div element includes a random number, text input, and submit button. My code below does that.</p> <p>The user then should be able to enter the random number into the text input box and click the submit b...
javascript
[3]
749,898
749,899
set button below google map in layout android
<p>i want to set button below google map means button should be on bottom of screen and google map till just above the button,i cant set the height in dip of google map because then it would create problem on large screen or small screen...and if i set height of googlemap=wrap_content then not able to see map in my lay...
android
[4]
5,973,924
5,973,925
help with php and variables
<p>script example can be found at <a href="http://panelbackup.com/e.php" rel="nofollow">http://panelbackup.com/e.php</a></p> <p>how can I get these random numbers appended to a url prior to it being served by the script? So far the url is loading, and I have a variable for generating the random number, but I am having...
php
[2]
5,792,631
5,792,632
How do I remove repeated elements from ArrayList?
<p>I have an <code>ArrayList</code> of <code>Strings</code>, and I want to remove repeated strings from it. How can I do this?</p>
java
[1]
3,688,139
3,688,140
How can i make a menu item checked with this line of command?
<p>How can i make a menu item checked in Form main with this line of command?</p> <pre><code>//Form main: private void button1_Click_1(object sender, EventArgs e) { Form1 form2 = new Form1(); form2.Owner = (Form)this; form2.Show(); } Form1: private void button1_Click(obje...
c#
[0]
1,380,231
1,380,232
.append JQuery whilst declaring a variable
<p>Basically i tried this:</p> <pre><code>var newDiv = $('#parentDiv').append("&lt;div id=\""+user_name+"\" div class=\"user_head\"&gt;"+"&lt;/div&gt;"); </code></pre> <p>But when I try to append to the newDiv, it appends to the #parentDiv.</p> <p>How can i declare a variable for the new DIV created from append?</p>...
jquery
[5]
5,038,115
5,038,116
How to correct warning CS1707?
<pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.IO; using System.Collections; using System.ComponentModel; namespace ConsoleApplication1 { class BreakingChange { delegate void SampleDelegate(string x); ...
c#
[0]
1,499,732
1,499,733
asp.net web config <appSettings file="">
<p>Hi I have a web solution which has mutiple projects, One of those projects is used to hold different config files for different environments eg dev.config, staging.config, production.config</p> <p>Id like to know if it is possible to use the web config tag to reference one on these config files , the problem is th...
asp.net
[9]
4,523,261
4,523,262
C# creating a ListBox application
<p>Im suppose to create a windows app in C# using a ListBox object. I need to create an order form with 6 different things to be purchased. Can someone please show me how to code for a list box?</p>
c#
[0]
5,918,729
5,918,730
Javascript: setInterval function not working
<p>I have the following piece of code. Interval is set to 10sec.</p> <pre><code>(function($){ $(document).ready(function() { disp_log(); setInterval(function () { disp_log(); }, 10 * 1000); function disp_log() { $.ajax({ "type" : "GET",...
javascript
[3]
665,627
665,628
what's the error in this c++ code
<p>my friend wrote a c++ code, it's not working, and he came to me for help. the problem is that i don't know c++ :) i'm more interested in python and i don't want to learn c++ anytime soon, so i come here for help :) here's the code</p> <pre><code>#include&lt;iostream&gt; using namespace std; int main (){ char ...
c++
[6]
4,325,637
4,325,638
python.exe file missing?
<p>Okay, so about 6 months ago a guy built a program for my company using python. The program ran fine, but now all of a sudden, it doesn't work. The error message says it can't find python/python.exe. I'm just trying to figure out if this is a file that came with the python installation, or if this is something that w...
python
[7]
2,166,450
2,166,451
unable to get debug signature key for my android application
<p>I am new to android. I got one issue during run my first hello world application in android.The error is like:</p> <pre><code>Error generating final archive: Unable to get debug signature key </code></pre> <p>I see my default path of debug keystore Windows->Preference->Android->Build. The path is </p> <pre><cod...
android
[4]
247,481
247,482
Jquery to retrieve and set selected index value of html select element
<p>I am attempting to retrieve and set the selected value of a select element (drop down list) with Jquery.</p> <p>for retrievel i have tried <code>$("#myId").find(':selected').val()</code>, as well as <code>$("#myId").val()</code> but both return undefined.</p> <p>Any insight into this problem would be much apprecia...
jquery
[5]
528,949
528,950
Turn ISO 8601 date/time into "x minutes ago" type of string
<p>So I have an ISO 8601 date/time stamp like "2011-04-21T17:07:50-07:00", and I would like to convert it to say something like "23 minutes ago" or something of that sort. Is there a small bit of Java code or a library that would be able to do something like that easily?</p> <p>Thanks!</p>
java
[1]
5,437,213
5,437,214
Javascript automate onclick
<p>I'm trying to automate clicking a few links on a webpage</p> <p>For example, in Google Chrome if I type <code>Javascript:setDisplayType('source');</code> then it runs the function in the html defined as</p> <pre><code> &lt;input type="radio" name="DisplayType" value="source" onclick="setDisplayType('source');"...
javascript
[3]
3,069,417
3,069,418
How to insert & edit images in fckeditor in php?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5674891/how-to-add-images-in-fck-editor-in-php">How to add images in fck editor in php?</a> </p> </blockquote> <p>How to insert &amp; edit images in fckeditor in php?</p>
php
[2]
5,651,401
5,651,402
Imagecreatefrompng problem
<p>I took code from the <a href="http://php.net/manual/en/function.imagecreatefrompng.php" rel="nofollow">php.net</a></p> <pre><code>function LoadPNG($imgname) { $im = @imagecreatefrompng($imgname); if(!$im) { $im = imagecreatetruecolor(150, 30); $bgc = imagecolorallocate($im, 255, 255, 2...
php
[2]
657,744
657,745
Application successfully installed but not starting on emulater
<p>Here i am placing the console details ,i need to change any emulator settings or need to add any statements in manifest file .help me ,thank you</p> <pre><code> [2013-03-28 11:08:29 - Lisnx] Android Launch! [2013-03-28 11:08:29 - Lisnx] adb is running normally. [2013-03-28 11:08:29 - Lisnx] Performing com.l...
android
[4]
268,185
268,186
Overloaded method match (can't convert string to int)
<p>I'm trying to get 2 int and 3 strings inserted into the database from a label and 4 tekstboxes.</p> <p>The Error I'm getting: </p> <blockquote> <p>The method Insert has some invalid arguments, the argument cannot convert from string to int.</p> </blockquote> <p><code>lblHidden.Text</code> and <code>TextBoxDagnu...
c#
[0]
3,084,644
3,084,645
class attribute with css in jquery
<p>I need jquery function do this: </p> <p>First:</p> <pre><code>&lt;a class="MyClass1 Myclass2 {padding-top:10px;height:20px;}"&gt;&lt;/a&gt; </code></pre> <p>After calling function:</p> <pre><code>&lt;a class="MyClass1 Myclass2" style="padding-top:10px;height:20px;"&gt;&lt;a/&gt; </code></pre> <p>Function must w...
jquery
[5]
3,550,329
3,550,330
get a reference to a list inside another class
<p>In my app I have a list of Trucks that are displayed in a lisview, and every Truck has a list of cases inside it. My question is how do I get a reference to that list of cases inside the truck from the main activity.</p> <pre><code>public class Truck { private String name; public List&lt;Roadcase&gt; cases; pub...
android
[4]
5,401,226
5,401,227
The custom UIAlertView works fine in the IOS 4.0 but it shows the default bounding box for the ios 4.2
<p>The custom UIAlertView works fine in the IOS 4.0 but it shows the default bounding box for the ios 4.2 .Do anybody know why this happens for my customised alertview</p>
iphone
[8]
5,078,447
5,078,448
How do I ignore lines using difflib.ndiff?
<p>According to the documentation, you can provide a linejunk function to ignore certian lines. However, I can't get it to work. Here is some sample code for discussion:</p> <pre><code>from re import search from difflib import ndiff t1 = 'one 1\ntwo 2\nthree 3' t2 = 'one 1\ntwo 29\nthree 3' diff = ndiff(t1.splitlin...
python
[7]