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,479,447 | 1,479,448 | Check/Uncheck image's checkbox if not dropped/dragged | <p>I have a grid with images and every image has an checkbox to select it (for delete). The grid is sortable.</p>
<p>I want to check/uncheck the checkbox only if the image is not drapped/dropped (by simple click only).</p>
<p>I have done the following lines</p>
<pre><code>$('#images li').click(function() {
if ($... | jquery | [5] |
4,025,045 | 4,025,046 | how to set checkbox value false in datagridview one row | <p>how to set checkbox value false in datagridview one row</p>
| c# | [0] |
1,742,903 | 1,742,904 | How to get which button submitted the form on ASP .NET page inside FormView Inserted/Updated events | <p>I have two buttons on ASP .NET form: <strong>Save</strong> and <strong>Save & Return</strong>. If user hits <strong>Save & Return</strong> I would like to save data etc. and go to another page. If user hits <strong>Save</strong> I want to stay on current page. </p>
<p>But I don't know how to get information... | asp.net | [9] |
2,413,291 | 2,413,292 | Create zip style file without compression | <p>I know that there are many free and not so free compression libraries out there, but for the project i am working on, i need to be able to take file data from a stream and put it into some kind zip or pack file, but without compression, because i will need to access these files quickly without having to wait for the... | c# | [0] |
4,586,204 | 4,586,205 | page scope variables in ASP.NET | <p>I need to access some variables in a page in web application. The scope of variables is just in that specific page.
which one is the solution ? Session or ViewState ? or any better solution ?</p>
<pre><code> Private Property UserId() As Integer
Get
If Not ViewState("UserId") Is Nothing T... | asp.net | [9] |
1,802,045 | 1,802,046 | Need to make a List | <p>Need to make a List that each line have Image and data (text) </p>
<p>what is the right way? with list of table row ? or it is possible with ListView?</p>
<p>thanks for your help </p>
| android | [4] |
3,364,099 | 3,364,100 | How to get browser to navigate to URL in Javascript? | <p>What is the best (correct, modern, cross-browser, safe) way to get a web browser to navigate to a URL of your choice using Javascript?</p>
| javascript | [3] |
5,731,856 | 5,731,857 | app crash when click on back | <p>When i navigate on click row i push the poinofinterestview but when i click back app crash.
but if i comment [nextControllerp release]; it works or 5 or 6 time then it crashes</p>
<pre><code>(void)tableView:(UITableView *)TableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[TableView deselectRowAtIndexPat... | iphone | [8] |
2,946,118 | 2,946,119 | Is there cast in Java similar to <reinterpret_cast> in C++ | <p>I get in my function message array of bytes and type of object, I need to restore object from bytes. Is there in Java any cast like in C++ ?</p>
| java | [1] |
5,166,205 | 5,166,206 | Passing string into Onchange | <p>I am having a hard time passing a string constant into an onchange event.
code example which i am trying:</p>
<pre><code>var rvalue = "hi";
var r1 = '<label style="vertical-align:2px;">Group by: </label>' +
'<select id="pwx_documents_range_groupby" onchange="ravi('+rvalue+');">' +
'<op... | javascript | [3] |
4,822,491 | 4,822,492 | How to post data in part of a form using jquery | <p>I have a form like this:</p>
<pre><code><form id="abc">
<div id="xyz" >
//some elements
</div>
</form>
</code></pre>
<p>I have bound the submit event like this:</p>
<pre><code>$(function(){
$('#abc').submit(function(event){
//I want to post the data (form fields stored in element 'xy... | jquery | [5] |
1,597,908 | 1,597,909 | Looking for any tool for check C# program on types of OS on one computer | <p>i'am Looking for any tool for check C# program on type's of OS on one computer</p>
<p>for example: Win 98....Win XP...Vista...7...</p>
<p>is there any free and good tool ?</p>
<p>thank's in advancec</p>
| c# | [0] |
1,681,351 | 1,681,352 | Is there a way to use features in Android 2.1/2.2 while keeping a minSDK version to 3? | <p>I have a project that is just using Android 1.5 for programming, but with the proliferation of other handsets and some cool features in Android 2.2, we'd like to support the features without losing support for 1.5 or forking a new code base. Is it possible to do with Android SDK?</p>
<p>I do have some sense of the ... | android | [4] |
998,586 | 998,587 | Is echo slower than not using echo? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1394478/php-echo-vs-openclose-tag">php echo vs open&close tag</a> </p>
</blockquote>
<p>For example. Is this:</p>
<pre><code><p>Hello welcome to my site</p>
<p>Your name is <? echo $nam... | php | [2] |
4,765,551 | 4,765,552 | Echoing variables in PHP without calling them | <p>Let's say I have something like this:</p>
<pre><code>echo "This is a $variable";
echo "<?php echo $var; ?>";
</code></pre>
<p>How can I make it simply output:</p>
<pre><code>This is a $variable
<?php echo $var; ?>
</code></pre>
<p>Instead of trying to parse the variables?</p>
| php | [2] |
4,930,425 | 4,930,426 | C# - Input string was not in a correct format | <p>I am working on a simple windows forms application that the user enters a string with delimiters and I parse the string and only get the variables out of the string.
So for example if the user enters: </p>
<pre><code>2X + 5Y + z^3
</code></pre>
<p>I extract the values 2,5 and 3 from the "equation" and simply add t... | c# | [0] |
2,174,781 | 2,174,782 | How to increment the string value during run time without using dr.read() and store it in the oledb db? | <p>Here is my code, everything is working fine the only problem is with the ReadData() method in which i want the string value to be increment i.e AM0001,AM0002,AM0003 etc. This is happening till the execution of the program once i stop the execution of program, the second time when i run the program the same value i.e... | c# | [0] |
3,387,319 | 3,387,320 | Behavior of delete operator in javascript | <p>It seems in JavaScript you can’t <code>delete</code> function arguments but you
can <code>delete</code> global variables from a function.</p>
<p>Why this behavior?</p>
<pre><code>var y = 1;
(function (x) { return delete y; })(1); // true
(function (x) { return delete x; })(1); // false
</code></pre>
| javascript | [3] |
693,990 | 693,991 | Math.max and Math.min outputting highest and lowest values allowed | <p>so I'm trying to make a program that will output the sum, average, and smallest and largest values. I have everything basically figured out except the smallest and largest values are outputting 2147483647 and -2147483647, which I believe are the absolute smallest and largest values that Java will compute. Anyway, I ... | java | [1] |
2,568,345 | 2,568,346 | What's the best way to retrieve the position of an element relative to one of its ancestors? | <p>I have a td inside a table. </p>
<p>What's the best way to get its position relative to the table?</p>
<p>Should I be using offset, position or something else?</p>
| jquery | [5] |
1,245,777 | 1,245,778 | How can I only allow access to webpage at certain times of day? | <p>I am creating a website in which people order takeaways online. How can I only allow access to webpage at certain times of day? e.g. 5pm - 12pm etc...</p>
<p><strong>Update:</strong></p>
<p>I have figured out a solution which works with number of answers:</p>
<pre><code><?php
if (date('G')>17) {
... | php | [2] |
5,521,508 | 5,521,509 | apktool decompiler missing xml files in res folder | <p>I am using apktool to decompile the apk to get the res file. I downloaded the apktool and used command (apktool –d myapp.apk), it is extracting the res file but in value folder some xml files are missing.Please let me know the solution.Thanks..</p>
| android | [4] |
3,407,995 | 3,407,996 | Long Running task in android | <p>I want to do long running task, But if I use Activity or Service then it gives Timeout </p>
<p>exception, and if I use <strong>doInBackground(Context... params)</strong> which uses <strong>AsyncTask</strong> class </p>
<p>But i want to do syncronse task</p>
<p>plz help if there is any other better alternate for ... | android | [4] |
3,159,230 | 3,159,231 | How do i get a href value from a link inside li list? | <p>Here is a <a href="http://jsfiddle.net/nLyqA/" rel="nofollow"><strong>Fiddle</strong></a></p>
<p>I want to get the <code>href</code> attribute, I use <code>$(this).attr('href')</code> but it does not work!</p>
<p><strong>HTML</strong> : </p>
<pre><code><div class="wrap_atletas_interno">
<ul>
... | jquery | [5] |
3,436,693 | 3,436,694 | C# How does the MailAddress constructor validate mail addresses | <p>In reading about what would be the best way to validate a mail address via regular expressions, I came across with an attempt to validate with</p>
<pre><code>try
{
new MailAddress(input);
}
catch (Exception ex)
{
// invalid
}
</code></pre>
<p>What method does the <code>MailAddress</code> class use to ensur... | c# | [0] |
2,441,127 | 2,441,128 | "Simply Javascript" Question | <p>Im new to javascript. I've been learning for about a month and am currently reading the Simply Javascript book by Kevin Yank and Cameron Adams. </p>
<p>The fist few chapters started out really well but the book got really difficult in the chapter about events. They go on about the problems with events listeners ... | javascript | [3] |
806,909 | 806,910 | How to setup a virtual server? | <p>I want to create a website on my PC but the PHP wont work. </p>
<p>Is there any software that will allow me to simulate a server on my PC in order to get this (the website) done?</p>
| php | [2] |
3,594,515 | 3,594,516 | Best way to access variables unique to derived class through container of baseclass | <p>So I have a vector of pointers to baseclass, which is used to hold all instances of derived classes.</p>
<p>Base class:</p>
<pre><code>#ifndef BASE_H
#define BASE_H
Class Base
{
public:
virtual void DoSomething();
};
#endif
</code></pre>
<p>A derived class:</p>
<pre><code>#ifndef DERIVED_H
#define DERI... | c++ | [6] |
2,008,380 | 2,008,381 | How to overload a destructor? | <p>How do I overload a destructor?</p>
| c++ | [6] |
1,508,330 | 1,508,331 | Event Raise on Service | <p>Think I have a service that play musics , Also I have an actvity that bind to this service , I want when this service started a new music , raise an event and Activity shows a toast , how can I do this , like here </p>
<pre><code>Service service = new se...
BindToService();
service.OnMediaPlayerStarted(new Event(
... | android | [4] |
1,562,168 | 1,562,169 | 406 error in the Java code | <p>i am writing java code for calling REST API's .</p>
<p>i am getting 406 error with the following code</p>
<pre><code> public List<BlogBean> view_blogsbytagXml(String tag,String limit) {
final String VIEW_BLOGSBYTAG1="api/blogs/tag/"+tag+".xml?limit="+limit+"";
return webResource.path(VIEW_BLOGSBYTAG1)... | java | [1] |
1,103,275 | 1,103,276 | Embedding HTML tags into ASP.Net page | <p>I am trying to convert a few old ASP pages to ASP.Net and have run into a problem. In one of the pages, the previous coder set up a way to list items from a database that a user searches for using HTML tags. I know that in ASP HTML can be distinguished in functions by using the <% operator. I was wondering: is th... | asp.net | [9] |
461,554 | 461,555 | Horizontal Scroll View | <p>I have a horizontal scroll view, and inside I have a number of image views, they go across the screen and altogether are wider than the screen.</p>
<p>I've tried to scroll through them using touch, but nothing happens, am I missing something?</p>
| android | [4] |
2,788,978 | 2,788,979 | Javascript $ reference error | <p>I am new to Javascript and jQuery and I am the code below is from Jquery and Javascript. My problem is that when I run this code, I am getting an error in my error console which says : </p>
<pre><code>ReferenceError: $ is not defined.
</code></pre>
<p>I have no idea why it is not recognizing the $ sign. </p>
<pre... | javascript | [3] |
3,599,012 | 3,599,013 | Resource id # 4 php | <p>everytime i try and add one to the second column of a certain name, it changes the value to 5, if i echo my event it says it is equal to resource id #4. Anyone have any fixes?</p>
<pre><code><form action="new.php" method="POST">
<input type="text" name="input_value">
<br />
<input name="new_Use... | php | [2] |
2,861,032 | 2,861,033 | amember help getting username | <p>Hi eveyone
when a user logs in they are taken to a page where they can play mp3 and
download them but for the user can download a mp3 my script checks a data base for the download limit all users start off with 5 downloads per month .I need amember to store the logged in user name to a variable so that mysql knows w... | php | [2] |
586,530 | 586,531 | How to launch a Android Service when the app launches? | <p>I'm still fresh to Android and Id think the below config works for launching my service when the app launches.</p>
<pre><code> <service android:name=".PlaylistUpdaterService">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category andro... | android | [4] |
448,087 | 448,088 | writing into a text file line by line | <p>I am writing a text into a file..I am getting a column from database and stored it in a string and writing it in a text file....That column contains c# code and it is writing like a single line with small squares for next line(space)...i need to write it line by line...Here is my code...</p>
<pre><code>using (var d... | c# | [0] |
5,036,264 | 5,036,265 | formal Concept Analysis Tool | <p>i need an Open source FCA ( formal Concept Analysis) Tool build by .net ( will be great if C# with any version)</p>
<p>i currently used conexp 1.3 ( java one ) but im not good in Java as a Programming language.</p>
<p>so any body know ? </p>
| c# | [0] |
5,967,719 | 5,967,720 | Java Huge data store | <p>I have a requirement to store huge amount of data in Java/collection API. Which would be suitable for that Array or Arraylist. And why</p>
| java | [1] |
5,373,907 | 5,373,908 | How to keep center item of listview with one color always while scrolls in android | <p>i have a listview. the center item of list should be in diff color.when scrolls.,the items comes at that particular position should change that color & contin. back to original colr after cross that position. do u know how it is?</p>
| android | [4] |
5,806,956 | 5,806,957 | How to make integrated Barcode Scanner Android working properly | <p>I currently develop a bookmarking application. So I used the zxing project to scan the ISBN, however I don't know why after integrating the scanner it seems not working well. Sometimes, it catch well the barcode, but when I repeat it takes long time and gets wrong number. It seems odd to compare with this app <a hre... | android | [4] |
1,371,484 | 1,371,485 | JQuery anonymous function not firing | <p>JQuery newbie. </p>
<p>With this code the alert for '2' works, but never the alert '1'.
I can switch around the order and get the same result, and JQuery must be loaded otherwise neither would work. So whats the problem with the declaration of the anonymous function?</p>
<pre><code> <script type="text/javas... | jquery | [5] |
4,089,022 | 4,089,023 | AppendTo does not work as desired | <p>When I say, <code>msg.appendTo(ele.parent().next())</code>, the msg successfully gets appended to a <code><p> with class=foo</code></p>
<p>How can I specify it explicitly in the statement?</p>
<p>I tried <code>msg.appendTo(ele.parent().next().find('.foo'));</code></p>
<p>but it doesn't work</p>
| jquery | [5] |
3,534,774 | 3,534,775 | how to debug navit | <p>I have a sourcecode from navit and want to expand one function and install it on samsung galaxy tab,
but I have no idee how to debug it on my notebook. I can use ms visual studio or eclipse as IDE.
Could someone please help me?</p>
| android | [4] |
829,471 | 829,472 | Putting the system to sleep on Android | <p>I'm developing an application for Android 1.6 and newer which contains a functionality that switches the phone to sleep.</p>
<p>I tried to find a way of how to do that and I found the <strong>goToSleep</strong> method in the <strong>PowerManager</strong> class, but unfortunately the usage of that method requires <s... | android | [4] |
2,931,567 | 2,931,568 | How to show a image background when button is scelected or clicked | <p>i have this code in the button click to show selection image when the button is clicked</p>
<pre><code> UIImage *img1 = [UIImage imageNamed:@"settingpress.png"];
[_btnclick setImage:img1 forState:(UIControlStateHighlighted+UIControlStateSelected)];
[img1 release];
</code></pre>
<p>but ... | iphone | [8] |
124,137 | 124,138 | Why might the "fatal error C1001" error occur intermittently when using msbuild? | <p>Possibly related to my last question (note: different error code):</p>
<ul>
<li><a href="http://stackoverflow.com/questions/4371556/why-might-the-fatal-error-c1075-error-occur-intermittently-when-using-msbuild">Why might the "fatal error C1075" error occur intermittently when using msbuild?</a></li>
</ul>
<p>On ou... | c++ | [6] |
4,178,383 | 4,178,384 | Hide Div on Window Maximize & Resize > 1600px - JQuery | <p>How would I hide a HTML div when the browser window is either maximized or resized greater then 1600px using jquery?</p>
<p>I currently have it set so the div hides when the page is greater then 1600px on load but cannot get it to hide when the window is maximized or resized after the page has loaded. Below is the ... | jquery | [5] |
4,535,812 | 4,535,813 | PyRun_InteractiveLoop globals/locals | <p>I am trying to set local/globals variables in PyRun_InteractiveLoop call.
Cant figure out how to do it, since, unlike exec counterparts, loop doesn't accept global/local args.</p>
<p>What am I missing? </p>
| python | [7] |
267,525 | 267,526 | purpose of this javascript test function | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3911690/question-on-this-javascript-syntax-what-does-this-do">Question on this JavaScript Syntax (“What Does This Do?”)</a> </p>
</blockquote>
<p>what is the purpose of this line of code: <code>/xyz/... | javascript | [3] |
6,016,842 | 6,016,843 | Reading and writing pickles to an encoded stream | <p>A file format commonly used in our system is base64 encoded pickles - at the moment I can translate to and from strings in this trivial format with some simple code like this:</p>
<pre><code>def dumps( objinput ):
"""
Return an encoded cPickle
"""
return cpickle_dumps( objinput ).encode( ENCODING )
... | python | [7] |
286,823 | 286,824 | inserting data into MYSQL database using python | <p>I am trying to insert data into MYSQL database using a python script and when i execute my program i get an error "Not enough arguments for format string" at the following line.</p>
<pre><code>_cursor.execute("INSERT INTO `md_patentinfo` (patentno, filed)
VALUES ('%s',STR_TO_DATE('%s','%M %d,%Y'))" %(patent... | python | [7] |
556,636 | 556,637 | Executing function at specified time | <p>I want to execute some code at 12 o clock everyday. The only way I can think todo this is to</p>
<ol>
<li>sleep until 12 o clock </li>
<li>execute code</li>
<li>sleep 24 hours (minus time takes to run code) </li>
<li>goto 2</li>
</ol>
<p>Is there a built in API I could use to schedule events like this?</p>
<p><em... | python | [7] |
5,730,588 | 5,730,589 | No "Distribution Provisioning Profiles" tab | <p>Today under developer.apple.com member center > iOS Provisioning Portal > Provisioning menu
when clicked only brings up the "Development Provisioning Profiles"
it has to "Distribution Provisioning Profiles" !
Any idea why this is so? Any change in the way we need to create "Distribution Provisioning Profiles"</p>
| iphone | [8] |
4,106,437 | 4,106,438 | How does the load() function allow the user to provide a callback? | <p>In javascript it's very popular for libraries/frameworks to let us define a callback function for post-processing of data.</p>
<p>eg.</p>
<pre><code>load("5", function(element) {
alert(element.name);
});
</code></pre>
<p>I wonder how the load() function looks like to be able to let the user provide a callback... | javascript | [3] |
4,530,465 | 4,530,466 | How to retrieve class names of all child elements at multiple level in jquery? | <p>I want to retrieve class names of child elements at multiple level. I'm trying following, but it only gives the class names of rear child elements. What am I doing wrong ?</p>
<pre><code> <script type="text/javascript">
$(document).ready(function(){
thisP=$("#myParagraph");
getChildStyles(thisP... | jquery | [5] |
3,294,540 | 3,294,541 | Change checkbox values on button click | <p>I have a tableview with all cells having a button each. Each button is designed as a checkbox and has the functionalities of checkbox. I have a toolbar in the same view, and on the click of a toolbar button I need to change the value of all the checkboxes in the table. Right now I am not able to find a solution for ... | iphone | [8] |
5,136,828 | 5,136,829 | binding dropdownlist in repeater's item template using an sql datasource | <p>We are having some performance issues with a page and I wanted to ask about this. If I have a repeater and in the itemtemplate of the repeater I have a dropdownlist bound to an sql datasource, will that selectcommand be called once per each item even though the same result is returned each time? If so, as a quick ... | asp.net | [9] |
1,559,878 | 1,559,879 | Idiomatic way to print arbitrary number of items from a list on each line | <p>I want to print data from a list, such as:</p>
<pre><code>['0.10', '0.15', '-0.25', '0.30', '1.50', '1.70']
</code></pre>
<p>However, rather than printing one element in the list using something like:</p>
<pre><code>for item in list:
print item
</code></pre>
<p>I want to print an arbitrary number of items fr... | python | [7] |
5,256,474 | 5,256,475 | Convert array to have specific keys which have prefix "suf_" | <p>I have an associative array. In this array some keys have prefix "suf_". how I create a new array with these suffixed key and value? see the example below</p>
<pre><code>Array
(
[buildings_sum] =>
[accidental_damage] => 0
[landslip_cover] => 0
[loss_of_rent] =>
[loss_period] =>
[contents_sum] =>... | php | [2] |
1,120,419 | 1,120,420 | How to determine which code is faster? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/111368/how-do-you-performance-test-javascript-code">How do you performance test JavaScript code?</a> </p>
</blockquote>
<p>I am currently trying to learn some JavaScript using js-assessment, which can be found h... | javascript | [3] |
585,911 | 585,912 | How to get a picture from url site and store it to device? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3296850/android-how-to-store-images-from-url-save-it-in-sd-card">Android: How to store images from url & save it in SD card</a> </p>
</blockquote>
<p>I parse a xml file from web</p>
<p>and it has a picture ... | android | [4] |
2,202,610 | 2,202,611 | Jquery Drop Down Box Click Outside | <p>I am trying to make it so when i click outside the box the box scrolls up but i cant manage to get that done.</p>
<p><a href="http://jsfiddle.net/t9hq9/19/" rel="nofollow">http://jsfiddle.net/t9hq9/19/</a></p>
<pre><code> <style type='text/css'>
#content {
width: 400px;
border-left: 10px solid ... | jquery | [5] |
5,485,761 | 5,485,762 | Functions defined on a object within a prototype | <p>I'm trying to define functions on a object within a prototype like in this example:</p>
<pre><code>function Particle = {
this.calculate.x = 0;
}
Particle.prototype.calculate.calculateX = function() {
//do calculation
}
var particle - new Particle();
</code></pre>
<p>If I explore particle in the browser cons... | javascript | [3] |
552,563 | 552,564 | A JavaScript language problem | <p>In the following example</p>
<pre><code><!DOCTYPE html>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
var str = '11';
str = str++;
alert(str); // 11
</script>
</code></pre>
<p>why is the result <code>11</code> and not <code>12</code>?</p>
<p>In th... | javascript | [3] |
199,980 | 199,981 | XCode4 : Changing BundleID | <p>I created an app which called say Foo in XCode. </p>
<p>When I decided to publish this app, I wanted to name the app FooApp instead of Foo. So, that is the bundleID that was created.</p>
<p>The problem now is that the bundle ID's in XCode vs. iTunesConnect do not match.</p>
<p>I tried to edit info.plist but it se... | iphone | [8] |
4,008,817 | 4,008,818 | Loading images/videos on top of webpage's content | <p>I have seen several websites where an image shows up on top of everything else. What is this script/library called that helps you accomplish this?</p>
| javascript | [3] |
1,801,251 | 1,801,252 | Design item template with xaml | <p>I have to design a calculator like interface.
i'm utterly confused with how to do this.can any provide me with an insight?
how to bind data with these buttons at runtime.?</p>
| c# | [0] |
1,079,173 | 1,079,174 | Stepping through array with time delay | <p>I have tabs on my page each containing unique content. I want to automatically rotate the tabs and content without them being clicked upon. As soon as the page loads I want this function to begin using <code>window.onload = function()</code>.</p>
<p>I have the following JavaScript array:</p>
<pre><code>var HomeTa... | javascript | [3] |
4,920,769 | 4,920,770 | I've error in getDefaultToolkit and CreateRobot() while building robot class in android as same as java for capturing screen? | <pre><code> Toolkit toolkit =Toolkit.getDefaultToolkit();
if (toolkit instanceof ComponentFactory) {
peer = ((ComponentFactory)toolkit).createRobot(this, screen);
}
</code></pre>
<p>In above code i've error in 1st and 3rd line.</p>
| android | [4] |
2,001,294 | 2,001,295 | How can I include more than one Javascript file? | <p>I want to use more Javascript files on one canvas, but I can't connect them. For example I want to write a Javascript file that contains all functions and an other Javascript file which is using them.</p>
<p>Show me a guide, how can I make this connection?</p>
<p>Thanks.</p>
<p>This is the first javascript file :... | javascript | [3] |
1,297,737 | 1,297,738 | opening a html page on the client from server side | <p>On the server I receive xml from a webservice, I use xslt transformation on this xml to create a htm page. Now I need to show this htm page to the user by opening it in a new browser window. How do I achieve such functionality? My website is written in ASP.NET.</p>
<p>I have tried using</p>
<p>Response.Write("");
... | asp.net | [9] |
367,190 | 367,191 | displaying/adding to/removing from a list of items in asp.net? | <p>Users on my site can have any number of email addresses linked to their account. I'm making a page to do this. On page load, all the email addresses associated with a user are pulled from the database and displayed on the page. Then, the user should be able to add, edit and remove these emails.</p>
<p>Lots of websi... | asp.net | [9] |
4,584,472 | 4,584,473 | How can I clear a timer when a variable is set to true? | <p>I'm just trying some JS animations, and I have animated a box that moves within borders, but I would like the animation to stop when the box hits one of the borders. This is one of the functions I use:</p>
<pre><code>function AnimMoveRight() {
var interval = setInterval("moveRight(10)", 40);
if (hitRight ==... | javascript | [3] |
4,945,797 | 4,945,798 | How to show toolPopup for text longer than control (Textbox) length? | <p>Is there an easy way to say, on textboxHover, if the text inside the box or in other control
isn't completely visible, have a popup tool come up showing the complete
contents of the box?
Just like
<img src="http://i.stack.imgur.com/BBi9d.png" alt="enter image description here"></p>
| c# | [0] |
2,024,652 | 2,024,653 | How to install a shared library to a non standard path in Android? | <p>I have a userspace driver that gets picked up by a daemon. The daemon looks for userspace drivers in a specific directory (system/foobar/drivers). How can i tell Android.mk to install the shared library into system/foobar/drivers instead of system/lib.</p>
| android | [4] |
4,651,765 | 4,651,766 | Writing a specific line from one text file to other text file using c# | <p>I Am using sharp develop. I am making a Win App using C# . I want my program check a text file named test in drive c: and find the line which contains "=" and then write this line to other newly created text file in drive c: . </p>
| c# | [0] |
1,524,659 | 1,524,660 | Overwrite entire object in place | <pre><code>x = something_mutable
y = x
z = x
# sometime later make z reference something else, e.g. a list
my_list = [1, 2, 3]
# how to make x, y, z to reference my_list without using x and y explicitly
???
</code></pre>
<p>Is it possible? Not really going to use it, but curious.</p>
<p>Related question. How to era... | python | [7] |
3,115,294 | 3,115,295 | How to implement shoping cart application for iphone? | <p>I have implemented one iphone application in which i want to add shoping cart functionality.I have no idea about how to implement this functionality so please give me idea about that.
I have seen ebay and amazon application in app store i want to implement that type of application.</p>
| iphone | [8] |
2,913,321 | 2,913,322 | Python function confusion | <p>While programming with python I am often confused with the following ambiguity:</p>
<p>should it be: function(a) or a.function(). Although the question is too general and can someone tell me which situation happens when?</p>
| python | [7] |
352,645 | 352,646 | traceroute command not working in android | <p>I am trying to execute <code>traceroute</code> command following way:</p>
<pre><code>Runtime r = Runtime.getRuntime();
Process p = r.exec("traceroute google.com");
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
while ((inputLine = in.readLine()) != null) {
Log.d(tag,... | android | [4] |
1,353,339 | 1,353,340 | How to extract the title of a youtube video using python | <p>I want to extract the title,img thumb etc of a youtube video ? how can i do this in python </p>
| python | [7] |
1,504,591 | 1,504,592 | jQuery add variable | <p>I found a script <a href="http://stackoverflow.com/a/10400225">here</a> that equalizes the height of divs in a row (bootstrap). How do you add 20 for instance to the new height it calculates?</p>
<p>Here is the script and a jsFiddle:
<a href="http://jsfiddle.net/MVP3C/" rel="nofollow">http://jsfiddle.net/MVP3C/</a>... | jquery | [5] |
1,584,988 | 1,584,989 | Object literals in javascript. How to access quoted "prop s" of object? | <p>In javascript tutorial I've see the next object definition:</p>
<pre><code>var myObject = {
validIdentifier: 123,
'some string': 456,
99999: 789
};
</code></pre>
<p>What the purpose of such key-value pairs with quoted ones as keys? How one could operate with such values?</p>
| javascript | [3] |
242,740 | 242,741 | How to parse a Double value from a scanner object in a loop and pass to a new Array? | <p>Ok, I'm a bit closer but still getting a few errors. Netbeans is telling me my loanArray is not initialized and that it can't find the readLine() method? Also, my attempt to close in my finally block is listing errors.
Here's my code-</p>
<pre><code>// generate 2 constants for use in the array lookup values.
fina... | java | [1] |
365,829 | 365,830 | UIImagePickerControllerSourceTypeCamera problem | <p>How to open Camera in application like the default Camera application with photolibrary
in botttom of it?</p>
| iphone | [8] |
1,875,506 | 1,875,507 | What is the best possible way to pass a Mulitline String as function argument? | <p>What will be the Best practice to pass Multiline String as a Javascript function's argument.</p>
| javascript | [3] |
1,106,767 | 1,106,768 | File Upload With Progress | <p>I know this has been discussed a number of times, but the problem I'm having at the moment is finding a solution that is easy to work with and does not require much hacking around.</p>
<p>I want to be able to upload a file, and report on its progress. I've been playing with SWFUpload, and it seems like a bit to muc... | php | [2] |
3,542,530 | 3,542,531 | How to Get total missed call Value fron android Call log? | <p>I want to get Total number of missed call from Call log ,and to set that value in textView</p>
<p>i Saw this code somewhere.. but i am not getting result </p>
<p>public int getMissedCall(){
String[] projection = { CallLog.Calls.CACHED_NAME, CallLog.Calls.CACHED_NUMBER_LABEL, CallLog.Calls.TYPE };
String wh... | android | [4] |
3,886,622 | 3,886,623 | i want to convert List<object> to ArrayList but not getting any output | <p>here is my code...</p>
<pre><code>[WebMethod]
public ArrayList GetDataByModuleName(string ModuleName)
{
ArrayList m = (ArrayList)BAL_GeneralService.GetDataByModuleName(ModuleName);
return m;
}
</code></pre>
<p>but not getting any output...</p>
| asp.net | [9] |
4,596,721 | 4,596,722 | How can I execute some code 1 time when space bar is pressed and keeps being pressed in java | <p>I've been working on my game and now, my player needs to shoot. He does shoot but to decrease the ammo, it keeps decreasing as long as I hold the space bar. I'd like to know a code that lets me remove -1 ammo each time the spacebar is pressed and even if it's still pressed. Thanks, hope you answer me soon!</p>
| java | [1] |
651,089 | 651,090 | How to create percentage image | <p>I am learning PHP and I just made a simple voting poll. It works and shows the percentage for each question (there are 3 questions in total), but I want also to show a bar that shows the percentage as well (so if the first question is 50% and the bar is 100px, the bar for that question should be 50px).</p>
<p>Here ... | php | [2] |
2,386,289 | 2,386,290 | Why won't this jQuery function perform properly? | <p>I'm a total noob when it comes to jQuery but I am trying to learn. What in tarnation am I doing wrong here?</p>
<pre><code>function MakeCall(url) {
var result;
$.ajax({
url: url,
dataType: "text",
success: function(txt) {
result = txt;
return;
}
});
alert(result);
return result;
}
<... | jquery | [5] |
4,161,717 | 4,161,718 | need help in contrast stretching | <p>i have found this formula and its description on a site</p>
<pre><code>l(x,y)=(l(x,y)-min)(no of intensity levels/(max-min)) + initial intensity level
</code></pre>
<p>where, I( x,y ) represents the images, on the left side it represents the output image, while on the right side it represents the xth pixel in the ... | c++ | [6] |
105,172 | 105,173 | ASP.NET get windows username outside of page | <p>I have an Existing ASP.NET reporting application using windows authentication. A lot of the report generation code is in separate classes and has a core error logger that I didn't write, this error logger I believe was built for windows apps as it uses WindowsIdentity.GetCurrent().Name. In the case of ASP.NET I beli... | asp.net | [9] |
3,976,928 | 3,976,929 | Is there a way to test an iPhone App on my iPod touch without registering with Apple? | <p>Is there a manual way to load an iPhone App onto the iPod touch?</p>
| iphone | [8] |
4,529,308 | 4,529,309 | Reach a windows form title text? | <p>I wonder how I can reach the title text in a windows form from a reference of the object like this</p>
<pre><code> reference. ??? = "Title one";
</code></pre>
<p>Help is preciated! Thanks!</p>
| c# | [0] |
5,104,205 | 5,104,206 | LG optimus black android mobile front camera issue | <p>i am using LG optimus black android mobile.I tried to use front camera using parameters.set("camera-id",2); but unable to access front camera it always uses back camera.
I am using android version 2.2. any ideas?</p>
| android | [4] |
5,719,331 | 5,719,332 | Print an ASCII art diamond | <p>This is a homework question I got for my programming course at school, and I'm kind of lost, so please help. Here is the question:</p>
<blockquote>
<p>Write an application program that
prints a diamond of asterisks (*) on
the screen. The number of lines in
the diamond is given by the user. As
an example... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.