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
2,275,809
2,275,810
Manipulated Underlying Apps or Android OS
<p>My initial question dealt with building a translucent view that allowed manipulation of a view below it. Bluefalcon did an excellent job answering this and helped me understand view mechanics a little better: </p> <p><a href="http://stackoverflow.com/questions/11635934/touch-through-translucent-app">touch through ...
android
[4]
941,220
941,221
How can i import contacts from yahoo,gmail and hotmail into my application using java
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/397933/taking-contact-list-from-hotmail-gmail-yahoo-in-java">Taking contact list from hotmail gmail yahoo in java ?</a> </p> </blockquote> <p>How can i import contacts from yahoo,gmail and hotmail into my applic...
java
[1]
3,517,103
3,517,104
How to store the selected checkbox values in arraylist in android?
<p>I am working on <strong>quiz application</strong>. For each question there are <strong>multiple answers</strong> and so for that I have used <strong>checkboxes</strong>. In each page <strong>I am displaying single question with options</strong> and when next button is clicked next question will be displayed. <strong...
android
[4]
6,009,185
6,009,186
Prevent Android from closing my service/thread
<p>I have an app that uses a service in the background to do some upload/download operations. These operations can take some time, depending on the user selection (amount and size of files). </p> <p>While with my device (nexus s) and in the testing emulator, all works as planned, I am getting reports from users that t...
android
[4]
2,584,597
2,584,598
Fatal error: Cannot redeclare class ProjectConfiguration
<p>I am trying to clear the cache using command 'php symfony cc' but getting " Fatal error: Cannot redeclare class ProjectConfiguration in /home/dev/project/devz/config/ProjectConfiguration.class.php on line 46 ". Please help me on this. Thanks in advance</p>
php
[2]
4,786,690
4,786,691
How clear error gridview
<p>I have designing in my web page.</p> <p>I have used the gridview, I have used the gridview <code>delete</code> option. Get the following error,</p> <blockquote> <p>Multiple controls with the same ID 'Ddl' were found. FindControl requires that controls have unique IDs.</p> </blockquote> <p>My code is as foll...
asp.net
[9]
5,263,825
5,263,826
iPhone:How to implement Push Notification in iPhone like facebook?
<p>I want to implement push notification functionality in my apps like Facebook provide us so please tell me any link or any idea to develop this functionality.</p>
iphone
[8]
4,291,870
4,291,871
mouse-enter event function not working in Firefox
<p>I have this image:</p> <pre><code>&lt;img src="..." class="scroller_poster" alt="Some information about movie"&gt; </code></pre> <p>... and I'm trying to display the value in ALT in a DIV elsewhere on my page:</p> <pre><code>&lt;div class="scroller_movie_data"&gt;&lt;/div&gt; </code></pre> <p>... using this func...
jquery
[5]
4,431,558
4,431,559
Why blank(empty file) java do not not show any error?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2467723/what-happens-if-you-compile-an-empty-java-file">What happens if you compile an empty java file?</a> </p> </blockquote> <p>I tried to compile a blank file(.java file)hoping it will show an error.But Java ...
java
[1]
4,710,456
4,710,457
How do I open a socket below 1024
<p>I'm trying to create a ServerSocket on a port below 1024.</p> <p>Obviously, this is restricted to root access only. </p> <p>But I'm struggling on getting the right permissions for my app.</p> <p>I'm using this code, for example, to test if I have root access (or trigger the dialog)</p> <p>But it still doesn't le...
android
[4]
3,017,132
3,017,133
Insufficient permission when running 'adb shell'
<p>I am on Ubuntu 12.04. And I need to use 'adb shell' to connect to my device on linux:</p> <p>I get Insufficient permission when running 'adb shell'as myself. But when I run it as 'root', it works.</p> <p>How can I fix 'adb shell' so that I don' need to run it as root everytime?</p>
android
[4]
2,403,933
2,403,934
Dynamically add properties to a existing object
<p>I create the person object like this.</p> <p>Person person=new Person("Sam","Lewis") It has properties like this. person.Dob person.Address</p> <p>But now I want to add properties like this and set the values at the run time after creating the object. person.Age person.Sex</p> <p>How can I add those extra proper...
c#
[0]
5,657,193
5,657,194
String Operation to get particular value inside the string using java
<p>I have a string as below.</p> <pre><code>&lt;employees&gt; &lt;emp&gt; &lt;name&gt;yaakobu&lt;/name&gt; &lt;sal&gt;$20000&lt;/sal&gt; &lt;designation&gt;Manager&lt;/designation&gt; &lt;/emp&gt; &lt;emp&gt; &lt;name&gt;daaniyelu&lt;/name&gt; &lt;sal&gt;$2000&lt;/sal&gt; &lt;designation&gt;Operator&lt;/designation&g...
java
[1]
300,086
300,087
passing a method to Thread which have multiple arguments in C#
<p>I would like to execute a method in a thread. The method has multiple arguments and expects return value. Can anyone help?</p>
c#
[0]
1,389,262
1,389,263
Removing specific QueryStrings
<p>Let's assume an aspx page gets multiple querystrings, for example <code>books.aspx?author=Arthor&amp;level=4&amp;year=2004</code>.</p> <p>I'd like to create a button that clears specific querystring.</p> <p>For example when <code>clearAuthorBtn</code> is clicked, user should be redirected to <code>books.aspx?level...
c#
[0]
2,317,656
2,317,657
Validating email address - stopping double dots
<p>I am currently <a href="http://swiftmailer.org/" rel="nofollow">SwiftMailer</a> to send out emails. I have a seperate email validation script that checks emails to ensure they are valid before using SwiftMailer to send. It works pretty well.</p> <p>However, my validator doesn't pick up accidental double dots (..) i...
php
[2]
1,103,170
1,103,171
Getting x and y Position?
<p>How to Get the X and Y axis of UIImage, I have one images which are randomly changes it's position so how to get the image current x and y position so i can match with another image x and y position.I have to get the position of Image without any touch on screen. please suggest some solution.</p> <p>Thank You.</p>...
iphone
[8]
3,464,027
3,464,028
java create and write to windows custom view
<p>I'm using this code in order to write to my windows event viewer:</p> <pre><code>import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.nt.NTEventLogAppender; public class EventLogExample { public static void main(String[] args) { Logger logger = Logger.getLogger(EventLogEx...
java
[1]
1,343,116
1,343,117
String to Date Conversion Issue
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1576753/parse-datetime-string-in-javascript">Parse DateTime string in JavaScript</a> </p> </blockquote> <p>How do I convert this string "09-20-2011::20:00:00" to the seconds from 1st jan, 1970. aka Unix epoch t...
javascript
[3]
618,952
618,953
go from activty A to B and come back to A android
<p>I have read a lot but still havn't got my full answer. When starting app A,within onCreate method I get data from Api and set on ListView. Here also I have button and when I click to it I am going to Activity B and send some data. Within my B activity I send data to my api and if response status is ok I want to go b...
android
[4]
2,669,203
2,669,204
translating C++ snippet
<p>I am working on porting a framework from C++ to Java, and it is turning out to be harder than I expected, as I don't know a whole lot about C++. I came across this one snippet that I don't really understand. If someone could tell me what the lines marked do that would be awesome.</p> <pre><code> /** Heap data, sto...
c++
[6]
3,083,302
3,083,303
Android Hello World
<p>I am using android.com tutorial to learn android using eclipse. I have just started 1st program. It says <code>Open the Android folder, select Android Project and click Next. But there is no new</code>Android Project` option in android folder, rather it has three options for a new project. 1) android application pr...
android
[4]
4,889,304
4,889,305
What actually happens internally
<p>I have these three linse in code </p> <pre><code>int i = 5; object a = i; i += 1; </code></pre> <p>I was thinking value of a will also be 6, but it is 5.</p> <p>What happens actually please clear it</p>
c#
[0]
1,973,117
1,973,118
jQuery in Wordpress - Why is it not working?
<p>I am using this as my starter template: <a href="http://html5reset.org/" rel="nofollow">www.html5reset.org/</a></p> <p>It's pretty nice, but I believe something is wrong with jQuery in there.</p> <p>In the <code>functions.php</code> it says:</p> <pre><code>// Load jQuery if ( !function_exists(core_mods) ) { ...
jquery
[5]
2,558,789
2,558,790
How create a class that is abstract, but not internally
<p>Is this possible in c# somehow? This is the exact case I need it for: He (the user) must not be able to create instances of this class. However, I want to be able to create instances of this class inside my project. (hence: internally) Other classes should be able to inherit from it. I want to force the user to only...
c#
[0]
5,539,369
5,539,370
Use Of Service In Android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4353570/android-service">Android Service</a> </p> </blockquote> <p>I Am New In Android And I Am Not Familiar About Services. So Please Give Me A Small Application So That I Understand Services. </p>
android
[4]
5,044,434
5,044,435
User Error Messages | HTML data vs JavaScript
<p>I have this object below:</p> <p>I thought about putting the messages in html like this</p> <pre><code>&lt;div id = "text_identifier"&gt;text_here&lt;/div&gt; // div is hidden. </code></pre> <p>and then using getElementById to pull the message into JavaScript and finally display to the user in the correct element...
javascript
[3]
2,661,485
2,661,486
Knowing the number of searches in playstore
<p>How can I know if how many have search my application in google playstore and fetch it by using codes? Especially if they use keyword search. Thank you!</p>
android
[4]
5,361,684
5,361,685
How to get the current Y offset of a ScrollView
<p>ScrollView has a method for setting the x and y scroll offset, but no method for getting the current offset (all I'm really interested is the y offset, since ScrollView only supports vertical scrolling). I don't see any method that would work in the superclasses, and tried getTop() for the content view, which is alw...
android
[4]
2,482,026
2,482,027
how to show a disclosure indicator button in table view editing mode
<p>How to show a disclosure indicator button in table view editing mode .</p> <p>Thanks </p>
iphone
[8]
2,266,063
2,266,064
How to display skip button for facebook Single Sign on?
<p>I am using this method to allow the user to sign on to facebook at the beginning of the application, If they want.</p> <pre><code>package com.greatap; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.facebook.android.*; import com.facebook.android.Facebook.*; public...
android
[4]
5,081,509
5,081,510
Android where to store credential info like url, username, passcodes?
<p>I have an app which will connect to server and provide some basic connection credential information like server url, userer, application id etc What is the best option for storing this information within the android app? Should it be a preference? not sure where to store these items. I should clarify this questi...
android
[4]
5,445,075
5,445,076
How to print control characters in Console Window
<p>I have tab characters assigned in ASCII (09) or Unicode</p> <pre><code>char ch = '\x09'; (or) char ch = '\u0009'; </code></pre> <p>How do I print <code>'\t'</code> in console window ?</p> <p>None of the below works.(maybe it prints a tab, but not as a canonical representation of '\t')</p> <pre><code>Console.Writ...
c#
[0]
4,438,127
4,438,128
Android Graphical Layout
<p>I am experimenting with Graphical Layout, the imageView under Image and Media why is its frame always snapping to left? Can I move it to the center? I can't seem to do that.</p> <p>Likewise with the Frames of Layout, they are always snapping to the left.</p>
android
[4]
2,809,048
2,809,049
C# string parsing problem
<p>I have a file thats exported with a ton of lines. I want to be able to parse the file into a neat order that I can easily use.</p> <p>I have a sample string here:</p> <pre><code>&lt;a href="http://www.foxnews.com/us/2010/07/28/cemetery-allows-father-war-veteran-fly-flag-grave/?test=latestnews"&gt;deal reached on ...
c#
[0]
1,163,568
1,163,569
jQuery add a class only if it does not have another class
<p>I have a navigation animation that is being applied to elements with the "js" class - via a css background. I don't want this animation to occur on the link for the current page (a class "current" is being echo'd out by PHP to the current page). </p> <p>So basically the page your on (current page) link in the main ...
jquery
[5]
5,067,597
5,067,598
What are the advantages of SoundPool's load method that takes offset and length parameters?
<p>I am intrigued by the <code>SoundPool.load(FileDescriptor fd, long offset, long length, int priority)</code> method in the Android API. Does it exist just as a convenience for people that were already storing audio this way? Does it do anything for performance?</p>
android
[4]
629,580
629,581
saving images from webcam stream directly to web server with java
<p>Is it possible to save images directly from the webcam of my system to a web server in Java? Maybe it can directly passed to an URL address and can be <code>GET</code> at the server or anything else.</p>
java
[1]
1,167,584
1,167,585
location.hash disappears immediately
<p>I'm building a live search + filter method, and I've noticed when I use that method (it's an example) that hash after it shows in the URL - it is immediately being removed. If I move that hash set to e.g. button's click method it works fine. Why ?</p> <pre><code>$('.menu-link').click(function () { ...
jquery
[5]
4,311,454
4,311,455
point of having an instance variable as final?
<p>what is the point of having an instance variable as final?</p> <p>isn´t it better to have that variable set as a static final variable then?</p> <p>cause if it can't be changed by any of the objects, then it's the same as a class (static) variable, right?</p>
java
[1]
1,343,702
1,343,703
run javascript via url
<p>My Problem is:</p> <p>I have an eibport: www.bab-tec.de/</p> <p>You can See a live demo in the live section.</p> <p>Now the problem.</p> <p>I would like to start or run a javascript on this page with entering the url like: <code> http:// IP-EIBPORT /#javascript:click(Button)</code></p> <p>or in another way.</p...
javascript
[3]
1,356,664
1,356,665
"Fatal Python error: deallocating None" and urlgrabber
<p>I'm trying to fetch 1m+ pages over HTTP from single site. urlgrabber seemed like fast solution using "keep alive" connections. However, after a while my script fails without any stack trace with: "Fatal Python error: deallocating None"</p> <p>Here is isolated python code that fails (for simplification, file:// URL ...
python
[7]
5,649,449
5,649,450
Can we display a image in asp which is stored in hard disk
<p>I have many images stored in my hard disk in C: drive.</p> <p>Now i made a application which is working fine but it is unable todisplay tha image.</p> <p>but im my aspx it does not show image.</p> <p>by the above application i extracted the path which is stored in my database,but not the image at that path.</p> ...
asp.net
[9]
5,139,097
5,139,098
Jquery val() won't work?
<pre><code>$("input[type=radio]").change(function(){ alert(this.val()); }); </code></pre> <p>Why this won't work? What I want is that every time a radio button is selected, the page alerts its value.</p>
jquery
[5]
1,292,255
1,292,256
Android: Behaviour of launchMode="singleTask" not as described?
<p>I've been learning Android and have come across an issue with launchMode="singleTask". The documentation states that when this attribute is used, the Activity is always launched into a new task as the root Activity. Secondly, the documentation states that if an Intent is targeted at such an Activity when there are A...
android
[4]
5,887,504
5,887,505
What is the different between {$hello}, ${hello} & $hello when use double quotes?
<p>I'm a bit confuse with </p> <pre><code>$hello = "hello"; echo "Say $hello"; echo "Say {$hello}"; echo "Say ${hello}"; </code></pre> <p>and the output is same <code>Say hello</code>. When should I use <code>{$hello}</code> and <code>${hello}</code>? and why it cannot be used in single quote?</p>
php
[2]
4,416,658
4,416,659
Want to print data in TreeView in C#
<p>i have developed a Project and i wanna to print the data in the Treeview (Medical Test Notes ...) when the User Click on the Print Button (Print Requested Tests ) any one have any idea how i can do it ? <img src="http://i.stack.imgur.com/TFCPW.png" alt="enter image description here"></p>
c#
[0]
4,941,180
4,941,181
Is it possible in C++ to declare an attibute in the body?
<p>Is it possible in C++ to declare an attibute in the body, that is, the .cpp file ?</p>
c++
[6]
2,539,623
2,539,624
When to update bin folder
<p>I have an ASP.NET application (web application as opposed to website), and several class libraries.</p> <p>Just to make sure, every time a change is made to the class library, do I need to recompile and refresh/update the dll from thbe bin folder of my web app?</p> <p>Thanks</p>
asp.net
[9]
2,250,589
2,250,590
Put a image in Android
<p>i need to show a image, when i press a button on my application.</p> <p>I'm trying with: </p> <p><strong>ImageView imageView = (ImageView) findViewById(R.id.imageView2); imageView.setImageDrawable(R.drawable.loading);</strong></p> <p>but it shows an error.</p> <p>Anyone can help me? Thanks.</p>
android
[4]
1,079,967
1,079,968
Double.ToString with N Number of Decimal Places
<p>I know that if we want to display a <code>double</code> as a two decimal digit, one would just have to use</p> <pre><code>public void DisplayTwoDecimal(double dbValue) { Console.WriteLine(dbValue.ToString("0.00")); } </code></pre> <p>But how to extend this to <code>N</code> decimal places, where <code>N</code> i...
c#
[0]
3,667,888
3,667,889
Display unicode characters in TextView Android
<p>There are a number of posts all over the internet on this topic, however none of them have been able to isolate and solve the problem.</p> <p>I am trying to show some special UTF-8 encoded symbols stored in a SQLite database using a TextView, however all it shows is boxes. I understand what this means is that right...
android
[4]
1,781,294
1,781,295
jQuery - Ability to Change an IMG Source, and show a loader until the image is loaded by the browser
<p>I have a frame with an image tag inside, like a photo gallery</p> <pre><code>&lt;div id="frame"&gt; &lt;img src="yahoo.com/logo.gif" id="photo" /&gt; &lt;/div&gt; </code></pre> <p>With jQuery I'm going to dynamically change the img src to a different image URL. This causes the frame to jump in height as the imag...
jquery
[5]
4,050,957
4,050,958
Casting array of objects (which implement interface IFoo) to IFoo[] in C#
<pre><code>class A : IFoo { } ... A[] arrayOfA = new A[10]; if(arrayOfA is IFoo[]) { // this is not called } </code></pre> <p>Q1: Why is <code>arrayOfA</code> not an array of <code>IFoos</code>?</p> <p>Q2: Why can't I cast <code>arrayOfA</code> to <code>IFoo[]</code>?</p>
c#
[0]
792,863
792,864
Does javascript have to be in the head tags?
<p>I believe javascript can be anywhere (almost), but I almost always see it in between <code>&lt;head&gt;&lt;/head&gt;</code>. I am using jquery and wanted to know if it has to be in the head tags for some reason or if will break something if I move it. Thank you.</p> <p>EDIT: Why is it almost always in the head t...
javascript
[3]
2,116,232
2,116,233
JS listener for global var?
<p>I want to keep everything contained within a single function, and not make all the various variables global.</p> <p>Is it possible to set up an event listener within the function main to watch a global var?</p> <p>in this example call doTheStuff() when the index is altered? or might I be going about this the wrong...
javascript
[3]
200,221
200,222
Can AVPlayer play MP3 files on iPad
<p>Can AVPlayer place MP3 files? </p> <p>It does not list MP3 in the apple documentation.</p>
iphone
[8]
1,644,746
1,644,747
Strange for-loop behavior in Javascript
<p>I have next problem: arr has only two elements. Next loop tries to execute his body 3 times:</p> <pre><code>var selectHTML = ""; for (var i = 0; i&lt; arr.length; i++) { selectHTML += '&lt;option value="' + arr[i].id + '"&gt;' + arr[i].name + '&lt;/option&gt;'; } </code></pre> <p>Next loop tries to execute hi...
javascript
[3]
2,929,626
2,929,627
Why I am unable to change this checkbox if i use data to restore textbox values beside to it
<p>Hi As stated in the Question i am unable to uncheck/check the textbox..<br> Fiddle : <a href="http://jsfiddle.net/Uehnh/1/" rel="nofollow">http://jsfiddle.net/Uehnh/1/</a><br> Here is my HTML </p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;input type='checkbox'&gt;&lt;span&gt;Text1&lt;/span&gt;&lt;input ty...
jquery
[5]
4,040,471
4,040,472
Handled socket exception causing force close dialog on Android device
<p>I have an android app (client) and a server app on my PC. In order to test the connection with the server, I need to open a new socket with the proper IP address and the port on which the server is listening.</p> <p>I want my client app to have a test connection feature. The problem is: whenever I open a connection...
android
[4]
683,468
683,469
c++, when do you need/have to pass data as (*&)
<p>I came across people passing data objects as:</p> <p>declaration:</p> <pre><code>DataObject * data = 0; </code></pre> <p>calling it as:</p> <pre><code>SomeMethod( data ); </code></pre> <p>definition of Somethod:</p> <pre><code>void SomeMethod(SomeObject * &amp; object) </code></pre> <p>My obvious question is,...
c++
[6]
619,038
619,039
C++ byte const* write to file
<p>I'm receiving the following as an argument in a callback function in C++.</p> <p>byte const* Buffer()</p> <p>The Buffer is a pointer to a buffer containing video frame. How can I save that to a file?</p> <p>Thanks</p>
c++
[6]
2,343,186
2,343,187
C# version of CopyOnWriteArrayList
<p>We do not have C# version of <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/CopyOnWriteArrayList.html" rel="nofollow">CopyOnWriteArrayList</a> in standard library. Is there any other open source library available?</p>
c#
[0]
1,955,940
1,955,941
Change HTML/CSS from ASP(C# or VB) code
<p>In my case, I have an HTML/CSS Menu <strong>in the site master</strong>.</p> <p><img src="http://i.stack.imgur.com/tL5Pw.png" alt="enter image description here"></p> <p>So, when you hover your mouse over "Graphics", it highlights it (using CSS onHover).</p> <p>Now what I need to do is that when you actually click...
asp.net
[9]
3,832,420
3,832,421
Storing data on iPad
<p>My application needs to store a list of airports. This list needs be setup manually i.e. its not coming from a web service.</p> <p>I am thinking of creating a Core Data database and then inputting this list myself. This Core db will then ship with the App.</p> <p>Would you recommend any other ways of doing this?...
iphone
[8]
1,549,976
1,549,977
Why does Output to file not work but print statement does?
<p>I have the following code:</p> <pre><code>for node, value in sorted(d.iteritems()): outfile.write([node] + value) print(node, value) </code></pre> <p>I read a few different SO posts about this and am still somewhat confused. The print statement works perfectly, printing the key and value correctly in the i...
python
[7]
5,784,503
5,784,504
over coming extra . in filenames with move_uploaded_file
<p>the $_FILES['tmp_name'] is empty when I'm trying to move the files on the server to the upload dir- i have put the error down to some pdfs have the filename convention of bla.pub.pdf- could this be my problem? how do i over come it?</p>
php
[2]
5,241,320
5,241,321
I Have a problem with understanding some Java code
<p>The Code:</p> <pre><code>package com.keyoti.rapidSpell; import java.util.Comparator; // Referenced classes of package com.keyoti.rapidSpell: // RapidSpellChecker class RapidSpellChecker$CompareL implements Comparator { public int compare(Object a, Object b) { return (int)(100D * (...
java
[1]
340,087
340,088
detecting browser scrolling
<p>How can I know when the user has scroll on the screen?</p>
javascript
[3]
4,144,131
4,144,132
How to produce these views? How Android screens go beyond the simple controls that have Android?
<p>How Android screens go beyond the simple controls that have Android, look at this for example. How come so that each key responds independently? Is it a single image, several or a drawing? <img src="http://i.stack.imgur.com/HJKI2.jpg" alt="enter image description here"></p> <p>How to put each circle in the specifi...
android
[4]
4,101,345
4,101,346
ascii char representation in Java?
<p>If I use a single int to represent an ascii character set, how is using it reducing the storage space by a factor of 8 ? as compared to an array of 256 boolean values ? The single int is also functioning like a bit vector. </p> <p>A boolean in java will occupy 1 bit as it can represent only true or false values. So...
java
[1]
225,706
225,707
Iterate through session array?
<p>I haven't use PHP for some time, and I need some help to create some lines of code. I wrote this line of code some years ago for a website</p> <pre><code>array_push($_SESSION['buildingsAlreadySeenList'],$id); </code></pre> <p>This is my problem, I just want to iterate through the array and put the first value at i...
php
[2]
4,383,799
4,383,800
focus not getting set on td
<p>I am coding for a html wysiwyg editor. I am trying to modify a table already present in the editor. I have a menu from which i can modify rows/columns to the table.</p> <p>After I insert a new row/column I need to set the focus to the new row/column. This works fine.</p> <p>But when i delete a row/column, I am not...
javascript
[3]
3,083,907
3,083,908
How to display start time and stop time
<p>I am very new to C# programming, I have start button in one class, Transfer Start and Transfer Stop labels with TextBox in another class. As well as both are in different tabs in the design also. I am able to display start and stop time in the same tab and class but i am not able to display in another class.I have ...
c#
[0]
3,802,728
3,802,729
Is it bad to run a thread for longer period (+30mins) in Android?
<p>I'm running a thread from a service where i'm listening for changers in the acceleronometer every 3 seconds. So i run the listener in a while loop with Thread.sleep(3000). But it tends to work with shorter duration. But in longer run it seems to get crash the whole application. </p> <p>Any suggestions?</p>
android
[4]
4,062,019
4,062,020
Can we print an ' A ' with ' * '' using for loop in C#
<p>I want to print the letter "A" on screen. The letter should be built using the asterix symbol (*). For instance in a console application.</p> <p>Can this be done in simple way using for loop. </p> <p>For example:</p> <pre><code> ** * * * * ****** * * * * </code></pre> <p><strong>EDIT :</strong></p> ...
c#
[0]
4,742,606
4,742,607
Searching LPSTR string
<p>I want to find some words after i get the whole file to char*. I know how to do it using the string class functions but i don't want to copy the data again to a string variable. is there any similar functions available to use for char* strings or should i still use string class?</p>
c++
[6]
3,752,373
3,752,374
programmatically execute Touch event in android
<p>Can we execute touch event programmatically in android by some method, such as passing screen co-ordinates(x,y)? Is there any such method? Please guide me.</p>
android
[4]
2,435,015
2,435,016
convert image.jpg to <img src="image.jpg">
<p>i have seen this is Facebook, when the user paste the image link www.blahblah.blah\blah.jpg it automatically gets to <code>&lt;img src="...."/&gt;</code> how to do it in PHP ?</p>
php
[2]
4,705,874
4,705,875
cloned android source from github but can't compile it
<p>I just used <code>repo</code> to clone the android source via the following commands</p> <pre><code>repo init -u git://github.com/android/platform_manifest.git --repo-url=git://github.com/android/tools_repo.git repo sync </code></pre> <p>I now have a directory layout that looks like this:</p> <pre><code>~/android...
android
[4]
2,102,142
2,102,143
How to Check in asp.net the Email Id exists or not in asp.net
<p>I want to know that when user registering how to check the email id is exists or not.</p>
asp.net
[9]
2,217,635
2,217,636
how to create a place finder application
<p>I am new to android and trying to develop one place finder application,gps is detecting my current location but how it can show the coffee shop in that area in listview</p>
android
[4]
977,281
977,282
How to place cursor to certain EditText box?
<p>My XML contains Five <code>EditText</code> box and One Button. My cursor is now pointed to the First <code>EditText</code> box. How can I click a button to place the cursor automaticly to Third <code>EditText</code> box.</p> <p>Thank you!</p>
android
[4]
1,315,300
1,315,301
Price formatting for Portuguese
<p>On my website, <code>echo $symbols['currency']; echo $fields['price'];</code> holds a value in US currency format and it outputs R$19800</p> <p>and <code>echo $symbols['currency']; echo number_format($fields['price']);</code> outputs R$19,800</p> <p>How do I format it to output <strong>R$19.800,00</strong> which i...
php
[2]
5,538,183
5,538,184
Javascript: Different return types
<p><br> I saw I could return different type for the same function in JS, which I am new to. Is it idiomatic, or should be discouraged. A mock example is below.</p> <p>thanks.</p> <p>Eg:</p> <pre><code>somefn = function(e) { switch (e.type) { case 'mousedown': return false; case 'mo...
javascript
[3]
1,018,139
1,018,140
create HWND in c#
<p>am import some dll for create the live video. here myprob is i have c++ code like </p> <p>int PLAYER_SDK_SPEC CreatePlayer( HWND hWndParent, RECT&amp; rectPlayer, const char* szWndTitle );</p> <p>in c# i have import dll like </p> <p>[DllImport("PlayerLib")] public static extern int CreatePlayer(IntPtr Handle,...
c#
[0]
1,331,191
1,331,192
How to count lines in a string?
<p><strong>I am removing text from a string and what to replace each line with a blank line.</strong></p> <p><em><strong>Some background:</em></strong> I am writing a compare function that compares two strings. Its all working fine and are displayed in there two separate web browsers. When i try scroll down on my brow...
c#
[0]
4,238,523
4,238,524
Webservice replacing old service in .net application
<p>I am trying to replace the old web service with a new web service. Is it possible to replace the old service with a new one?</p> <p>If it's possible in coding where and are all I have to change .. Please help me on this..</p> <ul> <li>old service name <code>is:xyz.wsdl</code></li> </ul> <p>How can we know that se...
c#
[0]
798,821
798,822
Break decimal value into two values (before and after decimal)
<p>How to break a decimal value into integer values, first value should be the value before decimal and the other value of after decimal.</p> <p>Problem : Decimal place is unknown as well as the number of digits; ex : </p> <pre><code>double value = 2635.215; int firstValue = 2635; // Should be int secondValue = 215; ...
c#
[0]
3,537,556
3,537,557
cgi scripts with no server
<p>My goal is to use to make it easy for non-programmers to execute a Python script with fairly complex options, on a single local machine that I have access to. I'd like to use the browser (specifically Safari on OS X) as a poor man's GUI. A short script would process the form data and then send it on to the main pr...
python
[7]
4,717,801
4,717,802
How can i determine when my application is running?
<p>I have an application that uses a Service to fetch data in the background both while the application is running and when it's not. When it is not running i would like to show a notification when there is new data, but not when the app is running.</p> <p>How do i determine in my service whether the app is running or...
android
[4]
292,833
292,834
C++ -- How to prevent an object from being allocating on stack?
<p>you have a class A, where you set ctor to be private, so a client can't call</p> <pre><code>A a; </code></pre> <p>to create obj on stack. But someday another developer adds a new ctor:</p> <pre><code>A(int) </code></pre> <p>and try to call "A a(1);" inside main(). So this will create a obj on stack. How do you p...
c++
[6]
1,896,582
1,896,583
Creating closures in a loop in JavaScript
<p>I have this scenario:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="jquery-1.4.4.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; var actions = { 'view' : function(){alert("view");}, 'history': function(){alert("history");}, 'renewal': function(){alert("rene...
javascript
[3]
5,330,959
5,330,960
Create ISO image file from CD/DVD with C#
<p>So I nedd to develop an application in C#, the user of this application will choose a source device (CD or DVD) from wich the iso image will be created, and a destination of the ISO image. My question is what libraires available that I can use to acheive what I just described?</p> <p>Thnaks</p>
c#
[0]
1,740,132
1,740,133
Best way to represent a tooltip on a table
<p>I have a table with lot of information that needs to display on each cell. I currently have images to represent the presence of information and on hover of these images, I would like to display additional info. I was impressed with the meetup.com and facebook style tool tips divs which display more information on ho...
jquery
[5]
2,482,823
2,482,824
Invoke SAP Webmethods in ASP.NET app?
<p>Can any body help me on calling a SAP Webmethod using ASP.NET application.</p> <p>Thanks, -Narendra</p>
asp.net
[9]
4,362,022
4,362,023
How big in bytes is a DataRow
<p>I have a one-time process (hashing all our user passwords) written using datasets. The performance needs improvement so we've profiled the application and found that increasing the 'batch size' of the update will improve performance. I also know that if I load the entire data set into memory the application will s...
c#
[0]
4,314,232
4,314,233
How to change the width of the row of a UITableView
<p>Can we resize the width of the row of a UITableView.</p>
iphone
[8]
2,323,636
2,323,637
Iteration in a single line
<p>I have some code of the form:</p> <pre><code>for i in range(nIterations): y = f(y) </code></pre> <p>Where <code>f</code> is a function defined elsewhere. hopefully the idea of that code is that after it's run <code>y</code> will have had <code>f</code> applied to it <code>nIterations</code> times.</p> <p>Is ...
python
[7]
1,563,207
1,563,208
Self modifying code - iPhone
<p>After reading this wikipedia article :</p> <p><a href="http://en.wikipedia.org/wiki/Self-modifying_code" rel="nofollow">http://en.wikipedia.org/wiki/Self-modifying_code</a></p> <p>I am wondering if this technique has been done on iPhone.</p> <p>Thanks</p> <p>Thierry</p>
iphone
[8]