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,584,489 | 2,584,490 | How to undo and redo operations in a drawing application | <p>I am new to iPhone application development.</p>
<p>I wrote code to draw and erase but, I am unable to do the undo and redo operations. </p>
<p>I used am using CoreGraphics in my application. Please help me to fix the undo redo issue.</p>
<p>Thanks</p>
| iphone | [8] |
4,001,418 | 4,001,419 | How to make preg_replace have count function for number of replaces count? | <p>I have creted a preg_replace script but now i want to add count function in it!</p>
<p>MY CODE</p>
<pre><code>$replace = 'ISO Burning Programs/Active@ ISO Burner 2.1.0.0/SPTDinst-v162-x86.exe';
$result=preg_replace('/[^0-9^A-Z^a-z-*… ,;_!@.{}#<>""=-^:()\[\]]/', '<br/>', $replace);
echo $result;
</code>... | php | [2] |
2,226,131 | 2,226,132 | Reading Danish characters from text files | <p>I am trying to read text files that contains some danish characters. I have found a few ways to do it using different types of encoding but the examples I have seen are reading just one file. This is what I have so far. </p>
<pre><code>//search directory for all .txt files
foreach (string files in Directory.GetFile... | c# | [0] |
5,843,408 | 5,843,409 | How to use one AsyncTask Class to apply different Activity in Android | <p>I have a AsyncTask class that connect to web service to get something and then print to the screen.<br>
Here is my code:</p>
<pre><code>public class GetCreditAsyncTask extends AsyncTask<Object, Boolean, String>{
private MainActivity callerActivity;
private String credit;
public GetCreditAsyncTask(Con... | android | [4] |
5,626,757 | 5,626,758 | Why does the write(int b) method of OutputStream exist? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1407893/why-java-outputstream-write-takes-integer-but-writes-bytes">Why Java OutputStream.write() Takes Integer but Writes Bytes</a> </p>
</blockquote>
<p>Why does the <code>write()</code> method of the <code>Ou... | java | [1] |
3,763,946 | 3,763,947 | jQuery syntax for doubleclick function | <p>Hi I have this jQuery code: </p>
<pre><code><script type="text/javascript">
$(document).ready(function() {
$('.rm_color').each(function() {
var divPicker = $(this).find('.colorpicker');
var inputPicker = $(this).find('input[type=text]');
divPicker.hide();
divPicker.click(function(){divPicker.f... | jquery | [5] |
1,741,647 | 1,741,648 | connecting to shared folder in windows with java | <p>I need to connect to a shared folder on a remote windows machine through java , where i put my domain authentication (username and password ) in the code , here is my code </p>
<pre><code> File file = new File("\\\\theRemoteIP\\webapps");
File[] files = file.listFiles();
System.out.println("acssed done... | java | [1] |
4,526,415 | 4,526,416 | FTP file upload issue - Missing filename | <p>I am trying to upload files via FTP using the following script. The file does upload to the FTP server however the file name is always called Images and has no exstenion.</p>
<p>Its probably something simple i have missed but if anyone know where it is going wrong that would be help.</p>
<pre><code>public static s... | asp.net | [9] |
4,948,775 | 4,948,776 | Java: How can i persist RandomStringUUID object at runtime | <p>Here is the scenario:
I have:</p>
<pre><code>public class RandomStringUUID {
public RandomStringUUID() {
final String uuidstring = UUID.randomUUID().toString().replaceAll("-", "");
}
public String getRandomStringUUID() {
final String uuidst = UUID.randomUUID().toString().replaceAll("-... | java | [1] |
4,006,595 | 4,006,596 | android finalizing a cursor that has not been deactivated or closed | <p>It seems that i cant fix this error msg.
I close the cursor correctly.. i tried even to create a new cursor with different reference name.. but this didnt work too.. what do i do wrong?</p>
<p>12-17 10:09:14.107: E/Cursor(277): Finalizing a Cursor that has not been deactivated or closed. database = /data/data/com.l... | android | [4] |
821,212 | 821,213 | Run command in Symfony2 | <p>In the <a href="http://symfony.com/doc/2.0/book/page_creation.html" rel="nofollow">Symfony 2 tutorial</a> we are supposed to "run the following command":</p>
<pre><code>php app/console init:bundle "Acme\StudyBundle" src
</code></pre>
<p>What they don't say is how to do it (where?)</p>
| php | [2] |
551,275 | 551,276 | Trigger to Repaint nth Row In JList | <p>May I know know I can trigger system to repaint nth row in JList? Currently, what I did is</p>
<pre><code>jList0.repaint(); // Repaint entire JList, which is not efficient.
</code></pre>
<p>I am only interested to update nth row in JList.</p>
<p>Please note that the reason I want to do so, is that I install a ... | java | [1] |
1,215,802 | 1,215,803 | Access variables javascript/jquery | <p>I have the following code </p>
<pre><code>$('#first').click(function() {
myVar = $(this).next().val();
});
$('#second').blur(function() {
console.log(myVar);
});
</code></pre>
<p>How to access myVar within #second ?</p>
| jquery | [5] |
3,490,985 | 3,490,986 | android device compatibility | <p>i don't know it is right place to ask question in stackoverflow .but i fell its best place to get quick answer for my query.
for getting more downloads i developed my application in android 1.5 version,minSDK 3. if i place application into android market.it will visible 1.5 and higher version mobile android market.i... | android | [4] |
364,674 | 364,675 | jQuery 1.4.2 built in tab functionality? | <p>Ingoring all aspects of design, with base jQuery 1.4.2 NOT jQuery UI, is there any kind of radio class or tab functionality? I can't find what I'm looking for on Google.</p>
<p><strong>update</strong></p>
<p>I'm not looking for UI elements, only the functionality of tabs.</p>
<p>By <a href="http://www.sencha.com... | jquery | [5] |
970,061 | 970,062 | how to change an imageView when a sound ends with threads | <p>I need to change an ImageView when a sound ends , but when I try to use a thread to use it whitout to freeze the screem the application closes;</p>
<pre><code>mp = MediaPlayer.create(this, R.raw.ave_maria);
mp.start();
im = (ImageView) findViewById(R.id.imag1);
Thread thread = new Thread() {
pu... | android | [4] |
4,119,261 | 4,119,262 | Android Can an application request reinstallation of its own APK? (from installation service) | <p>I have an android admin which performs all admin functions on my tablet, now I need a way to update the admin application inself. I don't really want to install yet another app to do this, however what I am finding is that there is an error when an application brings up the Android installer and passes it an APK fi... | android | [4] |
592,358 | 592,359 | Stop an Ajax call | <pre><code> $(document).keydown(function(e){
if (e.keyCode == 37) {
move("West");
return false;
}
if (e.keyCode == 38) {
move("North");
return false;
}
if (e.keyCode == 39) {
move("East");
return false;... | jquery | [5] |
3,821,984 | 3,821,985 | Handling large datasets in charts quickely | <p>I have a large dataset(around 50000 points) which has be visualized in a line chart.The size of Canvas may vary according to the size of dataset. Massive amount of points makes the drawing too slow.It also results in cluttering and overlapping of points due to plotting of several points close to each other.So visual... | c# | [0] |
5,067,871 | 5,067,872 | java middleware webservices - exception handling | <p>I usually see a code, which pretty much wraps with try block for the entire operation of a web service. The reasoning is to take care of un-expected results. What is the best way to convince programmers not to follow such styles? </p>
<p>Of course, we do want to provide meaningful message to the client. How can... | java | [1] |
3,889,959 | 3,889,960 | Usage of header location in PHP | <p>Can I use relative paths in using </p>
<pre><code>header("location: http://something.com/someotherthing");
</code></pre>
<p>in PHP</p>
| php | [2] |
790,795 | 790,796 | javascript window.open() to a html file opens the browser download dialog | <p>I'm creating a print (preview)window, for which I want to load the core html from the site assets:</p>
<p>The code:</p>
<pre><code>window.open('/SiteAssets/reportingPrintBase.html','_blank','width=1250,height=800,menubar=yes,scrollbars=yes,resizable=yes');
</code></pre>
<p>The html: </p>
<pre><code><!DOCTY... | javascript | [3] |
4,209,755 | 4,209,756 | PHP IDE to debug project | <p>I have a PHP project running Apache Server. Now I want to debug it, which IDE I can set up debug mode so that I can debug it ? </p>
<p>I have tried PHPEclipse, I have to set up <strong>another</strong> Apache server and PHP, a lot of work. </p>
| php | [2] |
5,289,733 | 5,289,734 | IndexOutOfBoundsException in Edit Text for android | <p>i have an edit text in my activity.i am entering numbers in it manually but </p>
<pre><code> int mystart = destinationNumber.getSelectionStart();
int myend = destinationNumber.getSelectionEnd();
numberText.getText().replace(Math.min(mystart, myend), Math.max(mystart, myend),
"1", 0, ... | android | [4] |
5,337,619 | 5,337,620 | PHP foreach loops | <p>This is making me insane. I've validated my input/outputs, and I'm still getting unexpected behavior. It should be 2, but it's doing numa numa. What am I missing?</p>
<p><strong>Input:</strong></p>
<pre><code>data
Array
(
[0] => Array
(
[lineId] => 1
[quantity] => 2
... | php | [2] |
3,007,545 | 3,007,546 | JavaScript: bracket notation to retrieve property values | <p>I'm working on codecademy.com JavaScript tutorial. This lesson on objects. I have a feeling this problem is fairly simple, but I'm not getting the answer. If I understood the instructions better, the answer might be clearer to me. </p>
<p>I set the value to the variable aProperty, and now I'm supposed to follow th... | javascript | [3] |
666,552 | 666,553 | Android number picker keyboard type | <p>I have a EditText which when clicked creates a AlertDialog which contains a number picker. I want to give the user the option to scroll through the number picker and also to enter a value via keyboard. But i dont know how to set the keyboard type for NumberPicker currently the full keyboard displays when clicking on... | android | [4] |
3,326,642 | 3,326,643 | Any function to take an array of strings and return a CSV line? | <p>I have an array of strings and want a way to create a CSV line from them. Something like:</p>
<pre><code>$CSV_line = implode(',',$pieces);
</code></pre>
<p>Will not work as the pieces may contain comma and double quotes.<br>
Is there a PHP built in function that takes the pieces and return a well formatted CSV lin... | php | [2] |
4,365,139 | 4,365,140 | class and structure | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/521298/when-to-use-struct-in-c">When to use struct in C#?</a> </p>
</blockquote>
<p>Why should we use class instead of structure</p>
| c# | [0] |
1,463,774 | 1,463,775 | how to setup button to get file input back to being blank | <pre><code>function insertQuestion(form) {
var $tbody = $('#qandatbl > tbody');
var $tr = $("<tr class='optionAndAnswer' align='center'></tr>");
var $image = $("<td class='image'></td>");
$weight.append($weightText);
});
var $imagefile = $('<input... | jquery | [5] |
2,272,123 | 2,272,124 | How to get the string store in an array in php | <p>I have a string that I trim first to remove extra characters and store it to a variable.</p>
<p>sampel output:</p>
<pre><code> variable: place1 place2
</code></pre>
<p>Now what I want to do is store it to an array. But how can I do that? is there a function that will detect if there is a white space? because e... | php | [2] |
6,023,031 | 6,023,032 | escape hidden character that is causing JSON validation to fail | <p>I have a hidden character that is causing JSON parsing to fail. What is the best way to escape a string properly just that hidden characters like these done crash my json?</p>
<p>Here is the code, the invisible character is between the n and the s in "brains" until you remove that invisible character JSON.parse() w... | javascript | [3] |
1,217,204 | 1,217,205 | Using jQuery ":visible" selector on dynamic element | <p>I'm attempting to toggle the opacity of a link control by checking if the element it toggles on/off is visible or not using the ":visible" selector. I have the following markup:-</p>
<pre><code><div class='btns'></div>
<p class='text'>Hello world</p>
</code></pre>
<p>With this jQuery:-</p>
... | jquery | [5] |
3,697,244 | 3,697,245 | List.Contains(item) with generic list of objects | <p>If you have a List how do you return the item if a specified property or collection of properties exists?</p>
<pre><code>public class Testing
{
public string value1 { get; set; }
public string value2 { get; set; }
public int value3 { get; set; }
}
public class TestingList
{
public void TestingNewLis... | c# | [0] |
5,727,551 | 5,727,552 | Concatenate integers in calculator app in java | <p>So I am working with a calculator application in java, and I need to write the heart of the code. </p>
<p>I am writing a class that implements an interface, and in my <code>addDigit(int digit)</code> method I need it to display the concatenation of the two integers that the user presses on the program. </p>
<p>I ... | java | [1] |
2,151,595 | 2,151,596 | How to display forename and surname in seperate text inputs? | <p>In a drop down menu, I have each option displayed like below as an example:</p>
<p><code>scomp23 - Jack Turner</code></p>
<p>Now with this code below:</p>
<pre><code>var text = $(this).find('option:selected').text();
var split = text.split(' - ');
$('#currentAdminAlias').val( split[0] );
$('#currentAdminFore... | jquery | [5] |
3,068,812 | 3,068,813 | Scrollable clickable items from JSON string in android | <p>I want to create a clickable items from a scrollview or listview where items came from a JSON which is fetched from my online database. Now I don't even have an idea on how to work with this one since I don't know how to dynamically create an object through codes to insert the database items. Well the concept is sim... | android | [4] |
5,031,641 | 5,031,642 | How do you create a thumbnail for TIFF file in Java? | <p>Can someone please help with some code for creating a thumbnail for a TIFF in Java.</p>
<p>Using this <a href="http://stackoverflow.com/questions/1069095/how-do-you-create-a-thumbnail-image-out-of-a-jpeg-in-java">Post</a> I have created thumbnail for JPEG and PNG.</p>
| java | [1] |
1,480,282 | 1,480,283 | Convert North East Coordinates to normal Latitude and Longitude | <p>I have a gps device witch outputs coordonates such as this : <strong>4425.7819N 02607.5766E</strong> .</p>
<p>How can I convert them to normal latitude and longitude using PHP ? eg . <strong>44.432395,26.125751</strong></p>
| php | [2] |
3,219,770 | 3,219,771 | Switching between applications which are already running | <p>I have 2 application where I can open one from another. i.e The applications are A,B and I have opened A then opening B from A. Now I have A & B opened and I am opening A again from B, at that time B is created as a new Instance. Is there any way where I can bring application B to front which is already running?... | android | [4] |
2,651,058 | 2,651,059 | How to get html() from element excluding another element? | <p>Sorry for real stupid question. But it does not work either way.</p>
<pre><code><html>
<head>
<script src='js/jquery.js' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready(function() {
var htmlcontent = $('.content').not('.dontgrab').html();
al... | jquery | [5] |
2,580,080 | 2,580,081 | JqueryMobile - Listviews right arrow | <p>Is possible to make a standard jquerymobile listview without the right arrow image that apears on the rigt of the li object?</p>
<p><a href="http://jquerymobile.com/demos/1.0a2/#docs/lists/lists-ul.html" rel="nofollow">Standard list view</a></p>
<p>Thanks</p>
| jquery | [5] |
2,233,425 | 2,233,426 | leaked IntentReceiver android.widget.ZoomButtonsController? | <p>I want my application to display a ZoomButtonsController on a GLSurfaceView whenever the user touches the GLSurfaceView. My activity constructor looks like this:</p>
<pre><code>_zoomButtonsController = new ZoomButtonsController(_surface);
_zoomButtonsController.setAutoDismissed(true);
_zoomButtonsContro... | android | [4] |
2,954,341 | 2,954,342 | Dynamically select a comparison operator (>=, <=, etc) in a conditional? | <pre><code>if (foo >= bar) baz();
</code></pre>
<p>But let's say sometimes baz(); needs to be run when <code>foo <= bar</code>, or <code>foo == bar</code>... and let's say that this comparison operator is grabbed from, say, a db table, and placed into a variable: <code>$param = ">="</code>.</p>
<p>Is there a... | php | [2] |
1,833,434 | 1,833,435 | How can I capture the output of a command as a String with Commons Exec? | <p>Commons exec provides a PumpStreamHandler which redirects standard output to the Java process' standard output. How can I capture the output of the command into a String?</p>
| java | [1] |
5,333,984 | 5,333,985 | Second Input tag - How can i add? | <p>How do I insert Javascript code into the second input?</p>
<pre><code> <input type="checkbox" onchange="document.getElementById('pass').type = this.checked ? 'text' : 'password'"> Show password
</code></pre>
<p><em>Original code:</em></p>
<pre><code> document.getElementById('pass').type
</code></pre>
<p>ok... | javascript | [3] |
4,103,015 | 4,103,016 | Sending a running application to background programmatically | <p>Is it possible to send a activity into background programatically in android?</p>
| android | [4] |
3,062,760 | 3,062,761 | setting the img src via php? | <p>Here is my problem.</p>
<p>If I do:</p>
<pre><code> $imagePath = "images/spalt_images/body_images/525A.JPG";
?>
<img src="<?php $imagePath ?>" alt="front image" class="productImage"/>
<?php
</code></pre>
<p>Then my image does not show up.</p>
<p>However, if I do:<... | php | [2] |
589,890 | 589,891 | how to remove white strip from scrollable tab? | <p>i have made a tab scrollable, problem is it shows a white strip to indicate more tab are available , how to get rid of this strip from beginning & end?
<img src="http://i.stack.imgur.com/UVk7e.png" alt="tab with white strip at end"> </p>
<p>here is xml:</p>
<pre><code><HorizontalScrollView
... | android | [4] |
3,714,271 | 3,714,272 | Are array/list lengths and string hashcodes memoized? | <p>Does anyone happen to know if, in .NET (4.0, if it matters), the Length property of an array, or the Count property of a <code>List<T></code> is stored after it's been calculated, until the array/list is changed?</p>
<p>I ask because a record linkage program I'm working on is already horrifically complex enou... | c# | [0] |
4,155,475 | 4,155,476 | exponential value conversion to decimal value using php | <p>I have have some variable to which i want to calculate</p>
<pre><code>$a=10;
$b=.00005;
$c=.001;
</code></pre>
<p>Now i calculate </p>
<pre><code>$d=($a*($b*$c));
</code></pre>
<p>It should output </p>
<pre><code>.000005
</code></pre>
<p>But its give me out put </p>
<pre><code>0;
</code></pre>
<p>After mani... | php | [2] |
1,638,408 | 1,638,409 | Replace characters in PHP but no more than once | <p>What's best performing script to replace certain characters with a <em>maximum</em> of one other character?</p>
<p>For instance, I need to replace all spaces (<code></code>) and commas (<code>,</code>) with plus signs (<code>+</code>) <strong>but no more than one plus sign at a time</strong></p>
<p>So: <code>the,q... | php | [2] |
5,506,205 | 5,506,206 | UIColor result in NSString problem? | <pre><code> NSString *st = [[UIColor greenColor] description];
</code></pre>
<p>it gives wrong output.
<strong>i want to get the Result , st must be @"greenColor" as a NSString</strong>
any help please?</p>
| iphone | [8] |
2,666,072 | 2,666,073 | Soliciting for ideas for a PHP 5 based transaction coordinator | <p>I'm hoping someone can provoke some ideas or provide references to material for creating a "transaction coordinator" implementation in PHP 5. The driver is based on a multi-vendor single business process integration. Due to potential failure points I'd like to avoid spaghetti code with tons of if's, switches, try.... | php | [2] |
1,205,688 | 1,205,689 | How to save output to a txt file | <p>Quick Q</p>
<p>i have a loop that finds all the files in a directory, what i want to do is add a line of code into it that would write these results into a txt file, how would i best do this </p>
<p>current code :</p>
<pre><code>public String FilesInFolder() {
// Will list all files in the directory, want... | java | [1] |
754,715 | 754,716 | Check for file existence in androids assets folder? | <p>My app has .txt files in subdirectories in the assets folder. It reads those .txt files and puts them in a textview. It's working great and no problems.</p>
<p>Should I be concerned about the files in the assets folder getting deleted by the user or missing. If this ever could happen, my app would get an error beca... | android | [4] |
5,427,618 | 5,427,619 | how to disable Sys.WebForms.PageRequestManagerParserErrorException | <p>I have read a lot about this error message.<br>
I've learned that the most common causes for this error are </p>
<ol>
<li>when the response is modifed by calls to Response.Write(), response filters, HttpModules </li>
<li>server trace is enabled. </li>
</ol>
<p>There are some suggestions like to use a web debugger... | asp.net | [9] |
2,281,595 | 2,281,596 | Get only the first result of a foreach loop | <p>I am trying to display all the links that are located in <code><div class="post"></code>. There are many <code><div class="post"></code> inside my page (it is a blog). However there are many links in every <code><div class="post"></code> but I want to display the first of every div.
My question is... | php | [2] |
4,941,756 | 4,941,757 | String concatenation with operator + vs using stringbuffer? | <p>Is there any difference b/w 1 and 2 in terms of concatenation if i do it instance method. I mean in either case only one object will be constructed ultimately i.e "abc" .Yes only difference i see is test will lie inside permgen space even thread come out of instance method but x will be garbage collected once threa... | java | [1] |
4,958,864 | 4,958,865 | How to convert Date and Time Combination into Days in Java | <p>I have Date and Time combination as <code>2012-02-28T13:10:50Z</code> which I got from the WebService. </p>
<p>I need to convert that String into number of Days.</p>
| java | [1] |
4,331,339 | 4,331,340 | Display text in columns in listbox? | <p>I'm learning C# and I have to do a task of creating a GUI. It works fine, but I wonder how I should do to present text inside of a listbox. My first thought was to just add each textpiece with a plus sign to a new string. But since on of the string is a name and could be short or long names, it's not looking good. S... | c# | [0] |
4,869,685 | 4,869,686 | Updating UI controls from a Background Thread | <p>I have a GUI program that runs on a <strong>Windows CE 2.0 Device</strong>. At one point I need to do a remote request to a Web Server that I want to do in a background Thread, the problem is that I also need to update a progress bar and a button's 'Enabled' property while this process is going on. </p>
<p>Backgro... | c# | [0] |
1,517,914 | 1,517,915 | I would like some help with an autoroller im coding in javascript | <p>I have a game that requires you to click on an object to collect prizes, but instead of giving my user carpel tunnel I want to create an autoroller. I have some code done already but I cant get it to work. If there is anyone out there that would be able to help me get this code working, it would be greatly appreciat... | javascript | [3] |
1,952,376 | 1,952,377 | How to compile scintilla in windows? | <p>I never compiled any open source project in Windows. I want to compile Scintilla on windows in Visual Studio or in any other way. Pleas write a step by step instruction to compile it.</p>
<p>I have googled for last 2 week but could not get any tutorial/guide. Please help.</p>
<p>I tried to compile in windows as pe... | c++ | [6] |
3,109,400 | 3,109,401 | replacement without any imports or built in functions? | <p>This is a homework question. I'm defining a function that takes a word and replaces a given char by another char. For example replace("cake","a","o") should return "coke" I have tried</p>
<pre><code>def replace(word,char1,char2):
newString = ""
for char1 in word:
char1 = char2
newString+=cha... | python | [7] |
5,720,983 | 5,720,984 | How to call function on swipe? | <p>I have implement on click button to do some thing and go to next activity. How to call this ( button.performClick() ) on swipe ? What listener to implement and catch ? Just on swipe to call button.performClick().</p>
| android | [4] |
4,609,094 | 4,609,095 | Android,Custom ListView not showing off correctly the Text | <p>I have a custom LisView, in this ListView for each line I have a TextView and Imageview </p>
<p>how could i make each line of my ListView Higher ??</p>
<p>Thanks for Helping!!! </p>
| android | [4] |
1,566,149 | 1,566,150 | More concise way to append a value to a dict array-element? | <p>When I want to append a newvalue into Dict under Key, I find myself have to write:</p>
<pre><code># Dict={}
# Key = ....
# newvalue = ....
if not Key in Dict:
Dict[Key] = [ newvalue ]
else:
Dict[Key].append(newvalue)
</code></pre>
<p>It costs four lines of code. Is there a more concise way with python sta... | python | [7] |
854,797 | 854,798 | ASP.NET Dynamic Data | <p>I'd like to know what people think of ASP.NET Dynamic Data. I see the project type in visual studio and have found very little about it mention on blogs and in books. </p>
<p>I created a site using it and it is great the way it wires up the CRUD pages, but i don't understand how to modify the the pages without mo... | asp.net | [9] |
237,605 | 237,606 | What are the uses of Method Handles in Java7? | <p>I see there is a new thing added up in Java7 named method handlers. For what scenario they are useful for?</p>
| java | [1] |
314,952 | 314,953 | linked list from java to c++ | <p>here is code to implement linked list i hope you understand main purpose of this code such kind of code is written in java and i am trying to implement in c++</p>
<pre><code>#include <iostream>
using namespace std;
class link {
public:
int idata;
double ddata;
link ( int id,double dd){
... | c++ | [6] |
3,414,805 | 3,414,806 | std::string == not working? | <p>When I do:</p>
<pre><code>std::string name = targetBone->getName();
if(name == "Pelvis")
{
return;
}
</code></pre>
<p>I get:</p>
<p>Error 1 error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::string' (or there is no acceptable conversion)</p>
<p>T... | c++ | [6] |
169,558 | 169,559 | Efficient way of processing large data with Javascript in the browser | <p>I use a third-party flash component (wrapped with Javascript) with my web application, from which I get comma-separated values and base64 data from it:</p>
<p>Get csv string as array function:</p>
<pre><code>// Get the csv as array function
var buff = $wnd.MyFlashComp.getData();
var strBuff = buff.toString();
var ... | javascript | [3] |
163,063 | 163,064 | HTTP Status 404 error | <p>I deployed a war in Jboss, but it is not not showing up at URL, getting 404 instead.</p>
| java | [1] |
1,214,548 | 1,214,549 | How to total radio options in javascript via a submit button | <p>I found this code somewhere else on this site. I'm in the process of adapting it, but since I'm new to Javascript, I have no idea how to get the total sum to appear only after you click some kind of "Calculate" button. I've tried to do it myself, but the numbers calculate automatically, and I need a solution so that... | javascript | [3] |
5,437,494 | 5,437,495 | char array compilation error | <p>What is the problem in my code? It does not compile..</p>
<pre><code> class FileNames
{
public:
static char* dir;
static char name[100];
static void Init3D()
{
FileNames::dir = "C://3D//";
FileNames::name = "abc";
}
}; ... | c++ | [6] |
3,448,852 | 3,448,853 | Assign an arraylist to an array in java | <p>Is there anyway I could assign an arrayList to an array in Java?</p>
| java | [1] |
3,251,754 | 3,251,755 | I need to uncheck a checkbox when a particular checkbox is checked | <p>I am a newbie... I have two checkboxes for example checkbox1 and checkbox2. I want checkbox2 to be unchecked when user checks checkbox1 and vice versa. plz help me how to code for this functionality.</p>
| android | [4] |
4,728,209 | 4,728,210 | How can solve OAuthException while i am post a message on facebook | <p>i am doing a sample Facebook application in that i am POST a file to a particular person only, while i am doing this i got an error message like..</p>
<pre><code>05-27 14:33:51.806: DEBUG/Response(2211): {"error":{"type":"OAuthException","message":"(#803) Some of the aliases you requested do not exist: friends"}}
<... | android | [4] |
1,217,072 | 1,217,073 | Get information about RAM during the run of a program | <p>I've got two methods. I want to test its performance.</p>
<p>The time of its work I can get with stopwatch. But how to get information about RAM?Are there any classes for it?</p>
<p>Or I will have to get it from task manager manually?(stop program+run tm+continue program)</p>
| c# | [0] |
2,811,216 | 2,811,217 | Simple news ticker - how to make autoscroll / auto action performe with jQuery? | <p>I wrote small news ticker, see here: <a href="http://jsfiddle.net/MrTest/SvFRs/" rel="nofollow">http://jsfiddle.net/MrTest/SvFRs/</a></p>
<p>I would like to add to it - auto scroll ( perform click on 'next' every couple of seconds).
Also, how can I prevent script of doing it if user have interact with it within let... | jquery | [5] |
4,372,816 | 4,372,817 | PHP code analayzer and other tools | <p>I am new to PHP (worked around 7 years on ASP.NET)
We are looking for some tools for PHP which we can use to make sure code quality is good.</p>
<p>we are using Notepad++ as a IDE and SVN for code repository. </p>
| php | [2] |
1,836,591 | 1,836,592 | Requesting NAME OF FORM by php | <p>I want to retrieve NAME OF FORM from php when i am submitting a form. Can i find the NAME OF FORM by PHP?</p>
| php | [2] |
4,949,368 | 4,949,369 | How to scan a PDF file using CGPDFScannerRef and convert into NSString | <p>I have one pdf file in which i need to scan the entire file using CGPDFScannerRef and convert or store the value into NSString to display them in UITextView. Please help me with that.</p>
| iphone | [8] |
1,878,086 | 1,878,087 | video save to iphone videos folder through programming? | <p>i want to get video from some URl,how can i get it and save it in to iphone Videos folder
with different name?any help please?</p>
| iphone | [8] |
1,817,470 | 1,817,471 | division in php | <pre><code> $voltage = '0.4000';
$newValue = str_replace('0.','',$voltage);
echo 'newvalue'.$newValue;
$newValue = $voltage/0.0125;
echo 'newvalue'.$newValue;
</code></pre>
<p>when i do like this i get 32 after division where as i should g... | php | [2] |
4,281,815 | 4,281,816 | Associative arrays: how to get rid of duplicates? | <p>I have an array:</p>
<pre><code>Array
(
[0] => Array
(
[attribute_name] => Appliances
[attribute_value] => Washer
)
[1] => Array
(
[attribute_name] => Appliances
[attribute_value] => Dryer
)
[2] => Arr... | php | [2] |
1,693,467 | 1,693,468 | how to keep check box selection in ListView | <p>I have created a custom ListView.. every element of my ListView constructing from a layout.</p>
<p>My layout will have some TextViews and a ToggleButton. My ListView will have some 50 elemnts and my device screen can show 2 elements at a time.</p>
<p>Now if we select ToggleButton on a Item and scroll down my List... | android | [4] |
5,032,109 | 5,032,110 | clicking on plus button produces a new edittext in the same view | <p>I am developing an android contacts based application.I have designed the views.I am in problem.When i click on plus button a edittext should appear in the same view
Can anyone help me</p>
<p>My java code is </p>
<pre><code>package com.xib;
import android.app.Activity;
import android.content.Intent;
import androi... | android | [4] |
2,962,992 | 2,962,993 | how to chage the button title dynamically in iphone | <p>I had one requirement in that need to change the button title with existing title
for example button title is "Others", in run time need to change "Others(3)". need to know how to fit the integer value (3) with button title.</p>
<p>Pleas help on this
Here is the button source code.</p>
<pre><code> mOthersBtn = [U... | iphone | [8] |
4,855,469 | 4,855,470 | how to implement slider same as calendar application in ipad? | <p>I have implemented ipad application in which i want to implement slider same as calendar application in ipad.i dont know how to implement.please help me for this query.</p>
<p>Thanks in advance.</p>
| iphone | [8] |
716,409 | 716,410 | how do I check image size in android while uploading from phone gallery? | <p>i want to check image size once user select an image from gallery.Because big size images are not allowed in my app. Can anyone help me ?</p>
| android | [4] |
2,865,209 | 2,865,210 | How to remove non-ascii infected rows in my csv | <p>I have a very large csv file that looks like this:</p>
<p>keywords,impressions<br>
descargar juegos gratis,951<br>
パソコン kakaku com,451<br>
corporate meeting,155<br>
rental cars,356<br>
smart,1224<br>
guitar tab,064<br>
英è¯ç¿»è¯‘,160</p>
<p>I have read the file into a dict like so:</p>
<pre><code># Read... | python | [7] |
3,540,400 | 3,540,401 | Example of a PHP function that returns XML | <p>I need sample code for a PHP function that returns XML.</p>
| php | [2] |
3,710,699 | 3,710,700 | appending images | <p>I have a number of images that I would like to append to each other to make a larger file.
I am not sure of the best way to do this and I am looking for suggestions. The resulting image would be either printed, saved to a file or copied to the clipboard.</p>
| c# | [0] |
3,728,745 | 3,728,746 | How to sort with 2 or more sortexpression using comparer | <p>I must use a self-coded comparer to sort a list of objects.</p>
<pre><code>myObjectList.Sort(new MyComparer(_sortExpression, _sortDirection));
</code></pre>
<p>How can I append a 2nd expression and direction to sort by if values on 1st expression are equal?</p>
<p>I mean e.g.: Sort by last name and then if equal ... | c# | [0] |
1,313,938 | 1,313,939 | Returning pointer to structure to main function, getting segmentation error | <pre><code>#include<iostream>
using namespace std;
struct sample
{
int data[3][2];
};
struct sample* function()
{
struct sample s;
int c=1;
for(int i=0;i<3;i++)
for(int j=0;j<2;j++)
s.data[i][j]=c++;
cout<<"Matrix contents are ";
for(int i=0;i<3;i++)
{
f... | c++ | [6] |
1,093,229 | 1,093,230 | What is the best practice for syntax in casting a variable? | <p>Which (if any) is more correct? Why?</p>
<pre><code>string someVariable = (string) someOtherVariable;
string someVariable = someOtherVariable.ToString();
string someVariable = someOtherVariable as string;
</code></pre>
<p>I've used all three, but I don't have any preference or understanding why one is better than... | c# | [0] |
2,565,909 | 2,565,910 | onTouch return an InvalidCastException | <p>Im getting an InvalidCastException with this piece of code:</p>
<pre><code>public boolean onTouch(View view, MotionEvent event) {
if (!(view instanceof Card)) return false;
int eventaction = event.getAction();
Card card = (Card)view;
int X = (int)event.getRawX();
int Y = (int)event.getRawY();
... | android | [4] |
2,012,913 | 2,012,914 | Why "document.write('<scr'+"? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/236073/why-split-the-script-tag-when-writing-it-with-document-write">Why split the <script> tag when writing it with document.write()?</a> </p>
</blockquote>
<p>I have only shallow knowledge of JavaScript,... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.