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,303,217
2,303,218
how to show progress bar moving from one activity to another activity in android
<p>I want to show progress bar to going from one activity to another activity until another activity is loaded can anybody give example</p> <p>Thanks</p>
android
[4]
4,039,627
4,039,628
Prevent ToggleButton from switching state
<p>I have a ToggleButton, when you click it, I don't want the state to change. I will handle state changes myself when after I receive feedback from whatever the button toggled. How might I prevent the state change on click?</p>
android
[4]
1,753,859
1,753,860
Quickaction bar on android google map marker
<p>You guys probably heard of the quick action bar which is really great for user interaction. But I can't find the way to show the quick action bar when user tap on the marker on android's google maps. Anyone can help?</p>
android
[4]
3,340,145
3,340,146
Android activities can execute when not in foreground
<p>Android activities can execute when not in foreground. In one page am having chronometer means can i run that with out pause..No means wt i do to run with out pause.. give me any idea.. thank you,</p>
android
[4]
217,553
217,554
Transfer data from Form2 to Form1 is throwing System.Nullreferenceexception
<p>I have two forms form1 and form2 and I want to transfer the value from form2 to form1. Form1 has a textbox where I want the value from Form2 Form2 has a button on its click the value gets from textbox on form2 to the textbox on form1 </p> <p>Here is my code :</p> <p><strong>Form2.cs</strong></p> <pre><code>priv...
c#
[0]
1,042,058
1,042,059
iphone iads animation
<p>Hi all I am working on the iAds. I want to animate the ad banner when the ad changes. Is there any way to make them animate automatically? or is it that we should do it manually each time the ad changes.?</p>
iphone
[8]
628,769
628,770
How to identify buttons click event which is on the custom cell?
<p>I have custom cell which contains number of rows in it.i want to write it's Action(click event) so how should i identify which buttons clicked and how can i write it's click event for it.Please give me some guidelines for that.i have not implemented yet.</p>
iphone
[8]
3,061,999
3,062,000
How to print the value of const void*
<pre><code>#include &lt;iostream&gt; using namespace std; void fn(const void *l) { // How to print the value of l. The below line is giving error cout &lt;&lt; "***" &lt;&lt; *l; } int main() { cout &lt;&lt; "Hello World!"; int d = 5; fn((char *) &amp;d); return 0; } </code></pre> <p>Error:<...
c++
[6]
2,961,211
2,961,212
accordian + and - symbol help
<pre><code>&lt;script type='text/javascript'&gt; $(document).ready(function() { $('div.Syb&gt; div').hide(); $('div.Syb&gt; h4').click(function() { var span = $(this).children('span:first').attr('class'); // span.text(span.text()=='+'?'-':'+'); span = (span == 'plus')?'minus':'plus'; $(this).chi...
jquery
[5]
175,475
175,476
Static Dictionary needs to be threadsafe - Suggestions?
<p>I currently have a static dictionary in my class. Although I have implemented locks on this dictionary yet I get the following error.</p> <pre><code>An InvalidOperationException has occurred. It reports a "collection was modified" error </code></pre> <p>The reason for this is that at times one method is reading t...
c#
[0]
4,367,656
4,367,657
Google Extension contextMenus' method is not calling second time
<p>contextMenus has created first time it is calling takeScreenshot() &amp; it will open cropper.xhtml. but 2nd time it is not calling takeScreenshot(). While removing form code it's working fine. Please help me.</p> <pre><code>chrome.contextMenus.create({ "title" : "Add Snippet...
javascript
[3]
5,454,401
5,454,402
Upload file from client machine to server - prepopulate file picker path?
<p>I'd like to upload a file from a client machine to my server. The user would have to specify the file to upload as I understand it, using a form that looks like:</p> <pre><code>&lt;input type="file" name="datafile" size="40"&gt; </code></pre> <p>This pops up a native file picker, which is great. The problem I'm ha...
javascript
[3]
1,488,995
1,488,996
How can I authenticate users without forcing them to register?
<p>I want to make a website that I thought up, but I don't want to have the users register. Instead, I want some sort of unique id that can be retrieved using PHP. This unique ID could be to be with the network they are using, or their computer. </p> <p>One idea I was thinking of was getting the users HWID and using t...
php
[2]
2,481,381
2,481,382
show a window every few seconds in home screen in Android
<p>I`m new to android.</p> <p>I want to write an alarm system in android.</p> <p>I want to show a window (or dialog) every few seconds (or hours) in home screen and i want to hide it after a few second.</p> <p>how can i do it?</p>
android
[4]
4,726,387
4,726,388
Caching in dll for asp.net site?
<p>I have a .NET DLL on my site. I'd like to use Cache() like you can on ASP.net websites, but it's just a class library project.</p> <p>I'm guessing I'm missing a reference but I don't know what it is.</p>
asp.net
[9]
2,049,426
2,049,427
Java return copy to hide future changes
<p>In Java, say you have a class that wraps an <code>ArrayList</code> (or any collection) of objects. </p> <p>How would you return one of those objects such that the caller will not see any future changes to the object made in the ArrayList? </p> <p>i.e. you want to return a deep copy of the object, but you don't kno...
java
[1]
1,646,387
1,646,388
$Tim = time() - 60000; if($tit->Time >= $Tim){ echo"t: "; }
<p>I want it to echo NEW beside a thread title if it was made less then or hour ago. Once it's been an hour i want it to echo nothing.</p> <p>This has worked before but will not work now, anyone know why this is not doing what i said above?</p> <pre><code>$Tim = time() - 3600; if($tit-&gt;Time &gt;= $Tim){ echo"NEW "...
php
[2]
73,143
73,144
pass data and link attribute to new div
<p>This is part 2 to my previous question.. Here is the markup:</p> <p>html</p> <pre><code>&lt;a data-message="my message" href="www.site.com"&gt;click here&lt;/a&gt; &lt;div class="new-window"&gt; &lt;p&gt;(my message)&lt;/p&gt; &lt;a href="LINK-GOES-HERE"&gt;proceed&lt;/a&gt; &lt;/div&gt; </code></pre> <...
jquery
[5]
5,015,031
5,015,032
Forced password change after x days stuck in a loop
<p>I am implementing a forced password change after 90 days for a web application - at the top of an application header file which is called on every page I check the age of the password and if it is over 90 days force the user to a password change page. This all works fine.</p> <p>The problem is the password change p...
php
[2]
1,702,566
1,702,567
List Scroll issue 2.1 vs 2.2
<p>i have a listview L2 in a Linear layout L1, Now i think if the height of layout L1 containing the listview is less than the height of the Listview L2, and L1.height fits in the display i.e. L1.height &lt; display screen height then my list would scroll, But my list srolls only in 2.1 avd and not in 2.2 avd! I am pe...
android
[4]
1,015,117
1,015,118
How to make a generic list equal another generic list
<p>This is my set up,</p> <pre><code>class CostPeriodDto : IPeriodCalculation { public decimal? a { get; set; } public decimal? b { get; set; } public decimal? c { get; set; } public decimal? d { get; set; } } interface IPeriodCalculation { decimal? a { get; set; } decimal? b { get; set; } } ...
c#
[0]
2,284,747
2,284,748
Exploring a ASP.NET website's code
<p>I have been set a new project at work and have been given the code beforehand to give it a good look. Since time is limited, can anyone please give me the best way to get a good feel of the project. What are the things I should be looking for within the code?</p> <p>Thanks.</p>
asp.net
[9]
1,550,322
1,550,323
jquery pass dynamic variable name
<pre><code>function liveUpdate(fld,value,id) { $.ajax({ type: 'POST', url: 'myurl.html', data: { fld:value, 'id': id }, success: function(data){//console.log(data); } }); } </code></pre> <p>i want fld to be posted as fld's value not the variable name fld? i've tried to wrap ...
jquery
[5]
5,428,393
5,428,394
Android default click sound (audio file)
<p>I would like to play default Android click sound in my application, even on non-Android systems. Where can I obtain this audio file on my device (Samsung Galaxy Tab2 7.0), or where can I download this audio file from the web?</p>
android
[4]
1,756,427
1,756,428
How to handle the 'back button' on android when I have a progress dialog pops up
<p>When my android activity pops up a progress dialog, what is the right way to handle when user clicks the back button?</p> <p>Thank you.</p>
android
[4]
3,183,069
3,183,070
Java- && Evaluation
<p>Can anybody help me on following issue:</p> <p>I have code like:</p> <pre><code>if(cond1 &amp;&amp; cond2 &amp;&amp; .. &amp;&amp; cond10) </code></pre> <p>Here, cond1 are expensive operations whose output is Boolean.</p> <p>Now my question is what JAVAC will do, when cond2 output is false. Specifically, is it g...
java
[1]
1,707,398
1,707,399
Delpoying a web service as an app for android?
<p>Is it possible to access a webservice through an Android app? So basically a user would be purchasing access to the site by paying for the app? Then deploy rich content to the user through the browser? If so, is it then possible to authenticate who has access to the site from the webserver without the need for signi...
android
[4]
4,578,739
4,578,740
WPAD queries calling webservice from ASP.NET
<p>We have an ASP.NET website which calls a webservice. If impersonation is not on for the ASP.NET website the call to the webservice is slow - using WireShark we see that it is making WPAD queries.</p> <p>If impersonation is on and it's impersonating an admin user the call to the webservice is fast - using WireShar...
asp.net
[9]
545,884
545,885
Javascript for..in vs for loop performance
<p>I was clustering around 40000 points using kmean algorithm. In the first version of the program I wrote the euclidean distance function like this</p> <pre><code>var euclideanDistance = function( p1, p2 ) { // p1.length === p2.length == 3 var sum = 0; for( var i in p1 ){ sum += Math.pow( p1[i] - p2[i...
javascript
[3]
2,292,552
2,292,553
C# generated code to be displayed in WebBrowser
<p>I have a <strong>Windows Form</strong> program that will generate HTML code dynamically and a WebBrowser will display the generated code.</p> <p>Is it the only way, to save a temp HTML file, then display it in thw WebBrowser? Is there a way that I don't need to save and display instantly in the WebBrowser?</p>
c#
[0]
2,646,266
2,646,267
file_get_contents() doesn't work because url includes &amp; and %20
<p>I use file_get_contents() to read remote files. It works fine with normal charactered urls, but however, a client has some files which are like</p> <pre><code>http://www.site.org/?m=sp_view_doc&amp;file=publicpolicy/shared%20documents/therapeutic%20discovery%20project%20credit%20general%20guide.pdf </code></pre> <...
php
[2]
3,450,552
3,450,553
BASIC Javascript slider/rollovers NO JQUERY
<p>I am trying to learn <code>JavaScript</code>. </p> <p>So I can build my own sliders, rollovers, really awesome <code>JavaScript</code> web stuff :) - without the use of plugins and such. </p> <p>I was hoping someone could head me in the directions of building these on my own - tutorials <code>Jsfiddle</code>, etc....
javascript
[3]
3,433,910
3,433,911
java console input
<p>The data type of the any input through console (as i do using BufferedReader class) is String.After that we type cast it to requered data type(as Inter.parseInt() for integer).But in C we can take input of any primitive data type whereas in java all input types are neccerily String.why it is so????</p>
java
[1]
3,716,547
3,716,548
Get font name from Google Fonts URL with regular expression
<p>Please tell me how to <code>preg_match</code> font names from the Google Fonts URL.</p> <p>For example, I want to extract the font name from:</p> <pre><code>http://fonts.googleapis.com/css?family=Oswald:400,300 http://fonts.googleapis.com/css?family=Roboto+Slab </code></pre> <p>in order to get the font names <cod...
php
[2]
4,715,386
4,715,387
i want the cooment in sert in the upper not in the lowest
<p>hi guys now i searched for comments system one of my friends suggest to me this Advanced PHP Comments System With jQuery and i download from his tutorial like Jooria-Comments-0.02.zip [5.17 KB] <a href="http://www.jooria" rel="nofollow">http://www.jooria</a>. com/downloads/442/Jooria-Comments-0.02.zip</p> <p>...
php
[2]
2,188,405
2,188,406
Android custom keyboard background
<p>How can set the background for the android custom keyboard,i want to set a image as the background for entire keyboard for the android device not for a single keyboard me tried with the attributes like android:keysBackground and android:background but it is not working while doing with the android:keysBackground att...
android
[4]
2,738,178
2,738,179
Memory allocation in Java Strings
<p>If</p> <pre><code>String x = "abc"; String y = "abc"; </code></pre> <p>What is the memory allocation for x and y ?</p>
java
[1]
1,360,437
1,360,438
Initialize a NSDate object with a specific time
<p>I have time in string format for example 2:00.I want to initialize it to NSDate with present date. I tried doing</p> <pre><code> NSDateComponents *comps = [[NSDateComponents alloc] init]; [comps setHour:2]; </code></pre> <p>I am not able to compare this with a date object.Please help</p>
iphone
[8]
3,680,559
3,680,560
asp.net dynamic data NEW custom page ERROR NOT FOUND
<p>iv added a new folder inside my 'customPages' folder 'Check' i've then added a new webform page inside the 'check' folder called 'show'</p> <pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="show.aspx.cs" Inherits="DynamicData_CustomPages_Check_show" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD X...
asp.net
[9]
2,235,575
2,235,576
How to implement the Progressdialog here?
<p>I am saving the imae from drawing canvas. It takes some seconds to geting save to the sdcard. So, During the process of save i want to show the dialog that the Image getting save...</p> <p>So how to implement the progress dialog for that ?</p> <p>The code for Image save is as like below:</p> <pre><code> case R.id...
android
[4]
2,591,776
2,591,777
How to get document of specific group in sharepoint using C#
<p>Last 3 days i have tried to get ListItem of specific Group in Sharepoint. Bt till now i could not find solution. Can any one give solution? </p>
c#
[0]
168,013
168,014
Execute file in resourses folder without copying it to disk
<p>I have an executable file in the resources folder. I am able to run that file by writing it to the disk then locating the file and use the Process.Start method to run the executable. Here is an example of how I do this:</p> <p><img src="http://i.stack.imgur.com/tdQV7.jpg" alt="enter image description here"></p> <p...
c#
[0]
5,515,991
5,515,992
Android Serialization for saving the data...
<p>i have three classes and want to store all the data of three classes... these classes are composed in main class ... so can any one tell that whether i have implement the Serilzable interface on class or all three classes which are composed....</p>
android
[4]
3,193,874
3,193,875
How to use a dictionary with python requests. - Outdated book. wunderground weather api
<p>I purchase the make projects book for the raspberry pi and one of the scripts is using wundergrund api and then printing the results of stuff such as temp ect.</p> <p>The code has changed and I have tried tweaking the variables but always get an key error :/</p> <p>Here is a <a href="http://pastebin.com/NzQL0UXK" ...
python
[7]
5,916,761
5,916,762
Webview: Cannot display local image on phone but displays on emulator
<p>I have went through all the posts on displaying local images on android phone. I can see the local image on emulator but on phone - "Webpage not available". However I can load other webpages on phone with webView.loadUrl("http://www.google.com/");</p> <p>I have set internet permissions</p> <pre><code>&lt;uses-perm...
android
[4]
671,150
671,151
setInterval queuing up while browser in separate tab
<p>How can i stop Javascript from queuing up animations from a setInterval while the page is not the primary tab in view? I've tried clearing the interval on blur of the document but no luck.</p>
javascript
[3]
3,094,856
3,094,857
Dynamically add annotation to an existing class
<p>I have the following class</p> <pre><code>public class Person { ... } </code></pre> <p>I would like to create another class that would look like this.</p> <pre><code>@SomeAnnotation public class Person { ... } </code></pre> <p>Via a simple method like so.</p> <pre><code>public static Class addAnnotation(C...
java
[1]
1,622,622
1,622,623
Wait for a network chage in a service, in order to download updates
<p>I have a service which periodically downloads some updates from a web site. Default period is long, about 10 mins and I do that with an AlarmManager which starts this service.</p> <p>Network can be on or off, <strong>in case it's off service should download news as soon as network returns on</strong>, because inter...
android
[4]
4,680,577
4,680,578
Calculate with literals that are out of range
<p>I would like to calculate (<code>+</code>,<code>-</code>,<code>*</code>,<code>/</code>) with large integers, say 50-digits long. How can I deal with this, when <code>int</code>, <code>double</code> or <code>long</code> comes too short?</p>
java
[1]
3,517,844
3,517,845
Why doesn't StringBuilder have a trim() method?
<p>Why doesn't StringBuilder have a <code>trim()</code> method? How can we trim a <code>StringBuilder</code> value without using <code>StringBuilder.toString().trim()</code>?</p> <p>Actually i am in a loop where i have to compare this StringBuilder string with many other values so if i call StringBuilder.toString().tr...
java
[1]
1,721,403
1,721,404
how to use method 1 variale in method 2
<p>I am new to python and new to programming. I have question how can I use variables from method1 in method too. </p> <p>Example</p> <pre><code> class abc(self): def method1 (self,v1): v1 = a+b return v1 # want to use this value in method 2 def method2(self) v2 ...
python
[7]
1,421,712
1,421,713
How to make everything lowercase automatically in Javascript as they type it in
<p>How do I make all of the characters of a text box lowercase as the user types them into a text field in Javascript?</p> <pre><code>&lt;input type="text" name="thishastobelowercase"&gt; </code></pre> <p>Thanks for any help.</p>
javascript
[3]
1,520,179
1,520,180
Is there an uniform way to detect the installed java on linux?
<p>Is there a way to detect the installed java on various different Linux distributions? With Windows you could use the JAVA_HOME or the registry for that, but Linux? Can it be also detected if this is JDK, JRE, 32 or 64 bit?</p> <p>REPHRASE: If I need 64-bit JDK on Linux, how do I programatically check that it is pre...
java
[1]
526,430
526,431
Hide select field on external click
<p>I am wondering how should I hide a drop down list by clicking on anywhere in page, I want same function like select field (<code>&lt;select&gt;&lt;/select&gt;</code>) do, if we open any select field and then click anywhere in page it pop back.</p> <p>Let me know if my question is not clear.</p> <p>Thanks.</p>
jquery
[5]
3,469,128
3,469,129
Making a Certain Color on a BufferedImage Become Transparent
<p>A very similar question that has been answered: <a href="http://stackoverflow.com/questions/665406/how-to-make-a-color-transparent-in-a-bufferedimage-and-save-as-png">How to make a color transparent in a BufferedImage and save as PNG</a></p> <p>Unfortunately I couldn't formulate an answer for myself out of that sou...
java
[1]
242,129
242,130
Limiting onTouch ACTION_MOVE to one View
<p>I'm implementing an app that uses part of the screen as a touchpad for the user to manipulate a mechanical device. I want to limit the touchpad behavior to only that <code>View</code>. </p> <p>But if the user puts his finger down <strong>inside</strong> that <code>View</code> and moves it <strong>outside</strong> t...
android
[4]
3,547,777
3,547,778
how to read data in array?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4927843/how-to-extract-data-out-of-a-specific-php-array">How to extract data out of a specific PHP array</a> </p> </blockquote> <p>I have an array that I am trying to fetch all elements from a specific key in. T...
php
[2]
1,179,756
1,179,757
How can i provide Zoomin-Zoomout,Paging functionality in to UIScrollView?
<p>I have an array of Image URl's from that array i have displayed my Images in Scrollview because i want to take the advantage of Paging and zooming so what should i do to achieve this task?suppose my array contains 10 URL then by each time scrolling i should get different image and i could also performing Zooming-In ...
iphone
[8]
4,060,729
4,060,730
How to create application for supporting all android mobile phones (screen and os version)?
<p>need help for multiple screen support in android,I have done for 3.2 inch screen completely.and i have added some hard coded values for layouts and items in it.What size should be the size of images in drawable ldpi,mdpi,hdpi?I want to support all screens(only for mobiles), Please help me..</p> <p>thanks</p>
android
[4]
1,019,936
1,019,937
Problem when converting char* to string
<p>When I convert char* to an string it gives an bad memory allocation error in 'new.cpp' . I used following method to convert char* called 'strData' and 'strOrg' to string.</p> <pre><code> const char* strData = dt.data(); int length2 = dt.length(); string s1(strData); </code></pre> <p>First time it work with...
c++
[6]
4,579,870
4,579,871
Why do I have to omit parentheses when passing a function as an argument?
<p>I am trying to wrap my head around as to why the following code results in a stack overflow when the parentheses are included, but do not when they omitted. </p> <p>I am calling the function itself as an argument to setTimeout and it works without parantheses, but of course fails when I add them. It was my intuitio...
javascript
[3]
4,691,655
4,691,656
Getting index error in the code in python
<pre><code>def fact(n): fac = 1 while (n&gt;1): fac = fac*n n -= 1 return fac z = 0 t = int(raw_input()) nz = [] for i in range(0,t): c = 0 n = int(raw_input()) z = fact(n) z = list(str(z)) for j in range(len(z)-1,1,-1): if z[j] != '0': break ...
python
[7]
4,532,446
4,532,447
C# timer synchronized with Datetime.Now
<p>In C# how to create a timer that synchronize with tick of system DateTime. custom timer should tick whenever the seconds change for DateTime.Now</p>
c#
[0]
1,015,670
1,015,671
add controls to placeholder control using javascript
<p>i tried to add my element creates using javascript to asp:placeholder control but it is not getting added. pls suggest a possible solution for this. thanks in advance. this is my code:</p> <pre><code> function UpdateLabel(e,newValue) { var characterCode if(e &amp;&amp; e.which){ // NN4 specific code e = e c...
javascript
[3]
1,657,821
1,657,822
What's the pythonic way of generating a range of chars?
<p>In other languages, I would use a construct like this:</p> <pre><code>a..z </code></pre> <p>I couldn't come up with a better solution than this:</p> <pre><code>[chr(x) for x in range(ord("a"), ord("z") + 1)] </code></pre> <p>Is there a shorter, more readable way of building such a list ?</p>
python
[7]
4,518,291
4,518,292
how to check if function is being called?
<p>i have a function: </p> <pre><code>function getPricing(ProductID,VariantID) { //alert('VariantID=' + VariantID); if(ProductID == undefined || VariantID == undefined) { return; } var ChosenSize = ""; //var ChosenSizeList = document.getElementById('Size'); var ChosenSizeList = doc...
javascript
[3]
2,272,387
2,272,388
How to remove cookies under 1 domain in CookieContainer
<p>In <code>System.Net.CookieContainer</code></p> <p>if I want to remove all cookies under a domain name, how?</p>
c#
[0]
950,298
950,299
how can I playing an array of data in BD
<p>how can I create a method to play all the data from an array, and to create a while or for to include all records from this array on BD. Since each recodr is consists two columns in the database table. And i had 1000 records. How do I put this array insert to play giving the BD? thank you</p>
java
[1]
721,954
721,955
Binding functions for pages loaded via ajax
<p>I'm a little familiar with <code>jquery.on()</code> function to bind to events, similar to this:</p> <pre><code>$(document).on("mouseover", ".myclass", function() { $(this).customerFunction(); //or something like .tooltip() return this; }); </code></pre> <p>However, how do I bind this <code>customerFunction(...
jquery
[5]
2,715,474
2,715,475
PHP and Apache configuration in uploading data to database
<p>I encountered problem in my configuration of my php because not all data was uploaded to database eventhougn my files is not large it was only KB. my server is apache. I already edit this:</p> <pre><code>•max_input_time •memory_limit •max_execution_time •post_max_size </code></pre> <p>but still not all data was...
php
[2]
914,424
914,425
Timer and DefaultHttpClient
<p>I want to receive json string every minute from https server. Emulator works nice, but on device my widget stops to update info (ignores new json strings) after about 30 minutes. First 30 minutes widget works perfectly.</p> <p>Timer:</p> <pre><code>public void run() { client = new RestClient("https://examp...
android
[4]
3,362,267
3,362,268
Javascript: Detect Changes to JS/DOM on the client side
<p>Is it possible to detect if someone has altered the DOM/JS code on your webpage in the browser?</p> <p>I'm thinking in terms of an online game written in JS, all the game code would be downloaded to the user's machine, which they can then edit to their will by using common script debugging/inspector tools. Are ther...
javascript
[3]
977,748
977,749
Anyway to bring up suggestion box when typing python code
<p>I'm learning wxpython right now and one thing that helps me ALOT is when I'm typing in the text editor I sometimes press the tab key to give me a hint on what I'm looking for...This is great when it works but I notice sometimes it doesn't work and I get lost looking for a syntax I can't remember...</p> <p>Question ...
python
[7]
1,442,019
1,442,020
Start Tomcat in windows using java code
<p>I want to start tomcat using java program .</p> <p>I had started in linux using the below code</p> <pre><code>String command = "c:\program files\tomcat\bin\startup.sh"; Process child = Runtime.getRuntime().exec(command); </code></pre> <p>It works fine.</p> <p>I used the following code in windows </p> <pre><code...
java
[1]
3,103,484
3,103,485
ANSI C++: Differences between delete and delete[]
<p>I was looking a snipset of code:</p> <pre><code> int* ip; ip = new int[100]; delete ip; </code></pre> <p>The example above states that:</p> <blockquote> <p>This code will work with many compilers, but it should instead read:</p> </blockquote> <pre><code> int* ip; ip = new int[100]; delete...
c++
[6]
4,269,794
4,269,795
Display results to another php page from a select statement using a function
<p>I had a hard time solving this: Need help pls..</p> <p>Here's my original code:</p> <hr> <p><strong>function.php</strong></p> <pre><code>public function getTestScriptSummary($projectID){ $sql = "SELECT * FROM tbl_test_script_header WHERE fld_projectID='$projectID'"; $query = $this-&gt;DBH-&gt;prepare($s...
php
[2]
3,294,578
3,294,579
Why are software like Adobe Photoshop, Adobe Premiere, Autocad, 3ds max, maya, and many others not made from Java?
<p>These software are being used in many platforms so why don't they use Java to develop these software? Why do they make different source code for each platform? </p>
java
[1]
5,148,581
5,148,582
User-agent change in asterisk
<p>I am using the asterisk as a server and I want to change the user-agent in asterisk through the android code. So can anybody help me if know? Thanks in advance.</p>
android
[4]
4,294,252
4,294,253
in Java the arguments are passed by value?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/40480/is-java-pass-by-reference">Is Java pass by reference?</a> </p> </blockquote> <p>Hi guys,</p> <p>I have a question about the arguments passing in Java, I read it from a book <em>"In Java the arguments are ...
java
[1]
3,131,516
3,131,517
Android: How can i display dates on x- axis in AchartEngine linegraph?
<p>I am implementing an app in which i am facing a problem in displaying dates on x-axis? I am getting x and y vaues from webservice. I am getting dates and price values? Can any one you give an example to implement this?</p>
android
[4]
6,015,602
6,015,603
JavaScript Accessing object Properties outside the module
<p>I am newbie to javascript.My question is fairly simple.Question is as follows.</p> <ol> <li>I am having two javascript files one.js and two.js</li> <li><p>In two.js there is function object constructor named CommonOneUi.code for it is shown below.</p> <pre><code>function CommonOneUi(){ this.getSongsButton = ...
javascript
[3]
5,325,333
5,325,334
Animate vertical slide not working
<p><a href="http://iamprincess.com.hk/test/final2.html" rel="nofollow">http://iamprincess.com.hk/test/final2.html</a></p> <p>The horizon slide(left to right) is working, but there's a problem on the vertical slide (top to bottom), it won't slide, what's the problem?</p> <p>Thanks a lot for helping.</p>
jquery
[5]
2,295,091
2,295,092
Accessing music files into my application programatically
<p>How can i access music files in the device into my application programatically?</p> <p>Help me..</p>
android
[4]
674,444
674,445
What are some good resources on developing a site that supports browsers with and without javascript?
<p>I'm building a site that needs to work with browsers that support JavaScript and browsers that don't (or that have it disable). What are some good resources that explain good approaches in doing this? Any specific technologies or frameworks that handle this well?</p>
javascript
[3]
4,882,025
4,882,026
How does delete[] "know" the size of the operand array?
<p><pre>Foo* set = new Foo[100]; // ... delete [] set;</pre>You don't pass the array's boundaries to delete[]. But where is that information stored? Is it standardised?</p>
c++
[6]
2,516,786
2,516,787
String Table RGB values
<p>I am using a string table in my project and I want to store RGB values in it. how do I convert rgb value from LoadString char to something that can be used for COLORREF for CreateSolidBrush.</p>
c++
[6]
237,525
237,526
php: how to read only txt files in a directory
<p>i have a folder called XXX it contains .jpg .gif .txt .... etc</p> <p>i want only to read .txt files how to do that ?</p> <p>Thanks </p>
php
[2]
4,505,715
4,505,716
Is it possible to send parameters by using Header function?
<p>I load Flash file using PHP.<br> <strong>test.php :</strong></p> <pre><code>$widget = WidgetFactory::getInstanceByHash($_GET['hash']); $file = $widget-&gt;getUrl(); $_GET['param1'] = "97df5ea7342b7e55b7ef3d402b585d1a"; header("Content-Type: application/x-shockwave-flash"); readfile($file); </code></pre> <p...
php
[2]
973,722
973,723
What's the version of ADT for Android 4.2?
<p>My question is : is the ADT related to a specific android version? i mean when we say for exp android 4.2 is that mean that we are using ( the plugin) ADT 21.0.1?? or Android version and ADT version are not realated?</p>
android
[4]
4,455,452
4,455,453
ClearInterval() and SetInterval()
<p>So in my javascript code, there is a part where if the user clicks on the checkbox I need to change the time delay used by <code>setInterval()</code>. At the moment, I used the <code>onchange</code> handler on the checkbox. Whenever the checkbox is changed, I call <code>clearInterval()</code> and <code>setInterval()...
javascript
[3]
62,288
62,289
my php code don't work result
<p>I have an issue in my php script when I enter a correct username it echo "user found" and when </p> <p>I enter wrong user name it echo also "user found".</p> <p>Here is my code please check and let me know, if !$result variable supposed to work but didn't. Why?.</p> <pre><code>&lt;?php echo "enter the usernam...
php
[2]
5,949,608
5,949,609
Why is it not ok to catch Exception instead of the more specific URLError?
<pre><code>try: response = urllib2.urlopen(req) except Exception, e: logger.exception(e) </code></pre> <p>Is there any convincing argument against catching <code>Exception</code> instead of <code>urllib2.URLError</code> in this code snippet ? </p>
python
[7]
1,637,764
1,637,765
PHP value doesn't equal to what it echoes
<p>I got a value in <code>$array[1]</code> and I want to know what it is, so I can compare it in other parts of my code.</p> <p>So I echo out $array[1] and I get "vrij &amp;nbsp &amp;nbsp " or "vrij "</p> <pre><code>$value = $array[1]; echo $value ; // outputs "vrij " if($value = $array[1]){ echo "TRUE 1"...
php
[2]
1,056,398
1,056,399
the meaning goto _L1
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2036984/recompile-decompiled-java-jd-jad-source-that-contains-goto-instructions">Recompile decompiled Java (JD / JAD) source that contains goto instructions</a> </p> </blockquote> <p>what's the meaning of got...
java
[1]
2,534,289
2,534,290
Change image by current time
<p>I have two images. I want to display one image if its day and another if it night. This should be done using javascript. For example display one image from 8:00 to 00:00 and another from 00:00 to 8:00. Is that possible using javascript?</p>
javascript
[3]
2,232,568
2,232,569
Getting Device Type and Android SDK from Crash Reports
<p>The marketplace crash reports do not provide enough information about what version of android is being used for me to replicate the errors. How can I request that more information be provided on crash reports.</p>
android
[4]
329,246
329,247
How to store intervals and lookup interval by value?
<p>I have a list which have three objects suppose name it as data.</p> <ol> <li>data[0] has 0-6</li> <li>data[1] has 6-13</li> <li>data[2] has 13-23</li> </ol> <p>I have a method and it has two arguments one is <code>starttime</code> and another is <code>endtime</code>. My requirement is if the input values are in be...
java
[1]
2,227,025
2,227,026
iPhone:Effects for recorded video?
<p>I have a program to allow user to record the video. I have to provide options like Black&amp;White, Crystal etc. like how "Viddy" iPhone application does for setting more Effects to the recorded video. How can i achieve it programmatically?</p> <p>Please guide me.</p> <p>Thank you!</p>
iphone
[8]
1,012,818
1,012,819
What is the search keyword for 'two enum members ORed together' usage?
<p>what kind of usage? i don't know it's custom name. what can i write on google to search below kind of codes...</p> <pre><code>service.TraceFlags = TraceFlags.EwsRequest | TraceFlags.EwsResponse; </code></pre>
c#
[0]
1,240,105
1,240,106
what is purpose of bit shifting?
<p>In C++, sometimes, I see code like this:</p> <pre><code>unsigned char A = 0xB9; unsigned char B = 0x91; unsigned char C = A &lt;&lt; 3; // shift bits in A three bits to the left. unsigned char D = B &gt;&gt; 2; // shift bits in B two bits to the right. </code></pre> <p>I know that it's bit-shifting, but I don't...
c++
[6]