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 |
|---|---|---|---|---|---|
652,105 | 652,106 | Get Email Message from any email service provider | <p>I've a html message form box where user can send message with php. </p>
<p>Now I'm trying to get email message from any email service provider, Like: yahoo, gmail, hotmail etc. Is there any way to get email message from any email service provider. </p>
<p>Your suggestion are welcome. </p>
| php | [2] |
5,781,988 | 5,781,989 | Jquary droppable ignore the z-index? | <p>My problem, the drop-function starts when i sort the list. </p>
<p><strong>js</strong></p>
<pre><code>$(document).ready(function rt()
{
$("#div1").draggable();
$("#k1").sortable({ revert: '100' });
$('#droparea').droppable({ accept: 'li', drop: function() { alert('ssss'); } });
});
</code></pre>
<p><s... | jquery | [5] |
5,724,483 | 5,724,484 | jQuery validator to allow only basic characters | <p>I want to allow basic characters <code>A-Z, a-z,0-9</code>, and basic special characters <code>~``!@#$%^&*()_+-=[]{};'\:"|,./<>?</code> availalbe on a standard english keyboard to be only typed in a text area.<br>
Looking for help ! </p>
| jquery | [5] |
3,815,532 | 3,815,533 | Custom Liking Function - Do I need User Login? | <p>I've recently implemented a working custom liking/disliking function for my comics site.</p>
<p>but I feel it’s pushing me towards implementing a login system for all users… which I really don’t want to have to do (for my sake and my fans' sake)</p>
<p>Currently, the function works by:</p>
<blockquote>
<p>1) Pa... | php | [2] |
2,022,331 | 2,022,332 | Whats wrong with setting nullable double to null? | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/2766932/why-cant-i-set-a-nullable-int-to-null-in-a-ternary-if-statement">Why can't I set a nullable int to null in a ternary if statement?</a><br>
<a href="http://stackoverflow.com/questions/858080/nullable-t... | c# | [0] |
380,818 | 380,819 | .click not fired for <p> tag within jQuery dialog | <p>I am having issues with the .click function working for a <p> tag within a jQuery dialog.</p>
<p>I have a a p tag that looks like below, inside a jQuery dialog.</p>
<pre><code><p class="userColor" id="CMP|8|25691/XX|25691/59|59" style="text-decoration:underline;cursor:pointer;">59 - GRAPE</p>
</code>... | jquery | [5] |
1,900,638 | 1,900,639 | How to find out if there is data to be read from stdin on Windows in Python? | <p>This code</p>
<pre><code>select.select([sys.stdin], [], [], 1.0)
</code></pre>
<p>does exactly what I want on Linux, but not in Windows.</p>
<p>I've used <code>kbhit()</code> in <code>msvcrt</code> before to see if data is available on stdin for reading, but in this case it always returns <code>0</code>. Additio... | python | [7] |
647,194 | 647,195 | imploding array_keys from Facebook JSON data | <p>Need some help with the sample code provided the facebook. I can't get it to return a series of IDs that I need to run a sql query against.</p>
<pre><code> $friends = '{
"data": [
{
"name": "Paul",
"id": "12000"
},
{
"name": "Bonnie",
"id": "120310"
... | php | [2] |
3,919,257 | 3,919,258 | How can I access the button placed in datalist I want to access button text that's bind with the database table field | <pre><code><asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource2" onitemcommand="DataList2_ItemCommand">
<ItemTemplate>
<div class="style49">
<table style="width:100%;">
<tr>
<td class="style50">
<as... | c# | [0] |
4,970,968 | 4,970,969 | How to convert seconds to DD:HH:MM:SS | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1322732/convert-seconds-to-hh-mm-ss-with-javascript">convert seconds to HH-MM-SS with javascript?</a> </p>
</blockquote>
<p>I want to convert seconds to DD:HH:MM:SS format. I searched and found about dateJs but ... | javascript | [3] |
918,308 | 918,309 | How to change iPhone app name according to language selected? | <p>Is it possible to change app name according to the user's language preferences?</p>
<p>e.g If English is the language of user's iPhone then app name is "Hello" and if the language is French it would be "Bonjour". </p>
<p>Thanks in advance. </p>
| iphone | [8] |
3,817,767 | 3,817,768 | What's the purpose of is_uploaded_file()? | <p>Docs say:</p>
<blockquote>
<p>Returns TRUE if the file named by filename was uploaded via HTTP POST</p>
</blockquote>
<p>How could <code>$_FILES['blah']['tmp_name']</code> possibly not be the result of a POST upload? PHP created this filename. </p>
<blockquote>
<p>This is useful to help ensure that a maliciou... | php | [2] |
996,991 | 996,992 | confguring wpf application to call com component | <p>Is there an alternative to CoInitialize() in C#/WPF application to load and use COM components? Is there any settings i need to check while creating the WPF application for COM compliance?</p>
| c# | [0] |
5,615,268 | 5,615,269 | PHP - get called functions list | <p>In PHP, get_included_files(). It return an array with the names of included files.</p>
<p>In this way, Is any way to get an array with the names of called functions with parameters?</p>
| php | [2] |
4,396,985 | 4,396,986 | getElementsByTagName is returning empty list in Chrome (but not in firefox) | <p>I have js function which is trying to set XMLDoc object and also setting one of the global parameter (modelingDiagram).</p>
<p>While trying to get elements by tag name, it is returning always empty list (but not in firefox).
During debugging I come to know that it is returning empty list for any tag that I try in ... | javascript | [3] |
1,922,232 | 1,922,233 | xml files in android : How to design them and access in java code | <p>How to edit xml files within layout directory in android. And how can I use controls (defined in xml file) in my java code. </p>
| android | [4] |
5,352,507 | 5,352,508 | How to determine a web visitor's country of origin? | <p>How to determine a web visitor's country of origin?</p>
| php | [2] |
2,769,152 | 2,769,153 | How to extract UIBarButtonItem Icons from the iPhone SDK? | <p>I'd like to extract the default UIBarButtonItem icons from the iPhone SDK. I imagine they're probably stored in the iPhoneSimulator platform as alpha-channel-only PNGs, but I've yet to find it.</p>
<p>The one I'm looking for is UIBarButtonSystemItemReply. (For those suspicious that there's even a valid use case for... | iphone | [8] |
3,865,423 | 3,865,424 | Date conversion in php 1970-01-01 | <p>Hi all I am using date conversion as bellow </p>
<pre><code>$startdate='12/10/2012';
$newstartdate = date('Y-m-d',strtotime($startdate));
</code></pre>
<p>some time it works but some time it shows <strong>1970-01-01</strong></p>
<p>Example: 12/10/2012 works
13/10/2012 does not works shows 1970-01-01</p... | php | [2] |
3,370,405 | 3,370,406 | How to change a text with jquery | <p>h1 with id of toptitle is dynamically created and I am not able to change it.
It will have a different title depends on a page. Now when it is Profil, I want to change it to "New word" with jquery.</p>
<pre><code>Changing only when it is Profile
<h1 id="toptitle">Profil</h1>
to
<h1 id="toptitle"... | jquery | [5] |
3,946,699 | 3,946,700 | php mail: check whether server needs authentication or not? | <p>On some servers, the PHP <code>mail()</code> function requires SMTP authentication (i.e., we have to provide an email address and password). How do I determine through a PHP script if the server requires authentication or not?</p>
| php | [2] |
1,870,739 | 1,870,740 | Accesing Amazon for my App | <p>I am developing an app for which i need to access amazon. That is, I want to access the mp3 based on the user's selection. Is there any SDK available for amazon that I could use in my app. </p>
<p>Any help is appreciated.</p>
| android | [4] |
5,769,163 | 5,769,164 | Nesting if else statements in PHP to validate a URL | <p>I'm currently writing up a function in order to validate a URL by exploding it into different parts and matching those parts with strings I've defined. This is the function I'm using so far: </p>
<pre><code>function validTnet($tnet_url) {
$tnet_2 = "defined2";
$tnet_3 = "defined3";
$tnet_5 = "defined5";... | php | [2] |
4,955,710 | 4,955,711 | Java - alternative to InputStreamReader? | <p><strong>Has been resolved. Ignore</strong></p>
<p>I have an <code>InputStream</code> that provides lines of output at set intervals. I need this wrapped up in a <code>BufferedReader</code> somewhere else, so I tried wrapping it up in an <code>InputStreamReader</code> with</p>
<pre><code>myReader = new InputStreamR... | java | [1] |
4,869,174 | 4,869,175 | Jquery .find.animate to break and repeat | <p>I have the following jquery function that aimates my text. Basically it finds all the elements I ask it to and it animates them. The problem is, as you can see, is that it find ALL the elements at once and animate them all simultaneously. I want each element(h2, h3 and span) to be animated separately from one anothe... | jquery | [5] |
5,615,460 | 5,615,461 | bind function to an element that created by javascript | <p>i want to create a calendar with javascript: </p>
<p>i'm create elements by this function:</p>
<pre><code>createElem : function (name, attrs){
var el = document.createElement(name);
for(var key in attrs) {
el.setAttribute(key, attrs[key]);
}
return el;
}
</code></pre>
<p>table :</p>
<... | javascript | [3] |
4,748,117 | 4,748,118 | shorthand variable assignment | <p>In java I'm trying to use shorthand variable assignment like below. Currently <code>owner</code> is assigned on a different line but I'd like to put it on the same line as below. This isn't working - is it not possible or is there another route?</p>
<pre><code> if ((User owner = search.getOwner()) instanceof U... | java | [1] |
345,844 | 345,845 | Java, which version to learn? | <p>I wanna start learning Java.
I have a book that covers Java 5.0, but i hear that in few days there'll be a new version of Java, so i wanna ask if it will be better to wait for some new book, or to start with 5.0?</p>
<p>thanks</p>
| java | [1] |
4,863,333 | 4,863,334 | Extract Track Information from the uploaded song | <p>I would like to extract some of the information of the uploaded <code>.mp3</code> files like artist, album, and album art and use it to store them in database and also extract the album art and save it on a separate server folder.</p>
<p>How?</p>
| php | [2] |
2,710,248 | 2,710,249 | AsyncTask won't stop even when the activity has destroyed | <p>I have an AsyncTask object which starts executing when the activity is created and does stuff in the background (downloads upto 100 images). Everything works fine but there is this peculiar behavior which i'm not able to understand. </p>
<p>For eg: when the android screen's orientation changes then the activity is ... | android | [4] |
2,291,455 | 2,291,456 | Is chain of StringBuilder.append more efficient than string concatenation? | <p>According to Netbeans hint named <strong>Use chain of .append methods instead of string concatenation</strong></p>
<blockquote>
<p>Looks for string concatenation in the parameter of an invocation of the append method of StringBuilder or StringBuffer.</p>
</blockquote>
<p>Is StringBuilder.append() really more eff... | java | [1] |
5,022,818 | 5,022,819 | shared preference and clear history/data | <p>If I use sharedpreference in android to store the data locally on a device for lifetime of application (until app is uninstalled), is there a risk of losing it when user opts to "clear data" from android's -> menu-> settings->manage applications>clear data. Please advise, thanks.</p>
| android | [4] |
4,212,775 | 4,212,776 | Rainbow animated text jQuery destroying innerHTML | <p>I have a simple markup</p>
<pre><code><a href="/u1"><span style="color:#FF0000"><strong>Mr.EasyBB</strong></span></a>
</code></pre>
<p>This is the jQuery caller for the API Rainbow</p>
<pre><code>$('a[href="/u1"]').rainbow({
colors: [
'#FF0000',
'#f26522',
'#fff200... | jquery | [5] |
4,350,398 | 4,350,399 | What is the purpose of a private class in c#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3235283/is-it-possible-to-have-a-private-class">Is it possible to have a private class?</a> </p>
</blockquote>
<p>Please explain why a developer would create private class. What is the purpose of a private class... | c# | [0] |
3,438,708 | 3,438,709 | Accessing outer class properties | <p>How can I access outer class properties in JavaScript?</p>
<p>For example:</p>
<pre><code>var outer = {
outerField: 15,
inner: {
innerFunc: function () {
// <-- How can I get access to outerField here?
}
}
};
</code></pre>
| javascript | [3] |
3,231,417 | 3,231,418 | Jquery Select DIV below Table | <p>I have some simple markup:</p>
<pre><code><table>
<tr>
<td>Menu Item</td>
</tr>
</table>
<div>
<table>
<tr>
<td>Menu Item Sub Menu</td>
</tr>
</table>
</div>
</code></pre>
<p>Im currently hiding the DIV, however if y... | jquery | [5] |
3,283,079 | 3,283,080 | Syntax error on token "QUOTE", VariableDeclaratorId expected after this token | <p>I've posted a bigger chunk of the code below. You can see that initially QUOTE was procedural- coded in place. I'm trying to learn how to use declarative design so I want to do the same thing but by using resources. It seems like I need to access the string.xml thru the @R.id tag and identify QUOTE with that s... | android | [4] |
1,460,187 | 1,460,188 | simple html dom not working correctly | <p>This is my code:</p>
<pre><code><?php
include("includes/simple_html_dom.php") ;
$url_to_get = "http://getconfused.net/" ;
$homePage = file_get_html($url_to_get);
$allLinks = $homePage->find('a');
foreach ( $allLinks as $link)
{
$href = $link->innertext ;
echo $hre... | php | [2] |
3,635,662 | 3,635,663 | related to variables | <p>_Shopid =0;</p>
<p>_forename=””;</p>
<p>_dateofbirth=?</p>
<p>id is int represented by 0 </p>
<p>forename is string represented by double qoutations like ""</p>
<p>how to represent dateof birth </p>
| c# | [0] |
256,956 | 256,957 | How do I update a variable from javascript setInterval? | <p>Say I have an object:</p>
<pre><code>var myObj = function {
this.count = 0;
}
myObj.prototype {
setCount : function() {
var interval = setInterval(function() {
this.count++;
}, 500);
}
}
</code></pre>
<p>The issue is count is always undefined within the setInterval so i can never in... | javascript | [3] |
2,900,884 | 2,900,885 | Are these two ways of constructing an object in JavaScript equivalent? | <p>Given:</p>
<pre><code> function A(name) {
this.name = name;
}
</code></pre>
<p>is:</p>
<pre><code> var a1 = new A("A1");
</code></pre>
<p>exactly equivalent to:</p>
<pre><code> var a1 = {};
A.call(a1, "A1");
a1.__proto__ = A.prototype;
</code></pre>
<p>?</p>
<p>Thanks</p>
| javascript | [3] |
1,050,695 | 1,050,696 | How to Configure all MachineToApplication settings in your application's root? | <p><code>Default allowDefinition='MachineToApplication'</code> </p>
<p>I have been looking around on different sites and fora, and i have a similar problem than some people had before... it is an error to use a section registered as allowDefinition='MachineToApplicat</p>
<p>How to use this solution:</p>
<p>Configure... | asp.net | [9] |
2,379,326 | 2,379,327 | C++ friend class data access | <p>C++ newbie here.</p>
<p>I am a science guy writing a cfd (ish) code. I have created a class for all solving functions, and one that handles operations on a grid. The grid class wants to be able to see a few of the variables stored in the solving class, as passing them all to the grid class seems like a bit of effor... | c++ | [6] |
2,629,306 | 2,629,307 | Thread returns error in android 4.0.3 version | <p>I have a question that I have a splash screen in my android app in which I am using thread to wait for 8 seconds, it is running fine in 1.6,2.1,2.2,2.3.3, 3.0, 3.1 but returns error when I want to run the same in 4.0.3 version of android, I don't know why? Please suggest me the right solution for the same. Below I m... | android | [4] |
2,719,275 | 2,719,276 | Android. How insert text in active EditText in other app? | <p>How to insert text in active EditText in another application?
It's really?</p>
| android | [4] |
4,683,553 | 4,683,554 | Java Process can't get ErrorStream message | <p>everyone, I have a process that needs to get standard output and log/error/exception output from the subprocess. The standard output is fine, but I can't get ErrorStream, therefore the program is stuck there because of that. Here is my simple code. There is nothing magic, but why can't I get the error stream here? T... | java | [1] |
5,261,814 | 5,261,815 | IBM as/400 developer kit for java | <p>i am going to work on application which access some files from as/400 server.can anyone help me for installing as/400 developer kit in java so that i can start getting files from that server.</p>
<p>please help me.</p>
| java | [1] |
656,770 | 656,771 | How to calculate average word length | <p>I have tried to calculate the average word length but I keep getting an error appear.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.IO;
using System.Text;
namespace textAnalyser
{
public class Analyser
{
public static void Main()
{
// Val... | c# | [0] |
105,569 | 105,570 | Passing variable in jQuery through bind doesn't seem to work | <p>Here's my code that does work:</p>
<pre><code>function mouseOver()
{
$(".beaver").fadeIn(100);
}
function mouseOut()
{
$(".beaver").fadeOut(100);
}
$("#group_beaver").bind('mouseenter', mouseOver).bind('mouseleave', mouseOut);
</code></pre>
<p>But why doesn't this work?</p>
<pre><code>function mouseOve... | jquery | [5] |
4,684,719 | 4,684,720 | overuse of jQuery's on method? | <p>I am using Google Analytic's event tagging on a somewhat complicated code base. Instead of going through every file and finding where all of the necessary events are, I was thinking of creating new events using jQuery's on method to delegate them. Should I be concerned about any potential performance issues by going... | jquery | [5] |
4,047,718 | 4,047,719 | .val() of jquery not working for select element on IE | <p>I tried all these for selected value of select element </p>
<pre><code>inventory_rule = $("#inventory_rule :selected").attr('value');
inventory_rule = $("#inventory_rule option:selected").val();
inventory_rule = $("#inventory_rule").attr('value');
inventory_rule = $("#inventory_rule").val();
</code></pre>
<p>these... | jquery | [5] |
2,395,250 | 2,395,251 | Jquery push elements in an array | <p>I am not sure if there is a mistake in my existing code or the functionality in Jquery Array is like below:</p>
<pre><code>var categories = [];
$(this).children('categories').each(function() {
categories.push($(this).find('name').text());
});
</code></pre>
<p>Now when I have the below XML node :</p>
<pre><cod... | jquery | [5] |
1,127,745 | 1,127,746 | Why can a constructor be called only once per instance? | <p>Why are constructor calls in Java allowed only once per instance? If would be useful to set multiple instance variables in one call rather than calling several setters.</p>
| java | [1] |
1,184,163 | 1,184,164 | Is Universal application can deploy on iOS 3.0? | <p>Is it possible?</p>
| iphone | [8] |
1,194,034 | 1,194,035 | What is the best way to pass server side variables to JavaScript on the client side? | <p>Our application uses a lot of configuration options. Those options need to be reflected on the client side in the form of User preferences, site wide preferences, etc.</p>
<p>Currently, we pass server side settings down to the client side in the form of JSON that is stored in custom attributes in the markup for a s... | javascript | [3] |
1,492,554 | 1,492,555 | Is there an alternative to startActivity()? | <p>I am making my first android application, and it requires switching between activities very frequently. I know I can call finish() to end the current Activity, but I was wondering if there was a way to not call finish() or startActivity(), but to somehow return to the old instance of that Activity? Not using the bac... | android | [4] |
3,962,134 | 3,962,135 | How to keep track of the id that is being passed to other web page? | <p>I am fairly new to html and js.
Let say if I have the following codes in index.html:</p>
<pre><code><a href='edit.html?id=1>item1</a>
<a href='edit.html?id=2>item2</a>
<a href='edit.html?id=3>item3</a>
</code></pre>
<p>then I create a page named edit.html
But How do I keep track... | jquery | [5] |
4,448,080 | 4,448,081 | Android: How to Upload Images from the SD Card | <p>In my application, I want to upload the images from the SD card with restricting the user to upload only less than 2mb. How can I accomplish this?</p>
| android | [4] |
3,403,275 | 3,403,276 | jQuery Check for Hidden DIVs then display message | <p>I've some code where I'm showing/hiding DIVs based on choices made in 2 select drop downs. This is working great. Now, I'm trying to display a "no results" message when nothing matches the choices.</p>
<p><a href="http://jsfiddle.net/Psykopup/hDWAh/" rel="nofollow">My Fiddle</a></p>
<p>It's almost working. The pro... | jquery | [5] |
1,904,620 | 1,904,621 | Execution time of for loop over elements is faster than the inner AJAX call can respond | <p>I have function LoadTempMovieList(), and need to load movies from sessionStorage. But it seems that the execution time of the for loop is faster than the AJAX call I'm making can respond, so the order of final output is not correct sometimes. How can I solve this problem?</p>
<pre><code>function LoadTempMovieList()... | javascript | [3] |
4,289,634 | 4,289,635 | Banking Certification for Java Developer | <p>Can anyone suggest me, banking certification details for working people
1. Institutions Details
2. Exam Names
3. How can we take the test.</p>
<p>Thanks in advance</p>
| java | [1] |
2,549,520 | 2,549,521 | Converting a range or partial array, in the form "3-6" or "3-6,12", into an array of integers, like 3,4,5,6,12 | <p>I'm a little baffled by this one, and I'm struggling to find any similar examples online at the moment.</p>
<p>Working in PHP, I want to take input, probably from a form field, of a either a "list of values", a "range" or a combination of the two, in the form;</p>
<pre><code>3,5,6,9,11,23
</code></pre>
<p>or</p>
... | php | [2] |
883,023 | 883,024 | Best way to parse this string | <p>In PHP what is the most efficient way to parse this string into an associative array?</p>
<pre><code>%STCITY^LASTNAME$FIRSTNAME$MIDDLENAME^ADDRESS1$ADDRESS2^?;UNIQUEID=YYMMDDYYMMDD=?
</code></pre>
| php | [2] |
2,548,036 | 2,548,037 | where can I found the file in the host machine when installed it using `adb push /data/hello.apk` on simulator | <p>I am assuming that , in the host machine , i can find a file calling <code>$(PREFIX)/data/hello.apk</code>. But I did not find it , either in <code>android-sdk-linux_x86/platforms/android-8/data</code> nor in <code>~/.android/avd/myAvd</code>
`</p>
| android | [4] |
1,653,272 | 1,653,273 | get millisecond part of time | <p>I need to get milliseconds from the timer</p>
<pre><code> // get timer part
time_t timer = time(NULL);
struct tm now = *localtime( &timer );
char timestamp[256];
// format date time
strftime(timestamp, sizeof(timestamp), "%Y-%m-%d_%H.%M.%S", &now);
</code></pre>
<p>I want to get lik... | c++ | [6] |
5,288,276 | 5,288,277 | How to go to particular page in grid view | <p>I have grid view with 1,2,3,4,.... at the bottom in a.aspx
when I click a button in b.aspx I need to go to a particular page in grid (i.e I have to 2 page of grid when I press button) </p>
| asp.net | [9] |
5,973,316 | 5,973,317 | drawing an image in a customized UIView | <p>I'm drawing an image... but my problem is that if there's another imageview in the view, my drawn image (green circle) is not visible, seems it's a lower layer than the imageView.</p>
<p>First, what I've do is that I subclass UIView, MyDrawView, in this is class I do the drawing functionality.
Then, I set in IB the... | iphone | [8] |
726,681 | 726,682 | How can private member variables in a superclass be accessed in a subclass? | <p>I want to do something like:</p>
<pre><code>/*
* Superclass.h
*
*/
class Superclass
{
const int size;
public:
Superclass():size(1){}
~Superclass(){}
};
/*
* Subclass.h
*
*/
#include "Superclass.h"
class Subclass : public Superclass
{
public:
Subclass(){size;}
~Subclass(){}
};
</code></p... | c++ | [6] |
4,142,291 | 4,142,292 | Image should not lose quality and add white spaces around the image | <p>Hi guys i have a bitmap with size 600*420 and i need to post the image in size 900*900..so the image is stretched.but i don't want it to be stretched i need that image to add white spaces and save the quality.</p>
| android | [4] |
2,901,333 | 2,901,334 | PHP's IF and ELSE at one time | <p>A code with the missing condition in the statement if:</p>
<pre><code>if ( ... ) {
echo 'BBB';
}
else {
echo 'AAA';
}
</code></pre>
<p>Question: What should I write in a missed condition that the output of this code was a line:
AAABBB</p>
| php | [2] |
5,461,919 | 5,461,920 | Dealing with extremely large strings | <p>Hey all, I am writing a logviewer application. These logs are between 100-200 megs (almost never larger than that) of pure text. </p>
<p>My application will be not only used to make the reading of said logs easier, but to offer tons of options on parsing (filters/searches, ect). Anywho, the files are on a networ... | c# | [0] |
3,278,421 | 3,278,422 | Jquery How to use .live on draggable | <p>I am using dragabble method from jquery ui. How to apply live() on draggable.</p>
<pre><code>$("#image").draggable({ containment: [10, 150, 0, 0], scroll: false});
</code></pre>
<p>What I tried is this </p>
<pre><code>$("#image").live("draggable", function () {
.draggable({ containment: [10, 150, 0, 0], scroll: f... | jquery | [5] |
5,410,904 | 5,410,905 | How to import variables into different files in python | <p>I am new to python scripting.</p>
<p>I have 3 files.</p>
<ol>
<li>a.py</li>
<li>b.py</li>
<li>c.py</li>
</ol>
<p>In the files:</p>
<ul>
<li><p>a.py : having all variables deceleration</p></li>
<li><p>b.py : I am importing the a.py to use the variables declared in a.py like <code>import a</code></p></li>
<li><p>c... | python | [7] |
3,774,794 | 3,774,795 | I want to start new Activity when i click on ListView's content | <pre><code>ListView lv = getListView();
lv.setTextFilterEnabled(true);
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,int position, long id) {
Intent i = new Intent(this, contents.class);
startActivityForResult(i,... | android | [4] |
4,302,276 | 4,302,277 | Making not editable EditText component | <p>I have an edit text. How can i make it non editable from the code.
By giving the tag android:editable we can do in the layout.. But i need to do it in the code...Pls Help</p>
| android | [4] |
4,889,661 | 4,889,662 | How can I set session timeout for 2-3 days in PHP? | <p>I would like to set my sessions to last for 2-3 days so that my users will not have to login to get data after days of being idle.</p>
<p>Please help me with the code to achieve this.</p>
| php | [2] |
1,620,073 | 1,620,074 | to add scrollbar within window | <p>I have 3 accordions in a same page.On the above of accordion there is header page.I want that headerpage should become still and on the part of accordions a scrollbar is there.so that when i scroll the page only inner page get scrolled instead of whole page .suggest using javascript</p>
| javascript | [3] |
2,720,829 | 2,720,830 | Can Server.MapPath used in c# files? | <p>i was trying to get physical path of a file, and got the information that <code>Server.MapPath</code> will give you. But for me in my windowform i am not getting that even i used namespace using <code>System.Web;</code> but still not getting?
for example if i have a file named "myTestClass.xml" somewhere in my syst... | c# | [0] |
2,139,766 | 2,139,767 | Enable input based on corresponding radio button | <p>I have a form with multiple options for Amounts to be sent to CC processing. I'd like the user to select the type of payment which then activates the amount input fields. I'm attempting to do this by setting the id of the radio button to correspond to the amount input field. How can I enable the input Amount fiel... | jquery | [5] |
1,570,724 | 1,570,725 | loading the dialog box when the page is loading | <p>i want to load a dialogue box before the page is load</p>
<p>like this
<a href="http://www.balam.in/personal/triponetDemo/pre-loader.html" rel="nofollow">Demo here</a>
in this demo it brings data by Ajax but in my case I did not use the Ajax to bring the data ? any idea please..</p>
| jquery | [5] |
4,735,443 | 4,735,444 | Registering derived classes in central list | <p>I have a central list of implementations of an interface and would like for derived classes to be able to register themselves in that list without having to add them in some central place. For example:</p>
<pre><code>// interface.h
struct MyInterface;
std::vector<MyInterface*>& InterfaceList();
struct My... | c++ | [6] |
2,842,831 | 2,842,832 | Find - using PHP and wrap everything after in <span> | <p>I am printing using PHP</p>
<pre><code><?php echo $article->link($article->title()); ?>
</code></pre>
<p>This string holds something like </p>
<pre><code>"Team Member - Job Title"
</code></pre>
<p>What id like to do is wrap everything after the dash in a span so i can change its colour.</p>
<p>Any h... | php | [2] |
3,923,736 | 3,923,737 | Capturing part of string from a txt file? | <p>I have a text file like this, separated by ";"
1022-3, 1603-4, 2012-5, 2489-6;</p>
<p>Gotta catch the first part before the "-" and pass to variable, and compare with milliseconds, if is equal the number, capture the number after of "-".
And do so with the next number after the semicolon, and so front.</p>
<pre><... | android | [4] |
3,568,478 | 3,568,479 | <authentication mode="Windows"/> | <p>I had this error when I browse new web site that site sub from sub </p>
<p><a href="http://sharp.elarabygroup.com/ha/deault.aspx" rel="nofollow">http://sharp.elarabygroup.com/ha/deault.aspx</a></p>
<p><strong>ha is new my web site</strong> </p>
<p></p>
<p>Configuration Error
Description: An error occurred during... | c# | [0] |
2,152,213 | 2,152,214 | android - how to stop startup applications | <p>How I can programmatically find the list of applications that starts on device startup.
Is there any way to programmatically reset applications property to prevent run on startup .?</p>
<p>Thanks</p>
| android | [4] |
5,748,219 | 5,748,220 | How to Connect to rild Socket | <p>I'm trying to write an app to talk to the rild. And Yes, I know this is not politically correct, but it's an embedded industrial telemetry app so I'm not concerned about user experience, portability and all that stuff.</p>
<p>The problem is that when I try to connect, I get a java.io "Permission denied" exception.... | android | [4] |
4,698,026 | 4,698,027 | C#: Convert a UInt16 in string format into an integer(decimal) | <p>Here's the problem.</p>
<p>I ,for example,have a string "2500".Its converted from byte array into string.I have to convert it to decimal(int).</p>
<p>This is what I should get:</p>
<pre><code>string : "2500"
byte[] : {0x25, 0x00}
UInt16 : 0x0025 //note its reversed
int : 43 //decimal of 0x0025
</code></pre... | c# | [0] |
1,216,054 | 1,216,055 | how to conver java class into visual class in eclipse? | <p>i have swing code which is written in eclipse with out help of visual editor(not choose the class as visual class), now i need to modify that code using visual editor, how can i convert the a java class into visual class?</p>
| java | [1] |
136,697 | 136,698 | PHP-Visitor from google | <p>How can I find with p h p if someone comes to my website from google? </p>
<pre><code><?php
if (isset($_COOKIE['source'])) {
$arr = explode("=",$_COOKIE['source']);
$_SESSION['source'] = $arr[1];
unset($_COOKIE['source']);
}
?>
</code></pre>
<p>This is how I get the source, to know whe... | php | [2] |
712,110 | 712,111 | What is PHP function overloading for? | <p>In languages like Java, overloading can be used in this way:</p>
<pre><code>void test($foo, $bar){}
int test($foo){}
</code></pre>
<p>Then if you called <code>test()</code> with 2 arguments e.g <code>test($x, $y);</code>, the first function would be called. If you passed only 1 argument e.g <code>test($x);</code>,... | php | [2] |
2,231,735 | 2,231,736 | verifying my understanding about pointers | <p>I just want to make sure if I understand the properties of pointers. So if I have something like this:</p>
<pre><code>#include <iostream>
using namespace std;
class Person
{
public:
Person(){myBook = new Book(4);}
void printPerson()
{
int i =0;
while(i<n)
{
cout<<myBook[i].... | c++ | [6] |
1,852,496 | 1,852,497 | problems with file I/O while running python 3.2 scripts in windows cmd, but not in IDLE | <p>I am a python noob, and am having problems running programs with open() functions in cmd prompts. The code runs as expected in the python shell with IDLE, but everytime I open it by doubleclicking the icon coresponding to the script( I have .py associated with python), I get errors like </p>
<p><code>what file te... | python | [7] |
4,613,834 | 4,613,835 | How do I pass a struct from a class to a winform | <p>I tried to do something like this:</p>
<pre><code> m_mystruct = (Form1.mystruct)m_myclass.mystruct;
</code></pre>
<p>where both structs have same definition.</p>
<p>C# doesn't want to do the cast.</p>
<p>Update: instead of why, I modify my question </p>
<p>How do I pass a struct from a class to a winform... | c# | [0] |
3,869,654 | 3,869,655 | C++ line output | <pre><code>cout << boolalpha ("1" < "0") << endl;
</code></pre>
<p>I was compiling this recently as a spin off from some course work I was doing. Why does this produce <code>true</code> when I execute it? </p>
<pre><code>cout << boolalpha (string("1") < string("0")) << endl;
</code></pre... | c++ | [6] |
5,014,525 | 5,014,526 | get array values in python | <p>I have the values arr1 as 25,26 and arr2 values as A,B</p>
<p>Its always that the number of values in arr1 and arr2 are equal</p>
<p>My question is that</p>
<pre><code> for i in arr1.split(","):
print i //prints 25 and 26
</code></pre>
<p>is it not possible to get the values of arr2 in ... | python | [7] |
1,088,819 | 1,088,820 | alphabatically retreving data in php | <p>hi im very new to php and i did some small project(medicare system)
i created a database called "chapa",
and created a table called "drug".</p>
<p>there is a field called "des" in that table "des"=description
my table fields are =codeno!qty!size!des!rate
all i want is that "des" to be shown in alphabatically with ... | php | [2] |
4,542,505 | 4,542,506 | how to convert datarow into datatable | <pre><code>DataRow[] row = table.Select("Weight='57'");// has 1 record
DataTable dt = new DataTable();
foreach (DataRow dr in row)
{
dt.ImportRow(dr);
}
dt.AcceptChanges();
</code></pre>
<p>my row has 1 record. when i try to convert dat... | asp.net | [9] |
2,535,417 | 2,535,418 | How to convert bool [] into byte [] | <p>I have bool array:</p>
<pre><code>bool[] b6=new bool[] {true, true, true, true, true, false, true, true,
true, false, true, false, true, true, false, false };
</code></pre>
<p>How can I convert this into an array of bytes such that</p>
<ul>
<li>byte[0]=0xFB </li>
<li>byte[1]=AC </li>
<li>etc... | c# | [0] |
2,168,450 | 2,168,451 | Can we ignore screen orientation OR Do we have to handle it? | <p>Although I know how to handle <strong>screen orientation</strong> in an <em>IPhone</em> application. Is there possibly a way we can ignore it? Either by means of some <em>code</em> or may be setting it somewhere. For example in <em>Android</em> we can <a href="http://stackoverflow.com/questions/1410504/android-how-t... | iphone | [8] |
2,932,180 | 2,932,181 | jquery copy content to another text box | <p>I have following 2 fields in my large form...</p>
<pre><code> <p><input type="text" name="name" id="proname" value="" /></p>
<p><input type="text" name="var" id="provarname" value="" /></p>
</code></pre>
<p>I want that #provarname should get value live automatically from #pro... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.