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 |
|---|---|---|---|---|---|
4,291,948 | 4,291,949 | Javascript set select box size attribute does not seem to work | <p>I have a select box with the class attribute set to <code>class="styled"</code>. The reason being that the select box has been styled (it uses a background url to give it a custom appearance). If I remove this class attribute I can simple use <code>size="10"</code> in the html tag, or change it dynamically with:</p>... | javascript | [3] |
2,040,746 | 2,040,747 | jQuery - wrap issue - want to declare elements | <p>Hi I have a wrap() that is working fine, but the problem is, I need to be able to tell it where to start the wrap (by an element ID..#start) and where to end it (again, by an element ID...#end). Is this possible? Did I do a good job of phrasing the question? Thanks.</p>
| jquery | [5] |
2,670,454 | 2,670,455 | How to retain the time of the countdown timer even when the page is refreshed | <p>i have countdown timer in java script ,i want to retain the countdown time even when the page is refreshed can you please suggest me what direction i have to follow </p>
| javascript | [3] |
5,789,250 | 5,789,251 | android - How to connect the Device to the Emulator | <p>My Application is working properly in emulator. I am running the application in the device using the ".apk" file. But it is not working properly. So i want to test the application in the device using Eclipse logcat. How to connect the Real device to the Eclipse for debugging the application in the device. I follow ... | android | [4] |
2,540,733 | 2,540,734 | Jquery .click() callback | <p>I am unsure if this is a "callback' that I need or not, but basically I am trying to emulate the reversal of the function like on the .hover() effect with the .click() effect. Is this possible. So basically, if the user clicks again on the link, the reverse of what just happened, ie a div closing as opposed to openi... | jquery | [5] |
1,016,667 | 1,016,668 | Replacing width and height in markup with a JS regular expression | <p>I have two JS variables X and Y. In my markup there's a line starting with:</p>
<pre><code><iframe frameborder="0" width="600" height="337" ..
</code></pre>
<p>I want to replace the width's value by X's value and the height's value to Y's value. Could somebody help me with the regular expression to achieve this... | javascript | [3] |
1,546,996 | 1,546,997 | Why do they have the same ID? | <pre><code>public class Bird
{
private static int id = 0;
private String kind;
public Bird(String requiredKind)
{
id = id + 1;
kind = requiredKind;
}
public String toString()
{
return "Kind: " + kind + ", Id: " + id + "; ";
}
public static void main(String ... | java | [1] |
1,354,883 | 1,354,884 | traverse to parent td and tr from a item click in a cell | <p>I have a link ( anchor ) tag in a table cell on every row of an html table.
On click of this anchor tag I want to use jquery ( preferably) to traverse back to the parent td and tr and get object reference to it. </p>
<p>how can i use jquery at best here to navigate\traverse in dom.</p>
<p>I can do a method like th... | jquery | [5] |
3,706,120 | 3,706,121 | what is garbage collector in java and how can we use it | <p>what is garbage collector in java and how can we use it</p>
| java | [1] |
2,086,224 | 2,086,225 | jQuery - Given a TextArea Val()- How to get everything before the first line break | <p>I have a text area that allows for returns (enter key). I'd like to know how to get everything in the textarea that is before the first linebreak/return/enter key?</p>
<p>Should I use something like split?</p>
| jquery | [5] |
3,896,710 | 3,896,711 | Error when installing my app on the phone | <p>I have a <code>LG P500</code> with <code>Android 2.2</code> and when I want to install any <code>.apk</code> a message appears:</p>
<pre><code> "There is problem parsing package"
</code></pre>
| android | [4] |
1,174,541 | 1,174,542 | Grouping items by match set | <p>I am trying to parse a large amount of configuration files and group the results into separate groups based by content - I just do not know how to approach this. For example, say I have the following data in 3 files:</p>
<pre>
config1.txt
ntp 1.1.1.1
ntp 2.2.2.2
config2.txt
ntp 1.1.1.1
config3.txt
ntp 2.2.2.2
nt... | python | [7] |
925,761 | 925,762 | How a reference address become NULL in C++? | <p>I have a coredump,it shows a reference address is NULL....</p>
<p>details:</p>
<pre><code>(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0x005b6c10 in raise () from /lib/libc.so.6
#2 0x005b8521 in abort () from /lib/libc.so.6
#3 0xf749e641 in Application::fatalSignal () at Application.cc:277
#4 <signal ... | c++ | [6] |
1,184,446 | 1,184,447 | About Php development | <p>I have developed two projects: one in osdate and other is my own code. I want to improve my code standard. Can anyone suggest a standard and how to organize a project before starting? I don't have any senior programmers in my office and so I have to learn by myself.</p>
| php | [2] |
5,089,599 | 5,089,600 | javascript for creating link url from elements w/o specific IDs | <p>In a CMS that returns a list of results from a search, I have a list of items that looks something like this: </p>
<pre><code><ul class="results_odd_row">
<li class=title> Title </li>
<li class=published> Year </li>
<li class="author"> Author </li>
<li class="ava... | javascript | [3] |
275,879 | 275,880 | hour format in javascript | <p>In my javascript iam using GetHour and GetMinutes function.For eg:Current Time is 2:03.If in this case i use GetHour(),it returns 2.Instead i need 02.Can anybody help?</p>
| javascript | [3] |
2,818,716 | 2,818,717 | How to assign value to id? | <p>I have one string name as id in my .aspx.cs page and one javaScript function SetValue(val) on .aspx page in which I have to assign val to that id. How will I do this in java script fuction SetVal(val)?</p>
| javascript | [3] |
3,412,315 | 3,412,316 | Parse error: syntax error, unexpected T_VARIABLE on line 1 in contactengine.php | <p>I am getting the error "Parse error: syntax error, unexpected T_VARIABLE on line 1" in the contactengine.php file when I send a form to this file. Funny thing is its working fine on another server:</p>
<pre><code><?php
$EmailFrom = Trim(stripslashes($_POST['Email']));
$EmailTo = "enquiries@clareelizabethcreche.i... | php | [2] |
1,928,995 | 1,928,996 | on "bluetoothChat" giving error bluetooth is not available | <p>I worked on <strong>bluetoothChat</strong> on sdk15,
no error is showing in problems but when I run it shows <strong>"Bluetooth is not available"</strong> and in logcat showing 04-14 19:04:11.064: E/BluetoothChat(1214): --- ON DESTROY ---, ON CREATE..., IN TAG DALVIKVM-- IN TEXT >> NOT LATE ENABLING CheckJNI (alread... | android | [4] |
3,311,433 | 3,311,434 | What is the error in this program? It's showing uncaught typeerror | <p>I get the following error</p>
<blockquote>
<p>uncaught typeerror : object is not a function</p>
</blockquote>
<p>in the code below. </p>
<pre><code><html>
<head>
<title>Reverse</title>
</head>
<body>
<form name="rev1">
Enter the string : <input type="text" name="str"... | javascript | [3] |
5,032,750 | 5,032,751 | Cookies shared between WebView instances in different processes? | <p>Do WebView instances in my process share cookies and cache with WebView instances created by other processes? </p>
<p>Say I have my website www.example.com, and there's a login page there. If the user logs into my site from the native browser app, then they come into my app later on where I have an embedded WebView... | android | [4] |
308,833 | 308,834 | Bring application to front after user clicks on home button | <p>My application is in <strong>running mode[foreground]</strong> and user clicks on home button, which puts application to <strong>background[and still running]</strong>. I have alarm functionality in my application which fires up. I want is when my alarm goes off i want to bring my background running application in f... | android | [4] |
5,933,831 | 5,933,832 | How to change the background of multiple activities at the same time? | <p>I am developing an app with 3 activities. Every activity has the same background. I want to enable the users to change the background of all the three activities. So i used a AlertDialog to provide the user several choices. When the user click the items on the Dialog, the background will be changed.</p>
<p>I have t... | android | [4] |
1,847,779 | 1,847,780 | Dynamically create content of table php | <p>I am trying to create a table where users choose which week they want - 1 to 52, and then across the top of the table have the days Monday through Sunday and down the side 5 different meal times.</p>
<p>I would like to know how i would fill the contents of the table with values stored in a database that correspond ... | php | [2] |
5,256,138 | 5,256,139 | how to go one view to another view? | <p>I create one Application for Language Display. Now, I need to display the Another Page when I tapped on first button then go to Another Page. If I tapped on Second Button, It will back on first Page. </p>
<p>How to code it?</p>
<p>Thanks in Advance...</p>
<p>Rahul Rana</p>
| iphone | [8] |
1,969,337 | 1,969,338 | Android to PC communication | <p>I am working on a project to guide blind students. I am using WiFi Tags and android mobile.
WiFi tags are placed on the wall and android is carried by blind student. The student's time table, shortest path algorithm to reach specific lecture hall is loaded onto HOST.</p>
<p>Whenever android mobiles comes in vicinit... | android | [4] |
3,434,676 | 3,434,677 | Linker error when trying to add constant to iterator | <pre><code>#include <string>
#include <iostream>
using namespace std;
struct foo {
static const int X = 3;
static char bar(const string &str) {
// return str[X]; // this works
return *(str.begin() + X); // this fails
}
};
int main() {
cout << foo::bar("abcdefg") &... | c++ | [6] |
3,811,450 | 3,811,451 | Why are Safari and Chrome's Javascript engine's running 1.5? | <p>I was browsing the MDC Doc Center page on <a href="https://developer.mozilla.org/en/JavaScript/Guide/Closures" rel="nofollow">Closures</a>. And it mentions the introduction of the <strong>let</strong> keyword but only for use with browsers running at least the 1.7 release.</p>
<p>So I looked on <a href="http://en.w... | javascript | [3] |
2,538,981 | 2,538,982 | RelativeLayout items not relative | <p>I'm going to switch this to use a Table instead of a ListView, but my concern is that these items are not relative as they should be given the provided XML.</p>
<p>Is there something about the RelativeLayout being inside of Linear that's causing an issue?</p>
<p><img src="http://i.stack.imgur.com/MdwS9.png" alt="e... | android | [4] |
4,512,635 | 4,512,636 | Jquery External Scripts | <p>I am using the following external jquery files in my default.aspx page.</p>
<pre><code> <script type="text/javascript" src="Scripts/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="Scripts/jquery-ui-personalized-1.5.2.packed.js"> </script>
<script type="text... | jquery | [5] |
1,490,806 | 1,490,807 | Is there a function()[key] similar syntax for PHP? | <p>I always loved how i can quickly do with JavaScript:</p>
<pre><code>function hello(){
return ['foo', 'bar'];
}
hello()[0]; // foo
</code></pre>
<p>Why can't we do such things with PHP or is there another short syntax for that?</p>
| php | [2] |
3,848,399 | 3,848,400 | Javascript conditional order evaluation | <p>Can I count on Javascript failing immediately when one condition in an expression results to false?</p>
<pre><code>f = {'a':'b'};
if (f.a !== undefined || f.a === 'b') {
// Is this OK to use, because the second condition will never be evaluated?
}
</code></pre>
| javascript | [3] |
299,064 | 299,065 | Difference between HTTPContextBase.User and MembershipUser | <p>Please clarify.</p>
| asp.net | [9] |
140,146 | 140,147 | using tag on a button and passing tag value in next view label-iphone | <p>i am having some buttons whose tags have been set from 1 to 10.Now if user clicks on the buttons, the tag value should be send in next screen/nib's label.</p>
<pre><code>-(IBAction) gotoGameScreen:(id)sender
{
[self playAudio];
UIButton *btn=(UIButton *)sender;
NSLog(@"Use Selected Level=%d",btn.tag... | iphone | [8] |
3,264,733 | 3,264,734 | Temporary variable used for each iteration of a large loop, strings are immutable so what should I use? | <p>I have a loop like:</p>
<pre><code>String tmp;
for(int x = 0; x < 1000000; x++) {
// use temp
temp = ""; // reset
}
</code></pre>
<p>This string is holding at most 10 characters.</p>
<p>What would be the most effecient way of creating a variable for this use case?</p>
<p>Should I use a fixed size a... | java | [1] |
3,244,735 | 3,244,736 | Java:Get a value from a thread using some polling mechanism and kill the thread based on the value…? | <p>how can i poll for value from another thread.
For eg: I have a method in ThreadA which calls a method of another Thread(ThreadB). I need to use some polling mechanism so that for every 5 seconds I should be able to check the value of return type(String) of that method and based on the value (say SUCCESS/FAILURE) i ... | java | [1] |
24,286 | 24,287 | locate nearby hospitals on google map | <p>Hi anyone plesae give me suggestions to show near by hospitals on google map. I am trying to do this since 3days and i am searching in internet since 3 daysbut i am not getting any solutions . It seems really difficult for me</p>
| android | [4] |
3,047,870 | 3,047,871 | How to get the URL the client used | <p>In ASP.NET, how can I know whether the user has typed the default document in the URL or not—i.e., distinguish if the URL ends with <code>/</code> or <code>/Default.aspx</code>?</p>
| asp.net | [9] |
1,519,492 | 1,519,493 | When I say require("http://url.com/directory/file.php?test=name") it returns 0 why is this? | <p>When I say require("http://url.com/directory/file.php?test=name") it returns 0 why is this? I also cannot call values ($value) with PHP. How can I do this? What am I doing wrong here?</p>
| php | [2] |
3,811,448 | 3,811,449 | Bitmap.createBitmap() on Android 2.2 issue | <p>I have tested my game on HTC Desire with Android 2.2. Game is 2D with custom defined sprites with multiple bitmap images (frames). Frames are generated from one larger image using method Bitmap.createBitmap():
<br>
<br>
<code>bitmapFrames[currentFrame][0] = Bitmap.createBitmap(image, startX, startY, width, height, ... | android | [4] |
1,765,700 | 1,765,701 | Android RMI with UI Thread | <p>I am trying to remote invoke method form other apk. Everything is working except fact that invoking method has to do some operations on UI and must be run from UI Thread. Method which was invoked with Method.invoke() are running in separate thread and has no access to UI. Is AsyncTask is a proper way to solve this p... | android | [4] |
5,889,948 | 5,889,949 | Can I do an assignment operation between two istream_iterators? | <p>Can I do an assignment operation between two istream_iterators? If so then what will be the behaviour, i.e. will both the iterators point to the same location in the file, i.e. will we get two pointers to the same line in a file?</p>
<p>If so, can I increment one iterator, read some lines, and then assign it back t... | c++ | [6] |
3,727,680 | 3,727,681 | Distributing a development version of an iPhone application | <p>My company has recently started developing custom iPhone applications for various clients. One of the challenges we are running into is how to get these applications to the client so they can review them during the development process.</p>
<p>Ideally, this would just be a matter of sending them the app file and ha... | iphone | [8] |
4,984,580 | 4,984,581 | binary tree insertion 3 | <p>I am trying to write my own binary tree and I have problems with insertion. The values in tree are duplicated. I have inner static class Node with "Node right,left and int value" fields and outer class BinaryTree with one field - Node root.</p>
<p>The code of insertion:</p>
<pre><code>public void insert(int number... | java | [1] |
5,081,045 | 5,081,046 | Can two ListViews use the same ArrayAdapter? | <p>As far as I know, ArrayAdapter is used to handle data for ListView's content. I have two ListViews (in the same activity) that contain the same data, <strong>with two different behaviors (should be handle in two different onListItemClick() )</strong> though. Can I use the same ArrayAdapter for both of them? I can ch... | android | [4] |
3,105,813 | 3,105,814 | How to apply an animation color effect on a div | <p>I have this jQuery function :</p>
<pre><code>$('.tracklistOff').find('.trackon').clone().insertAfter(($(param).parents('.trackon')));
</code></pre>
<p>I clone the div and I add it. The CSS class of <code>trackon</code> is :</p>
<pre><code>.trackon{width:710px; height:26px; color:#CCCCCC; font-weight:bold; float:l... | jquery | [5] |
5,564,070 | 5,564,071 | using jquery to remove links, but not images | <p>I have a that has a bunch of list items, each with an image wrapped in a hyperlink. I'm trying to write some jQuery that will remove the links, but not the images. Is this possible?</p>
| jquery | [5] |
1,108,563 | 1,108,564 | Iterate through form not working | <p>I have been using this code to iterate through form elements and until now it has worked flawless:</p>
<pre><code>$(document).ready(function() {
$(':input', '#myform').each(function() {
alert('test');
$(this).attr('disabled', 'disabled');
});
});
</code></pre>
<p>But on thi... | jquery | [5] |
4,534,623 | 4,534,624 | How to Place ActionBar Items in Main ActionBar and Bottom Bar | <p><img src="http://i.stack.imgur.com/c1VVk.jpg" alt="enter image description here"></p>
<p>The Google+ app has a layout where it has action bar items in the main action bar and the bottom. Currently I am using android:uiOptions="splitActionBarWhenNarrow" to place items in the bottom bar. How can I place items on both... | android | [4] |
3,721,171 | 3,721,172 | C++ illegal digit, simple issue | <p>I'm running against this error:</p>
<pre><code>int temp = 0789;
error C2041: illegal digit '8' for base '8'
</code></pre>
<p>For what I can understand is that the compiler understands any number that begins with 0 like 0123 to be octal. But how can I tell the compiler to just take it with the 0 in front?</p>
| c++ | [6] |
3,116,253 | 3,116,254 | How to let C++ know that an operator has been overloaded for a class | <p>Is it possible to write a template function for which a particular type of classes have some functions or overloaded operators? For instance</p>
<pre><code>template <typename T>
void dosomething(const T& x){
std::cout << x[0] << std::endl;
}
</code></pre>
<p>In this context I'm assuming t... | c++ | [6] |
5,141,023 | 5,141,024 | add diffrent intent to each notification | <p>Currently i'm developing android app witch will show notifications(advertisements, discounts avalible and so on) when i'm near some shop. The problem is there could be many shops around and as a result many notifications, so how can i set difrent intents for my notifications if they are generated like this:`</p>
<p... | android | [4] |
2,663,926 | 2,663,927 | java HashMap containsKey is returning false though key is present | <p>I am using a HashMap data structure to store a SqMatrix (square matrix), where the key is of type MatrixIndex (which contains row and col) and the value is of type Integer. </p>
<p>But when I am getting false as output of "if (mat.containsKey(key))" though the HashMap has the corresponding key in it.</p>
<p>The ma... | java | [1] |
4,448,363 | 4,448,364 | const string vs. #define | <p>i need to share some strings in my c++ program. should i use #define or const string? thanks</p>
<p>mystring1.h </p>
<pre><code>#define str1 "str1"
#define str2 "str2"
</code></pre>
<p>Or<br>
mystring2.h </p>
<pre><code>extern const string str1;
extern const string str2;
</code></pre>
<p>mystring.cpp ... | c++ | [6] |
276,374 | 276,375 | Python import causing syntax error | <p>I'm an old-fashioned Pascal programmer, new to OOP and Pyhton, so please bear with me...I've got a book on Python and I've searched here first (although lots of similar threads - not checked every one)...</p>
<p>I'm trying to write a program to include existing modules written by others in my company. According to ... | python | [7] |
3,359,268 | 3,359,269 | Reading formatted input from an istream | <p>The problem below has been simplified from real requirements.</p>
<p>Consider the following program:</p>
<pre><code>#include <iostream>
#include <iterator>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
typedef string T; // to simplify, always consider T ... | c++ | [6] |
631,360 | 631,361 | Why 0 || 1 returns true in php? | <p>In Javascript and Python, <code>0 || 1</code> returns <code>1</code>.</p>
<p>But in PHP, <code>0 || 1</code> returns true.</p>
<p>How to do if I want <code>0 || 1</code> return <code>1</code> in PHP?</p>
<p>another example,</p>
<p><code>$a</code> is <code>array(array('test'))</code></p>
<p>I want <code>$a['test... | php | [2] |
1,608,010 | 1,608,011 | Javascript: getElementById() wildcard | <p>I got a div, and there i got some childnodes in undefined levels.</p>
<p>Now I have to change the ID of every element into one div. How to realize?</p>
<p>I thought, because they have upgoing IDs, so if the parent is id='path_test_maindiv' then the next downer would be 'path_test_maindiv_child', and therefore I th... | javascript | [3] |
1,111,159 | 1,111,160 | how to reassign value to an object using constructor in c++ | <p>I came through a pretty interesting question... what can be the class declaration for the following segment of code in c++..</p>
<pre><code>int main(){
Point f(3,4); //class Point
f(4);
}
</code></pre>
<p>the object declaration can be done by declaring a constructor f(int, int). But how ... | c++ | [6] |
966,720 | 966,721 | Port of CreateFile INVALID_HANDLE_VALUE | <p>So I'm porting this stuff from c++ to c#. And part of it looks like this:</p>
<pre><code> m_hParstat = CreateFile( _T("\\\\.\\LPTSTAT1"), GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
if( m_hParstat == INVALID_HANDLE_VALUE )
{
// do some stuff
}
</code></pre>
<p>So in my c#... | c# | [0] |
5,409,781 | 5,409,782 | Break apart variable contents and load into array with php | <p>This is what i have.</p>
<pre><code>$number = 25880;
</code></pre>
<p>I need to break that up into individual lines in an array so i can read it like this</p>
<pre><code>$numbers['1'] = 2
$numbers['2'] = 5
$numbers['3'] = 8
$numbers['4'] = 8
$numbers['5'] = 0
</code></pre>
<p>How do i do this in php?</p>
| php | [2] |
2,257,467 | 2,257,468 | Change color of div and remove text of span using Jquery | <pre><code><td class="tdLeftZoneCss" id="tdLeftZone">
<div>
<div style="border-bottom-color: black;">
<span>John</span>
</code></pre>
<p>1) I want to change color (black to #F2F2F2) of 2nd Div </p>
<p>2) I want to remove text ('John') written in span</p>
<p>How to do that using Jquery?<... | jquery | [5] |
4,523,652 | 4,523,653 | How can I turnoff suggestions in EditText? | <p>How can I turnoff suggestions in EditText in Android?</p>
| android | [4] |
1,193,351 | 1,193,352 | Find String with regexp | <p>How can I find if a string starts with <code>[</code> and ends with <code>]</code> in JavaScript?</p>
<pre><code>var str = '[["a" , "b"]]';
</code></pre>
<p>And is there any way to identify if the above string is typeof array of array?</p>
| javascript | [3] |
2,278,586 | 2,278,587 | Facebook need curl php extension in ubandu | <p>I have installed php5 in my ubandu.I am using graph api to commuicate with facebook.But i am getting the error like "Facebook needs the CURL PHP extension".I know that i have to add "extension=php_curl.dll" line in the php.ini file.but the existing ini file is not having any extension. And there is no file called "p... | php | [2] |
4,271,200 | 4,271,201 | Memory management and performance | <p>If I allocate an object in a method, 'getASprocket' and call it this way, will there be a leak here?</p>
<pre><code>Sprocket *sprock = [Sprocket getASprocket];
// store this returned value as an ivar
ivarSprock = [sprock retain];
// release the originally acquired object
[sprock release];
</code></pre>
<p>The Sp... | iphone | [8] |
4,614,168 | 4,614,169 | AVAudioPlayer seek performance is not good | <p>We are a developing an application which is supposed to play long audio files. duration of audio file can be upto 23 hours...</p>
<p>we are trying to use this AVAuidoPlayer for this purpose. To perform fast forward we are setting CurrentTime property of AVAudioPlayer. if the forward duration is just few minutes or ... | iphone | [8] |
5,979,165 | 5,979,166 | Oneliner: Why does this yield undefined is not a function? | <p>Why does the following line sometimes yield the message "undefined is not a function" in the chrome dev console: </p>
<pre><code>(callbackOrUndefined || function() {})();
</code></pre>
<p>The idea is to execute callback if it is truthy, i.e. a function, otherwise execute the empty function.</p>
<p>I had to replac... | javascript | [3] |
4,089,574 | 4,089,575 | Whats wrong with this method? | <p>I'm new to java can someone please explain to me whats wrong with this method: </p>
<pre><code>clas Hello {
public static void main (String[]arg) {
Document.write ("hello world") ;
}}
</code></pre>
| java | [1] |
5,979,790 | 5,979,791 | Is there any free software for Android that can send my geolocation to a web service? | <p>Is there any free software for Android that can send my mobile phone's geolocation information to a Google map or to my own URL?</p>
| android | [4] |
3,215,627 | 3,215,628 | fileinfo_open() Fatal error | <p>i am using PHP 5.3 and i have checked that my fileinfo is enabled. But when i run my code its occurring an error </p>
<blockquote>
<p>Fatal error: Call to undefined
function finfo_open()</p>
</blockquote>
<p>Anyone can help me to fixed this, here is my code.</p>
<pre><code>$mime=finfo_open(FILEINFO_MIME,filen... | php | [2] |
49,277 | 49,278 | What are the differences between using array offsets vs pointer incrementation? | <p>Given 2 functions, which should be faster, if there is any difference at all? Assume that the input data is very large</p>
<pre><code>void iterate1(const char* pIn, int Size)
{
for ( int offset = 0; offset < Size; ++offset )
{
doSomething( pIn[offset] );
}
}
</code></pre>
<p>vs </p>
<pre><code>v... | c++ | [6] |
1,294,420 | 1,294,421 | jQuery is doubling my cloning everytime I click a link to clone html? | <p>The following html snippet contains an input, a select and a link. When I click the link, I want to basically clone line, I want the new line to be appended to the last line. I also would like the link to be removed and be added to the last line. I want to have the even carried over as well. I will put my jquery c... | jquery | [5] |
877,041 | 877,042 | How to get an Android WakeLock to work? | <p>My WakeLock isn't keeping my device awake.</p>
<p>In <code>OnCreate()</code> I've got:</p>
<pre><code>PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, "My Tag");
mWakeLock.acquire();
</code></pre>... | android | [4] |
1,045,064 | 1,045,065 | code to calculate time in nanoseconds | <p>i have following code</p>
<pre><code>#include <iostream>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
int main(){
//nanoseconds
int x,y;
x=6700;
y=10000;
int z=0;
clock_t t =clock();
while (y!=0){
z+=x<<2;
x=x>>2;
... | c++ | [6] |
4,155,930 | 4,155,931 | jQuery partial form reset to initial value | <p>I have a form that has a bunch of input type="text" boxes that are loaded with values from a database. I can then change these values and POST. This form has a few subsections that I have boxed in with framesets. What I would like to do is give the user a button to undo any changes they have made to inputs in a part... | jquery | [5] |
2,775,862 | 2,775,863 | Sending Multitouch report descriptor and input report to Android phone (jelly bean) via AOA 2.0 | <p>I need to send Multitouch report descriptor and corresponding input reports to Android phone (Jelly Bean version) via AOA 2.0 protocol. I am able to send the descriptor and input report successfully, but android device considering only one touch. Any help regarding this would be a great helpful to me.</p>
<p>I am d... | android | [4] |
4,831,701 | 4,831,702 | Convert list of lists to delimited string | <p>How do I do the following in Python 2.2 using built-in modules only?</p>
<p>I have a list of lists like this:<br />
[['dog', 1], ['cat', 2, 'a'], ['rat', 3, 4], ['bat', 5]]</p>
<p>And from it I'd like to produce a string representation of a table like this where the columns are delimited by tabs and the rows by ne... | python | [7] |
4,223,041 | 4,223,042 | php parse string parameters to array | <p>i need to parse string param to array</p>
<p>Examples:</p>
<pre><code>p10s2z1234
</code></pre>
<p>Output</p>
<pre><code>Array(
'p' => 10,
's' => 2,
'z' => 1234
)
</code></pre>
<p>thank any advance.</p>
| php | [2] |
3,151,726 | 3,151,727 | Creating a regex for parsing screens resolutions | <p>I have a string of text that somewhere will contain the resolution to my vid in the format <code>###x###</code> or <code>####x####</code> (ex. 320x240 or ex. 1024x1280 ex. 320x1024 etc.) or any combo in between. I am not great at regexes yet and I was wondering if anyone could point out where I am going wrong.</p>
... | php | [2] |
2,028,984 | 2,028,985 | Symfony mssql_connect | <p>I am facing a problem with mssql_connect. I am using symfony1.1. mssql_connect working properly in actions. But I am getting " Call to undefined function mssql_connect()" when i call mssql_connect from symfony task. Any one please help me to solve this issue. Thanks in advance</p>
<p>Avinash</p>
| php | [2] |
3,856,477 | 3,856,478 | php script to Verify a User’s Email Address | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/201323/what-is-the-best-regular-expression-for-validating-email-addresses">What is the best regular expression for validating email addresses?</a><br>
<a href="http://stackoverflow.com/questions/5285604/php-script... | php | [2] |
3,984,022 | 3,984,023 | Android, trying to call a new intent from a touch event | <p>I'm trying to make a app that when the screen is touch it will call up a new intent.
I have code that catches the touch event in the view class. When I try to create a new intent, Intent(this, cYesNoDisplay.class);, i get a error saying the constuctor is undefined, I'm assuming the constructor is not defined in the... | android | [4] |
1,161,075 | 1,161,076 | Assign shortcut keys to input button using jQuery | <pre><code><html>
<script>
$('#pasteButton').click( function() {
// place code for this button
// ctrl + v shortcut should work for this button
// how?
}
});
</script>
<body>
<input type="button" id="pasteButton" value="Paste" />
</body>
</html>
</code></pre>
<p... | jquery | [5] |
1,948,160 | 1,948,161 | Suppress layout animation on one child view | <p>I'm setting layout animation to list view (my items are dropping down). In list view I have a header that I don’t what to animate.</p>
<p>How can I suppress animation on my header?</p>
| android | [4] |
1,780,113 | 1,780,114 | Test for empty nested array | <p>I have the following array:</p>
<pre><code>array(4) {
[29] => NULL
[31] => NULL
[33] => NULL
[35] => NULL
}
</code></pre>
<p>I would like to test all keys if all keys contain NULL values. </p>
| php | [2] |
1,654,420 | 1,654,421 | Button action inside list view | <p>I have a list view with a custom adapter. the layout for the adapter has some ImageViews
which act as buttons. I implemented the onclicklistner for these</p>
<pre><code>listView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> arg0, View arg1,int arg2, long arg3) ... | android | [4] |
5,975,812 | 5,975,813 | How to open child window in another child windows's tab in javascript? | <p>I am struggling over here with a simple problem in javascript.<br>
what I want to do:<br>
1. open a popup(p1) from main page.<br>
2. open another popup(p2) from first popup(p1).<br>
3. now I want to open popup from p2 in p1's tab.<br>
I am using following code:<br></p>
<pre><code>var test = null;
// open first popu... | javascript | [3] |
730,113 | 730,114 | iPhone: Slide photos by finger | <p>I want to implement something like Iphone Photo Gallery... How to slide images by finger, and how to do that animation if I want to slide photos by clicking on button ? Thanks...</p>
| iphone | [8] |
5,010,092 | 5,010,093 | How to change values using jquery? | <p>How do i go about changing the values inside the style for width and height using jquery? </p>
<pre><code><div id="id11t" style="position: relative; width: 1022px; height: 446px;">
</code></pre>
<p>Thanks</p>
| jquery | [5] |
4,980,312 | 4,980,313 | How to extract base 10 mantissa and exponent using gpmlib in C++ | <p>I need to extract significand and exponent of a double in C++ using gpmlib.
Ex: double a = 1.234;
I would like to extract 1234 as significand and 3 as exponent so that a = 1234e-3. I heard that gpmlib supports this type functions. I am not sure how to this library.</p>
<p>Please share some sample code using this ... | c++ | [6] |
4,401,600 | 4,401,601 | Decrement a variable in an incrementing for loop | <p>In my python script, I am itterating through a list (headerRow) starting at index 9. I want to check to see if it is already in the database, and if not then add it to a database with an auto-incementing primary key. I then want to send it through the loop again to retrieve it's primary key.</p>
<pre><code>for i in... | python | [7] |
1,092,654 | 1,092,655 | filtering on Class name not working using jquery filter method | <p>When I attempt to filter on a class name using jquery filter method, it does not work (no data is inserted into the #Test1Section',
for example,</p>
<pre><code> $(data).find('.test1WrapperDiv').appendTo('#Test1Section');
</code></pre>
<p>but if when I use the element name as a filter it works but not what I w... | jquery | [5] |
3,432,646 | 3,432,647 | I have issue with jQuery Accordion | <p>i m working on jQuery accordion and i got the code from this <a href="http://jqueryui.com/demos/accordion/" rel="nofollow">link</a> accordion working perfectly but the issue is i want to open 2nd tab by default when user come over my page i want to show them the content in second tab . </p>
<p>plaese help me out </... | jquery | [5] |
1,207,273 | 1,207,274 | removing objects from an object array in php? | <p>for example say i have an object array called $list looks like this:</p>
<pre><code><(stdClass)#16 (3) {
["1"]=>
<(8) "50504496"
["2"]=>
<(8) "12435374"
["3"]=>
<(8) "12436374"
</code></pre>
<p>Im doing a foreach on the object array and removing them if they exist in the database i... | php | [2] |
4,626,961 | 4,626,962 | Encoding Querystring Params | <p>I am wondering if maybe I have this wrong with the double %%</p>
<p><a href="http://www.someone.com/SomePage.aspx?aid=%%MA%5FID%%&tid=%%RECI%5FID%%&" rel="nofollow">http://www.someone.com/SomePage.aspx?aid=%%MA%5FID%%&tid=%%RECI%5FID%%&</a></p>
<p>is it %% or % to encode querystring values?</p>
| asp.net | [9] |
2,214,540 | 2,214,541 | Easy template implementing | <p>Suppose I've written class template declaration somewhere in <code>collector.h</code>:</p>
<pre><code>template <class T, int maxElements>
class collector {
T elements[maxElements];
int activeCount;
public:
collector();
void process();
void draw();
};
</code></pre>
<p>and implementing ... | c++ | [6] |
223,006 | 223,007 | How to clear Jquery validation error messages? | <p>I am using jquery validation plugin for client side validation.</p>
<p>but i want to clear error mesages on my form clear button</p>
<p>editUser() is called on click of Edit User button.</p>
<pre><code>clear button having separated function clearUser(){
// Need to clear previous errors here
}
function editUser(... | jquery | [5] |
1,133,148 | 1,133,149 | My own copy() function collides with std::copy() | <p>I have a header file. In this header I want to use a map for a class. But after I include I get a <code>no matching function error</code>, because I have a copy() function in the project(really big project). I saw on this website <a href="http://www.sgi.com/tech/stl/download.html" rel="nofollow">http://www.sgi.com/... | c++ | [6] |
3,461,066 | 3,461,067 | How to error in manage | <p>i have designed web application in asp.net...i have publish a website..
i have create virtual directory and copy the publish file....
and browse the website...</p>
<p>The error r occure</p>
<blockquote>
<p>Object reference not set to an instance of an object.
Description: An unhandled exception occurred dur... | asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.