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,552,171
2,552,172
why do we need both const and non-const getters in this example
<p>I came across this example <a href="http://groups.google.com/group/comp.lang.c++.moderated/browse%5Fthread/thread/d9f7ec296d353943/6626b24459472798?show%5Fdocid=6626b24459472798" rel="nofollow">here</a>:</p> <pre><code>#include &lt;vector&gt; #include &lt;cstddef&gt; template&lt;typename Tag&gt; class Ref_t { s...
c++
[6]
2,570,526
2,570,527
how to change tab of a tabactivity from an activity started by the tabactivity ? or change current tab
<pre><code>public class HMITabActivity extends TabActivity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final TabHost tabHost = getTabHost(); tabHost.addTab(tabHost.newTabSpec("Tasks") .setIndicator("Tasks", getResources...
android
[4]
2,874,986
2,874,987
Use PHP to Save Webpage Content on the same URL
<p>I need to use PHP to save a webpage which has content generated in an iFrame, Its like this..</p> <p>I have a .PHP file with an iFrame (inside which it opens a URL which produces dynamic content) inside it.</p> <p>I want the Php file to save the generated content (or the whole source) to the server.</p> <p>I trie...
php
[2]
675,675
675,676
MediaController positioning over VideoView
<p>I have a VideoView that takes up the top half of the Activity in portrait orientation with the bottom half of the screen showing some images and text. I am playing a rtsp video stream in the video view when the Activity starts. I have attached a MediaController to the VideoView via the following code:</p> <pre><c...
android
[4]
5,758,159
5,758,160
Regarding Object class function access from a user defined class
<p>We can use base class functions by extending from subclass.Generally we use equals() method which is defined in Object class.I read in the book that every class will extend Object class and so that we are able to use functions like equals() in our user defined class with subclass reference.</p> <p>One doubt i am ha...
java
[1]
4,913,748
4,913,749
eval inside of eval
<p>I am just wondering if there are situations when there are any benefits of using eval function inside of another eval function? Can anyone give an example when one eval function inside of another is actually helpful?</p>
javascript
[3]
3,701,776
3,701,777
How to: Layout fixed size components with justified spacing
<p>When I have 1, 2 or 3 components I know how to get them to space properly. But now I have a view that will have 4, 5, ... components in it. Rather than increasing the size of the components (via weight), I need them to remain a fixed size. So... is there any way to lay these out with justified spacing (evenly spa...
android
[4]
1,381,570
1,381,571
How to respect network use settings in Android
<p>My app performs some backgound data collection and I'm adding support for the user network preferences, such as performing background updates and data roaming. I have the following checks already:</p> <pre><code>ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); ...
android
[4]
1,282,211
1,282,212
Join two arrays in Java?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/80476/how-to-concatenate-two-arrays-in-java">How to concatenate two arrays in Java?</a> </p> </blockquote> <p>I have two objects</p> <pre><code>HealthMessage[] healthMessages1; HealthMessage[] healthMessages2; ...
java
[1]
5,650,602
5,650,603
get session in php page
<p>how can i get all the SESSION variables in a particular php page?</p>
php
[2]
1,256,452
1,256,453
How to create Message List Screen?
<p>I want to create the User interface in which contains Image Button, textbox and button at bottom. Title and label at the top of the screen and whenever user type and clicks the button I want to show entered text in rectangle with some color background like the floating bubble. When user enters another text then agai...
android
[4]
282,740
282,741
What data type should I use to represent money in C#?
<p>In C#, what data type should I use to represent monetary amounts? Decimal? Float? Double? I want to take in consideration: precision, rounding, etc.</p>
c#
[0]
872,308
872,309
What is the significance of single quotes vs double quotes in comparisons?
<p>This returns an error:</p> <pre><code>return (arg[0] == "-" &amp;&amp; arg[1] == "-") ? true : false; </code></pre> <p><em>error: ISO C++ forbids comparison between pointer and integer</em></p> <p>However, this does not:</p> <pre><code>return (arg[0] == '-' &amp;&amp; arg[1] == '-') ? true : false; </code></pre>...
c++
[6]
3,703,810
3,703,811
Can Dynamic Array be used only in classes and struct?
<p>can anyone pliz let me know what am i doing wring in the following code. Also pliz let me know if this method only works with classes and struct? I was trying to solve this using one dim array but was not successful. Using structs to compile this also seems challenging. Any help will be appreciated.Kind Regards</p> ...
c++
[6]
32,949
32,950
When would I use an alias on a using Directive?
<p>So I was reading over the MSDN docs and came across:</p> <p><a href="http://msdn.microsoft.com/en-us/library/sf0df423.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/sf0df423.aspx</a></p> <p>What is a practical use of using an alias for <code>using</code> directives? </p> <p>I get what is does, I jus...
c#
[0]
5,918,352
5,918,353
Browse Server Folders in Client
<p>I have a requirement for an admin user to set up an export directory on the web server, or relative to the web server using a UNC. Is there anything already out there that I can use for this, or must I recurs a limited directories and populate a home-rolled directory browser on the client?</p>
asp.net
[9]
4,979,288
4,979,289
C# code to Import Excel data in to SQL server 2008
<p>My question which is the best approach to import the data from Excel to SQL server 2008. It has lots of check like duplicates check etc.,</p> <p>I would say we have </p> <p>1.Import Export wizard<br> 2.SSIS package<br> 3.Create a .NET Console App with inline query<br> 4.Create a .NET console app with stored pro...
c#
[0]
2,141,024
2,141,025
How to push text into newly created file by shell script from PHP?
<p>i used PHP site to run a shell script and it created my desired name file "result.txt" inside /opt/xampp/htdocs. However, the result.txt is totally empty, when it is supposed to have output values from the shell script. Tried on terminal, result.txt is created on Desktop and outputs are there. Tried on PHP, result.t...
php
[2]
1,438,511
1,438,512
var_dump and simpleXML?
<p>I'm loading an XML file in via simpleXML. I'm a novice at best at PHP and new to parsing PHP but I'm a little confused</p> <p>I'm trying to understand the structure of the variable I have stored, so I tried var_dump()</p> <p>The thing that's confusing me is the data I'm looking for that's in the XML is <em>not</em...
php
[2]
2,860,672
2,860,673
Only replace own website url in text with HTML links
<p>When user post a comment, i strip all the html tags in the comment before insert into my database because i do not want them to post external links(SPAM) in the comment. But i only want to strip external links, i want to display my own website URL as normal clickable links. How to detect the URL is my own website's ...
php
[2]
3,587,005
3,587,006
Passing PHP form variables from one page to other
<p>my php configuration on server are showing i can post variables to maximum size upto 8MB , thats enough .. but how to check for number of variables , sever is running ubuntu 4.4 , php .</p> <p>i have a page which takes students marks and send them to a action page , but on action page doing echo for the post variab...
php
[2]
5,826,943
5,826,944
Specifying a parameter in C#'s OrderBy methods
<p>Good morning,</p> <p>Let's imagine I have a list of Tuple elements, and a function taking a String and returning a Double, for example. How can I, from some other method, use the list's <code>OrderBy</code> method with that function calculated only on the first coordinate of each tuple? For example, <code>return Li...
c#
[0]
4,452,492
4,452,493
Android: How do I use the volume buttons to initialize an app?
<p>I'm like working on an app that will call home when I press down the volume. </p> <p>I have a working Dial / Call method. Now I need help figuring out how to get it all encapsulated in a method that will activate when the volume key down is pressed and held. </p> <p>Any advice would help immensely.</p>
android
[4]
3,782,218
3,782,219
ASP.NET: Highlight menu item of current page
<p>I've been trying to find an easy way of highlighting the current selected menu item of an asp.net menu (so the user knows which page they are on), but no matter what I have tried I can't get it to work. In my markup I have:</p> <pre><code>&lt;asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewSta...
asp.net
[9]
2,275,525
2,275,526
Is there any command to enable/disable a php extension from command line?
<p>Is there any command to enable/disable a php extension easily from command line? (php.ini)</p>
php
[2]
2,338,017
2,338,018
unexpected T_DOUBLE_ARROW when referring to an Array
<p>I think its because I am not referring to the array properly. I'm new to PHP so I faced this error.</p> <p>On this line <code>$this-&gt;fields['id'] =&gt; &amp;$doc-&gt;id;</code></p> <p><strong>Code is given for reference:</strong></p> <pre><code>&lt;?php class Zoho{ public $fields; public function __...
php
[2]
1,118,060
1,118,061
How to make a 3D object array in JavaScript?
<pre><code>lyricsInp = document.getElementById("lyrics").value; var lines = lyricsInp.split("\n"); for (i = 0; i &lt; lines.length; i++) { holder[0][i] = new Array(); words = lines[i].replace(/[ \t\r]+/g, "###").split("###"); for (j = 0; j &lt; words.length; j++) { holder[0][i][j].word = words[j]; ...
javascript
[3]
3,285,179
3,285,180
Why does this keep going around in a never ending loop?
<pre><code>def get_houseid_list(): """Returns a list of all house ids from db""" print 'Building list of all HouseIDs...' houseid_list = [] houseids = session.query(Episode.HouseID).all() for i in houseids: houseid_list.append(i[0]) return houseid_list def walkDir(top, ignore=[]): ...
python
[7]
1,878,384
1,878,385
Is there a way to only pass a certain variable and it's value with the include function?
<p>I want to include a page that contains a variable with a value that I need to insert in a database, but when I include the page, functions out of the scope of the second page try to run, which leads to an undefined error. </p> <p>Basically I want this:</p> <pre><code>mainpage.php &lt;?php $variable = 'val...
php
[2]
3,416,432
3,416,433
I cannot close my launcher app after startup
<p>My application works as a launcher and also it starts on startup. However, something is wrong with it. For instance, I install my application on device, and open it by selecting Always button (as default launcher). There is no problem until here. However, if I reboot my device (it opens on startup, as I said before)...
android
[4]
3,145,442
3,145,443
can you please help me am very new to java and i have this assignment
<p>Write a Java program to read N integers from the keyboard and store them into a file “mynumbers.dat”. Reading should stop when zero is entered. Your program should then perform the following operations on the set of integers entered:</p> <ol> <li><p>Remove redundant elements</p></li> <li><p>Sort the elements entere...
java
[1]
4,834,861
4,834,862
Centering an element to the viewable area with Jquery
<p>I have a huge scrollable area. In one section I have a grid of thumbnails. When clicked, the thumb is cloned and animates out to the center of the screen, but it animates to the center of the entire area, not the area that you are viewing i;e, the area of have scrolled to. How can I get it to animate to the center o...
jquery
[5]
5,131,422
5,131,423
Can I create multiple dlls from one project?
<p>I have a very large website which was "published" using Visual Studio 2008 to the dev/live server. As a result, there are no *.aspx.cs files on the live server, just "website.dll" - all good so far.</p> <p>However, because we're constantly having to add pages to the site this now means that if I'm half way through...
c#
[0]
434,368
434,369
How to overwrite a HashSet element in Java while iterating over it
<p>Is it possible to overwrite some HashSet element (not necessarily the one iterated) while iterating over it. I want to know of a way apart from removing, editing and then re-adding it? The reason I am asking this is because using remove while iterating always gives the java.util.ConcurrentModificationException. I fi...
java
[1]
587,422
587,423
Refresh tableLayout
<p>Hi I have a tableLayout and am populating the layout with ImageView[][] using a nested for loop. I'm currently trying to click on an ImageView and rearrange the ImageView[][] data then refresh the screen to reflect the rearrangement. Is there a way to do this? Apparently I can't call the setContentView more than onc...
android
[4]
2,667,891
2,667,892
imeOptions actionDone with Android 2.3
<p>I have a few EditTexts where I've set the imeOptions to actionDone. When I run my application in the emulator using either Android 2.1 or Android 2.2, the enter key on the virtual keyboard becomes "done."</p> <p>However, (and I've not tested this in the emulator), when I run my application on my phone, which is ru...
android
[4]
2,075,217
2,075,218
Fastest way to test if N milliseconds is elapsed from some event
<p>I'm writing udp multicast datagrams receiver.</p> <p>If I receive datagram with number X and datagram "X-1" still not received I should wait for 5 ms (because UDP doesn't garantee order of packets) and if datagram "X-1" still not received I should recover.</p> <p>How to do that? I want to store for each received p...
c#
[0]
2,570,041
2,570,042
how can i prevent the get url to show text or random text instead
<p>eg, $search = $_GET[$id];</p> <p>instead of showing website.com/result.php?find=56</p> <p>it would be website.com/result.php?find=sometext</p> <p>in the db 56 is the id and sometext is the title how can i get the title to show instead when i use the get url id function</p>
php
[2]
1,851,661
1,851,662
realtime update text in javascript by same id
<p>How do I update the text in the id="b"?</p> <pre><code>&lt;script type="text/javascript"&gt; function updateb() { var a= document.getElementById("a").value; var b = document.getElementById("b").innerHTML = a * 10; } &lt;/script&gt; &lt;input type="text" id="a" name="a" value="10" onKeyUp="updateb();" /&gt;&lt;p id...
javascript
[3]
2,187,341
2,187,342
Why Screen is blinking when I am moving Object?
<p>I need to move object on screen, but when the object is moving the Screen is blinking (and the object too).</p> <p>How can I fix it ? What is the best way to move an object on screen ?</p> <p>Thanks in advance</p>
c#
[0]
1,572,268
1,572,269
How to represent "1\0" + "2" as a single string in javascript?
<p>Given the code below:</p> <pre><code>alert(encodeURIComponent("1\0" + "2")); // shows 1%002 alert(encodeURIComponent("1\02")); // shows 1%02 </code></pre> <p>Why is there a difference in the output?</p>
javascript
[3]
2,413,411
2,413,412
malloc: *** error for object 0x1001002e0: pointer being freed was not allocated
<p>please help me I am running the code of api microtik, but I have this error</p> <pre><code> malloc: *** error for object 0x1001002e0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug </code></pre> <p>any body could help me?</p>
c++
[6]
4,170,793
4,170,794
Reading from set possition in binary file (java)
<p>I am making a small program in java, and i want it to read from a set position in a binary file. Like substring only on file streams. Any good way to do this?</p> <pre><code>byte[] buffer = new byte[1024]; FileInputStream in = new FileInputStream("test.bin"); while (bytesRead != -1) { int bytesRead...
java
[1]
684,385
684,386
Animate a shape's property
<p>I wanna make a normal shape say a rectangle (scaleable and animatable) in some properties and draw it on canvas.</p> <p>e.g. Transform height from 50 to 100, Transform color red to blue (using the diff of RGB) and scale it by different interpolator. </p> <p>Should I extends ShapeDrawable and implements animatable ...
android
[4]
145,093
145,094
Splitting a string by capital letters
<p>I currently have the following code, which finds capital letters in a string 'formula': <a href="http://pastebin.com/syRQnqCP" rel="nofollow">http://pastebin.com/syRQnqCP</a></p> <p>Now, my question is, how can I alter that code (Disregard the bit within the "if choice = 1:" loop) so that each part of that newly br...
python
[7]
5,051,118
5,051,119
php strong ban system based on ip address
<p>I have a social networking website I want build a banning system based on ip address. About how we can control a user with dynamic ip address? If I will block user based on account he/she can create new account. What will be best solution? </p>
php
[2]
5,267,384
5,267,385
password storeage and retrieval
<p>when using password and id they would have to be stored in a file . not in the source code. how does one store and retrieve the pass codes. all i have seen is input boxes. are the files random access or other type files? One has to have a way to store and retrieve over a million pass and id's </p>
javascript
[3]
4,116,364
4,116,365
Why single var is good in javascript?
<p>Can anyone tell me why use one var declaration for multiple variables and declare each variable on a newline consider is a good programming behavior?</p> <pre><code>// bad var items = getItems(); var goSportsTeam = true; var dragonball = 'z'; // good var items = getItems(), goSportsTeam = true, dragonball ...
javascript
[3]
426,536
426,537
Sending select option with jquery to a php file...?
<p>I have looked for 2 days to find out how to send a variable with jquery to php. I have searched for over 100 posts on stackoverflow, i tried multiple examples. But i just get it done. So i really hope someone over here would be kind enough to help me find out what i am doing wrong....</p> <pre><code>&lt;?php print_...
jquery
[5]
5,711,362
5,711,363
How to always start from a startup activity on Android?
<p>There are three different cases:</p> <p>1) A user launches an app, navigates in it, pressed home and click on the app icon again to launch our app again.</p> <p>2) A user launches an app, navigates in it, presses home, chooses recent and click on the app to launch our app again.</p> <p>3) A user launches an app, ...
android
[4]
619,957
619,958
send message from desktop server to client android using JSON file?
<p>in android, how to make connection between client android and desktop server using http and put timer that check for requested URL and the server send message in JSON file to client android then in client android will parser JSON file and get the message that the server send it </p>
android
[4]
2,787,685
2,787,686
How to check if my application is running in android(not as a service)?
<p><strong>Problem:</strong> I have to check if my app is running or not(when a service is already running in background). Based on it I am suppose to either start particular activity or the app.</p> <p><strong>Thing I tried or come up with but failed</strong> I tried to check current running process and based on it t...
android
[4]
5,992,846
5,992,847
Add UIToolbar to UIViewController
<p>How to add <code>UIToolbar</code> to the below <code>UIViewController</code>.</p> <pre><code>PageOneViewController *viewController = [[PageOneViewController alloc] init]; [self presentModalViewController:viewController animated:YES]; [viewController release]; </code></pre> <p>This <code>UIViewController</code> i...
iphone
[8]
4,560,938
4,560,939
iPhone: iOS 4.3 SDK Simulators stuck up and crashing:
<p>I have updated my Mac to 10.6.7 with Xcode 4. I am trying to build and run some projects which has downloaded from Internet. I set the deployment target as 4.1/4.2/4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. For ex: i downloaded a project from the following link from G...
iphone
[8]
5,302,229
5,302,230
What is the best way and approach to start learning Android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2869338/where-to-start-to-learn-android">Where to start to learn Android?</a> </p> </blockquote> <p>Hello,</p> <p>I am going to start learning android. I want to know from all those Android Developers as to wha...
android
[4]
4,063,174
4,063,175
How to avoid memory leak in handler?
<p>My library code will notify byte array to UI,which in turn queued.Another thread will dequeue the byte array and using an instance of handler bundle the byte array and send message to update UI.</p> <p>code snippet which use handler to update UI</p> <pre><code>public void run(){ while(running){ ...
android
[4]
3,963,887
3,963,888
Compare the lengths arrays that have duplicates
<p>I wish to determine whether there are any duplicates in two arrays, i.e. duplicates in array1 or duplicates in array2. If there are, then set a variable to equal 1, otherwise 0. I have the following code but it does not seem to work and I cannot understand why:</p> <pre><code>$a = count(array_unique($myarraydf)); ...
php
[2]
3,550,715
3,550,716
How can I separate a number and get the first two digits in PHP?
<p>How can I separate a number and get the first two digits in PHP?</p> <p>For example: <code>1345</code> -> I want this output=> <code>13</code> or <code>1542</code> I want <code>15</code>.</p>
php
[2]
1,176,048
1,176,049
android honeycomb list menus
<p>I feel stupid for asking: What are the drop menus on honeycomb apps called? I'd like to use them in my app but i don't even know where to start.</p> <p>An Example from Google Music, notice the triangle in the corner:</p> <p><img src="http://i.stack.imgur.com/WUxEh.png" alt="unopened menu"></p> <p>Here it is opene...
android
[4]
450,633
450,634
Another Nesting List comprehension?
<p>In python, suppose I want to turn this list:</p> <pre><code>['EFJAJCOWSS', 'SDGKSRFDFF', 'ASRJDUSKLK', 'HEANDNDJWA', 'ANSDNCNEOP', 'PMSNFHHEJE', 'JEPQLYNXDL'] </code></pre> <p>Into:</p> <pre><code>[['E', 'F', 'J', 'A', 'J', 'C', 'O', 'W', 'S', 'S'], ['S', 'D', 'G', 'K', 'S', 'R', 'F', 'D', 'F', 'F'], ['A', 'S', '...
python
[7]
2,032,448
2,032,449
str_replace() ignores the count parameter?
<p>As given <a href="http://php.net/manual/en/function.str-replace.php" rel="nofollow">here</a> str_replace() count parameter should stop if certain replacements are done. Right?</p> <p>Here is my code:</p> <pre><code>define("PLACEHOLDER", "INSERT INTO `listings` VALUES (NULL, '%s', '%s', '%s', '%s', '%s', '%s', '%s'...
php
[2]
4,366,338
4,366,339
jQuery autocomplete change overriding form submit
<p>I have implemented jQuery autocomplete combobox and its working fine. Now I have a wierd issue. Whenever the user types in the combobox and immediately submits the form, the change event in autocomplete is fired which overrides the submit of form. How can i make it work?</p>
jquery
[5]
2,226,467
2,226,468
help with if statement
<p>Hey guys im just messing around and I cant get this to work:</p> <pre><code>public static void main(String[] args){ Scanner input = new Scanner (System.in); String x = "hey"; System.out.println("What is x?: "); x = input.nextLine(); System.out.println(x); if (x == "hello") System.ou...
java
[1]
3,759,732
3,759,733
asp.net web page over vpn
<p>I published a web application to one of app servers. Now, if I am connected within my company network (no login require), I can access the web site no problem. Now, if I am connected from outside of the network over VPN, I can't access the website (Getting page not found appears). Do I need to configure IIS on th...
asp.net
[9]
688,585
688,586
is there any fuction in java which behaves like getopt from c
<p>Hello I am working on command line application which can accepts command line argument like </p> <pre><code>app -port 8888 -filename d:\xyz\xyz.pdf -dest d:\pqr </code></pre> <p>i am looking for fuction which can return me pair of option and it corresponding value like getopt in c.</p>
java
[1]
1,809,454
1,809,455
Having one request object as a Method Signature parameter, which constitute all the required parameters
<p>A method signature is part of the method declaration. It is the combination of the method name and the parameter list. </p> <p>So instead of specifying a list of parameters, I just want to pass a request object which constitute all the parameters. It might not be true for all the methods, but want to try wherever i...
java
[1]
3,267,425
3,267,426
take this.id as input and output a changed id for input into a new function
<p>I have a jQuery script that manages a submenu. When the user clicks a div, the div changes to active and then the content changes color accordingly. The buttons have an id tag that is the same as the corresponding div tag, with '_button' added. For example the div to change the color of has id tag 'first', then the...
jquery
[5]
2,835,166
2,835,167
jQuery slide vertical images
<p>I hope someone can help me with the following problem.</p> <p>I have a vertical scrollbar on my website which shows 5 images and will scroll 5 images further or back, depeding on where you clicked.</p> <p>The jQuery code looks like this.</p> <pre><code>$(".productSlide .scrollable").scrollable(); $(".productSlide...
jquery
[5]
5,223,076
5,223,077
how to create a list view in onitemclicklistener of another listview?
<p>I want to create an a <code>ListView</code> item on click listener of another <code>ListView</code>, is it possible to do this? let me know how to update a existing <code>ListView</code> with new values.</p>
android
[4]
841,074
841,075
jQuery Selects Plugin, pull variables from database
<p>I'm using this code to be able to generate an dynamic select: demo: <a href="http://www.erichynds.com/examples/jquery-related-selects" rel="nofollow">http://www.erichynds.com/examples/jquery-related-selects</a> code: <a href="https://github.com/ehynds/jquery-related-selects" rel="nofollow">https://github.com/ehynds/...
jquery
[5]
956,897
956,898
UI Widget drawing in order
<p>I have a custom UI Widget library I've created for a game I'm working on. I need to consider drawing order and retro fit it into what I currently have and not sure of the best way to do so. I have a UI class which loads the widgets from an xml file. It stores all widgets in a map where the key is the string name of ...
c++
[6]
415,630
415,631
error in installing android sdk starter package
<p>I have downloaded eclipse, the android SDK starter package, and installed the "Developer Tools." Following the guide on developer.android.com exactly. After the developer tools have installed, and eclipse restarts I get two error messages:</p> <p>1: "SDK Platform Tools component is missing! Please use the SDK Manag...
android
[4]
5,070,773
5,070,774
Recording outgoing call after receiving by the receiver from my Android application?
<p>I want to make a call recording application where user can record his outgoing call. I have done it. But one little problem, call is recording when I am starting to dial a number. I want that , the call will be recorded when the receiver will receive it. Otherwise no sound will be recorded. That means, I want a soun...
android
[4]
1,255,005
1,255,006
How to load class at runtime in android app?
<p>In my android project I've two layouts in that first layout having one button if i click that button I need to display the second layout in the same layout for this I created a view by using <code>LayoutInflater</code> and attached it to "Table Layout" which is present in first layout.</p> <p>Everything should be f...
android
[4]
1,897,937
1,897,938
How to see inbulit classes
<p>I am using android in eclipse . I wanted to see inbuilt classes in android such as 'BaseAdapter' class. Please suggest a method for seeing the content of those classes.</p>
android
[4]
4,007,250
4,007,251
Count occurrences of a couple of specific words
<p>I have a list of words, lets say: ["foo", "bar", "baz"] and a large string in which these words may occur. </p> <p>I now use for every word in the list the "string".count("word") method. This works OK, but seems rather inefficient. For every extra word added to the list the entire string must be iterated over an ex...
python
[7]
5,736,637
5,736,638
reference objects on the stack
<p>Does C# allow you to put reference objects on the stack? Why would you want to do that? What does this mean?</p>
c#
[0]
1,456,341
1,456,342
Javascript animation WITHOUT jquery/settimeout/setinterval
<p>As the title says.. is there any possible way to have the simplest of animations in javascript without the use of Jquery, settimeout, and setinterval. I've been researching for too long now and cannot find anything. There may not be a way to do it, just wondering. Looking for something cross browser as well, so CSS ...
javascript
[3]
100,699
100,700
expand Tiny url in java
<p>I want to write a code in java that takes a url identify whether it is tiny url or not. if yes then it will identify the url is malicious or not. if not malicious print the url...</p> <p>Please can any body help me....</p>
java
[1]
2,369,277
2,369,278
How to attach the source in eclipse using java program?
<p>How can i attach the source in eclipse using java program? Can anyone help me??? Thanks in advance..</p>
java
[1]
4,084,933
4,084,934
iphone application icon was blur when show on the itunes store
<p>my icon was blur when show on the itunes Store but fine in iphone's locally appstore,my large icon format is:</p> <p>pixel:512X512 format:png dpi:72</p> <p>can anybody point to me what is the reason of icon getting blur in itunes store since i have followed all the spec required by apple alr</p>
iphone
[8]
2,393,595
2,393,596
Inserting values into comboBoxes
<p>I want to use a comboBox in a form that allows users to select the pizza size. I can fill in the comboBox with the strings "small", "Medium", "Large", etc., but I want to associate a price to each string. So a "small" would be $7.99, medium would be 12.99 etc. </p> <p>So how do I add a value to the string in eac...
c#
[0]
423,118
423,119
Suppressing/hiding/overriding Android call UI
<p>Is it possible to initiate an outgoing call without having the phone invoke it's default dialing screen? The point is to be able to make a call without someone knowing I'm making a call.</p>
android
[4]
5,569,375
5,569,376
ASP.NET:Get data into Radiobuttonlist from database
<p>I am trying to insert data into radiobuttonlist from the database. but i get this error: Index was out of range. Must be non-negative and less than the size of the collection.</p> <p>even though i have set the datatype of the field as VARCHAR(MAX). and the data in that field is a simple 4 letter word..say 'john'.</...
asp.net
[9]
3,477,114
3,477,115
PHP Different Environments for Different Users
<p>I've got a PHP application which already has multiple environments setup on different servers (Development, Staging and Production). I'd like to be able to direct different users to different environments based on a database column. We charge users a monthly fee for this application, and we'd like to be able to offe...
php
[2]
1,156,398
1,156,399
If you use a database to store $_SESSION with session_set_save_handler should you encrypt?
<p>If you use a database to store $_SESSION with session_set_save_handler should yoou encrypt? If you should encrypt any recommendations on what to use to encrypt?</p>
php
[2]
2,237,304
2,237,305
android how to show virtual keyboard when pop up a custom dialog
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2403632/android-show-soft-keyboard-automatically-when-focus-is-on-an-edittext">Android: show soft keyboard automatically when focus is on an EditText</a> </p> </blockquote> <p>I want to show the soft keyboard wh...
android
[4]
80,169
80,170
open the image from a gallery
<p>i m following the helloGallery tutorial but i would like to open the image when i click it instead of present a toast with the position of the image...any help?this is my code,that presents the position:</p> <pre><code> g.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(Adapte...
android
[4]
5,401,319
5,401,320
graph drawing using Java
<p>I'm doing graph but I'm stuck; could anyone let me know, How can I draw edge between 2 nodes (I'm using Java) </p> <p>I have two nodes, but I'm looking for edges between them.</p> <p>thanks </p>
java
[1]
3,737,784
3,737,785
Traditional Practice to initialize the field members of a class
<p>I come from C++ background, where the field of a class are initialized inside the constructor. But here is java I see that I can initialize then while declaring, which is different from C++.</p> <p>So, I my question was which is the best/traditional practice to initialize the field members of any class. Is it...</p...
java
[1]
3,538,683
3,538,684
how would i manage to install python's boto library on shared hosting?
<p>how would i manage to install python's boto library on shared hosting?</p>
python
[7]
1,606,583
1,606,584
How to add my custom android application on to the Android software stack?
<p>I have one requirement to add my custom application on to the Android software stack where all core application are added (Home, Calendar,Contacts etc...), so it will always be a part of core application and when user will switch on the device they can find my custom application also available on the home screen.</p...
android
[4]
549,883
549,884
Need some jQuery to remove an <a> tag with an empty href
<p>I've tried a couple times but can't seem to figure out how to write a simple piece of jQuery to remove an tag if the href is empty. Here is the string I need to remove.</p> <pre><code>&lt;a id="single_image" href=""&gt;Zoom&lt;/a&gt; </code></pre> <p>Any suggestions? Thanks in advance!</p>
jquery
[5]
2,526,036
2,526,037
Reference to Member Variable in Function declaration in C++?
<p>I'm trying to do something like the following:</p> <pre><code>class FOO { void bar(int&amp; var = m_var) { // .... } int m_var; }; </code></pre> <p>Why doesn't this compile? Why didn't they program this into the language? Is there any way to mimic this behavior?</p>
c++
[6]
3,315,434
3,315,435
is a streaming server necessary to play iPhone streaming video?
<p>I am a noob with regards to this. I just wanted to know if a streaming server is necessary to play streaming videos on the iPhone. </p> <p>e.g. I have a couple of mp4's hosted on a server. Can i play those files directly using MPMoviePlayerController with the URL <a href="http://xxxx.xx.mp4" rel="nofollow">http://x...
iphone
[8]
1,652,365
1,652,366
Currency format in OpenXML
<p>I am using OpenXML in .net 3.5 to export data table to Excel and want to show specific column as currency. For example want to show 24.5 as $24.5.Please provide appropriate solution. </p> <p>Thanks in Advance </p>
asp.net
[9]
4,945,571
4,945,572
Is it ok to overwrite the default Math.round javascript functionality?
<p>I have no need to use the Math.round functionality if it does not allow me to choose how many decimal places I want. So I have created the following function that I use instead.</p> <pre><code>Number.prototype.round = function(precision) { var numPrecision = (!precision) ? 0 : parseInt(precision, 10); var r...
javascript
[3]
5,756,695
5,756,696
A class with 2 names?
<p>While reading code I came across a class which has 2 identifiers 'naming it':</p> <pre><code>class A_EXP Node { //.. }; </code></pre> <p>I am not able to understand what this means. Could someone help me out?</p>
c++
[6]
3,821,359
3,821,360
how to throw the value of a variable from loop of one class to another class
<p>i am trying to use the value of a loop of one class into another class how can i do it. please help me..</p> <pre><code> while (!sStreamReader.EndOfStream) { string sLine = sStreamReader.ReadLine(); // make sure we have something to work with if (Str...
c#
[0]
1,380,949
1,380,950
When invoking .NET CLR from within C++, an error is returned
<p>I am calling a .NET assembly from C++. </p> <p>This works perfectly for any test .NET 4.0 projects that I call. </p> <p>However, when calling a large project with 20 sub-assemblies, it fails with the error below:</p> <pre><code>Failed to execute assembly: 0x80004003. GetLastError=126. dwReturn=1. </code></pre> <...
c++
[6]