Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
1,315,081 | 1,315,082 | Image storage as byte code locally from XML parsing & display if it is stored Otherwise go for parsing. | <p>I am having an app in which at the time of launcing the app XML parsing is giving Main category from URL like hp, dell, etc...I am displaying it in the Tableview.</p>
<p>Then on click of particular cell i can get the detail of main category means its subcategory like <a href="http://www.dealsbell.com/findcoupon.php... | iphone | [8] |
2,101,430 | 2,101,431 | Multiple distribution provisioning profile allowed? | <p>What happen when you install multiple distribution provisioning profile on the same system? Can you still code sign your app?
I don't quite understand how the provisioning profile works, can someone explain?</p>
| iphone | [8] |
1,546,094 | 1,546,095 | Refactoring for each statement | <p>Hi I have written a function that is used to change text in a table cell, the table displays members of a team but is not in a readable format, so i have to convert the string output into a readable format. </p>
<p>This all works fine however I was wondering if anyone could help me re-factor this function as it see... | jquery | [5] |
5,971,480 | 5,971,481 | No scrolling effect with ScrollView in PopupWindow | <p>I want to implement a popup menu with complex effects, one of them is to support scrolling. It seems PopupMenu and AlertDialog can not meet the requirement what I need. So I tried PopupWindow with ScrollView.</p>
<p>Firstly, I prepared a layout which has a simple strcture just like what ApiDemo shows:</p>
<pre><co... | android | [4] |
3,965,263 | 3,965,264 | Javascript - object key->value | <pre><code>var obj = {
a: "A",
b: "B",
c: "C"
}
console.log(obj.a); // return string : A
</code></pre>
<p>but i want to get by through a variable like this</p>
<pre><code>var name = "a";
console.log(obj.name) // but return undefined
</code></pre>
<p>How to do this?</p>
| javascript | [3] |
4,144,972 | 4,144,973 | Do I need the "Android unlocked dev phone" to test my android projects? | <p>I bought an Android phone to use Flash. But to my surprise, Flash does not run on Android devices with arm v6. But I do want to make something useful and develop for it. Does it need to be "unlocked" for this purpose?</p>
| android | [4] |
1,985,633 | 1,985,634 | Sorting a particular column of datatable of string type that contains numeric data | <p>I have a datatable (.Net) with multiple columns. One of the columns say RollNo is of string type but contains numeric data. Eg. <strong>1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14</strong>. I am trying to sort using the following:</p>
<pre><code>string sql =
"Select StudentID, RollNo, AdmissionID,(FirstName + ... | c# | [0] |
5,577,657 | 5,577,658 | Android onDestroy callback | <p>I have activity one that calls activity 2
When user close activitie 2 and gets back to activity 1 i want to do some proccess only when activity 2 onDestroy is finished</p>
<p>I thouht to pass some interface to do a callback from the end of onDestroy</p>
<p>Not sure what is the best way to do it</p>
<p>Any suggest... | android | [4] |
2,962,142 | 2,962,143 | Null reference exception | <p>I have a function like this</p>
<pre><code>public bool CheckMentorAccess()
{
bool blnAllow = false;
try
{
string strSelectMentorQuery = "SELECT COUNT(DISTINCT MLL.LED_ID) FROM M_USER_DETAILS MUD INNER JOIN M_LEADERLED MLL " + "ON MLL.LED_ID = MUD.PK_ID WHERE MLL.LEADER_ID = '" + Session["UserID"... | asp.net | [9] |
2,903,420 | 2,903,421 | Python google search explicit phrase | <p>I am trying to define a google search with the AJAX interface using the very good function described here (A Martelli)
<a href="http://stackoverflow.com/questions/1657570/google-search-from-a-python-app">Google Search from a Python App</a></p>
<pre><code>........
query = urllib.urlencode({'q': searchfor})
....
</c... | python | [7] |
5,491,919 | 5,491,920 | Base class destructor is not virtual and child class destructor is virtual, program crash | <p>Why does following program crash, I have <code>base</code> class whose destructor is not virtual but <code>child</code> class destructor is <code>virtual</code></p>
<pre><code>#include <iostream>
class Base {
public:
Base() {
std::cout << "Base::Base CTOR " << std::endl;
}
~Base() {
... | c++ | [6] |
5,632,918 | 5,632,919 | What does "DataView is not marked as serializable in System.data" mean? | <p>When I store dataview in viewstate,.net shows the error "Dataview is not marked as serializable in system.data but when I store it in session, then it works perfectly?
What is the reason behind it?? Which are the other objects that are not marked as
"serializable " ?</p>
| asp.net | [9] |
5,802,079 | 5,802,080 | How to flush the input stream in python? | <p>I'm writing a simple alarm utility in Python.</p>
<pre><code>#!/usr/bin/python
import time
import subprocess
import sys
alarm1 = int(raw_input("How many minutes (alarm1)? "))
while (1):
time.sleep(60*alarm1)
print "Alarm1"
sys.stdout.flush()
doit = raw_input("Continue (Y/N)?[Y]: ")
print "Inp... | python | [7] |
3,124,110 | 3,124,111 | purpose of interface in classes | <p>what is the purpose of interface when writing a class?</p>
<p>heres an example i've seen online.</p>
<pre><code><?php
interface Chargeable {
public function getPrice();
}
class Employee implements Chargeable {
protected $price;
public function getPrice() {
return $this->price;
}
}
... | php | [2] |
3,674,365 | 3,674,366 | Why is appended radio button is not clickable? | <p>I have done a small mistake in my code that is not allowing me to click on the appended radio button. </p>
<pre><code>var ToBeRadio=NoneElementsArray[i]*1-1;
$(this).children('td:eq('+ToBeRadio+')').find('input:checkbox').hide();
$(this).children('td:eq('+ToBeRadio+')').append("<input type='radio'>");
</code... | jquery | [5] |
1,256,768 | 1,256,769 | Difference dynamic static 2d array c++ | <p>Im using opensource library called wxFreeChart to draw some XY charts. In example there is code which uses static array as a serie :</p>
<pre><code>double data1[][2] = {
{ 10, 20, },
{ 13, 16, },
{ 7, 30, },
{ 15, 34, },
{ 25, 4, },
... | c++ | [6] |
5,131,641 | 5,131,642 | Server to Server > Retrieve and extract a remote zip file to local server directory | <p>I have a wp plugin file on server B who's purpose is to retrieve a zip file from a remote server A. </p>
<p>Once Server B receives the zip file, it should extract the contents and copy the files into a specific folder on server B overwriting any existing files.</p>
<p>I have some code below that I've borrowed from... | php | [2] |
4,076,609 | 4,076,610 | .NET Console Applications, possible to create labels and regions? | <p>Is it possible to have a C# console application output text to labels already drawn?
I've seen some native win 32 console apps that can do this. </p>
<p>So onscreen the user sees:</p>
<p>Progress: 1% or Progress: 50% depending on when the label is updated (and the label progress stays in the same place, while only... | c# | [0] |
3,894,358 | 3,894,359 | if else-if making code look ugly any cleaner solution? | <p>I have around 20 functions (is_func1, is_fucn2, is_func3...) returning boolean</p>
<p>I assume there is only one function which returns true and I want that!</p>
<p>I am doing:</p>
<pre><code>if is_func1(param1, param2):
# I pass 1 to following
abc(1) # I pass 1
some_list.append(1)
elif is_func2(param... | python | [7] |
1,766,976 | 1,766,977 | C# - Open a file with the associated program without invoking the command line | <p>Is it possible to open a file with the default program without invoking the command line? I want to run a unit test and have the unit test open the file (PDF) at completion for visual inspection.</p>
| c# | [0] |
4,775,477 | 4,775,478 | Why does a python descriptor __get__ method accept the owner class as an arg? | <p>Why does the <code>__get__</code> method in a <a href="http://docs.python.org/reference/datamodel.html#implementing-descriptors">python descriptor</a> accept the owner class as it's third argument? Can you give an example of it's use?</p>
<p>The first argument (<code>self</code>) is self evident, the second (<code>... | python | [7] |
1,176,702 | 1,176,703 | What IPhone OS do you build for when releasing? | <p>There are currently 3 options. 2.0, 2.1,2.2. My app only needs 2.0. Do I build for 2.0 or 2.2? What is the best option?</p>
| iphone | [8] |
5,563,976 | 5,563,977 | How can I check a parameter matches a value in my enum in C#? | <p>I have this enum:</p>
<pre><code>public enum ContentKey {
Menu = 0,
Article = 1,
FavoritesList = 2
};
</code></pre>
<p>This action method:</p>
<pre><code>public ActionResult Edit(string pk, string rk, int row = 0) {
try {
var content = _contentService.Get(pk, rk);
</code></pre>
<p>The fol... | c# | [0] |
4,167,946 | 4,167,947 | EditText borders SDK >11 | <p>I've an activity with few EditTexts, it shows the underlying borders until no background is set. When I set a background for the whole LinearLayout, the EditText's highlighting gray borders go away. Only blue highlights appear when focussed.</p>
<p>How do I get those gray borders like in the screenshot below:
<img ... | android | [4] |
611,121 | 611,122 | C# code for Search button | <p>I have a (Sql Server 2008) table called Courses with course_id,course_name and course_description as its fields
In the front end, I have a text box and a search button. In the text box, when I give a course name (even a part of it)..in the button click event, all the course names should show up.</p>
<p>How do I cod... | c# | [0] |
3,803,130 | 3,803,131 | edit text with accent issue | <p>I'm writing an android application and I have issue with edit text.
When the user adds text with accent (sp: "Nous sommes en été");
The string isn't correct. It convert my accent symbole to utf-8 I guess.
How can I deal with it ? </p>
<p>ps: my application is a french app and I really need to use accent.</p>
<p>... | android | [4] |
2,081,634 | 2,081,635 | Is it possible to wait for a file to be created to continue in c# asp.net | <p>im currently working on a report builder for the buisness I work for. </p>
<p>I have a little problem with the big files generation.
The code just ignores it when crystal reports and CSLA has been working for too long. I changed settings in iis and it didnt changed anything. </p>
<p>Now i wish to know if there is... | c# | [0] |
330,892 | 330,893 | jQuery .wrap() isn't working | <p>I'm probably doing something wrong but I've tried all sorts of things and can't seem to get a collection of jQuery objects wrapped. The following just outputs the link HTML, unwrapped. Any ideas?</p>
<pre><code>$.each(sitemapSections, function(i) {
var $sitemapSection = $(sitemapSections[i]);
var $primary = $si... | jquery | [5] |
932,697 | 932,698 | Debug Macro for code block | <p>I am trying to create a macro that executes blocks of code only if it's a debug build. I've managed to make one that executes one line only if debug is enabled, but i cannot figure out how to do a whole block of code.</p>
<p>the one line macro is below:</p>
<pre><code>#include <iostream>
//error checking
#i... | c++ | [6] |
2,803,875 | 2,803,876 | How to check for {} value in JavaScript? | <p>For some reason in the code below the currentRow.cells returns {}. How can I check for that? I do not want to execute lines if the currentRow.cells returns {}. </p>
<pre><code> currentRow = document.createElement("TR");
if(currentRow.cells.length > 0) { .. do something }
</code></pre>
<p>UPDATE 1: </p>
<p>All... | javascript | [3] |
3,402,899 | 3,402,900 | Autopostback textbox not retaining the values across postbacks with nested form tags | <p>Here the textbox with id as "a" retains the value after postbacks while textbox with id as "b" not retains the value.Why this happens? </p>
<pre><code><form id="form1" runat="server">
<div>
<asp:TextBox ID="a" runat="server" AutoPostBack="true" ></asp:TextBox>
... | asp.net | [9] |
4,669,693 | 4,669,694 | How Google Docs hook the Ctrl-F hotkey? | <p>In google docs, if you press Ctrl+F, the browser will not pop up the "Find" dlg, but the google docs will get this event, how to make it technology?</p>
| javascript | [3] |
3,357,195 | 3,357,196 | Web Deployment | <p>We had an asp.net 1.1 application that we recently migrated to 3.5. We are facing some problems when we do code modification on the migrated application. Here is what is happening</p>
<ol>
<li>In the asp.net 1.1 application we have the page directive codebehind="ePC.aspx.cs". This migrated fine.</li>
<li>We made so... | asp.net | [9] |
4,688,942 | 4,688,943 | Need help finding bug in this if statement | <p>Disclaimer: this is a (frustrating) homework related problem.</p>
<p>I'm having odd results when I draw my objects on screen. I want this...I draw first object then draw second object when I select third object to draw the screen clears and I have to start the process again....what i get is...I draw first object, I... | java | [1] |
331,263 | 331,264 | asp.net connection open and close | <p>Let say i have one asp.net application that is having some page that uses the connection continuesly.....</p>
<p>i have open the connection in class file in construscter ......</p>
<p>and i m accessing it using the object of the class....when ever database operation are required...</p>
<p>in start the application... | asp.net | [9] |
2,369,522 | 2,369,523 | UItableview header flicker when we reuse the cell Identifier | <p>I have created cell as</p>
<p>static NSString *CellIdentifier = @"TweetListUserName";</p>
<p>CustomTableViewCell *cell = (CustomTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[CustomTableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIde... | iphone | [8] |
5,496,685 | 5,496,686 | refering the app after each time it closes | <p>I am have an app in which I draw shape. When I close and open the application the drawn shapes remains. I want to know is there any way I could clear the contents on each launch.</p>
<p>Thanks</p>
| iphone | [8] |
4,300,683 | 4,300,684 | java socket can't send message using BufferedWriter | <p>I am trying to use <code>BufferedWriter</code> to send a message to the server from the client or server to client. However nothing will send, but it will listen if you send a message to it. I am not sure what I am doing wrong but I think the problem is from here.</p>
<pre><code>ActionListener buttonActive= new Act... | java | [1] |
791,752 | 791,753 | How to extract "sub-domain name" from a url presence in a long text containing multiple url | <p>I have a long long text contains multiple url. <strong>BUT</strong> there is <strong>only one</strong> url which is of blogspot.com . That url will be like <a href="http://xxxxx.blogspot.com" rel="nofollow">http://xxxxx.blogspot.com</a> . How could i get the value of xxxx and store in a variable.</p>
<p>So if ... | php | [2] |
5,953,945 | 5,953,946 | Learning / Revising Java | <p>So I'm learning Java and I was hoping to get a little help on how to perfect / enhance a small app I made to calculate the area of a triangle.</p>
<pre><code>import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out... | java | [1] |
187,591 | 187,592 | Create an instance using a subset of properties from another instance in a type safe manner? | <p>I have a data source to which I wan't to bind a collection of X's. X should contain a subset of a certain type Y's properties (let's say Y has properties PropOne, PropTwo, PropThree)
This can of course be done with an anonymous type:</p>
<pre><code>void DoBind()
{
myGrid.DataSource = myCollectionOfYs.Select(y =&... | c# | [0] |
487,633 | 487,634 | ASP.NET FileUpload: how to automatically post back once a file is selected? | <p>I am working on a ASP.NET app and i have a need to post back to the server after a file is chosen in a FileUpload control without having to have the user explicitly click a 'submit' button. Is this possible? and if so, how?</p>
| asp.net | [9] |
1,490,263 | 1,490,264 | PHP retrieve external program data | <p>what I want to do is have a PHP script run a program and have it retrieve data somehow from it. For instance the program would parse data from a file and return the data for the PHP script to display.</p>
<p>So far I know to call <code>exec("Program.exe");</code> but would I have to make it create a file with the d... | php | [2] |
4,515,932 | 4,515,933 | 'live' responses on time consuming php scripts? | <p>Many times i run time consuming PHP scripts that echo status updates like 'batch 1 finished', 'batch 2 finished' etc. </p>
<p>i've noticed that sometimes the server responds in a 'live' manner and you can see these status updates as the 'jobs' finish, printed on the browser.</p>
<p>But in other times you have to w... | php | [2] |
5,993,243 | 5,993,244 | No-Parameter Constructor v/s Constructor with params | <p>which one of below is better or to be prefered</p>
<pre><code>new Object();
Object.setValue1("1");
Object.setValue2("2");
Object.setValue3("3");
</code></pre>
<p>or </p>
<pre><code>new Object("1","2","3");
</code></pre>
| java | [1] |
4,269,582 | 4,269,583 | Is it good style to hide shared_ptr behind a typedef? | <p>I'd like to reduce some visual noise in the code and hide <code>shared_ptr</code> behind a typedef like this:</p>
<pre><code>typedef boost::shared_ptr<SomeLongClass> SomeLongClassPtr;
</code></pre>
<p>So this:</p>
<pre><code>void foo(const boost::shared_ptr<SomeLongClass>& a,
boost::share... | c++ | [6] |
4,775,511 | 4,775,512 | ClassNotFoundException after package renaming | <p>hy!</p>
<p>Exception:</p>
<pre><code>10-05 15:36:36.609: ERROR/AndroidRuntime(237): Caused by: java.lang.ClassNotFoundException: com.korn.gpv.Main in loader dalvik.system.PathClassLoader@44e836b8
</code></pre>
<p>after changing the package name.</p>
<p>Please help </p>
<p>new package: com.android.korn.gpv</p>
| android | [4] |
4,567,328 | 4,567,329 | Update application which is already in google play | <p>I can't find this information and I already start my journey with android. I have a question to you. If I create application and add to google play, can I upgrade this same application after some time. For example. I add application to google play and after 1 month I want to add the same application with some new fu... | android | [4] |
1,860,314 | 1,860,315 | how to add element within an element in html | <p>i need to add a element div and within that div i need to add a label element how to do that.....??</p>
<pre><code>var dd=document.getElementById("sample");
var d=document.createElement("div");
d.id="s";
d.innerHTML="welcome"
dd.appendChild(d);
var e=document.createElement("label");
e.innerHTML="success";
var f=dd.... | javascript | [3] |
5,845,614 | 5,845,615 | How to update the progress bar in runtime using c# | <p>I am using the below code to update my progress bar.</p>
<pre><code> ProgressBar.Visible = true;
ProgressBar.Minimum = 1;
ProgressBar.Maximum = PortCount;
ProgressBar.Value = 1;
ProgressBar.Step = 1;
int intdata = 5;
for (int x = 1; x <= intdata; x++)
... | c# | [0] |
2,587,832 | 2,587,833 | Warning: date() expects parameter 2 to be long | <p>Getting the following error:</p>
<blockquote>
<p>Warning: date() expects parameter 2 to be long, string given in /home/15063/brooks/www.brooks-shopping.co.uk/public_html/wp-content/themes/sandbox/functions.php
on line 546</p>
</blockquote>
<p>Which points to the line:</p>
<pre><code>$day = date("l, F jS", get... | php | [2] |
5,769,114 | 5,769,115 | What is @ in an object property? | <p>I have the following object:</p>
<pre><code>[Suppliers] => stdClass Object
(
[@size] => 1
[name] => Supplier Name
[Supplier] => stdClass Object
(
[@chainCode] => EP
... | php | [2] |
3,310,551 | 3,310,552 | how to dynamically declare an array of objects with a constructor in c++ | <p>I was wondering if it was possible to create an array of objects when the object needs things passed into it for the constructor. I want something like this:</p>
<pre><code>MyClass *myVar;
myVar = new MyClass[num]; // I would like to specify the array size after declaration
int i = 0;
for(i = 0;i < num;i++)
... | c++ | [6] |
4,052,843 | 4,052,844 | how can i update my dynamic ip with curl php | <p>i have registered a domain and now i want to host it on my own home server ...</p>
<p>i want to setup a system with php curl so that i login to my domain website and update my name servers i.e</p>
<p><a href="http://mycompany.com/webhosting/domain/manage.php?action=showNS&domain_id=10003489" rel="nofollow">htt... | php | [2] |
2,208,538 | 2,208,539 | Is it possible to skip one activity in startActivityForResult? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1580558/how-do-you-skip-parts-of-an-activity-stack-when-returning-results-in-android">How do you skip parts of an Activity stack when returning results in Android?</a> </p>
</blockquote>
<p>I have the following ... | android | [4] |
2,642,689 | 2,642,690 | My bit-wise swapping isn't working | <p>i am trying a simple insertion sort. But the swapping I am trying isn't working when I use bit-wise operation.</p>
<p>But when I use another temporary variable the swapping works. When I compile this code I always get some extra 0s. </p>
<p>Can you help me to figure out what is wrong with my code?</p>
<pre><code... | c++ | [6] |
923,633 | 923,634 | Getting Aperture from Android Camera in preview mode? | <p>I need to get the F-Stop from the Camera in preview mode to determine focus distance (the api function doesn't work at all). I have an algorithm to compute it but I need focal length and F-stop. I can get Focal Length fine, but I can't seem to get the Aperture. I know it is in the exif, does anyone know of how to ge... | android | [4] |
904,499 | 904,500 | help with my logic for building a query from inputs | <p>I have 4 input fields and its driving me crazy because i can't figure out when to dynamically add the AND condition</p>
<p>right now my raw query looks like this:</p>
<pre><code>SELECT *
FROM `staff`
" . $where . $location . "
" . $and_1 . $expertise . "
" . $and_2 . $education . "
" . $and_3 . $salary . "
ORDER B... | php | [2] |
870,885 | 870,886 | python deleting the start of the string if beginning with " " or "," | <p>I want to make a function check if a string starts with " " or "," and then delete those until it reaches a letter for example</p>
<p>I want to turn the string</p>
<pre><code>" , , abcd" into
"abcd"
or ",,,,, abcd" into
"abcd"
</code></pre>
| python | [7] |
2,757,496 | 2,757,497 | How do I extract a number from an HTML span using jQuery? | <p>Using jQuery, I would like to extract a number from a <code><span></code> and use it to calculate a new value.</p>
<pre><code><div class="post-100" data-postid="100">
<span class="score">3</span>
</div>
</code></pre>
<p>I've got the general Idea, but I can't figure out how to refer... | jquery | [5] |
1,218,546 | 1,218,547 | flatten array from single dimensional array | <p>hi my array is like this </p>
<pre><code>Array(['a1','aa1','1'],['a2','aa2','2'],['a3','aa3','3'],['a4','aa4','4'])
</code></pre>
<p>my required array</p>
<pre><code> Array(['a1','1'],['aa1',[1]],['a2','2'],['aa2','2'],['a3','3'],['aa3','3'],
['a4','4'],['aa4','4'])
</code></pre>
<p>my requirement is i'll ... | php | [2] |
935,122 | 935,123 | How do I create a "check all" link for a web form? | <p>I've got a form with a bunch of checkboxes on it, and I'd like to provide a "check all" link/button.</p>
<p>I'm using the code below, but when it runs, it picks up some radio buttons on the page, and checks/unchecks those too. How do I fix this?</p>
<pre><code>var check = 0;
function doNow()
{
void(d=document)... | javascript | [3] |
2,173,822 | 2,173,823 | How to create apklib for a project in android | <p>I have a question that I want to make an apklib file for an facebook sdk. But I don't know how to create that but I need to use Facebook Sdk via Maven Repository, how this can be achieved? Please help me out about this problem.</p>
| android | [4] |
4,637,530 | 4,637,531 | adding your own SQLite database to an android application | <p>how can we add our own SQLite database to an android project??</p>
| android | [4] |
2,596,992 | 2,596,993 | Security digit java multiplication | <p>Say the user inputs an int <code>123214</code></p>
<p>I have managed to separate the digits however how can i multiply the digits by one and other. </p>
<p>E.g. I want <code>1*2*3*2*1*4</code></p>
<p>I put all the single digits into an array but I can't multiply them by one and other as I want.</p>
| java | [1] |
4,904,505 | 4,904,506 | jQuery onload function | <p>I m using the following script to call a onload function but it does not works in IE</p>
<p><code>("#body").attr({onload : "calFact();"});</code></p>
| jquery | [5] |
1,471,999 | 1,472,000 | More than one password | <p>Good Day.
I'm using a 'pasuser form' as a password protectant for a website page.
The script below only allows the use of ONE password and username.
Does anyone know how to change the script for multiple password/username use? Basically, I would prefer each user to have his unique password/username.
THANK YOU very m... | javascript | [3] |
5,805,979 | 5,805,980 | Are these things still in use in asp.net? | <p>I am undergoing training in asp.net and the topics which are being taught there these days are repeater and datalist control. I want to know that whether these things are used frequently in the companies. The other thing i want to know is that what are the topics which i should learn in depth so as to get a job. I ... | asp.net | [9] |
1,563,647 | 1,563,648 | javascript IFrame permissions | <p>I know that for protection of the client you can do very little on the contentWindow and contentWindow.document property of the iframe, but what exactly <em>is</em> possible?</p>
<p>Edit: I should have clarified that it's cross-domain.</p>
| javascript | [3] |
1,598,150 | 1,598,151 | take time to execute .bat file through java? | <p>i have written a code to run .dat file using Java. but when is run that application then it take time to execute means it give half result and then after some time after gives complete result.</p>
<p>here is my code:</p>
<pre><code>String file = config.getOutPath() + "run_doxygen.bat";
BufferedWrit... | java | [1] |
5,797,188 | 5,797,189 | Is there anyway I can ask python to explicitly treat all floats as 32bits even on a 64bit machine? | <p>Is there anyway I can ask python to explicitly treat all floats as 32bits even on a 64bit machine?</p>
<p>I don't want to change the codes...</p>
| python | [7] |
3,797,882 | 3,797,883 | Solving a programming-contest using Python | <p>I found this problem, which I thought would be interesting to solve but couldn't really come up with a correct solution- </p>
<blockquote>
<p>Inside a room, there is a monster with
N heads, and a human (with 1 head).
The human has two laser guns. The
first gun, A destroys C1 heads when
fired and the secon... | python | [7] |
4,929,391 | 4,929,392 | double alignment using string.format | <p>I was trying to align doubles using string.format and display them on a tooltip.</p>
<p>I used:
string.Format("{0,15:N2}", number);</p>
<p>but the results come out as:</p>
<pre>
1234.56
00.00
</pre>
<p>It seems some of the numbers are narrower than the space. Does anyone know how to solve this problem?</p... | c# | [0] |
5,284,876 | 5,284,877 | Open select link in a new window | <p>I have an unordered list that is being converted into a select list with jQuery. Code I am using is pasted below:</p>
<pre><code>$("<select />").appendTo(".region .links");
// Create default option "Go to..."
$("<option />", {
"selected": "selected",
"value": "",
"text": "Links"
}).... | jquery | [5] |
4,127,176 | 4,127,177 | how to make a list of lists in to dictionary of tuples | <p>I had <strong>list of lists</strong> for example</p>
<pre><code>res = [[None,'A','B'],[19980228, 'd1', 't1'],[19980302, 'd2', 't2'],[19980303, 'd3', 't3']]
</code></pre>
<p>Now i need to frame the above result as <strong>dictionary of list of tuples</strong> like</p>
<pre><code>{'A': [(19980228, 'd1'), (19980302,... | python | [7] |
5,425,980 | 5,425,981 | Only the original thread that created a view hierarchy can touch its views. Exception occurs when _trd1 starts | <p>Exception occurs when _trd1 starts.
Why it is giving an exception.
I have an imageView on which i have set an Animation.
Same as i did on _imageCard2 they working both fine...
but when i added a new thread it gives an exception after its completion.</p>
<pre><code>public void AnimFunction() {
TranslateAnimatio... | android | [4] |
2,789,221 | 2,789,222 | Any good place to learn Javascript Browser Object Model? | <p>I'm currently reading <a href="http://rads.stackoverflow.com/amzn/click/1118026691" rel="nofollow">Professional Javascript for web developers</a> and in the section for BOM, there's a lot of talking and it's really not helping reading lots of paragraphs and tiny snippets of code every now and then. </p>
<p>I'm look... | javascript | [3] |
2,323,116 | 2,323,117 | which is the example of type selector | <p>I have a question regarding jQuery.</p>
<p>What is an example of type selector?</p>
<p>1) h1</p>
<p>2) .h1</p>
<p>3) #h1</p>
<p>4) div h1</p>
<p>5) div>h1</p>
<p>Can anybody tell me what would be the correct answer?</p>
<p>Thanks</p>
| jquery | [5] |
321,417 | 321,418 | use icu4c in Android Application | <p>there is one "icu4c" project at android platform (external/icu4u)
any one know how to use this in my android application?
I want to do some conversion, ec. unicode->big5, ...?</p>
| android | [4] |
41,420 | 41,421 | Insert function name with php | <p>I'm trying to do a simple task, insert a second function name under "onmouseover" but probably something is wrong with the syntax.</p>
<pre><code>echo '<div onmouseover="changeText(); <?php if($title==""){echo changeViz();}; ?> ">';
</code></pre>
<p>I probably need to escape some quotes and add some, b... | php | [2] |
58,360 | 58,361 | Adding documentation for rxtx in eclipse | <p>I downloaded the jar file for rxtx but I am unable to add the documentation. I have looked at <a href="http://stackoverflow.com/questions/6201621/how-to-add-rxtx-serial-apis-javadoc-to-eclipse-or-netbeans">How to add RXTX serial API's javadoc to eclipse or netbeans?</a> question but it doesnt show the documentat... | java | [1] |
2,819,006 | 2,819,007 | set one field equal to another | <p>I have:</p>
<pre><code><form>
<input id="A" name="B">
<input id="C" name="D">
</form>
</code></pre>
<p>And I need to set the second input equal to the first whenever the first input is changed.
Something like:</p>
<pre><code>$(function() {
$('input#A').change(function() {
$('input#C'... | jquery | [5] |
4,479,438 | 4,479,439 | jQuery-Select list option hover | <p>I want to alert an option when the mouse-cursor is over it. I use this code:</p>
<pre><code>$("select > option").hover(function ()
{
alert($(this).attr("id"));
});
</code></pre>
<p>Unfortunately, this is neither working in IE nor in FF.</p>
<p>Can someone give me a hint please?</p>
| jquery | [5] |
5,387,461 | 5,387,462 | how can i solve binary system in c++? | <p>how can i see the answer when i need to solve the decimal code to binary code?</p>
| c++ | [6] |
579,812 | 579,813 | Is it a idiomatic to implicitly make a class convertible to bool? | <p>For some reason a lot of types are implicitly convertible to boolean values, despite Python's "be explicit" guideline. Anyway...</p>
<p>Is it idiomatic to make custom classes also implicitly convertible to bool, where appropriate? If yes, what function should I (re)define? In my specific case, I have an <code>Image... | python | [7] |
1,293,775 | 1,293,776 | Should I prefer purchasing a commercial framework or creating my own version of the same functionality? (classic "Create vs Buy") | <p>I have mixed views about commercial class libraries. Am I better off using a commercial class library or starting from scratch? If buying a library is the way forward which one for a C# developer?</p>
| c# | [0] |
1,945,382 | 1,945,383 | free hosting support mail function or not? | <p>i ask are the free hostingf support this function
and if not >>>any one know free hosting support
or way to run this function on localhost for testing only</p>
| php | [2] |
1,703,439 | 1,703,440 | changing the onblur attribute with jQuery | <p>I am trying to change the onblur attribute of a text field with jQuery</p>
<p>But it's not working</p>
<p>The input field already has some onblur code like this:</p>
<pre><code><input id="emp" type="text" onblur="func1('abc');">
</code></pre>
<p>Using jQuery I want to change it to this:</p>
<pre><code><... | jquery | [5] |
5,526,883 | 5,526,884 | Same session variable for different systems | <p>i have a huge problem with a system i have been assigned to maintain.</p>
<p>In reality it is many systems over an intranet.</p>
<p>The problem is, the original programmer created many systems for the intranet which all of them connect to the database through a script, where the user name, pass,db params,etc are s... | php | [2] |
1,531,811 | 1,531,812 | Play default soft keyboard sound when buttons are pressed in android | <p>I have developed an app which uses my own <code>custom keyboard</code> (well, a view that looks like a keyboard and behaves like a keyboard anyway). One thing I've yet to figure it out is how to make it play the <code>default soft keyboard 'click'</code> sound when the buttons are pressed.
Is there any easy way to ... | android | [4] |
186,153 | 186,154 | PHP call variable | <p>i am using dreamweaver for my php. how do i get a variable called username from another page and display it to greet the user by name. i can login to the welcome page but getting and error when calling the variable i.e </p>
<pre><code><?php $_POST['username'] ?>
</code></pre>
<p>Error is Undefined index: use... | php | [2] |
5,132,408 | 5,132,409 | getting distance on roads between 2 locations | <p>Hello how can an iphone user find the distance on roads between two locations using an in app solution preferably using two text fields?</p>
<p>I tried google maps. However, I'm not sure if there is a mapkit tool to do this build in or a google maps api?</p>
<p>I am trying to use this value in order to do some cal... | iphone | [8] |
5,076,132 | 5,076,133 | Accessing functions from within a Javascript Object (Javascript) | <p>I am attempting to create a basic Hangman program. It's an array of tags which are assigned into an array of Objects (called Buttons). Each image is an image of a letter, so for example you would press the 'L' button, it would check whether this was in an WordArray (which is an array of chars), then it would act ac... | javascript | [3] |
5,566,076 | 5,566,077 | Is there any really good video or screencast showing how to develop Android apps? | <p>I am for training video or screencast showing how to program for Android phones. I don't mind paying for it as long as it is a really good learning materials.</p>
<p>Thanks </p>
| android | [4] |
2,842,377 | 2,842,378 | jQuery quote rotator using slideUp and slideDown | <p>I have a quote rotator set up that is displaying two quotes at a time and kind of jumping around all over the place when it should just be rotating smoothly between each one.
I can't figure out what is going wrong. See it in action here - <a href="http://jsfiddle.net/RF3xK/1/" rel="nofollow">http://jsfiddle.net/RF3x... | jquery | [5] |
5,540,347 | 5,540,348 | jQuery image hover menu picture overlaps nearby pictures | <p>I am developing a small web app that uses jQuery quite a lot. In my app, a user can hover an image, which becomes bigger after a few seconds, giving him more details.</p>
<p>The problem is that when the image enlarges the image, it takes over the area of the nearby images as well. Now, if the user goes over the sec... | jquery | [5] |
2,703,914 | 2,703,915 | How to sort the dates and time in android? | <p>I need to know how to sort the dates and time and storing it in to SQ Lite .
Please give me an example or some link.</p>
| android | [4] |
871,015 | 871,016 | javascript for-in loop in an Array | <p>If the code is this:</p>
<pre><code>arr=Array("a","b","c");
for(i in arr);
{
alert(i);
}
</code></pre>
<p>there is no any alert,but if it is this:</p>
<pre><code>arr=new Array("a","b","c");
for(i in arr)
{
alert(i);//alerts 0,1,2
}
</code></pre>
<p>What is the reason?</p>
| javascript | [3] |
5,377,002 | 5,377,003 | How to change YAF(yetanotherforum) theme | <p>Please tell me about some tutorials or any easy way to change(customize) the YAF.
Change page layout .
Thanks.</p>
| asp.net | [9] |
2,567,509 | 2,567,510 | how to implement elastic search using Java? | <p>I want to implement elastic search using Java in windows environment.please provide me some implementation details.</p>
| java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.