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 |
|---|---|---|---|---|---|
5,117,591 | 5,117,592 | JavaScript array on multiple lines | <p>I made an array with several strings as values so it becomes one really long line that takes a while to scroll through. To put it on multiple lines I searched and found that I can use a + sign to link the lines, but I'm having a problem. Here's a small example:</p>
<pre><code><script type="text/javascript">
v... | javascript | [3] |
3,088,576 | 3,088,577 | Python won't print after smtplib.SMTP | <p>I was trying to write a python sendmail class, I like to print sent mail info, but after smtplib.SMTP it won't print anything, even an error, here is my code: </p>
<p>main.py:</p>
<pre><code>import MailServer
from Mailler import Mailler
mail_server = MailServer.Server()
mailler = Mailler( mail_server )
mailler.se... | python | [7] |
3,469,618 | 3,469,619 | large size data transfer from intent service to UI | <p>In my project i need to transfer large size data recieved via network operation in intentservice to uithread or any other thread.</p>
<p>I am just wondering which will be the best option for this ,it seems i cannot use parcelable or bundle due to large size of data.And the size is not predictable</p>
<p>it will ... | android | [4] |
1,449,446 | 1,449,447 | unable to get the updated value of textarea using ajax and php | <p>I have a problem:</p>
<p>I have a textarea on my page that is created on a button click using javascript.
Now i want to update the database with the value of this textarea, but unable to do. m not getting the updated value of textarea while callin ajax.</p>
| php | [2] |
215,761 | 215,762 | How do I know if was require_once? | <p>I have two files</p>
<p><strong>1 - index.php
2 - main.php</strong></p>
<p><strong>index.php</strong> call to <strong>main.php</strong> by <code><?php require_once("../../includes/main.php"); ?></code></p>
<p>How do I know from <strong>main.php</strong> when it Execute,</p>
<p>if <strong>index.php</stron... | php | [2] |
2,727,052 | 2,727,053 | Open jQuery WYSIWYG in a jQuery dialog | <p>Is there a way to load jquery wysiwyg plugin inside a jquery dialog box.</p>
<p>I tried but the editor is somehow disabled when the dialog box opens.</p>
| jquery | [5] |
1,069,794 | 1,069,795 | jQuery display message | <p>How to with jQuery display message after clicking submit button, delay message box for example 10 secund and then send the data form.</p>
<p>Or send the data form after clicking "ok" button in message box.</p>
| jquery | [5] |
454,223 | 454,224 | Problems trying to assign **varname to *varname[]. c++ | <p>In my .h, I have a variable, <code>Texture ** skyboxTextures</code>. I assign some texture pointers in one method, and use them right away:</p>
<pre><code>Texture *skt[] = {
tleft,
tright,
tfront,
tback,
tup,
tdown
};
skyboxTextures = skt;
for(int i = 0; i < 6; i++)
{
skyboxTextures... | c++ | [6] |
1,467,552 | 1,467,553 | Cascade window programmatically using C# application | <p>Hi folks <br />
I'm programming c# application I have a parent form and others are childs I want to cascade all windows which are open as child form in my parent form how I can cascade windows or close all or minmize them I mean functionality for child window that can calls form parent window.</p>
| c# | [0] |
3,073,263 | 3,073,264 | Javascript Source to textarea value | <p>I am creating some JSON on the fly, serializing it and saving it to the DB.
To run it, i create a script element, and load it that way.
Is there a way to load the script source to a textarea?</p>
| javascript | [3] |
469,760 | 469,761 | Input Validity checks in C# console base application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4804968/how-can-i-validate-console-input-as-integers">How can I validate console input as integers?</a> </p>
</blockquote>
<p>I am developing a console base application in C#. In which i want when a user prompt ... | c# | [0] |
3,926,217 | 3,926,218 | Cannot instantiate non-existent class: ziparchive | <p>I've a code that works correctly on test server but fails on live one (due to PHP version).</p>
<p>I'm getting this error:</p>
<p><code>Fatal error: Cannot instantiate non-existent class: ziparchive in /home/sites/www.example.com/web/zip.php on line 123</code></p>
<p>and the code is:</p>
<pre><code>$zip = new Zi... | php | [2] |
3,797,704 | 3,797,705 | How to set MSB of a UShort Variable? | <p>i'm having a UShort variable <code>Temp</code> and which has a value <code>1</code>.</p>
<p>How to set the most-significant bit of this value as 1.</p>
| c# | [0] |
4,905,239 | 4,905,240 | How to write a program in java reading doubles from a txt file and store them on 2 dimension arrays? | <p>**I should make a program that reads double numbers with this format(8,77) from a text file and then store them to arrays. The output of the program should look like this:<br>
3,55 232,22 32,50<br>
3,00 3,01 3,88<br>
2344,87 43,93 43,00 </p>
<p>453,24 24,24 242,43<br>
24,42 34,43 4,40<br>
43,43 43,22 43,22 </p>... | java | [1] |
2,674,696 | 2,674,697 | jQuery find img tag and get SRC from it | <p>Hey all i have this js code:</p>
<pre><code>var imgJPG = jQuery('img[src$=".jpg"]', '<div>' +
fullCode + '</div>').attr('href');
</code></pre>
<p>However, it does not seem to pick up the src of the image?? fullCode is the HTML source code.</p>
<p>The HTML:</p>
<pre><code><strong>&... | jquery | [5] |
4,034,788 | 4,034,789 | Impact on memory usage - const strings or resource strings? | <p>Is there an advantage in terms of heap memory footprint when we define string constants in a resource file instead of declaring as const inside a claass?</p>
| c# | [0] |
3,855,897 | 3,855,898 | How to make a buffer stream for storing strings in memory? | <p>I have following task: to make application for uploading data into FTP server using apache.commons.net.FTPClient, etc. There is method client.storeFile() which allows to upload file (it requires InputStream as 1 of method parameters). But I want to make txt file into server which should contain array of strings - ar... | java | [1] |
924,061 | 924,062 | Split string based on a series of characters | <p>I want to know how i can split a string in php based on a series of characters.
Like for example, i have a string as: a^b^^c^^^d^^^^e</p>
<p>Now how i can break this string into an array as: a,b,c,d,e ?
The php explode function does not seem to work here....</p>
<p>Please help..</p>
| php | [2] |
3,351,892 | 3,351,893 | how keep the radio button position at selected one when changes from portrait to landscape | <p>how andrid radio button code but when changes from portait to landscape selected possition appear plz help me any one</p>
| android | [4] |
3,623,296 | 3,623,297 | Small modification to the limit of a textarea characters counter | <p>The code below counts the chars typed in a textarea. If you reach the 250 limit you can not add more. How can I let people to type more than 250? </p>
<p>Like ok, you have 250 minimum but it doesn't mind if you put more than this. Thanks!</p>
<pre><code><script type='text/javascript'>
var maxLength=250;
func... | javascript | [3] |
5,899,345 | 5,899,346 | how does google voice do this | <p>When you select new message, you have the option to go to google voice, this is also present when you look at something in your inbox and hit reply. How do they do that? I'm talking about the google voice android app.</p>
| android | [4] |
1,771,683 | 1,771,684 | Regarding Session Timeout | <p>I have a problem regarding Session Time Out.How can we store a user Session for 1 day.So that if the user Logout.It doesn't affect the user session and User session continues for one day.</p>
| asp.net | [9] |
3,959,624 | 3,959,625 | Disable right click on form field level | <p>I am need of generic function which can disable right click on the form fields.</p>
| javascript | [3] |
2,791,266 | 2,791,267 | JQuery FCKeditor how to install? | <p>i want add FCKEditor into JSP
i found plugin for FCKEditor by Jquery
But i was do the same guide but not work
The plugin here:</p>
<pre><code>http://www.fyneworks.com/jquery/FCKEditor/
</code></pre>
<p>the following guide:</p>
<pre><code>http://www.fyneworks.com/jquery/FCKEditor/#tab-Usage
</code></pre>
<p>i cho... | jquery | [5] |
4,039,640 | 4,039,641 | jQuery on ( ) , why does 'click' on another unattached element take place? | <p>html snippet :</p>
<pre><code><p>add more</p>
<div class="display_box_ppl_tag" style="border:1px solid red; width:120px; text-align:center;">
this is the display box text
</div>
</code></pre>
<p>js snippet :</p>
<pre><code>$(document).ready(function() {
$(document).on('click', $("... | jquery | [5] |
4,760,851 | 4,760,852 | Could not load file or assembly 'PcapDotNet.Core after build the new source code (Pcapdot.net project) | <p>because Pcapdot.Net forum is not so active i will ask here.</p>
<p>Recently the developer of the project solved bug that causes crash after a few iteration each opening files but didn't publish new DLLs but said it would be possible to download the new source code and build it, so i did it.</p>
<p>i downloaded the... | c# | [0] |
1,897,017 | 1,897,018 | How do i hide the tables created in visual studio 2010 C#? | <p>How do i hide the tables created in visual studio 2010 C#? What i am trying to do is to hide the table (somewhat like timetable) and only let it appear when user click on one of the calendar dates. I tried using Visibility: hidden; but the whole table disappeared when i view on the design view. I need help! Thanks i... | c# | [0] |
1,009,305 | 1,009,306 | What is a good way to represent (programatically) graphs/networks? | <p>SO I have made this program dealing with cities and the roads linking them, and I am wondering if anyone could point me towards a way to represent this "network" graphically (in 3 or 2Ds).</p>
<p>Could be either a specific programming friendly file format (which I could easily generate an instance of programaticall... | java | [1] |
3,173,910 | 3,173,911 | disable (grey out) the previous row(s) | <p>I would like to grey out (disable) the previous row(s), every time I add a new one. Right now I could only disable the first one. Many thanks in advance. Following is what I could do so far:</p>
<pre><code><head>
<SCRIPTTYPE="text/javascript">
varcount="1";
functionaddRow(in_tbl_name){
vartbody=document... | javascript | [3] |
1,270,527 | 1,270,528 | How can I get control over the result of ldap_bind function | <p>I am working with symfony 2.1 and authenticating with active directory. The thing is that when the parameters of the ldap function are rigth everything is fine, but when user or password are wrongs I get a this:
<strong>Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials in C:\w... | php | [2] |
4,941,726 | 4,941,727 | Get the cellphone number from a sms in adroid | <p>I'm new in Android and I did a tutorial from the AppInventor.</p>
<p>What it does is when you get a SMS, the app read it for you and sent an automatic response.</p>
<p>I want to do the same in Java, but I can't figure out how to get the numer and the text from the SMS.</p>
<p>I hope you can help, thaks.</p>
| android | [4] |
2,311,827 | 2,311,828 | Moving image from scrollView to View | <p>I have created a <code>scrollview</code> and have added it to my view controller class. Now I have items in <code>scrollview</code>. On touch I want to move image to the main view. I am trying using <code>touchesBegin</code> and <code>touchesMoved</code> but it's not working. How can I do it?</p>
<pre><code>-(void)... | iphone | [8] |
3,147,461 | 3,147,462 | Time with minutes and Hours wheel type in android | <p>I am developing wheel type piker in android which should show Min figure with Min text and hour figure with hour text but it is displaying same text Min or hour what should I do to separate Min and hour.
I got code from following link.</p>
<pre><code>android-wheel Android Picker widget
http://code.google.com/p/... | android | [4] |
5,630,544 | 5,630,545 | Thread or services | <p>I'm confused between thread and service on android.
If I have to download some file form server. It may be multiple files at a time.
What i should choose in this situation thread or services?</p>
| android | [4] |
4,733,208 | 4,733,209 | jQuery - Not this or prev or next? | <p>How can I select all divs of a class except 'this', and also not the next and previous div? The code below selects everything except for 'this':</p>
<pre><code>$(".image-div").not(this).each(function() {
$(this).animate({
width: '250px'
}, 500, function() {
... | jquery | [5] |
2,266,635 | 2,266,636 | Javascript eval | <p>I am trying to get the following working. It seemed to work initially, but somehow it stopped working</p>
<pre><code>var setCommonAttr = "1_row1_common";
var val = document.getElementById("abc_" + eval("setCommonAttr")).value;
</code></pre>
<p>what is wrong with above?</p>
<p>The above code is little different fr... | javascript | [3] |
5,062,838 | 5,062,839 | setting html select with jquery val() with its innerhtml | <p>I am trying to set the selected attribute on a select pull down with jquery val(). I only have the caption (aka innerhtml) of the element I want the selected, but not the value.
For example:</p>
<p>A pulldown of states. I want the "New york" option to be selected. I want to write a jquery statement which does</p>
... | jquery | [5] |
1,041,561 | 1,041,562 | Add global try/catch to JavaScript | <p>Is there some way to wrap the entire page in a try/catch, so that I can catch any error from any script that is executing?</p>
| javascript | [3] |
1,791,906 | 1,791,907 | fopen() can't write with error "HTTP wrapper does not support writeable connections" | <p>I have a file with url: <code>http://localhost:8080/cache/a66b311547bf3da88f01139271d5bb50.txt</code>
And in php I using code:</p>
<pre><code>$file = "http://localhost:8080/cache/a66b311547bf3da88f01139271d5bb50.txt"
$output = serialize($data);
$fp = fopen($file, "w");
fputs($fp, $output);
fclose($fp);
</code></pre... | php | [2] |
2,416,289 | 2,416,290 | how to make login script from multiple table? | <pre><code>> i ve got 4 separate tables to store login data.
>>> tables are **admin_login staff_login >tutor_login student_login**.
>>>>>> my php registration form is storing data into this fields.
</code></pre>
<ol>
<li>now i need some suggestion how i can make login script?. ... | php | [2] |
3,917,355 | 3,917,356 | Can anybody explain me the flow of below program? | <p>Can anybody explain the below program flow ? </p>
<pre><code>public class Sample {
public static void main(String[] args) {
new OuterClass();
}
}
class OuterClass {
private int x = 9;
public OuterClass() {
InnerClass inner = new InnerClass();
System.out.println("2");
... | java | [1] |
3,924,209 | 3,924,210 | how to access components of system application protected with "signatureOrSystem" permission? | <p>I want to access the components of system application(present in the source code - ICS) protected with "signatureOrSystem" permission, in other application(not present in source code). Is it possible? If yes then please provide some reference.</p>
| android | [4] |
386,293 | 386,294 | Accessing SQL Server remotely and generate report | <p>Actually I am bit of confused right now and need some guidance. I have been offer a project to create web portal to generate report. Scenario is something like this,</p>
<p>Client has a business and he need to check the report of hourly sale. What should I do, should I put the SQL Server online or is there any othe... | c# | [0] |
4,938,674 | 4,938,675 | GeoTagging Videos in Android | <p>In Android it is possible to add <code>Geolocation</code> (lat and long) information to a picture. Under <code>Camera</code> settings, there is an option for it.</p>
<p>But for videos this is missing. Is there any other way to add <code>Geolocation</code> to video files?</p>
<p>Is it possible to use the <code>Exif... | android | [4] |
3,944,995 | 3,944,996 | explicitly casting generics in C# 4 | <p>Can anyone help me in casting generic collection in c# 4. </p>
<p>Here is the code snippet.</p>
<p>GridView1.DataSource = dataServiceColl.Select(t => t.product_desc="EdibileItem")</p>
<p>It is throwing up runtime error at the below line,</p>
<p>Gridview1.Databind(); </p>
<p>Saying it is a HTTP Exception.</p>
... | c# | [0] |
5,478,269 | 5,478,270 | Using windows.h, remove text from chat box upon mouse click (C++) | <p>Sorry, title was a bit vague.</p>
<p>Basically, I am making a chat program in C++ and using windows.h API. I have most of the program working, just small things are not working correctly. I have a box that a user types what they wish to say in, and in that box it says "Enter text here" in italics. I want to set it ... | c++ | [6] |
1,425 | 1,426 | if passowrd and username matches(in action form) then how to navigate to further page on the succesful if statement | <p>Friends i am a newbie in php and trying to learn it more and more...</p>
<p>I am telling you my problem what i am facing</p>
<p>i have a employee signinform which have one username box and one password box with signin button..Now on the action page of this signinform i have given adress of signinvarification form.... | php | [2] |
321,500 | 321,501 | multiple preg_replace on the same variable | <p>While delving into some old code I've stumbled upon a function which is used to clean up special characters using <a href="http://de3.php.net/manual/en/function.preg-replace.php" rel="nofollow"><code>preg_replace</code></a> very excessively. Unfortunatly there's no way to avoid this cleanup, the messed up data arriv... | php | [2] |
3,342,707 | 3,342,708 | Date difference between two date variables with AM PM format. | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1770564/getting-the-difference-between-two-time-dates-using-php">Getting the difference between two time/dates using php?</a> </p>
</blockquote>
<p>I have two dates variable
let $arrival_time="7.30 AM";
$dep... | php | [2] |
4,913,081 | 4,913,082 | jquery append and remove element problem | <p>i have this code</p>
<pre><code><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test jQuery</title>
<script type="text/javascri... | jquery | [5] |
3,366,749 | 3,366,750 | jQuery jrac and jQuery .hide() .show() conflict error | <p>I am using <a href="http://www.trepmag.ch/z/jrac/example/" rel="nofollow"> jQuery Resize and Crop (jrac) </a>. Every thing work fine in my sample code <a href="http://jsfiddle.net/KpFwb/5/" rel="nofollow">jsfiddle</a>.</p>
<p>But when I try to hide Div area which is showing Image Editor, I found error.<br>
I use be... | jquery | [5] |
4,150,901 | 4,150,902 | Replacing FileInputStream with getResourceAsStream | <p>I am currently reading in a public key file using the following code:</p>
<pre><code> // Read Public Key.
File filePublicKey = new File(path + "/public.key");
FileInputStream fis = new FileInputStream(path + "/public.key");
byte[] encodedPublicKey = new byte[(int) filePublicKey.length()];
fis.rea... | java | [1] |
4,131,397 | 4,131,398 | Adding a namespace method to the object prototype | <p>I am trying to add a namespace method to the Object prototype in javascript.</p>
<p>What I would like to be able to do is this:</p>
<pre><code>var myObj = {}
myObj.namespace('nested.objects.are.created.if.not.present')
</code></pre>
<p>But I am getting lost. It seems quite easy to do a generic function, but not ... | javascript | [3] |
3,693,177 | 3,693,178 | How I get URL from webview on click | <p>How can I get "clicked URL" from <code>webview</code> on its click event??</p>
<p><code>@Override</code>
<code>public void onClick(View v) {</code></p>
<pre><code> if( v.getId() == R.id.webview) {
//Here i want to get clicked url
}
}
</code></pre>
<p>Thanks in advance. </p>
| android | [4] |
884,954 | 884,955 | Changing captured image color | <p>I want to capture an image from the camera and then I want to change this image color, I want to know that is it possible in iOS to change the captured image color or not? And if it is possible than where I can found its tutorial?</p>
| iphone | [8] |
1,836,925 | 1,836,926 | Not getting focus on list rows in android | <p>I have a list with some rows which define some transaction. When i select the row, particular transaction details is showing in another list. Now when i am selecting a row in the first list, corresponding details is showing in the second list but the first list's selected row is not getting the focus. How can i get ... | android | [4] |
5,963,501 | 5,963,502 | switch between multi viewcontroller's view | <p>I have a project in which, there is root viewcontroller and multi sub viewcontrollers.
In root viewcontroller I call and switch between 2 sub viewcontrollers</p>
<p>codes as:</p>
<pre><code>//root view controller controller button at front of all subviewcontrollers'view
[vViewController2.view removeFromSuperview]... | iphone | [8] |
5,387,890 | 5,387,891 | How to write a custom solution using a python package, modules etc | <p>I am writing a packacge foobar which consists of the modules alice, bob, charles and david.</p>
<p>From my understanding of Python packages and modules, this means I will create a folder foobar, with the following subdirectories and files (please correct if I am wrong)</p>
<pre><code>foobar/
__init__.py
alice/... | python | [7] |
1,744,977 | 1,744,978 | Need advise on using maps within an Android App that I want to develop | <p>I'm considering building an Android app for my HTC phone that contains tour guides to attractions in London. An Example, a guide that shows information about Jack The Ripper area, where the killings took place, having a start and a finish marker on a map, and a route showing areas of interest. The user would look ... | android | [4] |
5,185,534 | 5,185,535 | When Connecting to the MDB through Android application | <p>I have written a program to connect the android application to the MDB and I am using Eclips as a editor. I have created One Activity inside that Their is one Button which will call the java class file inside the Class file I have written the MDB Connectivity code. But when Click on the Button It Will give me the ja... | android | [4] |
5,826,561 | 5,826,562 | Downloading images from the gallery in android | <p>I am developing an app in which i need to import images from the default gallery to the storage in sd card that I use for the app. Is it possible?</p>
| android | [4] |
743,832 | 743,833 | Displaying dynamic data on a form | <p>I have created a form that contains various Jtextfields to display data. The data comes from an internet source and changes very frequently (every few seconds). I'm not sure the best way about doing it.</p>
<p>So far I have a class that retrieves the data upon request and stores the data locally. The data then can ... | java | [1] |
3,979,311 | 3,979,312 | Escaping in eval's argument | <p>I'm using <code>eval</code> to assign dynamic object's properties.</p>
<pre><code>property_name_1 = property1;
property_name_2 = property2;
property_value_1 = 1;
property_value_2 = 2;
var obj = new Object;
eval("obj."+property_name_1+"='"+property_value_1+"'");
eval("obj."+property_name_2+"='"+property_value_2+"'"... | javascript | [3] |
1,139,255 | 1,139,256 | How server side events are called in .NET | <p>I am a beginner to .NET, I have some doubts in my mind. Can anybody help me to sort out?</p>
<ol>
<li><p>When a user requests for a file(*.ASPX), The request first goes to IIS server and with the help of Handlers and modules it finds the type of file that need to be processed and sent back to the client. But while ... | asp.net | [9] |
2,266,174 | 2,266,175 | About memory and delete object in c++ | <p>I will give some examples and explain. First, I declare some object like</p>
<p><code>CString* param = new CString[100]</code></p>
<p>And when I declare this one, my memory would increase a little bit because it's some implemented string. Then I store this object in some list of CString just like</p>
<pre><code>L... | c++ | [6] |
2,994,553 | 2,994,554 | Change text in file with php | <p>How would I go about doing this, preferably without mysql.
I just want to display the value inserted on a form on a text file.</p>
| php | [2] |
504,935 | 504,936 | I keep getting the Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException error | <p>I get the runtime error:</p>
<pre><code>Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at Series.series(Series.java:10)
at Series.main(Series.java:21)
</code></pre>
<p>in lines 10 and 21 and can't figure out what's wrong. I am trying to make the program sum the series 1 - 2x + 3x^2 + 4x^3..... | java | [1] |
415,238 | 415,239 | JQuery element + class + selector syntax | <p>I would like to select the last visible <code><span class="delimiter'></span></code> element. The following syntax does not work:</p>
<pre><code>$('span.delimiter:visible');
</code></pre>
<p>How can I achieve this?</p>
| jquery | [5] |
321,684 | 321,685 | C# DATASET RELATIONS | <p>I have two table </p>
<pre><code>Parent Table STUDENT ====> ID,NAME SqlCommand==>Select * from Student
Child Table Lessons ====> ID,STUDENTID,LESSON SqlCommand==>Select * from Lessons
</code></pre>
<p>I create DataRelation for two table with ID and StudentId</p>
<p>I add 2 datagri... | c# | [0] |
4,957,568 | 4,957,569 | Best way to display/format SQL 2005 money data type in ASP.Net | <p>I am attempting to set an asp.net textbox to a SQL 2005 money data type field, the initial result displayed to the user is 40.0000 instead of 40.00.
In my asp.net textbox control I would like to only display the first 2 numbers after the decimal point e.g. 40.00</p>
<p>What would be the best way to do this?
My code... | asp.net | [9] |
1,092,321 | 1,092,322 | How to run ffmpeg command in background from java | <p>I am running a ffmpeg command from java Runtime.getRuntime().exec.
ffmpeg command basically cut the images from live stream.
Actually when i run this command without & then it works fine for five minutes after that it stops cutting images.</p>
<p>but when i use "&" in ffmpeg command it does not work at all.... | java | [1] |
5,369,712 | 5,369,713 | algorithm to list all possible paths | <p>I have dynamic 2D array </p>
<p>Example with Javascript</p>
<pre><code>var arr = new Array();
arr[0] = [1];
arr[1] = [2,3];
arr[2] = [4];
arr[3] = [5,6];
</code></pre>
<p>Now i want output all paths from begin to end :</p>
<p>path 1: 1->2->4->5</p>
<p>path 2: 1->3->4->5</p>
<p>path 3: 1->2... | javascript | [3] |
3,956,381 | 3,956,382 | Reading an app.config in class library | <p>I have a class library and I would like to have some of the configurations stored in an App.config, which would be placed in the same project. I tried reading the configuration using:</p>
<p>ConfigurationManager.AppSettings["ABC"];</p>
<p>and it doesnt fetch me any value.</p>
<p>It would be great if you can let m... | c# | [0] |
1,273,618 | 1,273,619 | Not able to remove from an ArrayList | <pre><code> import java.util;
class Driver{
public static void main(String[] args) {
ArrayList<String> lstStr = new ArrayList<String>();
lsstStr.add("A");
lsstStr.add("B");
lsstStr.add("C");
for(Iterator<String> it = lstStr.Iterator(); it.hasNext();)
{
... | java | [1] |
2,285,090 | 2,285,091 | Book for .Net Web Services | <p>Can any one suggest me a good book for .Net Web Services beginers (C#)</p>
| c# | [0] |
5,727,763 | 5,727,764 | Why do both of these line return the same results | <p>Both of these return true. Is one boolean where the other is text. Shouldnt the one with no .value error as it is refering to the object and not the objects value attribute?
Please help me understand this a bit more.</p>
<pre><code><input type="text" name="sigstatus1" id="sigstatus1" style="display:none;" size... | javascript | [3] |
3,617,851 | 3,617,852 | jQuery find/hide matching option value from 2 select menus | <p>I have 2 select menus with matching options e.g </p>
<pre><code><select id="select-one">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<select id="select-two">
<option value="1">1</option&g... | jquery | [5] |
167,867 | 167,868 | Making put request in php curl | <p>I know many people have already asked this question but unfortunately that answers doesn't help me.</p>
<p>I am trying a put request to the rest api using curl so for i am making my curl request like </p>
<pre><code> $GLOBAL_REST_URL = $GLOBAL_REST_URL.$meetinID;
$json = array2json($ages);
print $json;
$... | php | [2] |
551,212 | 551,213 | Javascript object reference linked to object in array? | <p>If I have an object:</p>
<pre><code>var array = [];
var theobject = null;
array.push({song:"The Song", artist:"The Artist"}, {song:"Another Song", artist:"Another Artist"});
</code></pre>
<p>and I do:</p>
<pre><code>for(var i = 0; i < array.length; i++)
if(array[i].song == "The Song") {
theobject = array[i];
... | javascript | [3] |
1,138,424 | 1,138,425 | Php bin2hex Parse Error | <p>I dont understand why this keeps throwing a "PHP Parse error":</p>
<pre><code>$salt = bin2hex(mcrypt_create_iv(size)(32, MCRYPT_DEV_URANDOM));
</code></pre>
<p>Any ideas?</p>
| php | [2] |
4,403,790 | 4,403,791 | How to make a <div> adjust horizontally by the user | <p>I have a vertical side navigation bar and i would like its width to be horizontally adjustable. May someone please direct me to a tutorial or plugin that would help achieve this?</p>
<p>Thanks</p>
| javascript | [3] |
2,612,860 | 2,612,861 | Where is Object reflective information stored? | <ol>
<li><p>What use could someone have to override this (getClass()) method? What purpose could it solve practically.</p></li>
<li><p>The java documentation says this: <code>By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this co... | java | [1] |
5,046,328 | 5,046,329 | Range Validator - alphabet entered when integer range checked | <p>I have a Range Validator as follows. It is for restricting values between 1900 and 2070. However, it fires error when I enter a alphabet also. I want this to be fired only if the user enters integer values. How do I overcome it? Please help..</p>
<pre><code> <asp:RangeValidator ID="Rang... | asp.net | [9] |
3,618,538 | 3,618,539 | Variables in python os.path | <p>I am new to python and I'm trying to create a program that creates a directory with todays date, create a sandbox into that directory and run the make file in the sandbox. I am having trouble getting the variables to be picked up in the os.path lines. The code is posted below:</p>
<pre><code>#!/usr/bin/python
imp... | python | [7] |
34,240 | 34,241 | double-buffer from different class? | <p>This in my class that is added to my JFrame. can anyone help me with how I can draw graphics from anouther class using this classes offScreen? for example have a Player class (Player.java) and draw an image and other things from that class but still buffer the image without making new double buffering methods in eac... | java | [1] |
1,583,712 | 1,583,713 | String replace method is not working | <pre><code>public static String capitalise(String str)
{
if (str != null || !"".equals(str))
{
char chr=str.charAt(0);
String check= Character.toString(chr);
String check1= check.toUpperCase();
char chr1=check1.charAt(0);
str.replace(chr, chr1);
return str... | java | [1] |
2,538,470 | 2,538,471 | xml button link to for loop | <p>I am trying to get a button in an XML doc to add new textfields and checkboxes, I have the for loop that does what I want, but I don't understand how I am suposed to link my button to access a specific part of a java file. </p>
<p>How do i implement?</p>
<p>edit.</p>
<p>Here is my forloop that I want my button to... | android | [4] |
292,378 | 292,379 | Efficient searching for case insensitive ascii substring | <p>I was actually optimizing Regex transformations of large strings. As some calls to Regex.Replace took significant time I inserted conditional calls - something along the lines</p>
<pre><code>if (str.IndexOf("abc", 0, StringComparison.CurrentCultureIgnoreCase) > 0)
str1 = Regex.Replace(str, "abc...", string.E... | c# | [0] |
5,569,779 | 5,569,780 | Access derived class' functions through pointer (C++) | <p>Here's an example of the situation:</p>
<pre><code>CAnimal *poTest = new CDog();
</code></pre>
<p>When I write "poTest->" All I can see are functions from the base class (in example: CAnimal) and not the ones in the derived one. How can I access these?</p>
| c++ | [6] |
4,781,950 | 4,781,951 | Converting server data as Sqlite Database | <p>i am developing android app, here i am having an huge no of data approximately 10000 records with 10 fields in the server, i need to get this data and store it in the my local db, so for this i tried to implement by getting the data in the form of json parsing it and inserting in db one by one, it is taking less tim... | android | [4] |
4,790,955 | 4,790,956 | jquery - creating a generic ajax function | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3203283/jquery-ajax-always-returns-undefined">jQuery Ajax always returns “undefined”?</a> </p>
</blockquote>
<p>I'm trying to come up with a generic jquery ajax function which takes the url & par... | jquery | [5] |
2,355,369 | 2,355,370 | Selector on a variable content with jQuery | <p>I have this code :</p>
<pre><code>jQuery('#btSave').click(function (event) {
var jqxhr = $.post("Controller/Action", {
lastName: $("#LastName").val()
},
function (data) {
//here
})
});
</code></pre>
<p>I'd like to know if in the "data" variable the id "Mydiv" exist</p>
<p>How... | jquery | [5] |
2,350,561 | 2,350,562 | jQuery: $j('body').append(...) doesn't work? | <pre><code>function floatymessage(message){
if (!$j('.floatymessage')){
$j('body').append("<div class='floatymessage'>HERRO</div>");
}
$j(".floatymessage").html(message)
$j(".fleatymessage").css('display', 'block')
}
</code></pre>
<p>When the following is executed (tested with alert... | jquery | [5] |
5,553,384 | 5,553,385 | Could extra imports in Java slow down code loading time? | <p>Is it possible that adding more import statements to your java code could slow down the time it takes to load your classes into the JVM?</p>
| java | [1] |
1,465,131 | 1,465,132 | working map suddenly display crosses | <p>I was during developing my map based android app, then after running it couple of times in emulator, suddenly map gone and shows crosses. I had obtained a new key yesterday.</p>
<p>I'm using android 2.2 V8.
thanks all.</p>
| android | [4] |
1,181,263 | 1,181,264 | Asp.net yellow code <% vs Explicit asp control | <p>I have a literal in my aspx called xxx.</p>
<p>Now lets go into the JS world.</p>
<p>I always used :</p>
<pre><code> alert('audit.aspx?claim_id=<%= xxx.Text%>');
</code></pre>
<p>But Ive seen a code like this : </p>
<pre><code> alert('audit.aspx?claim_id=<asp:Literal id="xxx" runat="server" />... | asp.net | [9] |
5,546,277 | 5,546,278 | Select Value of List of KeyValuePair | <p>How can i select the value from the List of keyvaluepair based on checking the key value</p>
<pre><code>List<KeyValuePair<int, List<Properties>> myList = new List<KeyValuePair<int, List<Properties>>();
</code></pre>
<p>Here I want to get the </p>
<pre><code>list myList[2].Value when ... | c# | [0] |
81,932 | 81,933 | Show DIV when text is entered | <p>I have tried everything to get this to work on ALL platforms. What am I doing wrong?</p>
<p>JS--</p>
<pre><code>$(document).ready(function(){
$('#gname').keypress(function() {
if ($(this).val() == "Toys")
$('#number').slideDown('fast')
else
$('#number').hide();
});
});
<... | jquery | [5] |
507,859 | 507,860 | where should I close a cursor? | <p>I have an activity with a spinner which loads a simpleCursorAdaptor. I call another class to return the cursor which is used by the simpleCursorAdaptor. I don't keep a class level variable of the cursor or adaptor.</p>
<p>When this activity closes down I want to close the cursor. Should I:</p>
<p>a) in the acti... | android | [4] |
5,828,583 | 5,828,584 | How to save the contents of a plain text file on the phones storage to a variable in Android? | <p>I have some plain text data in the external storage of an android device and I want to save that plain text to a variable how could I do that?</p>
<p>I tried:</p>
<pre><code>Scanner in;
try {
in = new Scanner(openFileInput("aspw.dat"));
String password = in.nextLine();
} catch (FileNotFoundException e1) {
errortoa... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.