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,971,935
3,971,936
viewing site from server
<p><strong>ok i'm trying to put my asp.net website onto my university's web server but when visiting my webpage I get the following problem:</strong></p> <pre><code>Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the...
asp.net
[9]
3,717,211
3,717,212
ListView Activity, dynamically insertion of list items
<p>I am trying to insert list items dynamically into the list view. As list view is created and displayed on the screen now suppose i got one items from the server or some where, now i want to add this item in the same list view what i have displayed. How to do that ?? Is there any way to insert items dynamically in th...
android
[4]
456,410
456,411
Authorization failed: Please connect to iTunes
<p>I always get this message whenever I tried to download an app from the appstore, some peoople tell me that this is due to the dynamically changing Terms of Use from Apple, how can I accept the Terms of Use. Tried everything else but jailbreak.</p>
iphone
[8]
4,847,556
4,847,557
what is android Choreographer
<p>I installed the latest versions of <code>SDK (API 16)</code> and got the latest ADT. I'm now seeing these messages in the logcat, that I'm quite sure, I haven't seen before. Does anyone have an idea about this?</p> <blockquote> <p>06-29 23:11:17.796: I/Choreographer(691): Skipped 647 frames! The application ma...
android
[4]
1,781,729
1,781,730
Custom button example not working
<p>I am newbie in android application development. I am using the Form Stuff example given on <a href="http://developer.android.com/resources/tutorials/views/hello-formstuff.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-formstuff.html</a>. In this i have used the custom button exampl...
android
[4]
4,059,313
4,059,314
Java: Regular expression to strip out: %j or %f
<p>Is there an easy way to strip out something like %j or %f out of a string and replace it with an int? like: </p> <p>XYZ: %J Num: %f </p> <p>becomes </p> <p>XYZ: 12 Num: 34</p>
java
[1]
5,449,955
5,449,956
Slow Moving Objects (Visual)
<p>When I try to move graphical objects across the screen at steps which are not whole numbers (for example, 0.5 pixels per frame) this results in choppy and 'laggy' movement; as the object will simply move 1 pixel every two frames.</p> <p>I understand why this is happening as the x / y values of an object must be Int...
java
[1]
6,018,350
6,018,351
Adding map overlays
<p>I am using iPhone os4 for development. I need to add overlays to mapview. Apple now provides overlays as a new feature of os4. How can i add overlays.Any help will be greatly appreciated.</p>
iphone
[8]
6,019,869
6,019,870
Crazy idea of new tag in html
<p>I want to create a tag named <code>&lt;triangle&gt;</code>. And I want to add new css attributes, like <code>width-a</code>, <code>width-b</code>, and <code>width-c</code>. (Widths of the three sides of the triangle).</p> <p>I have already the calculations in JavaScript, and I know how to create tags and append the...
javascript
[3]
3,659,071
3,659,072
how to identify the login details from data base
<p>i created a signup page and enter those values in database. Now i want to create a login page and have to check the details from the data base, whether the user registered or not? How can any one help me...please?</p>
asp.net
[9]
3,330,967
3,330,968
How do i make sure that my mail($to,$subject,$msg); delivers the mail
<p>My computer has got apache installed(localhost), so i made a signup option, and there is an email option to which i send a mail for activation of account. I have an internet connection, now if in the PHP script, i write mail($to,$subject,$msg); will this code deliver the mail to the desired recepient because it ...
php
[2]
3,831,721
3,831,722
C++ usage extern in front of function
<p>I have seen an interview question from Bloomberg from here: <a href="http://www.careercup.com/question?id=383154" rel="nofollow">http://www.careercup.com/question?id=383154</a></p> <pre><code>extern void print(int *a, int z); void print(int *a, int z); </code></pre> <p>Question 1> Will it compile?</p> <p>Question...
c++
[6]
2,748,543
2,748,544
ostringstream overloading const char * with the void *
<p>im having an issue with the ostream, I have written a very basic macro that should print out its parameters.</p> <p>Please see example code below:</p> <pre><code>#define LOG Message(__FILE__, __LINE__,__func__) class Message : public std::ostringstream { public: Message(const char *param1, int param2...
c++
[6]
5,781,224
5,781,225
jQuery Add / remove class on nav
<p>How can I create different classes on my links so they can show different images when you click on them?</p> <p>The idea is that the links has its own color and when it is active there must be a little arrow with the same color.</p> <p>This is what I have so far:</p> <p><strong>HTML:</strong></p> <pre><code>&lt;...
jquery
[5]
5,332,093
5,332,094
Android 4.0+ tablet keyword?
<p>I heard that there is a keyword or method that Android developers can use to determine whether Android 4.0+ is running on a tablet (without having to do any kludgy screen size comparisons). I can't find it.</p> <p>So, is this true? If so, what is it?</p> <p>Edit: I see that people are giving me answers that are n...
android
[4]
5,355,870
5,355,871
Comparing one 2D and one 1D array in C#?
<p>I just want to write code for comparing a 1D array with a 2D array... I am working on writing a compiler and want to compare a 1D array which contains my code and other 2D array in which I have made a symbol table. I have written code, but it's not working.</p> <pre><code>for (int x = 0; x &lt; symboltable1.Length;...
c#
[0]
1,829,765
1,829,766
Take all input in Python (like UAC)
<p>Is there any way I can create a UAC-like environment in Python? I want to basically lock the workstation without actually using the Windows lock screen. The user should not be able to do anything except, say, type a password to unlock the workstation.</p>
python
[7]
5,840,269
5,840,270
How to find a string which is case-sensitive and ignore it in JAVA
<p>I have a text file (T1.txt) in which it has few strings.out of them 2 are similar but case-sensitive. I have to ignore the other one and get the rest of them..</p> <p>e.g.. ABCD, XYZ, pqrs, aBCd.</p> <p>i am using Set to return the strings.. but how I can ignore the duplicate and return only one string( either of ...
java
[1]
869,196
869,197
Android available memory in device at the time of downloading?
<p>How to check the available memory in android when user is downloading the media into the sdCard</p>
android
[4]
3,223,739
3,223,740
How to identify objects to be set serializable for server clustering?
<p>I understand that if we want to setup clustering between servers. </p> <p>Is there any systematic way to check if any objects are not serilizable?</p> <p>Because currently we use functionality testing to check if got any exception encountered related to serialization</p> <p>Thanks</p>
java
[1]
2,531,304
2,531,305
Query on UIWebView
<p>Can anyone point me some good examples on how to use UIWebView in iPhone.</p>
iphone
[8]
2,617,761
2,617,762
debug error : max must have union class struct types
<p>this is my code:</p> <pre><code>#include &lt;iostream&gt; using namespace std; class Sp { private : int a; int b; public: Sp(int x = 0,int y = 0) : a(x), b(y) { }; int max(int x,int y); }; int Sp::max(int a,int b) { return (a &gt; b ? a : b); }; int main() { int q,q1; cin &gt;&gt;...
c++
[6]
3,729,158
3,729,159
Apply color to row on select w/ jQuery
<p>If I have a selector with drop-down options, how can I change a color of all cells in this row on change?</p> <pre><code>function changeColor(){ } $(".mySelector").change(function() { changeColor(); }); &lt;table&gt; &lt;tr&gt; &lt;td&gt;val 1&lt;/td&gt; &lt;td&gt;val 2&lt;/td&gt; &lt;td&gt; ...
jquery
[5]
2,086,449
2,086,450
I want to display a image in UIImagaView tat image names stored in array .so how to get string from array in iphone
<p>Actually i want to display iamge in UIImageView ...tat image names are getting from my database..so how to display image from getting string in an array in iphone</p>
iphone
[8]
1,401,664
1,401,665
Text field validation
<p>I want to validate my text field with a <code>YYYY</code> format, meaning a user can only enter a four digit number like a year. There are seven text fields including this text field; I only want this text field to require validation.</p>
iphone
[8]
1,609,941
1,609,942
how loaders deliver new result when the content change
<p>from the <a href="http://developer.android.com/guide/topics/fundamentals/loaders.html" rel="nofollow">API</a> it says that one of the loaders characteristics is :</p> <blockquote> <p>They monitor the source of their data and deliver new results when the content changes.</p> </blockquote> <p>i used a loader wi...
android
[4]
5,744,947
5,744,948
String is empty
<p>I'm trying to validate the the field name is empty, and it is working</p> <pre><code>while(name.isEmpty()||!name.matches("^([A-Z*a-z]*(\\s))+[A-Z*a-z]*$")) </code></pre> <p>When I try to validate the field number when it is empty it is giving an error.</p> <pre><code>while (number.charAt(0) != '0' || number.lengt...
java
[1]
1,037,584
1,037,585
Initializing default values in a struct
<p>If I needed to initialize only a few select values of a C++ struct, would this be correct:</p> <pre><code>struct foo { foo() : a(true), b(true) {} bool a; bool b; bool c; } bar; </code></pre> <p>Am I correct to assume I would end up with one <code>struct</code> item called <code>bar</code> with el...
c++
[6]
4,032,702
4,032,703
How to assign a total to a name in Java
<p>All,</p> <p>I got it figured out.</p> <p>thanks for helping me stimalate my brain</p>
java
[1]
1,860,943
1,860,944
PHP readdir() not returning files in alphabetical order
<p>I am reading through a directory with some pictures and such using a pretty simple implementation of readdir() like the following:</p> <pre><code>if ($handle = opendir($path)) { while (false !== ($szFilename = readdir($handle))) { if ($szFilename[0] !== '.') { if (is_file($path.$szFilename)) { ...
php
[2]
3,847,510
3,847,511
jquery replace div content html()
<p>I'm just try to replace the content of a div with new content binded to a click event.</p> <p><a href="http://jsfiddle.net/pCckh/" rel="nofollow">JSFIDDLE</a></p> <p>When I use <code>appendTo()</code> instead of of <code>html()</code> it's working, but I need to clear the old content out so I'm a bit confused why ...
jquery
[5]
2,116,698
2,116,699
on unload event of browser
<p>HI </p> <p>I wanna timeout session from client page,i tried below code but not able to execute code need some help of how i can handle OK or CANCEL events from user</p> <pre><code>&lt;script&gt; function onBeforeUnloadAction(){ return "Would u like to discard Changes"; } window.onbeforeunload = function...
javascript
[3]
945,423
945,424
Pythonic way to combine two lists in an alternating fashion?
<p>I have two lists, <strong>the first of which is guaranteed to contain exactly one more item than the second</strong>. I would like to know the most Pythonic way to create a new list whose even-index values come from the first list and whose odd-index values come from the second list.</p> <pre><code># example inputs...
python
[7]
698,254
698,255
Android ListView Selection Problem
<p><strong>Hi All,</strong></p> <p>I apologize for the following long question... </p> <p>I have a LinearLayout which contains a ListView and some other items. As for the ListView, each on of its rows is a LinearLayout that contains 3 views - Checkbox, ImageView and TextView (from left to right - horizontal). Since I...
android
[4]
2,843,416
2,843,417
When a function behave when "return" out o of the function in C++
<p>I have a code. like this:</p> <pre><code>int functionA (){ Foo(**,**,**); return 0; } </code></pre> <p>Foo() is a huge function(more than 10,000 lines). Which I don't understand all.Foo function includes some multi-thread code.</p> <p>The problem now is, if I have "return" code right after Foo, Foo can be...
c++
[6]
3,176,808
3,176,809
get key value press
<p>I Want get key value on keyPress with jQuery In textbox</p>
jquery
[5]
3,602,733
3,602,734
onmouseover stop slideshow help
<p>This is a function for a slideshow,onmouseover i want it to stop. Instead of stopping the slideshow onmouseover, it speeds up?? How can i correct this to stop onmouseover?</p> <pre><code>&lt;body onload="nextslide();"&gt; function nextslide() { // Hide current slide var object = document.getElementById('s...
javascript
[3]
2,478,374
2,478,375
Whats the error in my php function?
<p>I have a function a. That is re used in many times without any problem. But now i cant call the function.<strong>This is my function</strong></p> <pre><code>function a($a,&amp;$b){ // functions code here } </code></pre> <p>I calling function a like this.</p> <pre><code>a(3,null); </code></pre> <...
php
[2]
5,323,051
5,323,052
Possibility of an ANR in Standalone Service
<p>Can an android process that does not contain any activities (i.e. a standalone service) receive an ANR? </p> <p><em>Android mentions: "In Android, application responsiveness is monitored by the Activity Manager and Window Manager system services. Android will display the ANR dialog for a particular application when...
android
[4]
2,284,982
2,284,983
added button programmatically to layout, but not appearing
<p>Looking at various examples, below is what seems to be the correct way of adding a view to a layout. However, nothing shows up for me. I'm assuming it has something to do with the layout options, but I'm new so I don't know what is missing.</p> <pre><code>public void onCreate(Bundle savedInstanceState) { ...
android
[4]
4,267,484
4,267,485
Copy javascript error text to clipboard?
<p>How do you copy javascript errors in IE to clipboard? CTRL + C doesn't work and I don't want to take screenshots. Are there any tools out there that lets you copy the text?</p> <p><img src="http://i.stack.imgur.com/glFmz.jpg" alt="alt text"></p> <p>(ANSWER) EDIT: I finally found a machine which has IE8 on it and w...
javascript
[3]
1,807,786
1,807,787
iPhone Developer handle
<p>So I just starting coding iPhone apps, and a potential employer had asked what me, "What is your Developer Handle?" What exactly did he mean by "Developer Handle"?</p>
iphone
[8]
29,070
29,071
jquery load() and append
<p>silly quick question:</p> <p>I have my:</p> <pre><code>$('#result').load('ajax/test.html'); </code></pre> <p>but what if I don't want to insert my loaded content into #result, but prepend it to #result, maintaining all precedent elements? Is it possible to create a variable, load it with content and then append o...
jquery
[5]
851,000
851,001
Disable links after page load in jquery
<p>I have a bad problem in jquery</p> <p>I have a link in Div . When click on link the JQuery Function run. But when i load this Div on other Div the link not working.</p> <p>How can i fix it?</p> <p>thanks</p> <p>This is Div 1</p> <pre><code>&lt;div id="top_menu"&gt; </code></pre> <p></p> <p>This is Div 2</p> ...
jquery
[5]
3,963,903
3,963,904
How long will a non-clearing notification stay?
<p>If my app fires a notification and marks it as non-clearing (i.e. tapping it does not remove it), what will result in the notification being removed?</p> <p>Would I be right in assuming that if the app is shut down by the memory manager that this will cause the notification will be removed? Or will the notification...
android
[4]
1,010,632
1,010,633
Strongly typing ID values in C#
<p>Is there a way to strongly type integer ID values in C#?</p> <p>I've recently been playing with Haskell and can immediately see the advantages of its strong typing when applied to ID values, for example you would never want to use a <em>PersonId</em> in place of a <em>ProductId</em>.</p> <p>Is there a nice way to ...
c#
[0]
952,162
952,163
PHP5 fsockopen connection error break site, no matter how I capture it
<p>I'm trying to use fsockopen to communicate with a game server, which responds with some basic stats. It works perfectly when the server is online, but if the server is ever offline, the following code causes php to stop displaying the page that reads the data.</p> <pre><code>try { $socket = fsockopen($host,...
php
[2]
1,160,250
1,160,251
JQuery getScript and get undefined variable
<p>I have a fancybox that loads a script on close with</p> <pre><code>parent.$.getScript("js/reservation_special_reset.js") </code></pre> <p>and in the javascript file I have ..</p> <pre><code> $('.time_start, .time_end').change(function() { var tid; tid = $(this).attr('id'); ...
jquery
[5]
2,837,585
2,837,586
Is it possible to encrypt a string using java?
<p>I want to know that Can we encrypt a text using Java and then again getting back to normal text? If anyone is having idea please help. Any help regarding this will be appreciated. Thanks in advance. </p> <pre><code>String plaintext = "HelloWorld"; MessageDigest m = MessageDigest.getInstance("MD5"); m.reset(); m.upd...
java
[1]
4,448,138
4,448,139
php apostrophe and quotations
<pre><code>echo "&lt;tr&gt;&lt;td&gt;&lt;input type = 'button' value = 'Agregar' onclick = 'addrow($leaguesarray[$numofleagues])' /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;\n"; </code></pre> <p>I have the above php code which is failing to call the addrow function I'm pretty sure its because of my quutoes.<...
php
[2]
2,966,248
2,966,249
Multiple Instances of IE with different proxies
<p>Is it possible to open multiple instances of Internet Explorer using different proxies for each? Would there be any issues multi threading instances of IE?</p> <p>I was thinking about using WatiN, but I'm open to suggestions if anyone has an alternative solution.</p> <p>Thanks</p>
c#
[0]
2,862,464
2,862,465
Can we read data from ROM
<p>Please let me know how to read data from ROM(Read Only Memory).</p> <p>If possible in C#</p> <p>For ExampleS</p> <p>Like if i have a method to calculate tax in my ROM.Now i will pass paramters from my application and get the output.</p>
c#
[0]
486,488
486,489
Get all objects of a certain 'prototype' in JavaScript
<p>I have recently started messing about with JavaScript and building my own jQuery plugins and have stumbled on a problem when using prototypes (something I still don't quite understand but starting to get the gist of it). I have done a fairly detailed search for my problem and couldn't find anything so apologies if t...
javascript
[3]
5,260,800
5,260,801
how to make multiple line string to single line string?
<p>I have below string</p> <pre><code>String str="select * from m_menus; select * from m_roles"; </code></pre> <p>I want above string in one line like</p> <pre><code>String str="select * from m_menus;select * from m_roles"; </code></pre> <p>I have tried </p> <pre><code>str1=str.replace("[\r\n]+", " "); </code></...
java
[1]
284,687
284,688
want to send mails from php using yahoo smtp
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3512021/sending-mails-in-php-using-yahoo-smtp">sending mails in php using yahoo smtp</a> </p> </blockquote> <p>require("class.phpmailer.php"); $mail = new PHPMailer();</p> <p>$mail->IsSMTP();</p> <p>$mail->SMT...
php
[2]
4,528,337
4,528,338
How to add an existing folder to a VS project which might contain some dlls of same name?
<p>I have written an application(C# project) which i want it to be launched through website (clickonce application). I want to add an existing folder which contains some dlls, xml files. It has its own folder structure. I want to add this folder to my project. Problem is, few dlls which this folder contains are also p...
c#
[0]
656,204
656,205
c#-combining two forms
<p>I want to combine two forms as in the image i have attached.I am able to do the two forms (login form and application form seperately)right now I am not able to make application form to appear in the background of the login form.this is my screen i what.there is any command specific to make the two form combine as ...
c#
[0]
4,968,550
4,968,551
How to code auto set date and time in php
<p>Attribute <code>DateAdded</code> is example of auto set date and time, Any one can show me how to do auto set date and time. What I want is if I submit new insert form in my system, date and time will be show in the database.</p> <p><strong>example data in database</strong></p> <pre><code>DateAdded = 2011-07-28 11...
php
[2]
4,204,730
4,204,731
Adding variables to the global window object in IE
<p>I have a situation where a link opens a new window(child) using Javascript. I am trying to pass a variable to the child window form the parent window by attaching to the new window's <code>window</code> object.</p> <p>In the parent:</p> <pre><code>var wnd = open(file, name, attribs); wnd.a = 10; </code></pre> <p>...
javascript
[3]
2,583,511
2,583,512
Get all values from child elements of a dict as a list
<pre><code>T = {'a': {'c': 'A', 'path': '/c'}, 'e': {'c': 'E', 'path': '/e'}, 's': {'c': 'S', 'path': '/s'}} </code></pre> <p>I need all 'path' elements as a list. I know I can iterate through everything in a single for, but I would like to know other <em>pythonic</em> ways of extracting it.</p>
python
[7]
2,259,592
2,259,593
access $(this) with href="javascript:..." in JQuery
<p>I am using JQuery. I call a javascript function with next html:</p> <pre><code>&lt;li&gt;&lt;span&gt;&lt;a href="javascript:uncheckEl('tagVO-$id')"&gt;$tagname&lt;/a&gt;&lt;/span&gt;&lt;/li&gt; </code></pre> <p>I would like to <strong>remove the <em>li</em></strong> element and i thought this would be easy with th...
jquery
[5]
3,655,187
3,655,188
toString method
<p>I want to add a <code>toString</code> method in the <code>Item</code> class that returns the title of the item in there. </p> <p>I have need make sure that the toString method in the <code>DVD</code> class calls the <code>toString</code> method in <code>Item</code> so that it can return a string that contains both ...
java
[1]
170,950
170,951
Android: how to make keyboard enter button say "Search" and handle its click?
<p>I can't figure this out. Some apps have a EditText (textbox) which, when you touch it and it brings up the on-screen keyboard, the keyboard has a "Search" button instead of an enter key.</p> <p>I want to implement this. How can I implement that Search button and detect press of the Search button?</p> <p><strong>Ed...
android
[4]
2,662,150
2,662,151
Return KeyValuePair or use out variable in C#?
<p>I have a function that needs to return two strings. I've considered two different ways to do this:</p> <pre><code>string first = "this is first"; string second = "this is second"; KeyValuePair&lt;string, string&gt; ReturnPair() { return new KeyValuePair&lt;string, string&gt;(first, second); } string ReturnOne(o...
c#
[0]
1,703,967
1,703,968
Output different from what i have expected
<p>Why its printing X88</p> <pre><code>public static void main(String [] args) { char x = 'X'; int i = 0; System.out.print(true ? x : 0); System.out.print(false ? i : x); } </code></pre>
java
[1]
4,892,441
4,892,442
php mailing function - get /'s in the mail
<p>IN my php project i am using php mail funcion . i have send test's as the content . But in my mail it look test\'s . How i avoid this special charector . I put nl2br function .. i also tried add slashes and stripslashes function. But still appear that special charector .. Please help me urgently.. </p>
php
[2]
4,960,071
4,960,072
Getting the source code of a page and assigning its content
<p>I am parsing the source code of a web page like this:</p> <pre><code> private function readPage() { header("Content-type: text/plain"); $this-&gt;pageSource = @readfile ($this-&gt;page); } </code></pre> <p>But it seems as if I can't assign the content into the "pageSource" variable. Whe...
php
[2]
1,986,849
1,986,850
input selector with style attribute in jquery
<p>I am selecting an input type using jQuery with some conditions</p> <pre><code>var inputs = $(this).parents('form').find( ':input[type="text"]:enabled:visible:not("disabled"),textarea'); </code></pre> <p>For some reason, I am using a style attribute for the input type.</p> <pre><code>&lt;input type="text" st...
jquery
[5]
380,202
380,203
How to adjust column width while exporting html to pdf+itext dll
<p>I am using iText dll 5.0. to convert html in string form to PDF. code sample :</p> <pre><code>StringBuilder header = new StringBuilder(); header.Append("&lt;div style='width:100%;font-family:Arial;font-size:14px;' align ='center'&gt;"); header.Append("&lt;table width='100%' style='border:1px...
asp.net
[9]
3,650,379
3,650,380
Print XML tag attributes using element tree
<p>I'm using following statements to print the value of Title tag. Its working fine. But I'm also want to print <code>&lt;page id='...' .......</code> Is it possible? thanks</p> <pre><code> &lt;mediawiki&gt; &lt;siteinfo&gt; &lt;sitename&gt;Wiki&lt;/sitename&gt; &lt;namespa...
python
[7]
789,722
789,723
add function to an array in php
<p>I'm having trouble declaring an array in conjunction to a function. Here is my code, what am I doing wrong? </p> <pre><code>private function array_list(){ return array('1'=&gt;'one', '2'=&gt;'two'); } private $arrays= array( 'a'=&gt;array('type'=&gt;'1', 'list'=&gt;$this-&gt;array_list()) ); </code></pre...
php
[2]
3,868,092
3,868,093
Are there any python libraries/packages like Ruby's Juicer/Sprockets/bundle_fu?
<p>Looking for a python library that handles minifying and merging JS\CSS files together...</p>
python
[7]
2,051,429
2,051,430
Use of List inside map C++
<p>Can I use follwing syntax?</p> <pre><code> std::map&lt;int,std::list&lt;int&gt;&gt; mAllData; </code></pre> <p>Where Key Value(int) will be ID of data. and said data could have multiple types so storing all them against said key value. I am trying to use it. Can somenody provide sample code how this should work or...
c++
[6]
4,303,389
4,303,390
what does mean "_Default" partial class and inherited class "System.Web.UI.Page"
<p>I just wanted to know the details that in asp.net, the code behind comes with a partial class "_Default" and this class also inherit from a other class "Page".</p> <p>what all the functionality in "Page" class and what does mean "_Default" class....why this class is partial. </p> <pre><code>namespace WebApplicati...
asp.net
[9]
5,503,706
5,503,707
Downaload a file programatically on android
<p>i am downloading files from web server programatically. after download is complete, i checked the file.the size ,extension and all other parameters are correct but i when i try to play that file in media player it is showing that it is corrupt.</p> <p>plz help..</p> <p>code:</p> <pre><code> byte[] b = null; ...
android
[4]
5,175,838
5,175,839
I want that when the mouse is over one option in my dropdownlist, the background color of the option value on my second mask must be changed
<p>I have 2 dialog mask on my window. </p> <p>On the fist one I have a drop-down list with different option values.</p> <p>On the second I have a div table.</p> <p>I want that when the mouse is over one option in my drop-down list, the background color of the option value on my second mask must be changed and when I...
jquery
[5]
2,149,791
2,149,792
Deleting python modules?
<p>Can you delete python modules? I've installed one that I would like to remove, and can't seem to figure out how.</p> <p>Thanks</p>
python
[7]
825,741
825,742
Detecting health related usb devices(BP,COPD)
<p>How to get notification at the time when we connect the health related usb devices(BP,COPD) to cpu so that I can change the appearance of device image(e.g. Uncheck to check) in my wpf application using c#. The device makers are Lifesource, microlife etc. Is there any way to get the information(like device name,devic...
c#
[0]
1,514,731
1,514,732
How to get the output on this PHP script?
<p>I'm a newbie to programming and PHP learning about two dimensional arrays.</p> <p>When I run this code below, it just gives me a blank page. When I put an echo in front of the function call like this <code>echo usort($a, 'mysort1');</code> the page shows me a 1 (I have no idea why). </p> <p><strong>What I really ...
php
[2]
220,270
220,271
how to pass cookies to a new activity?
<p>Say i have one activity that gets a cookie and then starts a new activity.</p> <pre><code>Intent myIntent = new Intent(this, act2.class); this.startActivity(myIntent); </code></pre> <p>But how do I pass that cookie to the new activity?</p> <p>Thanks!</p>
android
[4]
5,515,036
5,515,037
How to concatenate var names in javascript?
<p>How can i concatenate var names to declare new vars in javascript?:</p> <pre><code>var foo = 'var'; var bar = 'Name'; </code></pre> <p>How can i declare variable varName?</p>
javascript
[3]
3,758,340
3,758,341
Get current currency rates automatically with a currency converter apps?
<p>I am creating a currency converter app. I know that the value of currencies change, so I was wondering if there is a way to access the Internet in my app to get current rates, and incorporate them into the app seamlessly?</p> <p>Thank you.</p> <p><em>UPDATE</em>:</p> <p>I think my question is being slightly misu...
android
[4]
2,996,411
2,996,412
PHP output to command line
<p>I start my script from command line and it outputs things as they happen but a week ago it stopped outputing and now outputs everything when script finishes. I have ob_start() but as I know this does not effect command line output. </p>
php
[2]
3,919,068
3,919,069
Find string between 2 known values in textbox in C# WinForms application
<p><strong>Example:</strong> I want to find 1234 in a string named target:</p> <pre><code>string target = "55555&gt;&gt;&gt;&lt;&lt;[1234]&lt;&gt;&gt;&gt;788"; </code></pre> <p>How can I find the number between [,] without knowing how much digits between [], before[ or after ]? I need a small code for my project.</p...
c#
[0]
145,929
145,930
BitSet vs. raw bitwise manipulation performance
<p>How does BitSet performance compare vs. raw manipulation of say, long values?</p>
java
[1]
3,270,067
3,270,068
Problem in mouseover event in JQuery?
<p>I am using a table navigation menu in my website in that i have used JQuery <code>fadeTo()</code> for when I mouse over the menu items (<code>&lt;td&gt;</code>) it working only once. After same menuitem mouseover is not working. Please tell me whats wrong in my code?</p> <pre><code>$(document).ready(function() { ...
jquery
[5]
4,083,876
4,083,877
How to find out what's the first child tag name?
<p>I need to find what the first child of an element is.</p> <h3>For example:</h3> <pre><code>&lt;div class="parent"&gt; &lt;div class="child"&gt;&lt;/div&gt; &lt;img class="child" /&gt; &lt;div class="child"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>In this example the FIRST child is a <code>div</co...
jquery
[5]
459,710
459,711
jquery print on newline
<p>I have this jquery code i would like it printing on a new line everytime i click the button.</p> <pre><code>&lt;script language="javascript"&gt; $('.example-default-value').each(function () { var default_value = this.value; $(this).focus(function () { if (this.value == default_value)...
jquery
[5]
5,135,690
5,135,691
Image is not posted to twitter in android
<p>I used the below code to post image to twitter,</p> <p>I am using twitter4j-core-2.2.5 jar file in my application, I really cant understand why it is not posting image to twitter.</p> <p>IS it possible to post image to twitter?</p> <pre><code>File f = new File("/mnt/sdcard/13615320329.jpg"); mTwitter.uploadPic(...
android
[4]
4,284,733
4,284,734
what's the best way to make sure the contents of a list of li does not overflow the static size div?
<p>what's the best way to make sure the contents of a list of li does not overflow the static size div?</p> <p>For example, lets say I have a ul li of variable sizes of content</p> <pre><code> &lt;ul&gt; &lt;li&gt;xxx&lt;/li&gt; &lt;li&gt;xxx&lt;/li&gt; &lt;li&gt;xx&lt;/li&gt; &lt;li&gt;...
jquery
[5]
2,516,569
2,516,570
File Download Script in PHP
<p>I don't know if this is possible. I have a webpage with about 250 links, each on a separate line. My initial thought was to use fopen() to get the files, but it did not help much because it requires supplying the name of the file to read/download.</p> <p>But the files I want to download are listed as links vertica...
php
[2]
1,232,598
1,232,599
Switch focus between opened dialogs
<p>is there any way to programmatically switch focus between shown dialogs? To resume... I need method dialog.requestFocus(), but there is no some like that...</p> <p>Thanks...</p>
android
[4]
1,592,656
1,592,657
Android::findViewByID - how can I get View of a TextView through a Listener of another UI element?
<p>This is going to be a bit lame question. I have the following code:</p> <pre><code>.............. public void onCreate (Bundle bundle) { super.onCreate(bundle); this.setContentView(R.layout.main2); Button bnt = (Button) this.findViewById(R.id.browser); bnt.setOnClickListener(new ButtonListener()); } ......
android
[4]
3,846,484
3,846,485
How to MapPath in a unit test in C#
<p>I want to load an external XML file in a unit test to test some processing code on that XML. How do I get the path of the file?</p> <p>Usually in a web app I would do:</p> <pre><code>XDocument.Load(Server.MapPath("/myFile.xml")); </code></pre> <p>But obviously in my unit test I have no reference to Server or Htt...
c#
[0]
984,979
984,980
how to extract element from xml/string
<p>i am using 3rd party api and this is what is its returning me:</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"ISO-8859-1\"?&gt; \u000a &lt;errorNotification&gt; \u000a\u0009 &lt;message&gt;invalid company code&lt;\/message&gt; \u000a &lt;\/errorNotification&gt; </code></pre> <p>my question is: how can just ext...
jquery
[5]
3,799,853
3,799,854
I have method that can change date format and return it but it gives exception
<p>I am trying to display the log file in my application as i need for that i have to format the content to display as i require i firslt trying to display the date for which i can get content from los my log file looks like ... .</p> <pre><code>[1324649399] Nagios 3.3.1 starting... (PID=3751) [1324649399] Local time ...
java
[1]
665,851
665,852
What does [[]]*2 do in python?
<pre><code>A = [[]]*2 A[0].append("a") A[1].append("b") B = [[], []] B[0].append("a") B[1].append("b") print "A: "+ str(A) print "B: "+ str(B) </code></pre> <p>Yields:</p> <pre><code>A: [['a', 'b'], ['a', 'b']] B: [['a'], ['b']] </code></pre> <p>One would expect that the A list would be the same as the B list, t...
python
[7]
681,913
681,914
Draw activity Android
<p>For an app i'm making, people need to be able to sign their signature on a white canvas, with a special tactile pen, or their finger. I haven't found a clear way of accomplishing this on the android developer website, or on random tutorials.</p> <p>Can someone point me in the right direction? </p>
android
[4]
5,289,796
5,289,797
how to set value for <select> tag
<p>Using Php I have wrote the drop down list box code. for Edit employee details I have used the same code and I tried to set the value on list box but the value is not set. how to do this.</p> <pre><code>Employee Name: &lt;select name=emp_name *$value='$name'*&gt; &lt;option&gt; -- EMPLOYEE NAME -- &lt;/option&gt; &...
php
[2]
3,499,421
3,499,422
how to use a double value in power function
<p>i am trying to find the power of a value.But the problem is my exponent is a fractional value.power function does not suppporting any datatype other than int.</p> <pre><code> BigDecimal fd_returns_at_time_of_replace=(BigDecimal.valueOf(capitalDiff).multiply((BigDecimal.valueOf((long)constant1+.09)).pow(temp))); </c...
android
[4]