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 |
|---|---|---|---|---|---|
23,599 | 23,600 | Timer class and C# | <p>I have a program written in C#. I want the Timer class to run a function at a specific time.</p>
<p>E.g : run function X at 20:00 PM</p>
<p>How can I do that using the Timer class?</p>
| c# | [0] |
618,064 | 618,065 | Java Script 2 D Arrays allocation | <p>I want to allocate a 2 D Array in Java Script. </p>
<p>I want do some thing similar to this in JavaScript</p>
<pre><code>typedef struct
{
int itemA,
int itemB,
string testC
} myStruc;
myStruct MyArray [100];
</code></pre>
<p>How to do this ? </p>
| javascript | [3] |
351,403 | 351,404 | Going to the previous state after using fillAfter | <p>In my application. when the user presses a button, the button dissappears (a layout animation is used) and another activity is launched. For keeping the button invisible I've used the fillAfter attribute. If the used presses the BACK key, the previous activity will be displayed with the invisible button. Is there a ... | android | [4] |
4,884,971 | 4,884,972 | How to deny the use of dangerous PHP functions? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1865020/php-how-to-disable-dangerous-functions">PHP: How To Disable Dangerous Functions</a> </p>
</blockquote>
<p>Hi, this is my situation: I must let my clients enter PHP code, but only safe functions like stri... | php | [2] |
4,628,751 | 4,628,752 | error: /usr/include/objc/objc-class.h: No such file or directory | <p>I am currently using blocks in my UIButton category. However I have come across this error which I cannot solve:</p>
<blockquote>
<p>error: /usr/include/objc/objc-class.h:
No such file or directory</p>
</blockquote>
<p>This is the line of code that uses blocks:</p>
<pre><code>FTButtonBlock block = objc_getAs... | iphone | [8] |
1,916,189 | 1,916,190 | Android: launch new activity when it not exist | <p>I have a service that work in foreground, and when the Main activity launch it the notification is launched with the following code:</p>
<pre><code>private void showNotification() {
Log.i(TAG, LocalService.class.getName() + "showNotification()");
Intent notificationIntent = new Intent(getApplicationContext(... | android | [4] |
5,887,852 | 5,887,853 | how to add a jquery load.gif during in jquery.load process? | <p>I want to use use <code>jQuery.load()</code> to load some content. How do I add a spinner during the load process?</p>
<p><img src="http://i.stack.imgur.com/vmrR2.jpg" alt="load.gif"></p>
<pre><code>$("#content").load("b.php #abc");
</code></pre>
| jquery | [5] |
2,249,629 | 2,249,630 | how to get key from value in hash table | <p>I have hashtable with key and values and in my code I am iterating hashtable through values like below : </p>
<pre><code>foreach (Object clientObject in ClientList.Values)
{
// code to perform operation based on value
......
}
</code></pre>
<p>Where ClientList is hashtable.
Now I want to get key of perticu... | c# | [0] |
1,854,517 | 1,854,518 | Can a DataBinder.Eval be nested within another DataBinder.Eval? | <p>Can you do something like </p>
<pre><code><%# DataBinder.Eval(Container.DataItem,"Column1").ToString().Replace("_",<%# DataBinder.Eval(Container.DataItem,"Column2") %> %>
</code></pre>
| asp.net | [9] |
1,822,725 | 1,822,726 | PHP - Is this a good method to prevent re-submission? | <p>This is related to preventing <a href="http://stackoverflow.com/questions/542284/preventing-webform-resubmission-on-browser-refresh-without-losing-viewstate">webform resubmission</a>, however this time the context is a web-based RPG. After the player defeats a monster, it would drop an item. So I would want to preve... | php | [2] |
5,745,490 | 5,745,491 | Print using for loop - Python | <p>I am fairly very new to Python or any programming language for that matter. I am finding it challenging to print arbitrary text along with with iterated values from a list, using for loop. What I need is to print the whole first item of the list with arbitrary text "shutdown" and repeat the same for new text "no shu... | python | [7] |
4,182,854 | 4,182,855 | Display details in a textbox | <p>I have a list box.Whenever I search a person from the database, the result will be displayed in a listbox. Then what I want is whenever I click on the name of the person from the listbox is that the persons detail will be displayed in textboxes. I have my code but the problem is that only the details of the person I... | c# | [0] |
2,292,228 | 2,292,229 | add -100px to jquery (body).height(); | <p>If i use <code>(body).height();</code> to calculate a windows height, is there a way to calculate the height -100px. </p>
<p>Is there a way to do this as part of the <code>(body).height();</code> queriy rather than calculating it later on ?</p>
| jquery | [5] |
3,862,222 | 3,862,223 | Not getting desired output while Locating Descendent Elements in jQuery | <p>I am not getting the colored output by the given code. </p>
<pre><code><html>
<head>
<title>the title</title>
<script type="text/javascript"
src="/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(fu... | jquery | [5] |
5,903,038 | 5,903,039 | Working against the full framework implementation | <p>Anyone ever had any exprience with working against the full framework implementation, not the SDK.
where could I find any examples/libraries or any other information about that?</p>
<p>thanks,
ray.</p>
| android | [4] |
5,462,318 | 5,462,319 | PHP Undefined variable error | <p>I have this class ( it is simple card class):</p>
<pre><code> class Card{
private $suit;
private $rank;
public function __construct($suit, $rank){
$this->$suit = $suit;
$this->$rank = $rank;
}
public function get_suit(){
return $this->$suit;
}
public function get_rank(){
return $this-... | php | [2] |
5,962,248 | 5,962,249 | c# comparing strings, one from an array other from an entered value | <p>Basically comparing a string that is entered, and trying to get that position from the array.</p>
<p>If I initialize position to 0 then it returns the position zero of the array, if I initialize to 1 then it gives me the item in slot 1, so it's skipping the compare statement.</p>
<p>I also tried using <code>(custS... | c# | [0] |
752,357 | 752,358 | PHPmailer sending HTML CODE | <p>I am using PHPmailer to send email.</p>
<p>I have also used HTML = True content type</p>
<pre><code> $mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = $Host;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = $Username... | php | [2] |
5,976,467 | 5,976,468 | cookieless with [System.Web.Services.WebMethodAttribute(),System.Web.Script.Services.ScriptMethodAttribute()] | <p>I have a function which is is a Web Services as the following:</p>
<pre><code> [System.Web.Services.WebMethodAttribute(),System.Web.Script.Services.ScriptMethodAttribute()]
public static string GetDynamicContent(string contextKey)
{
//Return a string value base on from the Database
}
</code><... | asp.net | [9] |
3,855,455 | 3,855,456 | Why this function return Nan error? | <p>When I click "+ 1", then in the "0" appears "NaN". Why ?</p>
<p>HTML:</p>
<pre><code><table>
<tr><td id="run">0</td></tr>
</table>
<a href="#" onclick="plus();">+ 1 </a>
</code></pre>
<p>JS:</p>
<pre><code>function plus(){
document.getElementById("run").innerHTML =... | javascript | [3] |
5,214,075 | 5,214,076 | Issue splitting comma delimited String, creates a new line? | <p>I'm trying to pass both the value and key from an option box as a comma delimited String to a Java class, which will then parse the String into two different Strings. Below, I demonstrate a Java iterator combining the value and key into one string:</p>
<pre><code>while(i.hasNext())
{
Entry<String,String>... | java | [1] |
486,939 | 486,940 | Automate 3 different click events on a timer using javascript/jQuery | <p>I need to automate the click events defined below on a timer. Say every 5-6 seconds or so. So the page starts out on 'longevity' and a user click is simulated using javascript on a loop. The loop should stop running once a user has manually clicked on a tab as well. Any ideas ?</p>
<pre><code> <script type="text... | jquery | [5] |
2,836,582 | 2,836,583 | Respond to change in variable | <p>I have made a service that displays a toast showing the current time . The toast should be displayed when the value of "minute" changes. What should i do ?
Here is the code. Is it necessary to create a listener to listen to change of the minute variable?
Please help me.</p>
<pre><code>public class Servicedemo exten... | android | [4] |
5,316,406 | 5,316,407 | Grid View To Excel | <p>Hi
I am trying to convert the contents of a grid View to an excel file
and I am doing it using this code</p>
<pre><code> string attachment = "attachment; filename= " + FileName;
Response.ClearContent();
Response.AddHeader("content-disposition", attachment);
Response.ContentType = "application/excel";
StringWri... | asp.net | [9] |
3,272,567 | 3,272,568 | running apschduler in python script as daemon? | <p>I have a <code>job.py</code> which has following code </p>
<pre><code>import datetime
import logging
import sys
import os
from apscheduler.scheduler import Scheduler
from src.extractors.pExtractor import somejob
def run_job():
start = datetime.datetime.now()
logging.debug('Proposal extraction job startin... | python | [7] |
4,714,836 | 4,714,837 | Calling other classes using command line arguments? | <p>I am writing a program where I use 2 command line arguments - the first one to choose 1 of the 3 support classes, and the second would be the int input value.</p>
<p>This has me very confused on many levels, but the main thing I'd like to learn is how to refer to/call the support method from the App class.</p>
<p>... | java | [1] |
1,854,784 | 1,854,785 | How to make an element live() by an element's event that doesn't yet exist in jQuery | <pre><code>// for example
$('#text').die('focusout');
//then I try to make it live() with a button that just exist
$('#button').live('click', function(){
$('#text').live('focusout');
});
</code></pre>
<p>When I click on the #button, firebug tells me that something's worng in the jQuery.js. How to accomplish somet... | jquery | [5] |
1,323,383 | 1,323,384 | Is website MUST to publish android app? | <p>Almost all android apps have links to 'developer's website'. Typically websites are used in assigning name spaces.</p>
<p>How can I assign unique package namespace if I don't have any website?
Or to put it other words, is website a parameter in assigning the namespace</p>
<p>If yes, can you please guide me how to ... | android | [4] |
1,644,836 | 1,644,837 | How do I use group by in LINQ? | <p>How do I use group by in LINQ?
I want to group by tow filed of table in C# by linq.</p>
| c# | [0] |
5,170,194 | 5,170,195 | how to show only month and year in datapicker using datapicker dialog box | <p>please tell me how to show only month and year in datapicker using datapicker dialog box</p>
<pre><code>private DatePickerDialog.OnDateSetListener mDateSetListener2 = new DatePickerDialog.OnDateSetListener() {
public void onDateSet(DatePicker view, int year,
int monthOfYear... | android | [4] |
577,612 | 577,613 | To pass an event while uninstalling an app | <p>i am developing an app, in which some data is written in a file during a process in the app.
Now what i need to do is to delete that data from that same file during uninstallation and want that same file to be there in the mobile. Can anybody tell me,, is it possible ? </p>
| android | [4] |
284,468 | 284,469 | undo a .css(property, value) call? | <p>How can I undo a <code>.css('display', 'block')</code> call so that it falls back to class-based behavior? I think I'm looking for something like <code>.css('display', null)</code>.</p>
| jquery | [5] |
3,786,203 | 3,786,204 | How to Create a class dynamically with its variables and methods in Java? | <p>How to Create a class dynamically with its variables and methods in Java without using Reflections.</p>
<p>I want that the class should be created at runtime with variables like age, name and method like display(String age,String name). </p>
| java | [1] |
5,082,827 | 5,082,828 | Change the value in app.config file dynamicallay | <p>I want to modify a value in appSetting section in app.config. So i wrote,</p>
<pre><code>Console.WriteLine(ConfigurationManager.AppSettings["name"]);
Console.Read();
Configuration config=ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
config.AppSettings.Settings["name"].Value = "raja"; ... | c# | [0] |
2,104,036 | 2,104,037 | Android code to connect ftp server | <p><strong>I am new to android, i want to verify connection from FTPs server, On emulator please help step by step on this</strong></p>
| android | [4] |
3,559,476 | 3,559,477 | How to use dynamic keywork to work with entity framework | <p>I am using .net framework 3.5 framework & for database operations entity framework. So, to fetch the data i am using LINQ queries & returns a resultset in a list.
e.g</p>
<pre><code>public class Emp
{
public int CD{get;set;}
public string Name{get;set;}
}
public List<Emp> GetServTypeForPromotionDu... | asp.net | [9] |
4,606,035 | 4,606,036 | PHP preg_match dies/crashes in PHP Version 5.3.6 with following input | <p>I'm having an issue with <code>preg_match</code>, it dies on a certain input. I'm using PHP 5.3.6 .</p>
<pre><code>$regEx = '/^([a-z]|.|\s)*$/i';
$subject = 'Korting van op de aankoopprijs van fietsen en bromfietsen korting van op de aankoopprijs van alle accessoires. Sed posuere consectetur est at lobortis. Nul... | php | [2] |
1,040,067 | 1,040,068 | How to compile c++ program with pngwriter | <p>I'm trying to make a png file using <a href="http://pngwriter.sourceforge.net/" rel="nofollow">"pngwriter"</a>. I'm using Ubuntu as my OS. I've put these following files in /home/ediamin/png/ folder
1.png.h, 2.pngconf.h, 3.pngwriter.h, 4.test.cpp, 5.zconf.h, 6.zlib.h</p>
<p>my test.cpp contains this codes</p>
<pre... | c++ | [6] |
5,211,609 | 5,211,610 | Split by comma and strip whitespace in Python | <p>I have a simple piece of code:</p>
<pre><code>>>> string = "blah, lots , of , spaces, here "
>>> mylist = string.split(',')
>>> print mylist
['blah', ' lots ', ' of ', ' spaces', ' here ']
</code></pre>
<p>I would rather end up with this:</p>
<pre><code>['blah', 'lots', 'of', 'spa... | python | [7] |
944,959 | 944,960 | My app is not running but there are no errors | <p>My app was running perfect until i added a new graphic background in a button.From this time i m getting a message when i m trying to rum my app <code>"You project contains error(S), please fix them before running your application"</code>. I have tried to clean my app, refresh it but nothing changes.Also,in the pack... | android | [4] |
4,619,333 | 4,619,334 | How to get the querystring of a page with JavaScript? | <p>I wanna to get the query string of a page within a JavaScript block.
for example:</p>
<p>The page has a URL like <code>localhost:1234/Test/page1.aspx?ID=10</code></p>
<p>How can I get '10' with JavaScript?</p>
| javascript | [3] |
1,462,654 | 1,462,655 | managing solutions/references | <p>I would like to create utils class library (eg, logging, etc).<br>
I want to use the utils solution in several indepandent applications.</p>
<p>I'm using source control of course...</p>
<ul>
<li><p>does that mean I should manage utils solution (holding the utils class library)
and also seperate solution for each ... | c# | [0] |
3,868,752 | 3,868,753 | Why an input button created dynamically through a literal tag doesn't work? | <p>I have created button 2 below:</p>
<pre><code><input id="Button1" type="button" value="Stop"
onclick="alert('hello world');"/>
<input id="Button2" type="button" value="button" OnClik="alert('hello world');"/>
</code></pre>
<p>using a litteral tag on page load like this:</p>
<pre><code>protect... | asp.net | [9] |
462,268 | 462,269 | On div hover with some class, find the last class and add class to a link element with the same last class. How in jQuery? | <p>How to add a class to an element(link) when hovering a div with the last class? Here is what I mean:</p>
<p>I have this code:</p>
<pre><code><a href="http://google.com" class="menu nice menu-2">Google</a>
<a href="http://yahoo.com" class="menu nice menu-10">Yahoo</a>
<a href="http://face... | jquery | [5] |
3,974,027 | 3,974,028 | how to update multiple users location and update markers also on google map after 15 seconds | <p>hi friends i want to get location of other users from the web service i did it and now i want to locate this new latitue and longitue to google map and update its location</p>
| android | [4] |
2,956,448 | 2,956,449 | Copyright issues with combining JavaScript files? | <p>Say my web application uses jQuery, and I combine jQuery's source file with my own JavaScript files into a single file.</p>
<p>Now, I still have to put jQuery's copyright header at the top of the combined file, right? But do I also have to add a notice that I "modified" this file as I have added my own code?</p>
<... | javascript | [3] |
217,680 | 217,681 | Is there any way to force reload a page with a JavaScript query? | <p>The title might be a bit misleading, but I don't know how else to explain it.</p>
<p>Basically I'm at this URL:</p>
<pre><code>www.mysite.com/shop/6-dresses#filter=[manufacturer:4]
</code></pre>
<p>And I want to make a link that would change it to </p>
<pre><code>www.mysite.com/shop/6-dresses#filter=[manufacture... | javascript | [3] |
5,623,511 | 5,623,512 | Python O(1) member data access possible? | <p>In C++, for access to 'named' member data, we constantly do:</p>
<pre><code>const unsigned int CHEESE_CAKE = 0;
const unsigned int CHOCOLATE_CAKE = 1;
...
const unsigned int CHERRY_PIE = 1050;
</code></pre>
<p>Then, when we want to access some specific resource matched to the string, we can simply do:</p>
<pre><c... | python | [7] |
2,284,444 | 2,284,445 | How do I keep the infinite timer that triggers JS function on html page? | <p>I need to call a function that updates some JS objects on the page every 2 minutes.
How would I do that?</p>
<p>I created a onload function and a countdown function that refreshes a whole page and therefore resets the timer until next page refresh, but this is not the way I want it. Is there a way to keep an infin... | javascript | [3] |
1,946,024 | 1,946,025 | Howto replace different values with tags in string? | <p>I have string:</p>
<pre><code>Lorem ipsum dolor [mytag]something[/mytag]sit amet, ipsum [mytag]something else[/mytag]a laoreet ultricies
</code></pre>
<p>and I want to get values "something" and "something else" and replace it.</p>
<p>How to do it?</p>
| python | [7] |
3,168,785 | 3,168,786 | variables declared outside function | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/855493/referenced-before-assignment-error-in-python">referenced before assignment error in python</a><br>
<a href="http://stackoverflow.com/questions/8934772/local-var-referenced-before-assignment">local var refer... | python | [7] |
3,320,186 | 3,320,187 | Get data from Gallerific onSlideChange | <p>Hello trying to get the current image data from gallerific</p>
<pre><code>onSlideChange:function(prevIndex, nextIndex) {
this.find('ul.thumbs').children()
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
.eq(nextIndex).fadeTo('fast', 1.0);
var image_id = this.find('img').eq(nextIndex)[0].id;
j... | jquery | [5] |
1,225,275 | 1,225,276 | Make Android app undeletable | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6415304/uninstallable-app-for-android">uninstallable app for Android</a> </p>
</blockquote>
<p>I need to install an Android app on a number of phones - the phones are only for using this app, so the user should ... | android | [4] |
882,307 | 882,308 | missing ; after for-loop initializer | <pre><code>var nodeWordsString = document.getElementById("nodeWordsTextArea").value.trim();
var nodeWordsStringArray=nodeWordsString.split(" ");
var strLength = nodeWordsStringArray.length;
for(int i = 0; i < nodeWordsStringArray.length; i++)----->******
{
for(int j = 0; j < nodeWordsSt... | javascript | [3] |
3,780,274 | 3,780,275 | Jquery everything correct but not executing | <p>What's wrong with the following jquery code? Why is it not working?
I am trying to count the number of columns in a table and set the width of this div with id "eDiv" but its not working</p>
<pre><code>$(document).ready(function () {
reset();
function reset() {
w = $("#eDiv tr:first td").length * ... | jquery | [5] |
5,948,207 | 5,948,208 | How to show Spanish Text in TextView? | <p>I have the following code and i try to show text in text-view which in Spanish. When I run app then it showing ? at some places. Can anyone tell me detailed procedure for showing Spanish. </p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R... | android | [4] |
1,811,104 | 1,811,105 | Evaluating postfix expressions in java | <p>I have a problem i can't find the wrong in this function it sometimes do well with some inputs but sometimes no for examle this Input "6 2 / 3 – 4 2 * +" can any one help.</p>
<pre><code>public static double Evaluating_postfix_expressions(String postfix) throws Exception{
StringTokenizer st = new StringTokeniz... | java | [1] |
3,916,842 | 3,916,843 | Round up from .5 in a % | <p>Ceiling rounds up no matter if you get .1, .3, .5, .7. or whatever the value is for the decimal.</p>
<p>I need to know how to only round up if you have .5. So for example [number].5 round up.</p>
<p>Anyone know how to do this?</p>
| c# | [0] |
4,148,639 | 4,148,640 | ImageButtons don't appear when filename starts with an a or b | <p>I'm running into a completely bizarre problem and am wondering if anyone has experienced something similar.</p>
<p>I couldn't figure out why an ImageButton was not appearing on a screen, when several similar ones worked just fine. I discovered that other images worked just fine when used for the same ImageButton XM... | android | [4] |
3,225,124 | 3,225,125 | Web View HTML in Android | <p>I'm using <code>Web View</code> in my app. I want to pass a value to HTML. For example, I'm making an online payment system; I want to pass a variable that holds the amount to the HTML that will display in my web view.</p>
<p>Any thoughts?</p>
| android | [4] |
230,020 | 230,021 | Login Control - Response.Redirect | <p>I have a usercontrol on a page that has a login control in it. This controls the display of another user control (if the user is not logged in they get the login control user control). I have some authentication code (see below) that runs when the user clicks the "Login" button. Basically I want it to post back t... | asp.net | [9] |
3,538,350 | 3,538,351 | KeyDown in jquery not updating when pressed | <p>I am trying to get the div to change the font size and update it on the screen. The following code works but there is a problem when you press a key you need to press another key to register the last key was pressed i dont know want that to happen. How would i make it update as soon as you press a key? </p>
<pre><c... | jquery | [5] |
1,413,260 | 1,413,261 | Javascript error in IE 7 | <p>Hoping you can help me...
I'm getting the following javascript error in IE7:</p>
<blockquote>
<p>Expected Identifier, String, or Number</p>
</blockquote>
<p>This is my code:</p>
<pre><code><script type="text/javascript">
$(function(){
$('#container').masonry({
// options
itemSelector : '.full',
... | javascript | [3] |
3,279,400 | 3,279,401 | python: iterator from a function | <p>What is an <a href="http://stackoverflow.com/questions/302459/what-is-a-programming-idiom">idiomatic</a> way to create an infinite iterator from a function? For example</p>
<pre><code>from itertools import islice
import random
rand_characters = to_iterator( random.randint(0,256) )
print ' '.join( islice( rand_chara... | python | [7] |
1,263,536 | 1,263,537 | Can a DOM object be an index/key in Javascript array? | <p>Would like to maintain a map/hash of DOM objects. Can they serve as key objects? If not, what are the alternatives, please? If there are better ways - kindly enlist them as well.</p>
| javascript | [3] |
3,019,918 | 3,019,919 | Creating an N by N grid of letters so that no two adjacent letters are the same | <p>I need to print out a N by N grid containing the letters A to F, so that no two adjacent letters are the same. The code below prints out an N by N grid, however I can only get the letters on the left and right to be different. I can't find a way to get the letters above and below to be different as well. I need to s... | java | [1] |
2,656,067 | 2,656,068 | touchesBegan doesnt get detected | <p>I have a viewcontroller like the following. But the touchsBegan doestnt get detected.
Can anyone plz tell me what is wrong.</p>
<pre><code>- (id)init
{
if (self = [super init])
self.view = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
return self;
}
-(void) v... | iphone | [8] |
2,135,970 | 2,135,971 | Javascript create variable from its name | <p>In PHP we can do this:</p>
<pre><code>$variable = "name_of_variable";
$this->{$variable} = "somevalue";
</code></pre>
<p>how to do this in javascript?</p>
<p>where use case should look like:</p>
<pre><code>function Apple(){
var name = "variable_name";
this.(name) = "value";
}
console.log(new Apple());... | javascript | [3] |
2,236,100 | 2,236,101 | iphone:significant location update not finding | <p>I am using a significant location, but showing update after a long distance.any clue please share.</p>
<p>In <code>didfinishlaunching</code> I am starting significant changes and then storing from <code>didupdatelocation</code> delegate method of <code>locationmanager</code>;</p>
<pre><code>id locationValue = [lau... | iphone | [8] |
3,007,493 | 3,007,494 | The Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine | <p>I had developed a web application using Visual Studio 2010 which one of the function is to import Excel file(.xls).However when I deployed the web application over the Server(Windows Server 2003) the following error will occurred:</p>
<blockquote>
<p>"The Microsoft.Jet.OLEDB.4.0 provider is not registered on the ... | asp.net | [9] |
1,957,278 | 1,957,279 | How to install my application on mobile | <p>I want to directly install my application after dowloading it from android market place
is it possible ?</p>
<p>and i also want to know about How android market install Update version of product </p>
| android | [4] |
508,311 | 508,312 | link button implementation | <p>I have a page, main.aspx page. I need to add a link to the main.aspx page. So that when employees clicks on the link, I have to show the employee profile (profile.aspx) page as a pop up. In order to do this can I use link button. I am working on .NET version 1.1. when I use link button I could not find the postbacku... | asp.net | [9] |
4,493,000 | 4,493,001 | Android Camera PictureCallback data seems corrupted on HTC Desire S | <p>I'm using PictureCallback to capture an image. And its working fine. But In HTC Desire S its not returning proper data. It returns a corrupted image like the following one</p>
<p><img src="http://i.stack.imgur.com/XPGhh.jpg" alt="enter image description here"></p>
<p>Here is the code that i used</p>
<pre><code> ... | android | [4] |
852,966 | 852,967 | stack trace and variable values | <p>Is it possible to get variable values included in a stack trace? I have just started using bugsense which emails the stacktrace to me and I wonder if there is some way in my code to put the variable values into the stacktrace output</p>
| android | [4] |
5,014,979 | 5,014,980 | Drop down list appears after the page loads, how to access this new DOM element? | <p>I need to attach a 'change' event to a dropdownlist.</p>
<p>This dropdown list is dynamically added to the page AFTER it has loaded.</p>
<p>So this curretnl doesn't work:</p>
<p>$("#mydropdown") </p>
<p>Since it wasn't in the DOM when the page finished loading.</p>
| jquery | [5] |
5,614,396 | 5,614,397 | Jquery highlight words in editable div | <p>I have an editable div and would like to highlight (apply a css class) to certain words WHILE the user is still typing in the div.</p>
<p>How would I do this using Jquery? </p>
<p>I tried using the <code>div.html().replace()</code> etc but it replaces it and then moves the cursor all the way back to the beginning.... | jquery | [5] |
2,630,497 | 2,630,498 | at any time map view contains only one location marker.Can anyone help me to do so? | <p>I am doing a project in which, when the user clicks at a particular location, a location marker should come there.If the user clicks at another location the location marker should go and marker should appear at new location, ie..at any time map view contains only one location marker.Can anyone help me to do so progr... | android | [4] |
3,754,329 | 3,754,330 | How to make a seperate list based on certain numbers from a previous list? | <p>Hey guys trying to finish my program. Here is my code:</p>
<pre><code>lists = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
#I want to make a new list consisting of only numbers above 50 from that list
if any(list > 50 for list in list):
newlists = list
</code></pre>
<p>I don't know how to do it. I'm doing somethi... | python | [7] |
1,032,635 | 1,032,636 | How to bind a dynamic DIV to Jquery Masonry plugin? | <p>I have some DIV's in my HTML that I load dynamically using AJAX.</p>
<p><code>$("#workPanel").load("ex.html");</code></p>
<p>I also have some static links that onclick, call the JQUery masonry to shuffle these dynamic DIV's..</p>
<pre><code> $('#filtering-nav li.1 a, li.2 a, li.3 a').click(function(){
... | jquery | [5] |
5,894,378 | 5,894,379 | jquery - Fancy Product Designer not working on localhost but working on local full path | <p>I am working to embed fancy product designer jQuery plugin into my site but when I open on localhost this plugin is not working but when I directly open this file from the destination where it is located on my pc then it is working...</p>
<p>plugin link : - <a href="http://fancyproductdesigner.com/" rel="nofollow">... | jquery | [5] |
4,563,330 | 4,563,331 | In C# what is the difference between the upper and lower case String/string? | <p>Newbie here, in C# what is the difference between the upper and lower case String/string?</p>
<p>Thanks</p>
| c# | [0] |
1,909,900 | 1,909,901 | A tutorial or serialization example in Android | <p>Can someone help me with tutorial or an example of serializable in Android?</p>
| android | [4] |
440,542 | 440,543 | unrecognizable email address from javascript validation | <p>I have a script written long ago by a freelancer that's worked fine until now. The script simply checks the email address from a form against some matching rules and returns true/false. Problem is for some reason it isn't recognizing an email address that has a very simple firstInitialLastName@domain.com syntax (no... | javascript | [3] |
866,701 | 866,702 | Javascript :: Syntax - variable assignment | <p>Let's have the following functionality:</p>
<pre><code>function transformMatrix(a, b, c, d, e, f)
{
this.data = [a, c, e, b, d, f, 0, 0, 1];
}
transformMatrix.prototype.inverse = function()
{
//..
this.data = newdata;
return this.data;
}
</code></pre>
<p>and</p>
<pre><code>var m1 = new transformMatrix(1,... | javascript | [3] |
3,399,191 | 3,399,192 | How to handle and use the default application of android programatically | <p>Can anyone explain me, how can I handle and use the default applications of my Android device programatically.
Also how can I get all the app information installed on my device and also unistalling them progromatically.
If possible kindly give me fews links to understand and using these things properly. </p>
| android | [4] |
1,896,540 | 1,896,541 | Validating read-only date field on multi-stage jquery form | <p>How would I validate the "Third Step" on my multi-stage jQuery form?</p>
<p>It can be found here: <a href="http://jsfiddle.net/methuselah/xSkgH/22/" rel="nofollow">http://jsfiddle.net/methuselah/xSkgH/22/</a></p>
<p>I want to prevent the user from going onto the next step without entering a value so ideally an err... | jquery | [5] |
5,171,101 | 5,171,102 | Datepicker and timepicker not working on appended elements | <p>I'm using <code>datepicker</code> and <code>timepicker</code> for my fields like this:</p>
<pre><code><input class="datepicker" name="sugg_date[]" type="text" value="" />
<input class="tp" name="sugg_time[]" type="text" value="" />
</code></pre>
<p>I'm also using this function to add more rows: </p>
<... | jquery | [5] |
2,989,976 | 2,989,977 | Add a ExpandableListView into a fragment | <p>I am developing an app for honeycomb, and I have put some tabs in the action bar, but now I don't know how to put an ExpandableListView in one of the tabs, or, in one of the fragments.</p>
| android | [4] |
156,080 | 156,081 | Use Android device as a simple server | <p>I need a very simple server that listens for connections, retrieves a question and simply answers yes or no. Then the connection is broken.</p>
<p>As my Android device is the only device that is powered on and connected to the internet 24/7, I'm thinking of using it as the server.</p>
<p>Is this possible, and how ... | android | [4] |
5,980,776 | 5,980,777 | Most efficient way to find the count of matches a string has against an array of words? | <p>let's say I have a string</p>
<pre><code>String test = "This is a test string and I have some stopwords in here";
</code></pre>
<p>and I want to see how many times the words in the array below match against my string</p>
<p>psudocode</p>
<pre><code>array = a,and,the,them,they,I
</code></pre>
<p>so the answer wo... | java | [1] |
4,931,058 | 4,931,059 | How to cancel UITableview reloaddata function in iphone | <p>In my application, I have pushed from oneviewcontroller to anotherviewcontroller. In that page I have started a timer and updated <code>UITableview</code> for every 1 sec (using <code>UITableview reloaddata</code>).</p>
<p>I have start the timer in <code>viewwillappear</code> function and invalidate timer in <code>... | iphone | [8] |
5,008,084 | 5,008,085 | how to navigate for a new window[IE] using datalist control | <p>i using a datalist control i am binding with hyperlink control</p>
<pre><code><asp:Hyperlink ID="lbURL" runat="server" Text='<%#
Eval("URL") %>' />
</code></pre>
<p>so now this hyperlink would contain an url that points to some web site so once user click on this link a new <strong>IE</s... | asp.net | [9] |
2,642,961 | 2,642,962 | Jquery - Selecting circular area of an image | <p>I need to be able to select both rectangular and circular areas within an image, not to crop them, but to create dynamic mapped areas inside an image. So far, I know how to enable the selection of rectangular areas but haven't found a way to do circular selections and be able to save geometry values of the created c... | jquery | [5] |
3,110,454 | 3,110,455 | JQuery 1.5 and new "Text JSON" datatype | <p>I have just updated to JQuery 1.5 and all my ajax calls that return JSON and a number of plugins instantly broke.</p>
<p>In my pre-1.5 code, I specified the dataType like:</p>
<pre><code>dataType: "json"
</code></pre>
<p>Changing the dataType to:</p>
<pre><code>dataType: "text json"
</code></pre>
<p>Fixes the p... | jquery | [5] |
436,504 | 436,505 | OnClickListener and OnTouchListener | <p>I have an 2 adapters extending BaseAdapater. The first Adapter (let's call it imageAdapter) loads an image base on an ID, the second adapter (pageAdapter) builds grids of images from the first adapter. I set the second adapter to a gallery. The idea is that I can sort have pages in an album where there are multiple ... | android | [4] |
1,706,124 | 1,706,125 | How to use Explode in my case? | <p>I have a variable that contains text with values according to an example below:</p>
<pre><code>$data = "5:7|4:1|504:2|1:3|"
</code></pre>
<p>And I would like to achieve results like this:</p>
<pre><code>$data[5] = 7;
$data[4] = 1;
$data[504] = 2;
$data[1] = 3;
</code></pre>
<p>I tried with explode:</p>
<pre><co... | php | [2] |
5,815,077 | 5,815,078 | jQuery Accordion | <p>I have the jQuery Accordion set up on a page of mine, and the first div is automatically expanded.</p>
<p>Is there a way to have that first accordion closed on page load?</p>
<pre><code>$(function() {
$( '#accordion' ).accordion({
collapsible: true,
autoHeight:false
});
});
</co... | jquery | [5] |
2,152,515 | 2,152,516 | JavaScript does not execute | <p>So in my head> I have the following piece of code:</p>
<pre><code>function dynamicPhoneAddon(){
while(true){
var phone = document.myform.phone.value;
document.getElementById('writeme').innerHTML ='<input type="hidden" name="retURL" value="http://URLREMOVED/thankyou.php?customer=' + phone + '">';
}... | javascript | [3] |
2,556,838 | 2,556,839 | How to find two same text nodes | <p>I have a table with data in in. For simplicity lets say it has only one column and no header. I want JQuery to iterate over all rows to see if the text in any of the cells in the same column is repeated in another row. Is there a simple way to do this?</p>
<pre><code><tr><td>one</td></tr>
&l... | jquery | [5] |
5,300,010 | 5,300,011 | how to apply watermark property on string value? | <p>i am using following line for printing <code>DB value</code> if true or <code>Not Applicable</code> if false using ternary operator. </p>
<pre><code>dReader = cmd_last.ExecuteReader();
if (dReader.HasRows == true)
{
while (dReader.Read())
{
jms_final = ((dReader["jms"].ToString().Equals("") ||
... | c# | [0] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.