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 |
|---|---|---|---|---|---|
543,113 | 543,114 | How can close the tab when open the new tab in same browser? | <p>I have opened a website in a browser tab. Now, when I open a new tab from this website, I want to close the first tab in that browser.</p>
| javascript | [3] |
5,653,099 | 5,653,100 | clearInterval not working as expected | <p>I have the following bit of code which is used to rattle divs. </p>
<p>I use clearInterval to stop the rattling but it doesn't appear to work.</p>
<p>Any idea why please?</p>
<pre><code>squares = $('.' + square_class);
var rattle;
rattle = setInterval(function() {
squares.delay(2000).effect('shake', { times... | jquery | [5] |
1,229,719 | 1,229,720 | Why am i getting 403 error reading a website url on java? | <p>I'm trying to read <a href="http://www.meuhumor.com.br/" rel="nofollow">http://www.meuhumor.com.br/</a> on java using this:</p>
<pre><code>URL url;
HttpURLConnection connection = null;
try{
url = new URL(targetURL);
connection = (HttpURLConnection)url.openConnection()... | java | [1] |
2,820,714 | 2,820,715 | Android Resource leak try | <p>Below are my codes, I'm having this weird warning: <code>Resource leak: 'br' is never closed</code> . Could anyone help me with this warning. I do not want my app to crash or cause any problems in the future.</p>
<pre><code>File sdcard = Environment.getExternalStorageDirectory();
File file = new File(sdcard,"/St/"+... | android | [4] |
4,309,684 | 4,309,685 | Asp.net Membership Logged in Users list | <p>I used following in my application to find the list of logged in user. It gives the list of logged in user but when i close the browser and clear the browser history, it shows the user isonline status true. Please can any one tell me where i am wrong?</p>
<p><strong>When User signIn am validating user and redirect ... | asp.net | [9] |
956,446 | 956,447 | i have to search the string from html files using c# in asp.net, how to get the string from html file | <p>i have to search the string from html files using c# in asp.net, how to get the string from html file? this is the code im having </p>
<pre><code> private string getHtml(string key)
{
StreamReader f = new StreamReader("path");
string htmlTag = key;
string str = f.ReadToEnd().ToString();
Match m... | asp.net | [9] |
297,787 | 297,788 | Android ListView Item Colour and Scrolling issue | <p>I have a messaging application that displays a list of received messages however I want to highlight the messages that have NOT been read with a colour(Yellow) whereas the other list items remain the default list item colour (White).</p>
<p>I have managed to do this using the code below however whenever I scroll th... | android | [4] |
2,369,972 | 2,369,973 | Comparing values in two strings | <p>I'm trying to compare two strings with one another. One contains for example :</p>
<pre><code>String x =" aa bb cc dd ee "
</code></pre>
<p>and the other one :</p>
<pre><code>String y =" aa bb "
</code></pre>
<p>Now I want to do this </p>
<pre><code>if (any values from String x EXISTS IN String y)
if (y.matc... | java | [1] |
1,707,171 | 1,707,172 | How to edit path in a Windows link file | <p>I want to edit the path in a link file which leeds to a file or folder which changes it's path quite often. I found some things in C or other languages but never for C#. </p>
<p>Test.lnk -> <code>C:\TestFolder 1.2.3\</code><br>
I want to change that link using C# to<br>
Test.lnk -> <code>C:\TestFolder 1.2.4\</code... | c# | [0] |
3,110,438 | 3,110,439 | C++: Correct use of stream operations | <p>I am trying to learn to use the file stream correctly. The following is a snippet of code that I am maintaining. It works fine, but I was wondering whether the usage is correct and whether there are better ways to perform these tasks. For example, the use of SEEK_SET and ios::beg together. Also, is ios::ate really n... | c++ | [6] |
2,991,651 | 2,991,652 | How to find an object from a List of objects? | <p>I got a list of columns in the variable ParentColumnNames, i need to find a single Column object within this list using the selectedvalue of another combobox. How can i get that? Please help...</p>
<pre><code>List<Columns> ParentColumnNames = new List<Columns>();
ParentColumnNames = metadataobj.Get... | c# | [0] |
2,128,135 | 2,128,136 | jquery submit on change with a twist | <p>I have a form with a single select_field that gets submitted via jquery whenever the select field is changed.I use something like this:</p>
<pre><code>$('#scope').change(function() {
this.form.submit();
});
</code></pre>
<p>Where scope is the ID of the select_field. This works as expected. </p>
<p>We want to ... | jquery | [5] |
157,063 | 157,064 | JavaScript - How to load external script NON-asynchronously? | <p>I'm looking for code that allows me to use JavaScript to load another JavaScript file NON-asynchronously. I tried this:</p>
<pre><code>var script=document.createElement('script');
script.setAttribute("type","text/javascript");
script.setAttribute("src", "jquery.min.js");
document.getElementsByTagName("head")[0].app... | javascript | [3] |
2,094,619 | 2,094,620 | Difference in if()? | <p>I'm learning C++ and I encountered 2 different types of writing a piece of code, and I wanted to know what the difference is.</p>
<p>Is there any difference between:</p>
<pre><code> if(z==true)
{
cout << "Yes";
}
else
{
cout << "NO";
}
</code></pre>
<p>and:</p>
<pre><code> if(z==tru... | c++ | [6] |
2,761,073 | 2,761,074 | Prevent time/memory intensive php script from crashing/slowing continuously | <p>I have a php script that exports out results in excel using PHPExcel plugin. Now since the result has around 40 columns and above 15k+ rows, it seems to be taking a lot of time, which isnt a problem for me.</p>
<p>However what I find is that the apache server(of my WAMPserver installation) keeps crashing after cer... | php | [2] |
5,883,131 | 5,883,132 | Android expanded list item | <p>How to change the color of groupItem in ExpandableListView when it is expanded?
And change to white color when it is not expanded?</p>
| android | [4] |
4,459,906 | 4,459,907 | Is there an alternative to .load() in jQuery? | <p>Is there an alternative to .load() in jQuery?</p>
| jquery | [5] |
2,714,282 | 2,714,283 | Learning PHP from beginner to advanced | <p>I've dabbled with PHP for a few years now and I'm capable of most of the basic things, building login forms etc but from my time on here I've noticed there's so much more I need to learn, like best practices, security issues etc and so I want to learn everything from the very basics. </p>
<p>In the past I've used f... | php | [2] |
716,492 | 716,493 | Reg: Counter Variable in Thread | <p>I have a requirement that should assign a counter variable for each thread that gets invoked. But I am not getting the expected results, actually the counter is duplicating in the threads. I created a dummy table and a proc to insert the counter value into the table. Is there anyway that the code can be changed so t... | java | [1] |
4,736,316 | 4,736,317 | getSettings().setLoadWithOverviewMode(true) undefined method | <p>I have something like this in my code</p>
<pre><code>WebView ourweb;
//some code here
ourweb = (WebView) findViewById(R.id.webview);
ourweb.getSettings().setJavaScriptEnabled(true);
ourweb.getSettings().setLoadWithOverviewMode(true);
ourweb.getSettings().setUseWideViewPort(true);
ourweb.getSettin... | android | [4] |
4,834,195 | 4,834,196 | writing python script on windows | <p>I am new to python scripts .</p>
<p>I have few repetative testing tasks such logging to various IM's </p>
<p>ex (OCS,different public messengers) etc . </p>
<p>Is it possible to automate these tasks using python .</p>
<p>If so from where do I start with ? </p>
<p>Working on windows 2003 server . </p>
<p>I know... | python | [7] |
4,370,134 | 4,370,135 | how to not allow old browser user view my page? | <p>I want to check if user's browser support query, if it don't the webpage will not show and just show a sentence say your browser can't view the page. but without Jquery , I don't know much about original javascript how to do <code>#('body').html('u cant view the page');</code> something like that.</p>
| javascript | [3] |
4,991,229 | 4,991,230 | 100K curl requests | <p>I am using curl_multi_exec to process over 100K requests. I do 100 requests at a time because curl_multi_exec can only handle 100 requests at a time to eventually get to 100K requests. We have added multiple servers to this system to spread the load [we are using load balancing]. What is the best way to have curl ha... | php | [2] |
1,515,647 | 1,515,648 | Strategy to auto-generate PHP code? | <p>I'm developing a framework which programs parts of itself dynamically after creating ER-Diagrams in the backend. As a PHP newbie I wonder if there's anything much fancier than just opening a plain xyz.php text file and then adding the dynamically generated code to that file?</p>
| php | [2] |
5,672,014 | 5,672,015 | How to copy a file in filesystem? | <p>I would like to know the best way to copy a file in the filesystem? (android java function )</p>
<p>(sdcard/video/test.3gp -----> sdcard/video_bis/test2.3gp)</p>
<p>Is there an example somewhere? </p>
<p>Regards</p>
| android | [4] |
168,027 | 168,028 | Add item to menu wich pops up when i click on contact | <p>So, is there a way i can select contact in Androids default contact list and import that contact to my Android aplication?</p>
<p>I have looked trough <a href="http://stackoverflow.com/questions/2833270/how-to-add-button-or-menu-in-contacts-list">How to add button or menu in contact list</a> and <a href="http://sta... | android | [4] |
5,400,935 | 5,400,936 | I have a list of integers , how to sort it? | <p>Have a list of integers like</p>
<pre><code>List<Integer> l = new ArrayList<Integer>();
</code></pre>
<p>I think calling <code>l.contains</code> is slow, how to sort the list. After sorting, will <code>l.contains</code> behave faster?</p>
<p>Is there any sortedList I can use directly?</p>
| java | [1] |
2,696,764 | 2,696,765 | JavaScript closure problem please explain | <p>This is a function taken from Pro JavaScript techniques that I'm trying to understand, but don't. The purpose of the function is to slowly reveal a hidden element by increasing its height over a matter of one second. The comments in the code are provided by the author of the book. I don't understand anything startin... | javascript | [3] |
4,836,121 | 4,836,122 | Txt file input error Java | <p>I'm getting the error </p>
<pre><code>Exception in thread "main" java.lang.NumberFormatException: For input string: "scores.txt"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
at java.lang.Double.parseDouble(Double.java:510)
at ExamAverage.main(ExamAverage.java:30)
C:\Users\Peter\AppDa... | java | [1] |
171,051 | 171,052 | PHP Cannot Write to File - 777 Permissions! | <p>Help! PHP cannot write to any files in my web directory. I don't know why! I have the permissions of the file set to 777, but it is not working! Here is the code in question:</p>
<pre><code><?php
if ($f=fopen('test.txt', 'a'))
echo 'file opened';
fclose($f);
</code></pre>
<p>Nothing is being echoed! I ... | php | [2] |
322,970 | 322,971 | Hover and mouse over simultaneous jquery effects | <p>I have a button with a hover effect:</p>
<pre><code>$('.donations').hover(function() {
$(this).find('#donate_expand_top').hide().stop(true, true).animate({
height: 'toggle'
}, {
duration: 200
});
</code></pre>
<p>I now need to add a click effect on the same button so that it's touch-fri... | jquery | [5] |
4,199,194 | 4,199,195 | android developer training errors in sample code for network connection | <p>I am going through the android developer training material here - <a href="http://developer.android.com/training/basics/network-ops/index.html" rel="nofollow">http://developer.android.com/training/basics/network-ops/index.html</a>. I downloaded the sample code NetworkUsage.zip and imported it to eclipse. The code ... | android | [4] |
2,099,475 | 2,099,476 | Use MergeSort to process user input | <p>I want to sort an input(from command line arguments) set of numbers, been stucking here for 3days without finding the error of my codes...really desperate...</p>
<p>Will anyone please give me a hint?</p>
<pre><code>import java.util.Arrays;
public class MergeSorter
{
public MergeSorter(int[] anArray)
{
... | java | [1] |
4,475,640 | 4,475,641 | Connecting Android Application with any Database | <p>How would i go on connecting my Android application with my local database?</p>
| android | [4] |
579,185 | 579,186 | jquery .click being called multiple times | <p>I am getting unexpected results with jQuery trying to set the "click" method of a div. Please see <a href="http://jsfiddle.net/fkMf9/" rel="nofollow">this jsfiddle</a>. Be sure to open the console window. Click the word a few times and watch the console output. The click function gets called multiple times when it s... | jquery | [5] |
837,739 | 837,740 | $_GET php setting gets and calling functions | <p>can any one explain me about $_GET? give any tutorial on it, on functional approach or GET calling functions ?</p>
| php | [2] |
5,168,792 | 5,168,793 | which method gets control when you do a search and don't specify android:launchMode="singleTop" | <p>I am invoking a standard search, with the Activity that invokes the search being the same as the activity that processes the search (the 'searchable activity').
If I include android:launchMode="singleTop" in the Activity definition, the search invokes the Activity's onNewIntent method and I pick up the search parm s... | android | [4] |
5,317,995 | 5,317,996 | StartInfo.Arguments in c# | <p>I found the following snippet of the code:</p>
<p>using System;
using System.Diagnostics;</p>
<pre><code>public class RedirectingProcessOutput
{
public static void Main()
{
Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/c dir *.cs";
p.... | c# | [0] |
1,400,569 | 1,400,570 | tracking completion status in loop | <p>In this loop, the output i am expecting is a '.' to be printed after each url in the tuples list gets downloaded . The idea is a sort of progress bar to tell me that the script hasn't crashed or anything. But while running, all the '.'s are getting printed together after all the files have been downloaded. why?</p>
... | python | [7] |
1,080,860 | 1,080,861 | is it possible to create support multiple screen size in android 3.1 using support library for devices | <p>is it possible to create support multiple screen size in android 3.1 using support library for devices .I have created four layout layout-large layout-small layout-xlarge layout-xlarge design is not coming properly in some device .I have used dp in my layout</p>
<p>Thanks</p>
| android | [4] |
334,219 | 334,220 | Parse table into array | <p>i have this table:</p>
<pre><code>List<string>
Total HTTP Packets 727 0.004459
HTTP Request Packets 372 0.002281 51.17%
GET 372 0.002281 100.00%
HTTP Response Packets 353 0.002165 48.56%
... | c# | [0] |
46,618 | 46,619 | Accessing object's properties in an array | <pre><code>for(i=0;i<=rowData.length;i++){
alert(rowData[i].title);
}
</code></pre>
<p>i have a some five objects in an array. those objects have title, but when i try to access them, it says <code>cannot read property title from sundefined</code>.</p>
<p>How can i differentiate these objects, when i ... | javascript | [3] |
2,748,022 | 2,748,023 | The return value should be a list but doesn't return as expected?! - Python newbie | <p>This must be a very simple solution that has eluded me this last hour. I've tried to build this test function where the return value of the test_cases list should match the values in the test_case_answers list but for some reason, test case 1 and test case 2 fail. When I print the return values for the test cases ... | python | [7] |
5,133,182 | 5,133,183 | Asp.Net inline coding | <pre><code><%
int i = Eval("NAME").ToString().IndexOf(".");
string str = Eval("NAME").ToString().Substring(i + 1);
%>
<img src="../images/img_<%= str %>.gif" alt="" />
</code></pre>
<p>EVAL("test.txt")</p>
<p>I need "txt" how to make ?</p>
| asp.net | [9] |
5,627,584 | 5,627,585 | getting xml child in javascript | <p>I'm trying to get to to the items child in XML using javascript. </p>
<p>The rss file is: Can i use dot syntax? item.title? I'mg etting undefined in the code below</p>
<p><code><item>
<title><link></code> </p>
<blockquote>
<p>$(document).ready(function(){ alert =
console.log; </p>
<pr... | javascript | [3] |
4,060,453 | 4,060,454 | Java program divisible by three without using modulus | <p>I'd like to create a program wherein a user will type a number and the program will tell if it is divisible by 3 or not. But %, /, +, * can't be used in the program. Anybody here got some ideas how to do that?</p>
| java | [1] |
3,380,130 | 3,380,131 | Queing Messages For SMS Gateway API | <p>I am developing an application that sends different messages to different recipients.The phone numbers and messages are stored in a table,and i use the curl function in a loop to call the API url.The issue is that after the first 10 (or so numbers),the maximum execution time parameter is exceeded,and not all numbers... | php | [2] |
709,262 | 709,263 | use javascript to read a link resource without ajax | <p>Not sure if it's possible but how do I read a resource from a url using javascript without ajax?</p>
<p>for example, the following url is a static text file containing json encoded text</p>
<p><a href="http://mysite.s3.amazonaws.com/jsonencodedcontent.txt" rel="nofollow">http://mysite.s3.amazonaws.com/jsonencodedc... | javascript | [3] |
2,625,848 | 2,625,849 | semaphore for a datarow | <p>I am writing a web application that allows the user basic CRUD operations against a database. The tables that are being updated have less than 200 records and there may be multiple users using this applications there is a need for some sort of locking mechanism to avoid the 2 users from overwriting each others cha... | asp.net | [9] |
3,552,466 | 3,552,467 | PHP and External Scripts | <p>I am working on a website and I came to a point where I have been playing with the idea of referencing external scripts. I have broken up other scripts this way before, dropping in lines of code like</p>
<pre><code>include('scriptX.php');
</code></pre>
<p>I understand using this technique for larger chunks of comp... | php | [2] |
2,523,045 | 2,523,046 | Clearing an array which is global context | <pre><code>var obj = {
obj.arr1 = [],
obj.arr2 = []
};
</code></pre>
<p>I have this object in the global context, now each time when i add a new user the <code>obj1.arr[]</code> is used for some manipulation. Now when i add another user, the value obj.arr1[] holds the previous data. </p>
<p>I tried using <code>ob... | javascript | [3] |
576,802 | 576,803 | PHP Object Variable variables name? | <p>I have a loop that goes from 1 to 10 and prints values in</p>
<p><code>$entity_object->field_question_1</code> through 10 so...</p>
<p><code>$entity_object->field_question_1</code>, <code>$entity_object->field_question_2</code>, etc</p>
<p>And I want to print this in this loop, how can I get the variable... | php | [2] |
3,353,788 | 3,353,789 | Android Tab bar | <p>I have a tab bar based application in android. In the second tab I show a list, when the user clicks a row in the list it goes to a detail page and the page tab bar becomes invisible. When I come back using a button in the activity the tab bar is in invisible state. How do I start that tab activity after returning f... | android | [4] |
5,195,168 | 5,195,169 | Code error when submitting search query | <p>I'm getting error on this:</p>
<blockquote>
<p>Deprecated: Function split() is deprecated in C:\xampp\htdocs\tet\search_motifasni2.php on line 10</p>
<p>Notice: Undefined variable: sql in C:\xampp\htdocs\tet\search_motifasni2.php on line 18</p>
<p>Warning: mysql_num_rows() expects parameter 1 to be reso... | php | [2] |
5,119,138 | 5,119,139 | Javascript double click text transform into textbox | <p>What is the javascipt code that will edit a text on double click. The process is I have a text and if I double click it, a text box will appear, and if I press enter the word will change depends on what you've type.</p>
<p><b>Sample</b><pre>
This is sample text. $nbsp;$nbsp; --> if I double click it a textbox will ... | javascript | [3] |
2,160,277 | 2,160,278 | Confusion with a class level and instance level | <p>I have the following class:</p>
<pre><code>public class B {
public void print() {
}
public static void main(String[] args) {
B B = new B();
B.print();
}
}
</code></pre>
<p>I was wondering why the compiler didn't give an error saying it's not a static method. How will it distingui... | java | [1] |
1,283,237 | 1,283,238 | I can't get the Union of two arrayLists | <pre><code>public static <E> ArrayList<E> union
(ArrayList<E>array1, ArrayList<E>array2)
{
//arrayUnion will be the arrayList that will be returned
ArrayList <E> arrayUnion = new ArrayList <E>(array1);
arrayUnion.addAll(array2);
E current;
for(int i = 0; i <... | java | [1] |
2,134,799 | 2,134,800 | Determine if a key is currently pressed | <p>I have a need to determine if a key is currently being pressed. I do not need an event to fire, I simply need to determine if a key is being pressed to decide a code path. I looked around and there are some great GlobalKeyHook classes however they are event based.</p>
<p>Little example, basically I need to determin... | c# | [0] |
2,268,600 | 2,268,601 | C#. Windows media player | <p>We're using an embedded AxWMPLib.AxWindowsMediaPlayer to play various audio
files in our application (C# code). I'd like to change, programmatically,
the destination speakers (output audio device). I can't find any code to
accomplish this. I've searched high and low. Nothing tells me how to select
and/or change ... | c# | [0] |
569,086 | 569,087 | Default value for int in text field | <p>I want to change default value for <code>int</code> property to <strong>empty field</strong> not <strong>0</strong>. How can I do it?</p>
| java | [1] |
3,413,446 | 3,413,447 | in send() will it be ok to place the flag MSG_NOSIGNAL? | <p>I've asked a previous <a href="http://stackoverflow.com/questions/6162994/send-crashes-my-program">question</a></p>
<p>I'm running a server and a client. A SIGPIPE signal crashed my server because of a broken pipe. I read that the above flag prevents that signal from being raised. My program now works and doesn't c... | c++ | [6] |
1,218,579 | 1,218,580 | Problem with vector of objects/pointers (Implementing composite design pattern) | <p>I'm trying to implement the composite design pattern for a uni practical, I have an abstract base class DocumentComponent, and two classes that inherit from it, TextBody and Word. It's supposed to represent a sentence that can contain additional sentences and/or words. My problem arises when I try to implement the T... | c++ | [6] |
3,831,384 | 3,831,385 | JQuery implementing if statement issue | <p>I'm trying to put an if statement in the following code. But since I am new at JQuery, I don't know how to put it there. When I uncomment the lines, I am getting an "missing : after property id" error on FireBug. How can I achieve this? Thanks in advance.</p>
<pre><code>$( ".droppable" ).droppable({
//if ((this.f... | jquery | [5] |
4,611,134 | 4,611,135 | Is there a difference between them, if have,what's it? | <pre><code>$a = true;
1,new test($a);
2,new test(true);
</code></pre>
<p>Is there a difference between them(1,2), if have,what's of it? thank you,.</p>
| php | [2] |
132,594 | 132,595 | 2 errors on my code, Division by zero & Function eregi() is deprecated | <p>Im getting 2 errors on my code.</p>
<p>First:</p>
<pre><code>[18-Sep-2012 11:54:57] PHP Deprecated: Function eregi() is deprecated
</code></pre>
<p>And this line is:</p>
<pre><code>if ($vidSrc !== false && eregi('eow-title',$vidSrc))
</code></pre>
<p>Second</p>
<pre><code>PHP Warning: Division by zer... | php | [2] |
3,589,538 | 3,589,539 | Adding columns to a DataTable using SetOrdinal | <p>Let's say I have a DataTable with five columns. I am curious as to why the following works:</p>
<pre><code>dt.Columns.Add("Blah").SetOrdinal(5);
</code></pre>
<p>But the following throws an <code>ArgumentOutOfRangeException</code>:</p>
<pre><code>dt.Columns.Add("Blah").SetOrdinal(dt.Columns.Count);
</code></pre>
... | c# | [0] |
5,767,634 | 5,767,635 | Javascript Event Listeners with tooltips | <p>Is it possible to use a javascript event listener to initialize a tool tip for a button who is the target for the listener? I have searched online and found many ways to make a tool tip work but would like to make use of an event listener. I'm going to use onmoveover as the type of event for the target. Is this real... | javascript | [3] |
3,940,213 | 3,940,214 | Clear all inputs inside row | <p><code>var new_row</code> has type <code>Object[tr]</code>.
How can I clear all inputs inside this row?</p>
| jquery | [5] |
4,434,393 | 4,434,394 | cookies in javascript | <p>i'm trying to save cookie from \http://sample/default.aspx page and i'm trying to retrieve it from \http://sample/_layout/default.aspx is it possible or not? in anyway</p>
| javascript | [3] |
2,089,993 | 2,089,994 | Database Creation in android | <p>I am creating a table which works on the simulator but not on the device. I get this error message: </p>
<pre><code>Failure 1 (near "(": syntax error) on 0x2d69a8 when preparing 'CREATE TABLE request(requestidINTEGER PRIMARY KEY,longitudefromDECIMAL(10,5),lattitudefromDECIMAL(10,5),phoneINTEGER)
</code></pre>
<p>I... | android | [4] |
1,297,089 | 1,297,090 | Calculating a 2D Transformation Matrix from an Initial and Resultant 2D Matrix | <p>I by no means profess to be a genius when it comes to programming and my current problem has me stumped.</p>
<p>I have found this question <a href="http://stackoverflow.com/questions/1856210/trying-to-derive-a-2d-transformation-matrix-using-only-the-images">Trying to derive a 2D transformation matrix using only the... | c# | [0] |
4,662,304 | 4,662,305 | java calculate pathname difference | <p>Is there an open source library that, given ...</p>
<pre><code>/a/b/c
/a/b/c/d/e
</code></pre>
<p>would return ../..</p>
<p>or for that matter given</p>
<pre><code>/a/b/c/d
/a/b/c/e
</code></pre>
<p>would return ../d</p>
<p>?</p>
| java | [1] |
2,150,881 | 2,150,882 | Building iPhone App for Distribution | <p>I have a question on how exactly to do the final distribution build for my app. I have actually successfully built this app already but now I am trying to make an updated version and to remember what I did right the first time. It all seemed to go wrong when my provisioning profile expired....</p>
<p>Anyway, I have... | iphone | [8] |
4,246,104 | 4,246,105 | jQuery onload function | <p>HI,</p>
<p>I m using the following script to call a onload function but it does not works in IE</p>
<p><code>("#body").attr({onload : "calFact();"});</code></p>
| jquery | [5] |
1,230,791 | 1,230,792 | What is wrong with this simple char filler? | <p>It seems and looks really simple but a seemingly random spot of the char array is not filling correctly with 8's. There are no compiler errors either. I'm sorry that this is such a noob question but when I designed a sudoku solver a month ago I didn't have any problems running codes almost identical to this.</p>
<p... | c++ | [6] |
3,439,090 | 3,439,091 | jQuery - change/add an event on a link | <p>I have this link :</p>
<pre><code><a href="#" onClick="addSide('1');return false">Link</a>
</code></pre>
<p>and I want that, when I click on a button (for example), the value of addSide in that link grow. Such as first click on the button I want to pass to the addSide function 1, second click
addSide(... | jquery | [5] |
5,015,627 | 5,015,628 | call a jquery method on page submit with multiple iframes | <p>I have multiple iframes in a page .The inner most one has a jquery attached to it.I need to call a function from the inner most iframe when the page submits.The script i am using now is not intiating the call.</p>
<pre><code>$(iframe).parents('form').submit(function() {
disableDesignMode(iframe, true);
});
</co... | jquery | [5] |
3,210,213 | 3,210,214 | How to create customized Views for AppWidgets? | <p>There is a given set of predefinied Views that can be used in layouts for AppWidgets. How can a customized View added to this list?
The minimum requirement is that the class is annotated with RemoteView. What else is necessary to be acceptable as view in the layout.xml?</p>
| android | [4] |
2,682,802 | 2,682,803 | how to create directory in mnt/sdcard in android 2.2 | <pre><code> File dir = Environment.getExternalStorageDirectory();
if (dir.exists() && dir.isDirectory()) {
String exStoragePath = Environment.getExternalStorageDirectory().getAbsolutePath();
File appPath = new File(exStoragePath + "/mbrc/");
appPath.mkdirs();
... | android | [4] |
2,809,059 | 2,809,060 | How do I know if a mouse pointer is over a particular element on the page? | <p>With the help of JavaScript, of course.</p>
| javascript | [3] |
4,644,454 | 4,644,455 | JQuery Change Event Problem | <p>I have a problem with Change event . I want to do a request using ajax every time that the input value changes = keyup , past , cut.... the change event in jQuery is too slow !!</p>
<pre><code>$("#Password").change(function (){
$.post("register.php", {do : 'password', pass : $(this).val()}, function (data){
... | jquery | [5] |
1,653,234 | 1,653,235 | How to filter gridview records faster way? | <p>I have a gridview which contains 100 records i have set paging to 10. At page_load it fills the grid so the records are not going to change so i dont need to hit to database again. <br>
There is a filter textbox availble at the top of 'Name' Column when user types some key it should filter the 100 records & shou... | asp.net | [9] |
2,531,443 | 2,531,444 | Convert UTC time to javascript date | <p>I am using highcharts a JS library it gives me the time of a point in UTC format: 2592000000 which should correlate to a date somewhere in 2011.</p>
<p>How do I get the actual date of this? </p>
| javascript | [3] |
4,398,900 | 4,398,901 | change form field value with javascript | <pre><code><script type="text/javascript">
function up(d,mul)
{
alert(d);
form1.d.value=mul;
}
</script>
</code></pre>
<p>up is a function name with which i am trying to update the value of field(field name=d).
But its not working. plz somebody help me.</p>
| javascript | [3] |
194,406 | 194,407 | iPhone:Convert NSString 123-123-1234 into (123) 123-1234 | <p>I have string like 123-123-1234 so I want to convert string into this format
(123) 123-1234 so any idea to develop this functionality.</p>
<p>Thanks in advance.</p>
| iphone | [8] |
4,220,597 | 4,220,598 | IE issue (function not being called document.ready) | <p>I've been wading through all of the other questions regarding IE challenges, but I'm no closer to understanding why my Ajax function is called in Chrome and Firefox but not IE8. </p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt... | jquery | [5] |
1,577,481 | 1,577,482 | Please remove this problem:: javax.servlet.ServletException: Servlet execution threw an exception | <p>HTTP Status 500 -</p>
<p>type Exception report</p>
<p>message</p>
<p>description The server encountered an internal error () that prevented it from fulfilling this request.</p>
<pre><code>exception
javax.servlet.ServletException: Servlet execution threw an exception
`root cause`
java.lang.Error: java.lang.Run... | java | [1] |
5,541,251 | 5,541,252 | how to run vibrate continuously in iphone? | <p>In my application I m using following coding pattern to vibrate my iPhone device</p>
<pre><code>Header File:-
AudioServices.h
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
</code></pre>
<p>My problem is that when I run my application it gets vibrate but only for second but I want that it will vibrate c... | iphone | [8] |
267,943 | 267,944 | PHP - Insert content at specific point in HTML | <p>I have the following <code><DIV>:</code></p>
<pre><code><div class="general">
Some content here
</div>
</code></pre>
<p>I want to do a PHP include just before </p>
<p>Is this possible in PHP?</p>
| php | [2] |
1,517,904 | 1,517,905 | Passing ofstream object from main program to a class | <p>Here is what I am trying to do:<br />
1) Open an ofstream object in my main body. I can do this no problem.<br />
2) Associate this object with a filename. No problem.<br />
3) Pass this object to a class and send output within this class. I can't do this.<br />
Here is my code. I would appreciate any help. Tha... | c++ | [6] |
5,224,079 | 5,224,080 | Using [] after string in javascript | <p>The following alerts 100. I would like it to alert 200 but obviously I'm missing something.</p>
<pre><code>$blah[1] = 100;
function updateBlah(e) {
$blah[e] = 200;
alert($blah[e]);
}
updateBlah(1);
</code></pre>
| javascript | [3] |
3,396,918 | 3,396,919 | android manifest file & activies - does eclipse suck or am I missing something? | <p>I've seen a number of people have problems because they don't add the activity to the manifest file. I've suffered from this myself. This seems like such a simple/common problem yet I have no clue how I'm supposed to figure that out from the eclipse IDE. Is the debugging output of eclipse totally useless or is th... | android | [4] |
1,362,398 | 1,362,399 | How to fill a path with gradient | <p>I have a graph view that draws a path to some points like this:
<img src="http://i.stack.imgur.com/Tryrl.png" alt="enter image description here"></p>
<p>now I want to fill the inner area of graph with a gradient color
how can I achieve this ?</p>
<p>Thanks</p>
<p><strong>Edit:</strong>
@Lumis
I added another clos... | android | [4] |
3,345,934 | 3,345,935 | Programmically create glossy 3d button | <p>I have googled it already but can't find a good hint on how to create buttons in android that look like glossy shiny buttons with a slight 3d effect. See pic:</p>
<p><a href="http://dl.dropbox.com/u/31958099/buttons.jpg" rel="nofollow">http://dl.dropbox.com/u/31958099/buttons.jpg</a></p>
<p>How can I programmicall... | android | [4] |
5,248,395 | 5,248,396 | Why can't document.write be used to load a module using Dom-scripting? | <p>In <a href="http://stackoverflow.com/questions/4044259/in-javascript-what-is-a-constructor-and-what-isnt">this question</a>, I got the following answer:</p>
<p>Looking at Google's maps script it's failing to load the Geocoder module because it's using document.write to do so, a method that has to be run from a inc... | javascript | [3] |
4,340,171 | 4,340,172 | What is the best way to start learning C#? | <p>I have a little programming experience with vb 6 and vb.net not much. Please tell me the best way to become an expert C# programmer and I know it will take a long time.</p>
| c# | [0] |
6,003,767 | 6,003,768 | playing a sound | <p>I'm very beginner in Java, so ...</p>
<p>I've written a simple Java code to display images from my hard drive wherever I click the mouse, not on the applet, on panel, now how can I make a sound play automatically when I view 6 pictures ?</p>
<pre><code>public void mouseClicked(MouseEvent e) {
if (coun... | java | [1] |
1,087,076 | 1,087,077 | How do you fill a Java HashMap with multiple instances of related subclasses? | <p>I have a superclass called "Canvas," from which I create several subclasses. I want to store instances of those subclasses in a dictionary. So I tried setting up my code as follows:</p>
<pre><code>public class Main {
public static void main(String[] args) throws Exception{
Canvas canvas = new Canvas();
... | java | [1] |
5,153,601 | 5,153,602 | explanation about activity re-creation on configuration change and context | <p>I'm pretty new to Android development and I'm looking for explanation about a problem I'm facing, for gaining deeper understanding of Android.</p>
<p>I have this piece of code:</p>
<pre><code>someAutoCompleteTextView.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange... | android | [4] |
4,753,904 | 4,753,905 | C++ why bitvec[0].flip() works | <p>Based on C++ Primer 4th edition (i.e. pp 105),</p>
<pre><code>bitset<32> bitvec;
bitvec[0].flip(); // reverses the first bit.
</code></pre>
<p>My question is why the second line works? Based on </p>
<pre><code>http://www.cplusplus.com/reference/stl/bitset/operator[]/
bool operator[] ( size_t pos ) co... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.