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 |
|---|---|---|---|---|---|
3,400,910 | 3,400,911 | ViewPager access inflated view items | <p>I'm trying to implement ViewPager to combine two view within one activity, in which I'm facing NullPointerException when I'm trying to access items using findViewById in inflated views, my custom page adapter is as follows,</p>
<pre><code>public class CustomPagerAdapter extends PagerAdapter {
@Override
public ... | android | [4] |
950,782 | 950,783 | __defineSetter__ replacement for firefox 3.5.x and up | <p>It seems that <code>__defineSetter__</code> no longer works in firefox latest version. It works in Chrome. </p>
<p>do you know Any replacement function that does the same thing and also works in other browsers like IE, Opera,Safari?</p>
| javascript | [3] |
4,456,079 | 4,456,080 | Find path of module without importing in Python | <p>I've seen several approaches for finding the path of a module by first importing it. Is there a way to do this without importing the module?</p>
| python | [7] |
4,999,032 | 4,999,033 | iPhone - Build Error Target is 3.1.2 but can not find NSPredicate | <p>I'm still pretty new at iPhone development and I'm running into this odd build error which I do not understand. I'm trying to build and run my iPhone application and XCode is telling me that it can not find NSPredicate. To my understanding it was made available in iPhone SDK 3.0 and I'm trying to build for 3.1. I... | iphone | [8] |
917,556 | 917,557 | refresh page for a given time range | <p>I have a website that I want to be reloaded at a given range of time in the day for every five minute. time, like 9:00am to 12:00am every five minute. How do I do that?</p>
<pre><code> function refreshAt(hours, minutes, seconds) {
var now = new Date();
var then = new Date();
if(now.getHours() > h... | javascript | [3] |
4,888,999 | 4,889,000 | Problem with NSMutableURLRequest | <p>i have the following method</p>
<pre><code>-(void)request
{
responseData = [[NSMutableData data] retain];
NSString *post = [NSString stringWithFormat:@"id=%d&a_id=&d",1,1];
NSLog(@"%@",post);
NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
NS... | iphone | [8] |
5,770,369 | 5,770,370 | Fast CSV reading from network drive | <p>I have a csv flat file system on a network drive from which at any point of time I read about 500-600 csv files each with several thousand lines. I'm currently using the following piece of code to do the reading,</p>
<pre><code>var parser = new TextFieldParser(fileName) {TextFieldType = FieldType.Delimited};
parser... | c# | [0] |
5,105,399 | 5,105,400 | Using sympy to substitute "number values" into the entries of a 10X10 matrix (in python) | <p>I'm using the symbolic package sympy to store a 10X10 antisymmetric matrix in terms of 10 variables. and then at every iteration step, i substitute numerical values into the entries of the matrix. however, it's taking too long to substitute values because the symbolic expressions are very complicated. It takes aroun... | python | [7] |
890,399 | 890,400 | Polymorphism - exercise | <p>Alright, so this is the exercise: </p>
<blockquote>
<p>Define a class named student,
containing three grades of students.
The class will have a function that
calculates the grades average. Now,
define a class named student1 which
will be derived from student and will
add a function to calculate the su... | c# | [0] |
714,816 | 714,817 | Am running the web allication using asp.net.am getting this error | <p>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. </p>
<p>Requested URL: /webctrl_client/1_0/treeimages/Rminus.gif</p>
| asp.net | [9] |
3,128,618 | 3,128,619 | os.environ['http_proxy'] not working | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/263005/is-it-possible-to-change-the-environment-of-a-parent-process-in-python">Is it possible to change the Environment of a parent process in python?</a> </p>
</blockquote>
<p>I am using python 2.4.3. I tried t... | python | [7] |
819,911 | 819,912 | Android App to request HTML search pageand parse | <p>Im writing an android app and the website offers no API / access to the database (and I can't add that functionality) I want to do it like a webbrowser: request the appropriate HTML page that contains the results I want and parse it</p>
<p>This is a sample of the search link when I search for A Chevrolet with max a... | android | [4] |
53,619 | 53,620 | How to record audio on iPhone | <p>I want to record audio using the iphone (< 2 minutes) and save it to a file.
I looked at SpeakHere, but it confuses me. Which classes do I use? What delegate methods do I create?</p>
<p>Thanks!</p>
| iphone | [8] |
4,715,383 | 4,715,384 | Increase size of the image view (android) | <p>I have an imageview that loads and image in the xml. </p>
<p>I was wonder, how can I programmatically increase the image size ( or reduce it) by scale of 2? (so double it or make it half size)</p>
<p>Please help
Thanks</p>
| android | [4] |
2,456,863 | 2,456,864 | PHP unlink Delay | <p>I'm having some issue with the <code>unlink</code> function.</p>
<p>I have a page that when refreshed, it searches a directory for newly added files. The user may choose to manage the files and can also delete any file. However, when the user deletes the file, there is almost a 5 second delay before the actual file... | php | [2] |
4,470,632 | 4,470,633 | How do i subtract 4 months of date today? | <p>Im setting up two dates, <code>$fromDate</code> and <code>$toDate</code>. They should both be of the <code>"Ymd"</code> format and the $fromDate initially be -4 from today. How do i fix this? So:</p>
<pre><code>$fromDate = ?
$toDate = Date('Ymd');
</code></pre>
<p>How do i do this?</p>
<p>-Jason</p>
| php | [2] |
62,334 | 62,335 | replace windows cmd call to .bat for and web based GUI? | <p>to upload new changes into our server i have to type something like</p>
<pre><code>uploadTemplates.bat templateid userid password integrationorProductionVar + ENTER
</code></pre>
<p>Thas fine but first i need to navigate to the folder where the .bat is,</p>
<p>Question is: can i change all this for a more automat... | javascript | [3] |
362,012 | 362,013 | How to exec method based on variable name (EG: $this->$variable) | <p>Been trying to figure it out:</p>
<pre><code>$utils = $this->load( 'helper', 'Utils' );
$action = $utils->getAction() . '()';
$this->${action};
}
public function Name() { .... }
</code></pre>
<p><code>$action</code> is supposed to be <code>$_GET</code> or <code>$_POST</code> value of action key.</p>
<p>... | php | [2] |
670,334 | 670,335 | iphone . ending, closing and releasing a CGContext | <p>I have a method for creating a PDF on iPhone.</p>
<p>The method begins like this</p>
<pre><code>CGContextRef pdfContext = [self createPDFContext...]
// this line creates a CGContextRef that I will use to write the page
// if not released this will leak...
// the method continues...
// at the end I have
CGContex... | iphone | [8] |
5,290,594 | 5,290,595 | Func and List<string> | <p><br>
I have defined the following</p>
<pre><code>Dictionary<string, Func<string, List<string>>> test1 = new Dictionary<string, Func<string, List<string>>>();
</code></pre>
<p>also I have</p>
<pre><code> private string fred(List<string> Parms)
{
return "Te... | c# | [0] |
3,231,498 | 3,231,499 | Add Textbox TemplateField Column To GridView Programmatically | <p>i want to add a textbox columns from code behind to my gridview?
how?</p>
| asp.net | [9] |
2,070,170 | 2,070,171 | how to make the result with type "float" in python ? | <p>i typed a small function in python and
the code is </p>
<pre><code>def perimeter(side1,side2,side3):
''' (number,number,number)->float
return the sum of side1,side2 and side3
>>>perimeter(1,2,3)
6.0
>>>perimeter(4,5,7.1)
16.1 '''
result = side1+side2+side3
retu... | python | [7] |
5,183,741 | 5,183,742 | Need to remove object from list before insert new object? | <p>I'm learning C# and I'm doing a task where I'm using a list of objects. I thought if I inserted a new object, with list.insert(index, object) at a position where it already is an object, the prevous object was replaced!? </p>
<p>But it seems that I have to remove it first with list.removeAt(index) before I can inse... | c# | [0] |
1,026,092 | 1,026,093 | Explanation for assert macro | <p>I couldn't comment on the answer itself, so: about <a href="http://stackoverflow.com/questions/3848590/using-comma-to-prevent-the-need-for-brace-pair/3848622#3848622">Using comma to prevent the need for brace pair</a> </p>
<pre><code> #define MY_ASSERT(expr) ((expr) || (debugbreak(), 0))
</code></pre>
<blockquote... | c++ | [6] |
4,749,890 | 4,749,891 | difference between two date and display it in input by using php | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php">How to calculate the difference between two dates using PHP?</a> </p>
</blockquote>
<p>I have three input in html. two of them are start date a... | php | [2] |
901,199 | 901,200 | Android C2DM Registeration ID refresh | <p>I am working on push notifications in android through C2DM. It is absolutely working fine at my end. I can send the push notifications to my device till the registration ID is valid at server end. If Registration ID got Expires(Google refreshes the Registration ID periodically) then my device is not getting any noti... | android | [4] |
4,870,902 | 4,870,903 | How to parse date into the array? | <blockquote>
<p>11.06.2012 17:40</p>
</blockquote>
<p>All what I need it's to put in array values</p>
<pre><code>mydate.day = 11;
mydate.month = 6;
mydate.year = 2012;
mydate.hours = 17;
mydate.minutes = 40;
</code></pre>
| javascript | [3] |
3,840,721 | 3,840,722 | week view feature like samsung calendar in my app | <p>how can i acheive a feature like this in a week view if i am designing a calendar.
i have worked out alot with listviews gridviews but unfortunately was not successful on how this kind of view and bars are achieved when there is a appointment at certain time.</p>
<p>feature like week view in samsung calendar app we... | android | [4] |
2,165,169 | 2,165,170 | extend expiry period in provisioning profile | <p>i have a provisioning profile whose expiry time period is 3 months,
how can i change this period from 3 month to 1 year?</p>
<p>Thanks.</p>
| iphone | [8] |
1,907,702 | 1,907,703 | How to programatically build and compile another c# project from the current project | <p>Program A: output a c# function, and insert the function into a file (eg. Classifier.cs) in another c# project B. These steps have already been implemented. </p>
<p>I am wondering is there any way to programmatically build and compile the the c# project B inside project A. So I can click a button in project A, it w... | c# | [0] |
5,032,175 | 5,032,176 | JavaScript code optimize | <p>Following is my javascript code,is there a better way to write my code?I think my concept is not good.'$' below stands for 'document.getElementById',for better view I`m using '$',the code is JavaScript not JQuery.</p>
<pre><code>function() {
if (1) {
$("AprEmail1").style.display = "";
$("chkApp1... | javascript | [3] |
4,875,201 | 4,875,202 | How can i get a button to perform 2 operations | <p>How can i get one button to perform 2 operations. <br></p>
| android | [4] |
4,994,240 | 4,994,241 | Disabling talkback for specific application | <p>hai, sorry for my bad english
i have a project to modify android phone for blind people, thus i use android text to speech.</p>
<p>I've managed to create a SMS and phone application using TTS library from <a href="http://code.google.com/p/eyes-free/" rel="nofollow">http://code.google.com/p/eyes-free/</a> and use my... | android | [4] |
302,365 | 302,366 | PHP, how to print new line strings | <p>How can I make a new line in php, for ex</p>
<pre><code>$message='Name and Surname:'.$name.' '.'Birthday: '.$Birthdate.' '.' Nationality: '.$Nationality;
</code></pre>
<p>Output: </p>
<pre><code>Name and Surname:LULZIM Birthday: 1987 Nationality: Macedonia
</code></pre>
<p>How i want is:</p>
<pre><c... | php | [2] |
5,964,052 | 5,964,053 | dns_get_record problems | <p>I am setting up a dns lookup form using dns_get_record.</p>
<p>I set it up to check the A Record and MX Records and NS records of the domain that is input. However, I would like it to also to get the full TTL of a record?</p>
<p>also is it possible to query direct to the named service on port 53 (UDP)?</p>
| php | [2] |
2,529,749 | 2,529,750 | how do call specific css for specific browser using jquery | <p>how do call specific css for specific browser using jquery</p>
| jquery | [5] |
2,788,260 | 2,788,261 | Trying to set array variable from part of another array variable | <p>I'm trying to set a part of array variable into a new array variable like below:</p>
<pre><code>$this->data['uploadFront'] = array();
$this->data['uploadFront'] = $this->data['Card']['uploadFront'];
</code></pre>
<p>But I'm getting undefined index error.</p>
<p>The $this->data['Card'] array is like below... | php | [2] |
2,092,120 | 2,092,121 | byte representation of numbers | <p>I use the next way to get the byte representation of numbers in C++:</p>
<pre><code>template< class T >
union u_value
{
T value;
unsigned char bytes[ sizeof( T ) ];
}
</code></pre>
<p>Please, tell me is that the true way? And if not why and how should I get it?</p>
| c++ | [6] |
5,728,214 | 5,728,215 | Possible jQuery bug parsing HTML | <p>I just discovered this issue, and I wanted to run it by everyone here to make sure I wasn't missing obvious something before I reported it.</p>
<p>Here is what's causing me a problem:</p>
<pre><code>html = '<html><body><div id="test">This is just a test</div></body></html>';
ale... | jquery | [5] |
2,608,495 | 2,608,496 | Convert byte [] to ArrayList<Object> | <p>I have a byte [] that i obtained using Object ArrayList</p>
<p>Can anyone tell me how to convert my byte [] to Object ArrayList? </p>
<ul>
<li><p>coveting arraylist like this</p>
<pre><code> ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = null;
oos = new Objec... | java | [1] |
5,840,438 | 5,840,439 | getting object in each element in vector | <p>Is there a way for an iterator to return an object in each element of a C++ Standard Library vector?</p>
<p>I have this code:</p>
<pre><code>struct mystruct {
int field1;
}
int DoSomethingWithMyStruct(mystruct& a);
std::vector<mystruct> myVector;
std::vector<mystruct>::iterator it;
mystruct s1... | c++ | [6] |
5,407,235 | 5,407,236 | php removing excess whitespace | <p>I'm trying to remove excess whitespaces from a string like this:</p>
<pre><code>hello <many whitespaces here> world
</code></pre>
<p>to</p>
<pre><code>hello world
</code></pre>
<p>Anyone has any idea how to do that in php?</p>
<p>Thanks!</p>
| php | [2] |
5,916,128 | 5,916,129 | SDL Color Key Can i get the color of an image background? | <p>Im using the code below so i can get the color of the back ground of an image an then make it transparent with the color key function, but it doesnt work, the background of my image is red, i change the parameters of sdl map rgb to red and it work, but my question, is if there is a way to get the color of the blackg... | c++ | [6] |
1,987,448 | 1,987,449 | iPhone object not to be scrollable | <p>I have UITableView that scroll as per expected. I want the table to take up 80% of the space and I want another object at the top. No biggie there. My problem is that I don't want the object at the top to scroll when the table does. Any help/examples of how this can be done would be greatly appreciated. This is... | iphone | [8] |
2,219,361 | 2,219,362 | defining variables in blocks of control structures | <p>If I define a variable inside the block of a control structure, does it exist only in the execution of that control structure's block and not in the whole execution of the enclosing function?</p>
<p>also how can I monitor the exact memory usage of my programs and its changes (i.e.: changes in memory usage by creati... | c++ | [6] |
89,969 | 89,970 | Possible to set a timeout on a DocumentBuilder? | <p>I am currently reading an XML file from a PHP script (as below) which works fine, however I'd now like to add some form of HTTP timeout to retrieving the XML. </p>
<pre><code>DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocument... | java | [1] |
3,655,677 | 3,655,678 | TypeError: unsupported operand type(s) for +: 'int' and 'str' | <pre><code>print i + " * " + e + " = " + (i*e)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
</code></pre>
| python | [7] |
5,779,341 | 5,779,342 | get selected text using jquery using select function in textarea | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2377875/how-to-get-selected-text-in-a-html-input-text-box">How to get selected text in a HTML Input Text Box</a> </p>
</blockquote>
<p>Using select function in jquery we can check whether the txt was selected or... | jquery | [5] |
3,931,011 | 3,931,012 | jquery form ajax | <p>I have this form</p>
<pre><code><form name="send" id="myform>
<input type="text" name="data" id="input_field">
<input type="checkbox" value="true" id="my_check">
</form>
</code></pre>
<p>I`m sending the information from this form via ajax:</p>
<pre><code>$(function() {
$.post('url.p... | jquery | [5] |
4,511,106 | 4,511,107 | Logging stdout and stderr to log file using Python 'with' statement | <p>I want to log the std output of a chunk of Python code to a file, using the 'with' statement:</p>
<pre><code>with log_to_file('log'):
# execute code
</code></pre>
<p>Is the easiest way to do this to define the <code>log_to_file</code> manually, e.g.:</p>
<pre><code>import sys
class log_to_file():
def __i... | python | [7] |
725,198 | 725,199 | Mass confusion as to where to store video clips | <p>Progressing well with my first attempts at an Android app but getting REALLY stuck on how and where to store video clips for the app.</p>
<p>Firstly I tested out storing in the resources folder and playing through a custom video activity by passing it the resource URI. That doesn't appear to work as I get a "cannot... | android | [4] |
5,883,133 | 5,883,134 | PHP Post form and return xml result | <p>I have a form which submits to a external url and the url returns a xml result whether the action did go well or not. I want the form to be posted and the xml result to returned so the user can see the xml result instead of the external url being opened in blank window without any formatting.</p>
<p>I'm not sure ho... | php | [2] |
2,629,927 | 2,629,928 | Can the audio stream output from the earpiece during a call be captured? | <p>I am looking to develop an application and would like to know if the earpiece audio output can be captured. </p>
<p>Thanks,
Matt</p>
| android | [4] |
5,771,690 | 5,771,691 | Need barcode reader for my own app? | <p>I am developing an application for i-phone 4 and i-pad-2, in which i need to read bar-code to compare prices different site like e bay or amazon, I listened about z bar(open source) bar code reader i read its description in app store, but i can't find that does it support i-pad-2? One thing more i need to ask do you... | iphone | [8] |
4,335,108 | 4,335,109 | call back function for jQuery post | <p>I have the following code:</p>
<pre><code>$('#country-list').change(function() {
country = $('#country-list').val();
$('td').fadeOut("slow", function() {
$.post("/gsm/findtariff/country:"+country+"/",
function(data){
$('#incoming').html(data.incoming);
$('#national')... | jquery | [5] |
624,313 | 624,314 | Shortcut keys in c# windows application | <p>I want to have shortcut keys like F1 for operatiosn like save,new,view in c# windows application.How can i do this?</p>
| c# | [0] |
2,280,147 | 2,280,148 | objective c play audio as it is downloading | <p>I have an iphone design question regarding downloading and playing an audio file. Thanks to Matt Gallagher's AudioStreamer sample I can stream audio and play it back, bu that does not save it locally on the phone for later. Using an NSURLConnection I can download and save the audio files, but I have to wait until ... | iphone | [8] |
3,206,820 | 3,206,821 | Share member between two objects | <p>I have two classes, A and B like this :</p>
<pre><code>class A
{
public:
A(int i)
{
this->i = i;
}
private:
int i;
};
class B
{
public:
B()
{
i = 0;
a = new A(i);
i++;
// i = 1
// a->i must be 1
}
private:
A* a;
int i;
};
</... | c++ | [6] |
5,685,022 | 5,685,023 | AlertDialog that informs of error but keep activity current | <p>I am trying to do some EditText validation and want to use an AlertDialog
when the user inputs something that is illegal.</p>
<p>How can I have an alert dialog pop up and tell the user what is wrong with the input
and then after "OK" is pressed just go back to the same view? </p>
<p>I'm waiting until a "confirm" ... | android | [4] |
4,837,697 | 4,837,698 | Python: split a list based on a condition? | <p>What's the best way, both aesthetically and from a performance perspective, to split a list of items into multiple lists based on a conditional? The equivalent of:</p>
<pre><code>good = [x for x in mylist if x in goodvals]
bad = [x for x in mylist if x not in goodvals]
</code></pre>
<p>is there a more elegant way... | python | [7] |
5,555,565 | 5,555,566 | calendar application not starting | <p>I'm trying to start the calendar application in the mobile phone using intent. While I actually do it in mobile, it shows that "The application calendar stopped unexpectedly. Pleas try later". I don't know if the problem is in mobile or code. I can launch the calendar application from my phone directly. The code goe... | android | [4] |
5,592,987 | 5,592,988 | Python if statement not working as expected | <p>I'm searching for a string in a website and checking to see if the location of this string is in the expected location. I know the string starts at the 182nd character, and if I print temp it will even tell me that it is 182, however, the if statement says 182 is not 182.</p>
<h1>Some code</h1>
<pre><code>f = url... | python | [7] |
5,100,863 | 5,100,864 | Changing table cell contents | <p>How do I change the content of the cell containg the 'c' letter in the HTML sample using jQuery?</p>
<pre><code><table id="table_header">
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
</table>
</code></pre>
<p>Thanks.</p>
| jquery | [5] |
5,466,859 | 5,466,860 | why my js is not loaded on postback? | <p>I have a drop down list which is enhanced trough some js script. This DropDownList is inside an UpdatePanel like this:</p>
<pre><code> <asp:UpdatePanel ID="upStoreDetails" runat="server" UpdateMode="Always">
<ContentTemplate>
<asp:DropDownList ID="dropRestaurants" runat="server" CssClass=... | asp.net | [9] |
2,127,654 | 2,127,655 | How to export html table to excel? | <p>I want to export html table(not grid) to excel from my content page.I know how to export grid to excel.Same way or diffrent? </p>
| asp.net | [9] |
1,771,626 | 1,771,627 | Distinguishing POST from GET with window.location? | <p>In our login/logout javascript, which works in a modal box, I'd like to reload the current page after a user logs in our out, but only if the current page was not loaded as a POST--I don't want to try to double post data to the server.</p>
<p>Is there any way to tell whether window.location.reload() will be sent as... | javascript | [3] |
4,711,396 | 4,711,397 | Android: Triggering the onCreateOptionsMenu | <p>How can I trigger the Android onCreateOptionsMenu function in my code, that is without the user clicking on the options menu button on their phone? </p>
| android | [4] |
2,485,108 | 2,485,109 | PHP determining distances | <p>I have a huge array of 30x100 representing a football field. I make players move in it. However, when the ball is throwed, I need to determine if other players are within a +/-1 reach of the trajectory to possibly intercept the pass.</p>
<p>Since some (and most) passes are thrown diagonally, I have a hard time figu... | php | [2] |
2,001,326 | 2,001,327 | Convert int string to hex string | <p>How would I convert a string that represents an integer like "4322566" to a hex string?</p>
| c# | [0] |
1,314,370 | 1,314,371 | Making an ListItem as Favourite in ExpandableListView | <p>I am populating an ExpandableListView and when the user clicks on the item the child items open.
Can I have an child item named as favourite, when ever the user clicks on this list it will be favourite and the color of these listview changes after clicking on the favourite button.
How to achieve this, any help would... | android | [4] |
5,425,021 | 5,425,022 | How to declare and display variable in C#? | <p>I have a class library that has two constructor. The first constructor accepts two arguments and the second accepts three. Below is my class library code. Easier to put the code than try to explain it.</p>
<pre><code>public class Student
{
public string name;
public string course;
public... | c# | [0] |
4,556,050 | 4,556,051 | JQuery "onclick" event plus "onload" | <p>Sometimes I encount following problem:
I am using asp.net and JQuery on client side. For example I want to show/hide texbox depending on state of checkbox. I write something like this:</p>
<pre><code> $(function() {
$('#<%=chbMyCheckbox.ClientID %>').click(function(event) {
if (... | jquery | [5] |
1,039,337 | 1,039,338 | How to push the installation of apk into android "app-private" folder? | <p>with normal packaging of an android application, anyone can access the apk file from the system/app using backup tools. While i have noticed that the apk file that is stored in system/app-private cannot be saved unless the phone is rooted. </p>
<p>Can anyone please suggest me the method to make an android app insta... | android | [4] |
2,615,591 | 2,615,592 | get sibling that has id | <p>So I have the following structure:</p>
<pre><code><div id="some id">
<div>
<input id="some other id" ....>
.....bunch of other inputs with no id field....
<select onclick="findSiblingWithId()">
</div>
<div>
<i... | javascript | [3] |
3,771,176 | 3,771,177 | jQuery how to bind after unbind | <p>I've a super simple id tag which has click event. I've used JQuery unbind to disable the click for certain scenarios and when I try to bind again with code below the click event never gets fired.</p>
<pre><code>disableButton()
{
$('#id1').unbind('click');
}
.......
enableButton()
{
$(... | jquery | [5] |
835,568 | 835,569 | how to highlight the selected thumb image of a image gallery, when we click on it? | <p>Im a beginner in jquery, i created a simple image slider. code is like this</p>
<pre><code> $(function() {
$(".specialimage").click(function() {
var image = $(this).attr("rel");
$('#specialimage').hide();
$('#specialimage').fadeIn('slow');
$('#specialimage').html('<i... | jquery | [5] |
116,407 | 116,408 | jQuery: show new fields in a list | <p>I'm trying to show a new fields up to a max of 10 each time a button is pressed.</p>
<p>I currently only have:</p>
<pre><code>$('.add_field').live('click', function(){
$(this).next('.field1').fadeIn();
return false;
});
</code></pre>
<p>HTML:</p>
<pre><code> <fieldset>
<label>Label Name&... | jquery | [5] |
4,603,657 | 4,603,658 | How to find MAC address of an Android device programatically | <p>How do i get Mac Id of android device programatically. I have done with IMIE Code and I no in device how to check Mac id but having no idea how to find out programatically. Your Advice is appreciated.</p>
| android | [4] |
2,400,749 | 2,400,750 | How to navigate previous screen from camera view in iphone? | <p>Im new to iphone, i have custom back button in camera view and using poptoviewcontroller, its not working, but i want when i click the back button to navigate home screen, how? please any one help me.</p>
<p>I tried the source code</p>
<pre><code>backbtn=[UIButton buttonWithType:UIButtonTypeCustom];
backbtn.frame=... | iphone | [8] |
5,623,833 | 5,623,834 | What runs during deep sleep | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5120185/android-sleep-standby-mode">Android Sleep/Standby Mode</a> </p>
</blockquote>
<p>I'm having a bit of trouble understanding when the phone is actually in deep sleep, and what exactly runs and does not dur... | android | [4] |
3,987,203 | 3,987,204 | Print Dialog not opened in android devices browser?why? | <p>Please let me know if this problem happened with your side too..print dialog is opened when it is tested in the system machine but it is not opened in android devices?why? I searched alot but find nothing.I dont want to create an android app for this ...please suggest me the possible solution</p>
| android | [4] |
4,502,207 | 4,502,208 | an error in taking an input in python | <p>111111111111111111111111111111111111111111111111111111111111</p>
<p>when i take this as input , it appends an L at the end like this </p>
<p>111111111111111111111111111111111111111111111111111111111111L</p>
<p>thus affecting my calculations on it .. how can i remove it?</p>
<pre><code>import math
t=raw_input()
l... | python | [7] |
1,806,256 | 1,806,257 | What are variables without public private or protected declared as? | <p>If instead of:</p>
<pre><code>private JButton theButton;
</code></pre>
<p>I do:</p>
<pre><code>JButton theButton;
</code></pre>
<p>What is the difference?</p>
<p>Thanks</p>
| java | [1] |
2,263,659 | 2,263,660 | My "toggle class" javascript is not working | <p>I am using this little script to toggle classes of an element on click of another element. Here is the stripped down code:</p>
<pre><code>//Toggle comments
function togglecomments() {
function shiftcomments() {
var comments = document.getElementsByTagName('aside')[0];
if(comments.className = "hi... | javascript | [3] |
4,404,518 | 4,404,519 | Test conditions in C++ | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5854317/what-is-the-difference-between-these-bcondition-null-and-null-bcondition">What is the difference between these (bCondition == NULL) and (NULL==bCondition)?</a> </p>
</blockquote>
<p>Why do some people wr... | c++ | [6] |
5,383,782 | 5,383,783 | Setting an object to a split array | <p>I'm not a javascript guru. I've got the following code below:</p>
<pre><code>var aCookieValues = sCookieContentString.split('&'); // split out each set of key/value pairs
var aCookieNameValuePairs = aCookieValues.split('='); // return an array of each key/value
</code></pre>
<p>What I'm trying to do is split... | javascript | [3] |
2,211,842 | 2,211,843 | Is there any simple way to protect the Android App and update it? | <p>I developed an Android App and installed to three users' cellphones through Eclipse and USB connection. I don't want to put the App to google market. Now I got two problems:</p>
<ol>
<li><p>How to protect the App and make it invalid in other cellphones. I know we cannot protect it 100%, I just don't want the App to... | android | [4] |
5,313,553 | 5,313,554 | Fast hamming distance between 2 bitset | <p>I'm writing a software that heavily relies on (1) accessing single bit and (2) Hamming distance computations between 2 bitset A and B (ie. the numbers of bits that differ between A and B). The bitsets are quite big, between 10K and 1M bits and i have a bunch of them. Since it is impossible to know the bitset sizes a... | c++ | [6] |
3,221,018 | 3,221,019 | php. write to file | <p>I am learning php. I want to write string to file, but nothing happens.
How can I debug it? I have experience with python. there I could use terminal
to try small code snippets, but I don't know how check code in php. </p>
<pre><code>$myFile = "testFile.txt";
$fh = fopen($myFile, 'w');
$stringData = "Bobby Bop... | php | [2] |
1,507,676 | 1,507,677 | Ubuntu:C++::Boost library upgrade | <p>After installing Boost library using Synaptic Package Manager, the version installed is <code>1.42</code>.</p>
<p>If I check on boost official website, the current version is: <code>1.45</code>.</p>
<p>How can I upgrade to 1.45 from Synaptic package manager?</p>
<p>Thanks in advance.</p>
| c++ | [6] |
609,459 | 609,460 | how to use php session to save multiple form input | <p>I am new to php. How can I use session to remember my multiple form input like this:
In the first webpage, I can input for example a product name, when I click submit, the second page can tell me the product name I typed in. AND, if I go back to the first page again, and input another product name, and click submit,... | php | [2] |
3,087,169 | 3,087,170 | creating an ESC/POS java library | <p>I have run into troubles creating a esc/pos java library. Infact I am stumbling at the first hurdle and do not know if it is just the printer I am using. It seems that no matter what I send to it, all it prints is a set of random characters. Even when I send it the initialize command.</p>
<p>Printer is an Epson TM-... | java | [1] |
4,393,011 | 4,393,012 | Help debugging window.event.screenX | <p>I'm using firebug and the latest FF to debug this bit of javascript. When line #30 is hit in the debugger the screen tries to refresh with message</p>
<blockquote>
<p>"To display this page, firefox must
send information that will repeat any
action (such as a search or order
confirmation) that was performed... | javascript | [3] |
2,624,011 | 2,624,012 | length of audio file for playeffect in SimpleAudioEngine | <p>for play effect using <code>[[SimpleAudioEngine sharedEngine] playEffect:@"sound.mp3"];</code></p>
<p>What is the limit length of used audio file?</p>
| iphone | [8] |
1,138,419 | 1,138,420 | Need Help to Configure apache Server to run CGI Script written in Python | <p>I cannot configure Apache Server to run CGI script written in python. I have searched the net and I have add all the information in "httpd.conf" file located at "C:\wamp\bin\apache\Apache2.2.17\conf" the details of modifications are;</p>
<hr>
<pre><code><Directory />
Options FollowSymLinks +ExecCGI
AllowOve... | python | [7] |
493,980 | 493,981 | Get all folders from Composite | <p>I'm creating a tree structure of a given folder (only folders no files)
also i return the security permission of each folder and add it to a list</p>
<p>Now how can i Loop through this composite and get all items and sub items</p>
<pre><code> public abstract class FolderComponent:IEnumerable
{
public string F... | c# | [0] |
5,075,528 | 5,075,529 | Updating numerous web clients periodically from the server | <p>G'Day,</p>
<p>I am planning an ASP.NET 4 application. Not sure if it will be MVC3 or WebForms yet. I need to be able to perform the following:</p>
<ul>
<li>I have data coming into the the .NET assembly on the web server via a serial link</li>
<li>I want to send this same data to all "connected" web clients</li>
<l... | asp.net | [9] |
2,495,100 | 2,495,101 | Change object type at runtime | <p>I have the following scenario:</p>
<pre><code>class Parent {}
class Child1 extends Parent {}
class Child2 extends Parent {}
interface ExternalSystem {
Parent materialize(Parent a)
}
class Child1System implements ExternalSystem {
Parent materialize(Parent a) {
// specialize a and convert it into ... | java | [1] |
1,827,020 | 1,827,021 | jQuery calculate $(document).height() too late? | <p>Ok, so I'm doing this page: <a href="http://www.muzykakoncerty.pl/" rel="nofollow">http://www.muzykakoncerty.pl/</a> . I must dynamic calculate few css attributes to get good effect. The problem is, that if i use $(document).height() then first time before refresh (every browser?!) elements using $(document).height(... | jquery | [5] |
4,292,733 | 4,292,734 | How do you make a picture follow your mouse pointer with jquery? | <p>I find drag-and-drop difficult (you know, keeping the mouse button depressed while moving), and want to offer a 'select and drop' where a user clicks on an icon and clicks again on the drawing-plate to drop the corresponding element (a picture).</p>
<p>How do you do that with jquery?</p>
<p>Thanks.</p>
<p>Edit: I... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.