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,916,961 | 5,916,962 | Is there a way to make native function chainable? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1099628/how-does-basic-object-function-chaining-work-in-javascript">How does basic object/function chaining work in javascript?</a> </p>
</blockquote>
<p>Is there a way to make native function chainable?</p>
<p... | javascript | [3] |
2,180,759 | 2,180,760 | SQL stored procedure parameters when calling from code | <p>Does the order of parameters being passed to a stored procedure matter from the C# function?</p>
<p>Thank you</p>
| c# | [0] |
4,550,610 | 4,550,611 | How display scroll-bar for UITextView always? | <p>UITextView seems display scroll bar just as the following conditions
1 The contents of view is more than View can display
2 User scroll UITextView's scroll-bar</p>
<p>Am I right? Is there any smart way to display scroll-bar anytime?</p>
| iphone | [8] |
4,127,456 | 4,127,457 | JavaScript speed monitoring tool? | <p>First I'd like to say that I did my research and haven't found any tools that do what I am looking for.</p>
<p>So my question is, is there a tool that records how the JS performs on a website? For example, I am working on a plugin and I am making various changes, but I need some feedback in order to decide if I am ... | javascript | [3] |
5,299,089 | 5,299,090 | string argument for array static method header help for java | <p>I have placed string argument in the method header called methodASet. Is it possible to use this string argument in the body and returns the words in the argument as a set? If so how do I do this? Thanks. </p>
<pre><code>public class MyMates {
private static Set<String> names;
private static String[] name1 ... | java | [1] |
1,235,571 | 1,235,572 | regex preg replace for specific names | <p>I have some file names in my database that start with dot like<br>
.file456
.file593</p>
<p>I was wondering how can I filter those files that start with dot in php</p>
<p>thanks</p>
| php | [2] |
3,143,187 | 3,143,188 | Android UI Layout Different sizes | <p>To support multiple screen sizes I should have layouts in layout-small, layout-normal, and layout-large. If there is for example a main layout in large but not in the normal folder, will a normal screen size phone default to the layout in the large folder? Is this true for drawable also?</p>
| android | [4] |
3,428,002 | 3,428,003 | Unable to capture content of drawing using getRootView | <p>I am using MyView for drawing content on a canvas using FingerPaint API demo app. I want to capture whatever I have written on the canvas. But when I use View v1 = myview.getRootView() it is returning only the blank canvas and not the content. I want to save my drawing in SDCard. Following is my code. Let me know wh... | android | [4] |
1,234,523 | 1,234,524 | Class Declaration Questions | <p>From this code snippet:</p>
<pre><code>CClassA& CClassA::operator =(const CClassA& rhs)
{
return;
}
</code></pre>
<p>I have the following questions:</p>
<ol>
<li>Is it a class member?</li>
<li>What does <code>&</code> mean?</li>
<li>What does <code>rhs</code> mean? (I only know it means "right ha... | c++ | [6] |
922,028 | 922,029 | Tool for Analyze the class diagram of big C++ framework | <p>Can you please tell me which is the best tool that generate the pictorial representation of the C++ source code.
I have big C++ framework code and i want to understand that code so i need some tool that generate some graphs, class diagram or some pictorial representation of all class to understand the code. Can you ... | c++ | [6] |
2,483,166 | 2,483,167 | is window.document.element a valid object? | <p>Just as window and document objects in JS corresponds to window(?) and <body> elements in HTML, can you refer to more nested elements of the <body> simply by appending with dots(.)? (like window.document.p)</p>
<p>I haven't seen it anywhere but I don't know since <em>I haven't seen it anywhere</em>... | javascript | [3] |
5,469,730 | 5,469,731 | how to make android transparent keyboard? | <p>I am writing an Android application for API 2.2, where I need to use transparent keyboard and I have a problem. I can't find how to make keys for the keyboard. I can set alpha for key icon by setting this.</p>
<pre><code>mQwertyKeyboard.getKeys().get( i ).icon.mutate().setAlpha( 0 );
</code></pre>
<p>where <code>m... | android | [4] |
2,582,813 | 2,582,814 | Is it safe to make the assumption that generic data column is not used by any other application for storing it own contact data | <p>I am using the generic columns DATA1 to Data15 to store some data. My question is whether it is safe to assume that these columns are not being used by other android applications to store their own data. IF not how would I make sure that a particular column is not being used by any other application? </p>
<pre><cod... | android | [4] |
354,806 | 354,807 | How do I get an image to display on a page when the path for the image is in a MySql database? | <p>Here is the 'id' and (path) 'name' in the MySql table called "upload":</p>
<pre><code> rec_id | name
--------+------------------------------------------------------
1 | C:\Apache Tomcat 5.0.28\htdocs\ajax\images\blob1.jpg
2 | C:\Apache Tomcat 5.0.28\htdocs\ajax\images\blob3.jpg
3 | C:\Apache Tomca... | php | [2] |
2,720,236 | 2,720,237 | ASP.NET create printable forms | <p>i have a number of word documents (forms) that i need to publish it as interactive web form(no database connection just form with text entries fields) on the site to be printable, is there a way to publish them with the least effort.</p>
<p>thank you, </p>
| asp.net | [9] |
3,744,870 | 3,744,871 | Why Should You Use The C# Predefined Types Rather Than The Aliases In The System Namespace | <p>In the "C# Coding Standard" by Juval Lowy available from www.idesign.net, the recomendation is made to use the C# predefined types instead of the aliases in the <code>System</code> namespace.</p>
<pre><code>object NOT Object
string NOT String
int NOT Int32
</code></pre>
<p>What is the benefit of this? How do they ... | c# | [0] |
2,051,262 | 2,051,263 | how to declare a string global in iphone programing | <p>I want to make a string global in the iphone application can any help me on this problem
I have use extern and other things but these are not working on the xcode. They are giving the
error.</p>
| iphone | [8] |
4,358,613 | 4,358,614 | Create add-on system | <p>Many applications in the android market offer a free add-ons like the paid version and after installation, they simply add functionality, but is not in the installed programs and does not be in the process. Question: how to implement just such a system add-ons myself .apk, which is something to unlock the applicatio... | android | [4] |
3,316,948 | 3,316,949 | Only allow 1 instance of a python script | <p>What is the best way to insure that only 1 copy of a python script is running? I am having trouble with python zombies. I tired creating a write lock using <code>open("lock","w")</code>, but python doesn't notify me if the file already has a write lock, it just seems to wait. </p>
| python | [7] |
3,560,717 | 3,560,718 | Get original indices of a sorted numpy array | <p>Hi I have an array of distances <code>a= np.array([20.5 ,5.3 ,60.7 ,3.0 ], 'double')</code> and I need the indices of the sorted array (for example <code>[3, 1, 0, 2]</code>, for <code>a.sort()</code>). There is a function in numpy to do that?</p>
<p>Thanks</p>
| python | [7] |
2,827,772 | 2,827,773 | step by step jquery elements fadeIn | <p>I need to fadeIn elements with data received after ajax request. It works ok, but all of elements becomes visible at same time. Is it possible to implement small delay between visibility changes for each element to be showed?</p>
<pre><code> $.ajax({
type: "POST",
url: "get_va... | jquery | [5] |
466,946 | 466,947 | Sending Messages from my Service to my Activity? | <p>I have an Android Service which copies files to an ftp server.</p>
<p>While it is doing that, I want to send feedback to my Activity so the user knows what happens.</p>
<p>I tried implementing it using the <a href="http://developer.android.com/reference/android/app/Service.html#RemoteMessengerServiceSample" rel="n... | android | [4] |
5,990,768 | 5,990,769 | Javascript EventKey function restriction between language switching | <p>I have a javascript function that works on EventKey.the function is written in a way that ";" and dot "." are disabled on the keyboard but there is a problem when i switch to arabic keyboard the letters that are placed on the place of ";" ". " are also disabled but i need to enable them.I need to know how to mention... | javascript | [3] |
341,608 | 341,609 | How do I check if an image has preloaded successfully? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1977871/check-if-an-image-is-loaded-no-errors-in-javascript">Check if an image is loaded (no errors) in JavaScript</a> </p>
</blockquote>
<p>After being loaded by javascript by setting img.src.</p>
<p>Thanks...... | javascript | [3] |
2,102,185 | 2,102,186 | Swap default selected select options with pure Javascript | <p>I have a select box as follows</p>
<pre><code><select>
<option value="yes">Yes</option>
<option value="No" selected="selected">No</option>
<option value="Maybe">Maybe</option>
<option value="So">So</option>
</select>
</code></pre>
<p>I would like</p>
<pr... | javascript | [3] |
3,981,437 | 3,981,438 | Simulating Horizontal Scrolling of GridView using Gallery but scrolling Tables not Images android | <p>I've come to the conclusion there is no Horizontal Scrolling for gridView. The work-around solutions online are to use Gallery in a multi-row format.</p>
<p>However, from what I understand, Gallery requires image files. (Please correct me if I'm wrong.)</p>
<p>I want a work around that can scroll tables (aka a gri... | android | [4] |
3,937,430 | 3,937,431 | php code that gather all form input and post it together | <p>In my pages i have form that has several textarea, i need a method to gather all of the textareas in one email and then send it.</p>
<p>I need a method that i can add it to each page and do this automatically instead of referencing each textarea by name.</p>
<pre><code>$email_body = "You have received a new messag... | php | [2] |
1,819,307 | 1,819,308 | How can i make my animation will take same time duration for all system and browser? | <p>I am doing a animation, as a sample ( actually it needs for my project), In that animation i am moving a box from left to end of the page. it all works fine.</p>
<p>the problem is, it is differing from one browsers to another. ( the time duration of total journey). i made a function and i calculated the starting ti... | jquery | [5] |
3,932,918 | 3,932,919 | C# find first match of string in string array | <p>I have to search for the first match of any string in an string array in a textbox starting from a certain position. Like if I have this string array: </p>
<pre><code>string[] s = { "RTS", "RTL" };
</code></pre>
<p>And this code:</p>
<pre><code>LDA #$43
STA $1000,x
CMP $00
BEQ .main
.return
RTS
.main
add $01
RTL... | c# | [0] |
2,968,375 | 2,968,376 | PHP connection Fatal Error | <pre><code>Warning: mysqli_close() expects parameter 1 to be mysqli,
object given in /home/mjcrawle/public_html/toga/homefile/processlogin.php on line 63
</code></pre>
<p>I am trying to connect a database and I am getting the above error. I I am using 4 different includes in this file and the include are before... | php | [2] |
3,787,311 | 3,787,312 | DashPathEffect doesn't work on IconBIT NetTAB MATRIX with drawLine | <p>I tested DashPathEffect in my program on 6 devices (Samsung Galaxy Tab 10, Samsung Galaxy S2 (Android 4.0.3), HTC Wildfire S, HTC Aria, CUBE U8GT and IconBIT NetTAB MATRIX (Android 4.0.3)), but only on IconBit this method doesn't work in this code:</p>
<pre><code>Paint paint = new Paint();
paint.setPathEffect(new ... | android | [4] |
5,752,061 | 5,752,062 | JQuery click+this not working | <p>I have copied a snippet of code over. I am very new to web languages and come from a java background.</p>
<p>JQuery seems great but I just can't figure out how to solve this.</p>
<p><a href="http://jsfiddle.net/MMf9Q/2/" rel="nofollow">http://jsfiddle.net/MMf9Q/2/</a></p>
<p>thank you.</p>
| jquery | [5] |
589,114 | 589,115 | Is ini_set('max_execution_time', 0) a bad idea? | <p>Is there a good reason not to set the PHP configuration variable <a href="http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time"><code>max_execution_time</code></a> to 0?</p>
<p>A coworker recently checked in a change to a file that added:</p>
<pre><code>ini_set('max_execution_time', 0);
</cod... | php | [2] |
5,412,763 | 5,412,764 | Only one asp.net page through out | <p>I have created a web page but i want to restrict only one instance of the page should be running at all times. The scenarios are given as below.</p>
<ol>
<li>First time - User launches the page by URL and page loads.</li>
<li>User types URL again in another window and it should say that a page is already open OR re... | asp.net | [9] |
3,748,693 | 3,748,694 | Best dataype to store a 1000 digit number in java | <p>I am new to java, trying to solve Euler problems with it. I am having a 1000 digit number, what could be the best datatype?</p>
<p>Sorry, guys. I didn't expect the answer to be this quick. Thanks for you guys:)
can anybody could write a piece of code and show how to declare this integer using <code>BigInteger</code... | java | [1] |
5,310,111 | 5,310,112 | Consequences of Dynamically rewriting a function in javascript? | <p>In javascript, you can rewrite a function, like so:</p>
<pre><code>function foo() {
setTimeout(function() {
alert('sup stallion');
foo = function() { //rewrite foo to nolonger wait 4 seconds to alert.
alert('sup stallion');
}
}, 4000);
}
</code></pre>
<p>Obviously this i... | javascript | [3] |
1,814,137 | 1,814,138 | How to play a custom sound after the countdown timer ends? | <p>I am trying to implement the following functionality in my application</p>
<ol>
<li>The user selects a music file in one input field and time duration ( Seconds only ) in the other. </li>
<li>After the user presses ok, the count down timer starts and runs till the entered time duration expires and then the chosen m... | android | [4] |
1,961,145 | 1,961,146 | Disable the save option from downloading window? In Asp.net? | <p>In web application, i am trying to disable or remove the save dialog , when user click the download option. Can you help me. Thank you. LIke Do You want to Open or save this file?
in this option i want only Open option not save option.</p>
| asp.net | [9] |
1,734,829 | 1,734,830 | Linked list with different elements , possible? | <p>Hya, </p>
<p>Lemme explain my point .</p>
<pre><code>template<typename T>
class node{
T data;
template<typename X>
node<X>* right; // can point to any node<typename> i know its wrong
}
</code></pre>
<p>so that i can do something like :</p>
<pre><code>node<int> a;
a.data = 23;
node&l... | c++ | [6] |
1,481,613 | 1,481,614 | jQuery.animate() with css class only, without explicit styles | <p>Using JQuery animate I would like to operate with css classes, defined somewhere in .css file, not to have to give all styles params to jquery.animate() explicitly.</p>
<p>I can create a fake (e.g. invisible) element with such a class, read its css properties and give them to jquery.animate() - does anybody know ... | jquery | [5] |
4,692,678 | 4,692,679 | Double ternary in JavaScript | <p>I was going through some stuff in the jQuery source, specifically the <code>inArray</code> method and I found this line of code:</p>
<pre><code>i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
</code></pre>
<p>What I am seeing is two ternary operators, but I have no idea how this is used. I understand how the t... | javascript | [3] |
3,701,113 | 3,701,114 | jquery script refuse to execute again after making one round | <p>I have set of few thumbnails, each time user click on thumbnail I show big picture on the middle, and animate/hide thumbnail, delete if from the top and insert it on the end of thumbnail set. But after making full round - clicking on the first picture again - script doesn't execute anymore. The script:</p>
<pre><co... | jquery | [5] |
3,018,996 | 3,018,997 | change the value of a qantity field with jquery | <p>I have form with multiple qty fields,I'd like to add the qty but pressing the add button and subtract the qty by pressing minus button, I got it working for one but I can not make it work for multiple qty fields,I have 24 qty fields, any help would be appreciate it.</p>
<pre><code> <form>
<... | jquery | [5] |
4,461,193 | 4,461,194 | Insert variable into string at random position | <p>See this code:</p>
<pre><code><?php
$a = rand(1, 10000000000);
$b = "abcdefghi";
?>
</code></pre>
<p>How can I insert <code>$b</code> into a random position of <code>$a</code>?</p>
| php | [2] |
122,774 | 122,775 | Show tooltip when selecting item on asp:DropDownList | <p>I have an asp:DropDownList on a page that, due to the 1024x768 development standard can truncate some of the text values in the dropdown (not enough of them, apparently, to redesign the layout ), so I need to display a tooltip of the selected value <em>when</em> a dropdown item is being selected (i.e. when the dropd... | asp.net | [9] |
1,736,049 | 1,736,050 | Returning a flexible datatype from a C++ function | <p>I'm developing for a legacy C++ application which uses ODBC for it's data access. Coming from a C# background, I really miss the ADO style of data access.</p>
<p>I'm writing a wrapper (because we can't actually use ADO) to make our data access less painful. This means no <code>char</code> arrays, no manual text blo... | c++ | [6] |
4,553,213 | 4,553,214 | How can check the table records | <p>I have a table and i want to check that whether it is empty or it has some records..
How can i check?</p>
| android | [4] |
4,827,330 | 4,827,331 | How to use jquery .animate() to mock 'text-align:right' | <p>I am building a very simple jquery menu. On hover, I have a menu on the right easing to the left margin of my menu container. This is easy, as the text is left aligned within said container.</p>
<p>However, I also have a menu on the left, and because the links (left justified) are of differing length, the best I ca... | jquery | [5] |
2,994,691 | 2,994,692 | Global time and globle date converting in php | <p>in my web application, user has to enter a time and select a date.so i want to save that time and date in globle time and date.when it get it should appear in user's country time.so simply the requirement is to convert a string into globl time and globle date when saving and globle time and date convert into a strin... | php | [2] |
5,480,836 | 5,480,837 | Java "Unreachable Code" Errors | <p>I am currently using Eclipse to code a new plugin. I have been following tutorials online, however have ran into an error. My friend has been helping with the code, however he is unsure of this fix. I am running into an "Unreachable code" error. I have marked the location of the error. Thanks for any help!</p>
<p><... | java | [1] |
334,920 | 334,921 | How to use background thread for inline operation in android | <p>I have the following program flow:</p>
<ol>
<li>User fills in form</li>
<li>My app generates a number of records via a content provider which may take some time (say 10 seconds)</li>
<li>The user can then continue with the program</li>
</ol>
<p>I have 2 questions:</p>
<ol>
<li><p>Why use a non-UI thread to perfor... | android | [4] |
4,005,766 | 4,005,767 | How to display a multiple values in textfield? | <p>I'm new to the iPhone. I have four number buttons like 1,2,3,4. When I click any button the value is displayed in a textfield, but when I click two buttons only one value is displayed in textfield.</p>
<p>How to display in multiple values in textfield?</p>
| iphone | [8] |
808,820 | 808,821 | Java applet pane movable by arrow keys? | <p>How can I make my java applet unlimited or set to a certain size where I can move the thing (not the window) with the arrow keys and the images
And stuff will stay in place?</p>
| java | [1] |
3,382,806 | 3,382,807 | Broken Pipe from subprocess.Popen.communciate() with stdin | <p>I'm having a strange issue when using subprocess.Popen.communicate(). For background, I want to execute an application from my python script. When I run the program from the command line, I do it like this (UNIX):</p>
<pre>
$ echo "input text" | /path/to/myapp
</pre>
<p>From my script, I also want to pipe the in... | python | [7] |
2,120,121 | 2,120,122 | C# creating an array with in an array of objects | <pre><code>using System;
using System.IO;
using System.Text;
public class Movies
{
public string moviename { get; set; }
public int cast { get; set; }
public string[] castmember { get; set; }
public override string ToString()
{
return string.Format("Movie: {0} \nCast #: {1} \nCast Member: {3... | c# | [0] |
5,266,500 | 5,266,501 | when to use self.property in init methods in objective-c, how to initialize arrays in init methods | <p>I'm confused on what the proper way to write custom init methods for youw own subclass in terms of memory management, custom subclasses, and arrays. If I have properties like:</p>
<pre><code>@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSMutableArray *array;
@property (nonatomic, ret... | iphone | [8] |
1,908,862 | 1,908,863 | javascript file talk to script in html file | <p>Is there a way of calling a function that exists in a HTML file from a .js file?</p>
<p>Something like this:</p>
<p>HTML file:</p>
<pre><code><script type="text/javascript" src="javaFile.js"></script>
<script type="text/javascript">
function doSomething() {
};
</script>
</code></pr... | javascript | [3] |
939,107 | 939,108 | jQuery defining click function overrides all click functions | <p>Here is my code:</p>
<pre><code><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
<script type="text/javascript" >
$(document).ready(function() {
var qtypes = ['Text','Area'];
for(qt in qtypes){
console.log('#submitQ... | jquery | [5] |
1,297,751 | 1,297,752 | Can we multiply two bytes directly by using * operator directly | <p>I need to perform the following operation on a byte <code> (2*x*x)+x </code> where x is a single byte. Can i perform that operation directly as we will do for int. If no how can we perform above operation.</p>
| java | [1] |
4,239,161 | 4,239,162 | Java Percentage to show decimals | <p>I wrote a program today and I need to show percentage in my output but if I have an input of .05375 I need it to display as 5.375%
I thought I could do that by using a NumberFormat but my final display is simply 5%. Is there a a way to make it show the decimals? Or how would I code around this? The program function... | java | [1] |
5,780,237 | 5,780,238 | What is the most memory-effective way of storing binary matrix in c#? | <p>How to store 2-dimensional arrayof logical values in c#, so that it takes least space?</p>
| c# | [0] |
1,489,895 | 1,489,896 | problem with creation DLL file | <p>I try to convert cs file to DLL file .. </p>
<p>when I am using Class Library project ... it works and create DLL file when I built the project , but when I create new file , as class file , and built it I don't found new dll file in project folder !! why ?? and when I am using the namespace , that is in the new f... | c# | [0] |
5,183,995 | 5,183,996 | Java null pointer exception while using google maps in Android | <pre><code>package com.crumbin.tabs;
import java.util.ArrayList;
import java.util.HashMap;
import org.apache.http.client.HttpClient;
import android.content.Context;
import android.database.Cursor;
import android.location.Location;
import android.location.LocationManager;
import android.net.Uri;
import android.os.Bun... | android | [4] |
3,653,739 | 3,653,740 | Application for reading the numbers from a scratch card in android (like a bar code reader) | <p>I want to create an application for android that is similar to a bar code reader app. but instead of reading the code it will read a 16 digit long number from a scratch card.</p>
<p>(The scratch card number will be used for reloading the credit in the mobile.)The app will open the camera, read the 16 digit long num... | android | [4] |
3,534,432 | 3,534,433 | Dependency tree development for answer extraction | <p>I am working on a Question Answering System . I am planning to use the Syntactic and semantic tree kernels for extracting features of sentences and to finally extract the correct answer from a list of documents . I want to know what all tools/APIs I can use for developing the dependency parse tree kernel for applyin... | java | [1] |
189,833 | 189,834 | python: printing horizontally rather than current default prining | <p>I was wondering if we can print like rowwise in python.
I know its kinda stupid question.. or maybe not even important..
Basically I have a loop which might go on million times and i am printing out some strategic counts in that loop.. so it would be really cool if I can print like rowwise</p>
<pre><code>print x
# ... | python | [7] |
760,836 | 760,837 | python for loops and variables | <p>My first question, sorry if i've made a mistake or this has been answered before, I couldn't find it anyway.</p>
<p>Here's a generic version of my code:</p>
<pre><code>count = 0
classlist = []
for i in xrange(0,100):
if random.random() < 0.5:
var_1 = 1
else:
var_1 = 2
count += 5
... | python | [7] |
1,114,954 | 1,114,955 | Order entitydatasource records | <p>I'm trying to order entitydatasource records like this: <code>orderby="Product_Num"</code>
but it says: </p>
<blockquote>
<p>'Product_Num' is not a member of 'Transient.collection[productmodel.Products(Nullable=True,DefaultValue=)]'. To extract a property of a collection element, use a subquery to iterate over t... | asp.net | [9] |
1,050,122 | 1,050,123 | Detect an application is installed or not? | <p>I have a application that registers a handler for custom URI on the Phone. I am able to launch the application by making a link to "myapp://act/launch" from my phone web pages. This works only if my application is installed on the device.
What I want to do is detect if the URI Scheme is supported from the browser a... | android | [4] |
5,262,800 | 5,262,801 | whats wrong with this php hyperlinking validation script | <p>I have a website were users enters articles and their reference(like wikipedia). The reference which were saved in the database includes both web address and non web addresses.I got a hyperlink validation script from net ,below is the script and this is my similar but not same query in this site
<a href="http://stac... | php | [2] |
5,290,936 | 5,290,937 | Web Config Connection Setting | <p>I heve designed a website in which every pages are given connection with SQL server by writing the codes in each page....Can anybody helps me out to do this job only in the web config file at once...</p>
<p>Thanks in advance..!</p>
| asp.net | [9] |
1,110,716 | 1,110,717 | Call a function based on the device's screen size (hdpi/ldpi/mdpi) | <p>On mdpi device I would like to call this method:</p>
<pre><code>final float scale = getResources().getDisplayMetrics().density;
double height_px = 45 * scale + 0.5;
</code></pre>
<p>but I want to ignore the method when the app is run on hdpi devices, how am I able to determine the screen size on my class?</p>
| android | [4] |
1,022,363 | 1,022,364 | Jquery to fade in .after()? | <p>Simple really but cannot get it to work, here is my script...</p>
<pre><code>$('body').after('<div id="lightBox" style="height: ' + htmlHeight + 'px;"></div>');
</code></pre>
<p>How can I get it to fade in rather than just pop up? putting fadeIn after or before .after() doesn't work?</p>
| jquery | [5] |
4,762,943 | 4,762,944 | Jquery Animation to percent of page | <p>I'm using a simple jquery animation to display 4 div's onto the screen:</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$("#boxa").animate({left: "+=100"}, 1000);
$("#boxb").animate({left: "+=300"}, 1000);
$("#boxc").animate({left: "+=600"}, 1000);
$("#boxd").animate({left: "+=90... | jquery | [5] |
1,508,403 | 1,508,404 | jQuery - find all elements without someone between | <p>For example we have such dom:</p>
<pre><code><div id="main" class=".container">
any other elements
<div>
<span class="edit" />
</div>
<div class=".container">
<div class="edit">
</div>
</div>
</code></pre>
<p>How to make query, to ... | jquery | [5] |
759,606 | 759,607 | What is the best way to show contact details selected from phonebook | <p>Being the new one to android, I am asking this for your expert opinion,</p>
<p>I am selecting Contact from Phone book and want to show its Phone no(user should choose one if many) & email address.</p>
<p>User can add three users.</p>
<p>Want to store this. (Advise best way. Prefferences, DB or File Sharing)</... | android | [4] |
3,063,038 | 3,063,039 | PHP calender with Checkbox: How to populate checkbox from mysql | <p>I am trying to develop a calender with checkboxes for each date. By checking the check boxes users can insert dates into the database. For that I have written some codes which I have shown below and it is working okay. Now, the problem I am facing is to populate the inserted data in check boxes when people visit t... | php | [2] |
2,905,664 | 2,905,665 | Javascript: Assign value from the child page to parent page | <p>I have created a pop-up window using the following script.</p>
<blockquote>
<p>var CarricularWindow =
window.open("AddCarriculars.aspx",
"Extra Carriculars", "height=200,
width=200");</p>
</blockquote>
<p>This pop-up window contains a TextBox and a button. Now, when the user enters some data on that textbo... | javascript | [3] |
3,316,297 | 3,316,298 | How to Run queries on datasets | <p>I wish to run query on datasets.</p>
<p>Is it possible.</p>
<p>If yes please give me an example and if not please suggest alternative solution.
Thanks in advance</p>
| c# | [0] |
5,692,952 | 5,692,953 | document.getElementByIdContains? | <p>Is there, by any chance, a way to solve this problem:</p>
<p>I have elements that have IDs such as "x_y_z". The unique part is "x_y", thus there is no two items that have the same combination of x and y..</p>
<p>However, using getElementById won't work because when I do it I only have the "x" and "y" part and not ... | javascript | [3] |
4,386,163 | 4,386,164 | Starting out with Objective C; need some guidance | <p>I have started learning Objective C with no prior programming experience from the 'Become an X-Coder' eBook (http://download.cocoalab.com.s3.amazonaws.com/BecomeAnXcoder.pdf). My question is, if I want to be doing iPhone development, am I going in the right direction? Am I learning the wrong language, or should I be... | iphone | [8] |
1,587,150 | 1,587,151 | Jquery sliding display built around moving a vertical stack of images | <p>How would I scroll a stack of images, horizontally, through a vertically aligned space? Imagine a layout like this:</p>
<p>I have a viewable area, say a div, with a fixed size (50px wide by 300px tall) and overflow set to none to hide anything outside of it...</p>
<p>That div has three images stacked vertically di... | jquery | [5] |
4,062,312 | 4,062,313 | Passing parameters to eventListener function | <p>I have this function check(e) that I'd like to be able to pass parameters from test() when I add it to the eventListener. Is this possible? Like say to get the mainlink variable to pass through the parameters. Is this even good to do?</p>
<p>I put the javascript below, I also have it on jsbin: <a href="http://jsbin... | javascript | [3] |
1,496,312 | 1,496,313 | Is it possible to use too many functions in Python? | <p>This kind of a broad question.</p>
<p>As I find myself having to write longer and longer scripts, I find that my instinct is to break everything up into bite-sized functions; however, this ultimately results in functions calling functions calling functions calling functions.... and I'm wondering if I'm completely t... | python | [7] |
2,811,650 | 2,811,651 | 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] |
1,801,444 | 1,801,445 | php: equivalent of $_FILES upload? | <p>I have to send a file to an API. The <a href="http://developer.brightcove.com/en/articles/easy-video-uploads-echove-sdk" rel="nofollow">API documentation</a> provides an example of how to do this through a file upload script ($_FILES). But, I have the files on the same machine, so would like to skip this step and ... | php | [2] |
5,843,593 | 5,843,594 | How to create Own media player in android | <p>I am new in android, could anyone help me to how to create my own media player in android</p>
<p>Thanks in advance</p>
| android | [4] |
4,740,326 | 4,740,327 | PHP Constants with variables | <p>I know this is probably a newbie question, but is it possible to do this?</p>
<pre><code>unserialize(LOG_ACTIONS_.''.strtoupper($language));
</code></pre>
<p>I have list of constants with _LANGUAGE which I want to use the variable $language with. </p>
<p>Example:</p>
<pre><code>unserialize(LOG_ACTIONS_ENGLISH);
... | php | [2] |
1,973,367 | 1,973,368 | finding the centre of dynamically generated divs | <p>I have a page that contain n amount of divs in columns of 3. The divs are potentially different widths, and some divs will contain one image, whereas some will contain two. Image number one is always centred in the div. Unfortunately, the way the page is generated it's impossible to have image number 2 sit a certain... | jquery | [5] |
3,811,256 | 3,811,257 | PHP optimization - include() or not | <p>I have two optimization question about the function include.</p>
<ol>
<li><p>Is it better to use a single php file and include it or use several little files and include them? Which one will be faster?</p></li>
<li><p>For example, I use a PHP file with <code>mysql_connect</code> and all the db connection stuff. The... | php | [2] |
759,339 | 759,340 | how to write a random code in c# | <p>… I'm working on random in C# . I want to use a random to view string move in random & this is the code which i write but it dosen't work
i want to know what wrong i do </p>
<pre><code>using system ;
namespace work
{
static random random =new random();
static int max_X=console.windowwidth;
static i... | c# | [0] |
1,629,613 | 1,629,614 | while calculting the total of gridview cells using javascript getting exception | <p>I am calculating the total of one gridivew cells using javascript and displaying the resul in gridivew
footer. but i am getting this exception
<strong>Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object</strong></p>
<p>Here is my code:</p>
<pre><code><asp:GridView ID="gv" ru... | javascript | [3] |
1,736,735 | 1,736,736 | php if else & URL vars | <p>URL</p>
<blockquote>
<p>x.php?foo=100</p>
</blockquote>
<p>x.php</p>
<pre><code>$x = $_GET['foo'];
if ($x = 100) {
echo "yeah";
}else{
echo "no";
}
</code></pre>
<p>My code doesnt work, where is error?</p>
| php | [2] |
5,524,614 | 5,524,615 | Is it possible to get data from another application in android? | <p>I have downloaded an application from the android market. I just have to enter a number and on click of enter, that app generates a table with some contents.</p>
<p>I want my application to copy the contents of the table. My application invoked that application. The user has to put the data in the edit text manuall... | android | [4] |
4,919,940 | 4,919,941 | how can copy file to dictionary in c# | <p>how can copy file to dictionary in c#</p>
| c# | [0] |
371,795 | 371,796 | Compare file extension to file header | <p>I'm starting to design an application, that will, in part, run through a directory of files and compare their extensions to their file headers.</p>
<p>Does anyone have any advice as to the best way to approach this? I know I could simply have a lookup table that will contain the file's header signature. e.g., <code... | java | [1] |
5,273,220 | 5,273,221 | PreSaveAction is not firing | <p>Any idea why the PreSaveAction is not firing. I am trying to take the user to a thankyou page when they complete a survey. I added this js thru SP Designer to NewForm.aspx.</p>
<pre><code><script type="text/javascript" src="'/_layouts/jQuery/jquery-1.6.min.js"> </script>
<script type="text/javascript... | javascript | [3] |
673,903 | 673,904 | how show the data from array list in php | <p>i want to store retrieved data from database into an array list with limit.And display the data from that array list one by one with next button.have any answer for this? </p>
| php | [2] |
4,241,126 | 4,241,127 | Short-circuit for If-else statement | <p>So I know </p>
<pre><code>variable && runTrue();
</code></pre>
<p>really means</p>
<pre><code>if(variable){
runTrue();
}
</code></pre>
<hr>
<p>Then is there a more simplified way to write</p>
<pre><code>if(variable){
runTrue();
}else{
runFalse();
}
</code></pre>
<p>instead of <code>if-else... | javascript | [3] |
116,609 | 116,610 | digital signature on android | <p>I am developing an android application which generates a type of document and this document requires a signature. need to know how I can capture a digital signature by a person for this document.</p>
| android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.