Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
2,616,325 | 2,616,326 | Unable to get values from input fields by ID | <p>I have form fields like this:</p>
<pre><code><input name='task_complete_percentage[]' value='' onchange='' class='percent' id='task_complete_percentage[]' style='width:40px;' type='text' />
<input name='task_complete_percentage[]' value='' onchange='' class='percent' id='task_complete_percentage1" + counte... | jquery | [5] |
3,335,038 | 3,335,039 | NameError: name 'Wordpresspost' is not defined | <p>I am using the following wordpress xmlrpc module written in python .<a href="http://pypi.python.org/pypi/python-wordpress-xmlrpc/1.4" rel="nofollow">http://pypi.python.org/pypi/python-wordpress-xmlrpc/1.4</a></p>
<p>But when I try running the program I get the following error..Can you guys help me solve it?</p>
<p... | python | [7] |
241,851 | 241,852 | Get string length after append name | <p>If i add a value to a string name i want to get the length of the string not the length of the string name.</p>
<pre><code>var wordlist3 = "ABC";
var xc = 3;
var num_words = ('wordlist' + xc).length;
</code></pre>
<p>With the above code i get wordlist3.length as 9 when it should be 3. How do i append a string name... | javascript | [3] |
4,005,387 | 4,005,388 | Question about Android Tasker variables | <p>Tasker is an app in the app-market that enables one to define simple automation tasks.</p>
<p>I'm writing a task that announces the location coordinates.</p>
<p>However, the location is a built-in variable that is defined to about a dozen decimal places.</p>
<p>I want to round off the value before having it annou... | android | [4] |
5,424,047 | 5,424,048 | Jquery, how: click anywhere outside of the div, the div fades out | <p>In Jquery how would i make it so that if i had a div, with different elements inside of it, a select, a search input, etc, that when i click outside of the div, on the page, the div fades out, but i can click on the select and type in the search input and not have it fade? any help is appreciated.
-nick</p>
| jquery | [5] |
5,366,401 | 5,366,402 | Returning to previous screen after receiver activity | <p>I have a app that has a activity that can be started from the start
menu and a activity that is started by a broadcast receiver.</p>
<p><img src="http://i.stack.imgur.com/iTQZi.jpg" alt="enter image description here"></p>
<p>Now on boot , if the receiver is called , the "event viewer" activity is
started...after b... | android | [4] |
3,987,140 | 3,987,141 | Onmouseover/onmouseout working on firefox,chrome,safari But not on IE (asp.net) | <p>I am using a javascript function to change image on mouseover and onmouserout in asp.net3.5, its working perfectly for firefox, chrome and safari but when i test same flyout on IE then onmouseover/onmouseout image does not change. Please help and guide me in this way.....</p>
<p>I am waiting for your response.</p>... | asp.net | [9] |
3,232,518 | 3,232,519 | How to get the index of particular view OR ViewGroup which is added to the ViewGroup(layout) | <p></p>
<pre><code><TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_margin="24dip"
android:text="Add Notes" />
<TableLayout android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="24dip"
android:layout_... | android | [4] |
5,310,713 | 5,310,714 | Can we add Listener for custom ArrayAdpater class | <p>I have custom <code>ArrayAdapter</code> class for my <code>listview</code>.</p>
<p>I am using that custom adapter for more <code>listviews</code>.</p>
<p>All the <code>listview</code> items have to start the same activity when clicked, how to do that without adding individual itemlistener to each <code>listview</c... | android | [4] |
5,484,928 | 5,484,929 | Smallest values for int8_t and int64_t | <p>With regard to to those definitions found in <code>stdint.h</code>, I wish to test a function for converting vectors of <code>int8_t</code> or vectors of <code>int64_t</code> to vectors of <code>std::string</code>.</p>
<p>Here are my tests:</p>
<pre><code>TEST(TestAlgorithms, toStringForInt8)
{
std::vector<... | c++ | [6] |
695,504 | 695,505 | "==" vs "equal(Object obj)" | <p>Can I understand the differences between <code>==</code> and <code>object.equal(Object obj)</code> in the following way? :</p>
<p>That's <code>object.equal(Object obj)</code> returns <code>true</code> if <strong>values</strong> of two objects are identical. While <code>==</code> returns <code>true</code> if both <s... | java | [1] |
6,008,277 | 6,008,278 | Reading specific lines from a file in a loop (optimization) | <p>I'm reading specific lines from a text file. Here is my code:</p>
<pre><code>file.seek(0)
for j, ln in enumerate(file):
if j == line_number
line = ln # i'm getting the line
break
</code></pre>
<p>It tooks a <strong>long time</strong> when I use this code in a "loop" where the line_number is random... | python | [7] |
5,687,082 | 5,687,083 | Cloning only some parts of an HTML element using jQuery? | <p>I'm cloning a list element in this way:</p>
<pre><code>$('ol li.menu-item').click(function() {
$(this).clone().appendTo('#check-items');
});
</code></pre>
<p>The <code>li.menu-item</code> has a <code>span.name</code> element. I would like to copy just that element to <code>#check-items</code> (I have many li.men... | jquery | [5] |
83,022 | 83,023 | How to quickly test some javascript code? | <p>I know I can use javascript:// Blahblah, anyone can show an example? or if there is a better way to do it?</p>
| javascript | [3] |
4,825,816 | 4,825,817 | How to save a page into pdf in php | <p>Does anyone know how can I save a page into pdf in php?</p>
<p>Example:
I have a page that able to catch the user signature.However, I would like to create a button in the page, so that when the user clicked on the button, it will generate the page into pdf and save it into a folder (the page that display the user ... | php | [2] |
592,257 | 592,258 | View getVisibility() isShown() return incorrect visibility | <p>I've a view that gets conditionally added to parent.
I check if its already added to parent or not, unfortunately, it always return its visible.</p>
<pre><code>if (findViewById(R.id.bottom_bar).getVisibility == View.Visible)
if (findViewById(R.id.bottom_bar).isShown())
</code></pre>
<p>both return <code>true</co... | android | [4] |
5,509,765 | 5,509,766 | Returning const 'this' pointer | <p>if <code>this</code> is a const pointer to class's object how can you return a const pointer from non-const return type?</p>
<pre><code>Class T
{
public:
T* func(){return this;}
};
</code></pre>
| c++ | [6] |
2,097,440 | 2,097,441 | How to store data from string into array with delimiter | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6206312/separate-the-ids-and-store-in-two-different-array">separate the ids and store in two different array</a> </p>
</blockquote>
<pre><code>String response=@" hr 123,124,125,126,127,128 hr st 234,235,236,237 ... | iphone | [8] |
2,266,253 | 2,266,254 | How to handler any childrens (in any levels) of an element | <p>I have this code :</p>
<pre><code><div class="fascia">
<div class="elements">
<h3 class="titolo"><a href="/link">Title</a></h3>
<div class="desc"><a href="/link">Desc</a></div>
</div>
<a id="photo" href="/link">&... | jquery | [5] |
5,824,200 | 5,824,201 | simplest jQuery font resizer | <p>What is the simplest way of increasing / decreasing font sizes on click of trigger element?</p>
<p>I've seen a few scripts and plugins etc, but they all look fairly verbose.
What's the simplest way to neatly achieve this?</p>
| jquery | [5] |
2,408,942 | 2,408,943 | I want to know (with examples!) if there is a way to search through a list (not a file) and if it's found replace it | <p>I want to know (with examples!) if there is a way to search through a list (not a file) and if it's found replace it.</p>
<p>Background: Making a server but I want it to censor swear words and the system i have works it's just not efficient enough.</p>
<p>Current Code:</p>
<pre><code> String impmessage = mess... | java | [1] |
1,714,701 | 1,714,702 | is there a way to make my jquery code more efficient? | <p>is there a way to make my code run smoother and more efficient?</p>
<pre><code>var headerH = $("#header").height();
var winH = $(window).height();
var newH = winH - headerH;
$("#wrap").css({ 'height' : newH + 'px' });
$(window).resize(function() {
var _headerH = $("#header").height();
var _winH = $(window).... | jquery | [5] |
4,558,306 | 4,558,307 | Input box value coming as undefined | <p>I am getting input box value as undefined when appending to a div.
Below is the code.</p>
<p>JS:</p>
<pre><code>$('#submitHook').click(function () {
var v = ('#try').val();
alert(v);
$('#container').prepend('<tr><td>' + v + '</td></tr>');
});
</code></pre>
<p>HTML:</p>
<pre><... | jquery | [5] |
2,714,733 | 2,714,734 | which stl container I should choose If I need to random get an item from the container | <p>Just As title . As least I know array might not be one I want . cus I need to generate a random index before I want to randomly pick up one item from the array . For your opinion.</p>
<p>I've change the title of my question to "which stl container I should choose If I need to random get an item from the container" ... | c++ | [6] |
189,778 | 189,779 | How to find top most Activity for a Task? | <p>I have an app where I'm running a timer event in the background checking for inactivity. When a certain amount of time has passed, I want to call the finish() method for whatever activity is currently top most for my app (task). Note, that my app can be in the background so I can't just use the top most active activ... | android | [4] |
2,876,408 | 2,876,409 | Filling out and submitting a form for a newly opened window | <p>What I'd like to do is open a new window, then submit the form in that new window after automatically filling out he form elements from the original window. Here is what I tried to do:</p>
<pre><code>var username = 'myuser';
var password = 'mypass';
var loginWindow = window.open('http://www.mysite.com/form.html', '... | javascript | [3] |
3,207,253 | 3,207,254 | jQuery: of current element, get the parent ".radioGroup" and select each radio | <p>Subject pretty much says it all...</p>
<p>What I need to do is change the style of all of the radio buttons within the current elements group.</p>
<pre><code>$(element).closest(".radioGroup").("input:radio").each(function(i, target) {
// change css
});
</code></pre>
<p>close, but no cigar.</p>
| jquery | [5] |
4,823,474 | 4,823,475 | How to integrate the network for getting iAd in the iphone? | <p>I Have the code to get an iAd in the current application for the iphone. but i want to connect to the network in order to display the real adds. now iam able to display a black template. please help me reg. this and suggest how i have to connect to the network for the iAd Display.</p>
| iphone | [8] |
3,484,505 | 3,484,506 | how to fix memory leak? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1473510/general-strategy-to-resolve-java-memory-leak">General strategy to resolve Java memory leak?</a> </p>
</blockquote>
<p>I have a standalone program that I run locally, Recently I found that it has a memory... | java | [1] |
5,530,523 | 5,530,524 | Hiding private details from open source projects | <p>I have a .net github project that is basically a wrapper around a web API. In the test project, I am calling to the API using an API key. I need to keep this key private, how do I accomplish this in a visual studio project?</p>
<p>In some other projects, like python, I can have git ignore the file (<code>config.py<... | c# | [0] |
5,816,596 | 5,816,597 | Jquery based File Explorer/Manager | <p>Is there a demo of jQuery based File Explorer or Manager, similar to Windows Explorer?</p>
| jquery | [5] |
1,703,475 | 1,703,476 | unexpected behavior in printing string in loop | <p>I don't understand why this is happening:</p>
<p>I have an integer being passed to a label object:</p>
<pre><code>int NTURNS = 3;
for (int i = NTURNS; i > 0; i--){
printTurns(i);
buildBall();
}
</code></pre>
<p>and printTurns is this:</p>
<pre><code>private void printTurns(int i){
GLabel turns = new... | java | [1] |
5,138,658 | 5,138,659 | xmlhttprequest vs jquery load(); | <p>i am trying to making php ajax based chat system....and i have developed it successfully...i am using jquery load() with setInterval to reload chat every 1 second and it works fine on my localhost....but when i uploaded it on my hosting server it also works fine ... but problem is that after few mintues of chat the ... | jquery | [5] |
3,268,996 | 3,268,997 | Best Method For Playing M4A file in iPhone App | <p>Greetings,</p>
<p>I have a tableview where I have parsed an list of podcasts(m4a format). I want to now play the podcasts. I have seen Matt Gallaghers method but it seems a bit excessive for what I need. I remember seeing a tutorial where you could play such a file in UIWebview but it doesn't seems to work. Any... | iphone | [8] |
2,270,597 | 2,270,598 | Moving out of current domain | <p>lets say I have many anchor links on my current web page and out of which some of the links are pointing to some different domains.</p>
<p>So what I want is to show a popup/message sort of stuff to the user before moving to different domain.</p>
<p>Solution 1 : After page loads we can bind click event to each anch... | javascript | [3] |
3,731,528 | 3,731,529 | Insert/delete/retrieve elements of an array across threads without using globals | <p>This might be a silly question, but what's the best way to keep insert/delete/retrieve elements of an array in a multi-threaded Python application, but not keep the array global or assign an entire thread to keep track of the changes to that single array? It feels tiresome to pass the array to each function I use.</... | python | [7] |
1,103,597 | 1,103,598 | Options for creating forms, distributing them and collecting info | <p>What options do I have for creating a form intended for collecting data from a potentially big amount of people? (Preferably in Python)</p>
<p>I am looking for options other than HTML forms.</p>
<p>PDF Forms seem to be an option, but my tendency until now has been to avoid them.</p>
<p>Standard desktop app seems ... | python | [7] |
2,177,549 | 2,177,550 | Finding index of the same elements in a list | <p>Suppose I have to find each index of letter 'e' in the word "internet":</p>
<pre><code>letter = 'e'
word = 'internet'
idx = word.index(letter)
</code></pre>
<p>But this code gives only the first index. How can I find the rest of them?</p>
| python | [7] |
2,919,252 | 2,919,253 | JQuery Open new screen | <p>I am trying to open a new screen with JQuery, but have to pass variables to the new screen. Is this possible? I have a C# application in Visual Studio 2012 with MVC 4.
My code looks like this:</p>
<pre><code> $('#AddCopyRuleButton').click(function () {
var url = '@Url.Action("GetDetails")';
var d... | jquery | [5] |
2,349,655 | 2,349,656 | Javascript validation on multiple input controls | <p>i have arrays of input controls and want to check on submit that they should not be empty</p>
<p>
</p>
| javascript | [3] |
4,781,860 | 4,781,861 | Having trouble adding multiple file attachments to form | <p>I have been working on a contact form that allows multiple file attachments using jquery. My form currently has an individual file input that works just fine however I would like to add a link which will create an additional input field. I've been working at it for a few days now and scanning for possible solutions ... | jquery | [5] |
4,250,520 | 4,250,521 | Determine whether CSS requested the file | <p>Is there a way to determine whether the file has been requested by CSS? Assuming that everything goes through a master file <code>index.php</code>.</p>
| php | [2] |
3,340,187 | 3,340,188 | How to specify id when uses include in layout xml file | <p>In my layout xml file, I have included other layout xml file (each
with a different android id).</p>
<pre><code><include layout="@layout/view_contact_name" android:id="+id/test1"/>
<include layout="@layout/view_contact_name" android:id="+id/test2"/>
</code></pre>
<p>But when I run it in the emulator, a... | android | [4] |
2,306,934 | 2,306,935 | Modal view being displaced | <p>I have the following code to show a modal view which is added as a subview of my tabBarController. However despite using the autoresizingMask property to allow for when an incoming cellular call interrupts my app and shows the green status bar at the top, i find after this event the whole view is displaced by 20 pix... | iphone | [8] |
2,565,392 | 2,565,393 | Turning off Events and Firing the same ones back up again - Jquery | <p>I'm using jQuery's new On() and Off(). When an event is turned off, can it be turned back on again? If so, does anyone have a simple example they can show me? I've looked around but can't seem to grasp what is out there on the internet. Thanks much!</p>
| jquery | [5] |
4,697,063 | 4,697,064 | Swap class with jQuery | <p>Can I use jQuery to replace certain class (.a) in input fields with another (.b) one in my table?</p>
<pre><code><table id="myTable">
<tr>
<td>Field 1</td>
<td><input type="text" class="a"></td>
</tr>
<tr>
<td>Field 2</td>
<td>&... | jquery | [5] |
3,680,038 | 3,680,039 | Get the data between alphabetic character in c# | <p>i have a tab control at top of the page. and its value like A to C, D to F and G to Z.</p>
<p>my requirement is when the user click on the tab A to C then he can only see those data which start with A,B or C.</p>
<p>can anyone tell me a way how can i do it?</p>
| c# | [0] |
5,240,863 | 5,240,864 | Deleting certain files using python | <p>I have a py script that processes files with extension '.hgx'.Example : test.hgx
( there are many such files with extension hgx)</p>
<p>The script processes the test.hgx and creates a new test_bac.hgx and on re-run it creates test_bac_bac.hgx. So everytime running the script creates a file with <strong>'_bac'.</str... | python | [7] |
4,507,320 | 4,507,321 | How to replace all non-letters in a given string s by symbol '*' | <p>For example
Input</p>
<blockquote>
<p>Hello 1/(¤</p>
</blockquote>
<p>Output should be </p>
<pre>Hello ****</pre>
| java | [1] |
2,232,985 | 2,232,986 | Implementing IDisposable in File.Delete method? | <p>I want to delete a file on my computer but the app throws an exception that The directory is busy. My first thought is to implement a dispose method in my class which does a file delete.
Knows anybody how to do this? </p>
<p>It's actually a Picturebox which displays a image and if you click on a button beside the ... | c# | [0] |
428,530 | 428,531 | Start development for android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2869338/where-to-start-to-learn-android">Where to start to learn Android?</a> </p>
</blockquote>
<p>I want to know how can I start development for Google Android !!! Can I use Visual Studio 2008 or Visual Studio... | android | [4] |
2,077,776 | 2,077,777 | Adding next and previous button in Grid view | <p>I am showing a Grid view in Alert dialog. Grid view consists of images which are stored in an array.</p>
<p>I am showing 9 images at a time in grid view, now there are two buttons below grid view
"Next" & "Previous".</p>
<p>If click on "Next" it will show next 9 images from the array and similarly with "Previ... | android | [4] |
1,416,942 | 1,416,943 | How to convert chinese characters to hexadecimal in java | <p>I want to convert unicode characters which have code values in 2 byte, 3 byte range to hexadecimal.</p>
<p>I know how to convert characters to hexadecimal. For which, I am first converting characters to ascii by casting using int. And from that i convert to hexadecimal using Integer.tohexString.</p>
<p>However, I ... | java | [1] |
2,413,264 | 2,413,265 | how to send a mail through java program | <p>hii
I have vCard file and want to send vCard as mail to email ID
how can i send this through java program
I am using Java Eclipse IDE
on mac os x</p>
| java | [1] |
50,647 | 50,648 | PHP date() not returning expected value | <p>This is strange. Either I am losing my mind or this is really simple and I am just overlooking something obvious.</p>
<p>I have a script that is run automatically daily (around 9:00am central time) by a cron job that I tried to set up to "take a vacation" on January 1. It seemed like the easy solution was to add ... | php | [2] |
1,345,886 | 1,345,887 | Check if a request referer is a search engine | <p>Does anyone know a reliable way to check whether the referrer of a HTTP request was a search engine or not?</p>
<p>Thanks</p>
| python | [7] |
3,259,415 | 3,259,416 | Does it make sense that the bounds rectangle of an UIView can be bigger than the frame rectangle? | <p>As I understand, the bounds rectangle actually is always the same size as the frame rectangle, and has the origin (0, 0) relative to the frame rectangle coordinate system.</p>
<p>If for some reason the bounds rectangle appears to be smaller than the frame rectangle, the content will be clipped while the frame recta... | iphone | [8] |
3,988,968 | 3,988,969 | OR operator comparing None and bool | <p>I found a particular bug in a piece of a function of mine, where the order of the args for the bitwise comparison OR seems to matter:</p>
<pre><code>In: None or False
Out: False
In: False or None
Out: None
</code></pre>
<p>Checked this using Python 2.7.2 and IPython 0.10.2.</p>
<p>I can ensure that, in case of o... | python | [7] |
4,424,659 | 4,424,660 | Command Line Parsing: Commons CLI alternatives? | <p>For Command Line parsing in Java, I typically use <a href="http://commons.apache.org/cli/">Apache Commons CLI</a>.
Can anybody recommend any alternative libraries?</p>
<p>Thank you!
J.</p>
| java | [1] |
4,883,687 | 4,883,688 | Debugging android app on a device remotely | <p>Is it possible to install/debug applications using adb on a device that is connected to a remote machine.(IP address of the remote machine is known)?</p>
| android | [4] |
1,850,302 | 1,850,303 | How to code that two images touches each other? | <p>I'm new to android. i'm making a game in which if two image touch each other the points are gained. now i don't know how to find that how to code it. can anybody help?</p>
| android | [4] |
4,765,784 | 4,765,785 | Vala read file line by line | <pre><code>int n = sc.nextInt();
char[][] original = new char[n][n];
char [][] result = new char[n][n];
String line;
for (int i = 0; i < n; i++) {
line = sc.nextLine();
System.out.println(line);
for (int u = 0; u < n; u++) {
original[i][u] = line.charAt(u);
}
}
for (int i = 0; i < n; i++) {
lin... | java | [1] |
4,200,724 | 4,200,725 | how to set postbackurl on linkbutton control from clientside? | <p>I have a server control ( linkbutton ) on the aspx page.</p>
<p>For some complicated reason - I need to set the postbackurl from <strong>client side</strong> for this button.</p>
<p>Is there a way to set the postback url from client side ?</p>
<p>I got some reference to javascript:WebForm_DoPostBackWithOptions m... | asp.net | [9] |
459,519 | 459,520 | extend SplFileObject with fread method | <p>PHP5 introduced an object-oriented file wrapper, <strong>SplFileObject</strong>. I guess I just found out why hardly anybody is using it. It's purely line-oriented, there is no fread() method - which the corresponding frwite seemed to suggest.</p>
<p>So now I'm wondering if I can extend it. I'm however not sure wha... | php | [2] |
5,767,596 | 5,767,597 | How to pick a free port number in python? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1365265/on-localhost-how-to-pick-a-free-port-number">On localhost, how to pick a free port number?</a> </p>
</blockquote>
<p>My requirement is different from this question.</p>
<p><a href="http://stackoverflow.... | python | [7] |
4,104,421 | 4,104,422 | Invalid Date Format Error in JAVA | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/226910/how-to-sanity-check-a-date-in-java">How to sanity check a date in java</a> </p>
</blockquote>
<p>I want to convert a String into Date..with a condition that accepted String format should be only this <cod... | java | [1] |
626,092 | 626,093 | What variable do i use when i'm declaring a variable such as A+ | <p>Im making a program that calculates one's gpa. My variables include the grade A+ etc...</p>
<p>Any help would be greatly appreciated,
Thanks</p>
| java | [1] |
1,365,993 | 1,365,994 | Intercepting outgoing http requests in Android | <p>I want to intercept outgoing http requests which are sent via any Android application before their actual processing gets start. Is there any way to listen to ports or are there any broadcasted intents sent out so that such http requests get notified.</p>
| android | [4] |
4,885,346 | 4,885,347 | Unexpected end in PHP script | <p>I really can't find the error. Here is my code:</p>
<pre><code><?
// Action: add news
if( array_key_exists('create_new', @$_POST) )
{
?>
...
<?
exit();
}
?>
</code></pre>
<p>Before this my problem was in construction: <code><?=...;?></code> My web server (Apache) did not... | php | [2] |
1,602,857 | 1,602,858 | How to Highlight a paricular tab in Android so that other tabs were made partially visible in Android | <p>I am writing an Android App which used TabHost. I created 3 Tabs. Now my doubt is when I click a tab it should come forward and other tabs should be visible partially in such a way that the width of middleTab should increase evenly in left and right directions, so that the other tabs in left and right should slip o... | android | [4] |
5,729,841 | 5,729,842 | Writing Text To A Specific Point In A Text File C# | <p>Is there a way to write to a spefic location in a text file? I would like to be able to create a template for an email as a text file then change the body based on different parameter values..</p>
<p>EmailBoby.txt..</p>
<pre><code>This is an email body.
FirstName: [FirstName]
LastName: [LastName]
</code></pre>
<... | c# | [0] |
2,794,328 | 2,794,329 | How can i measure steps while walking or jogging with Android? | <p>Is it the SensorManager API that i have to use to measure steps? Any sample code or tutorial?</p>
| android | [4] |
3,728,502 | 3,728,503 | C# split first two in string, then keep all the rest together | <p>Okay, the question could probably a phrased better. I have a string.</p>
<pre><code>2008 apple micro pc computer
</code></pre>
<p>i want the string split by <code>' '</code> for the first 2 delimiters and then keep the rest together. so it'll return </p>
<pre><code>2008
apple
micro pc computer
</code></pr... | c# | [0] |
3,204,504 | 3,204,505 | What should I know about javascript to prepare to be a UI Engineer? | <p>I have a job opportunity to be a UI Engineer. I have some experience with javascript, especially jquery. I was wondering if anyone who is fluent in javascript could give me a small tutorial on what the most important aspects of the programming language are and the different things it can allow you to do. I am sure t... | javascript | [3] |
755,998 | 755,999 | Display content if within timeframe | <p>I need to display some content if the current time in a certain location (say sydney, Australia) is between 9am-5pm and its a week day.</p>
<p>thx for any help</p>
| php | [2] |
4,396,537 | 4,396,538 | Update text without killing href | <p>I am trying to update the text in the following HTML, what is now 1050.</p>
<pre><code><h2 class="g1 RightText" id="commandCount"><a href="@Url.Action("Index", "Commands")">1050</a></h2>
</code></pre>
<p>I have tried the following, but these remove the href link:</p>
<pre><code>$("#command... | jquery | [5] |
6,031,958 | 6,031,959 | Stop LocationManager Updates | <p>I'm trying to have GPS coordinates sent to a text message. This code works, but every time the GPS updates location, it tries to send a new text message. I can't figure out how to stop the location updates. This is what I have currently...I realize it may not be the most efficient way to do it.</p>
<p>Any help w... | android | [4] |
1,600,488 | 1,600,489 | How to force media to play over bluetooth? | <p>I have an A2DP compatible bluetooth headset (jawbone icon) and have been testing my app on various devices to see if audio in the app plays over bluetooth. I always make sure the headset is paired and then connected to both phone and media audio and, although sometimes it's a bit quirky, on most devices it plays ove... | android | [4] |
2,739,339 | 2,739,340 | sort array in DESC order | <p>how can i get this order</p>
<pre><code>array(
4 => 'four',
3 => 'three',
2 => 'two',
1 => 'one',
)
</code></pre>
<p>from this</p>
<pre><code>array(
1 => 'one',
2 => 'two',
3 => 'three',
4 => 'four',
)
</code></pre>
| php | [2] |
2,122,379 | 2,122,380 | A jQuery plugin for html zoom/pan (like gmap) | <p>I'd like to pan and zoom arbitrary html in a similar way that google maps behaves (btw, I see how you can use google maps API with custom images -- not possible with any html content right?)</p>
<p>I see a lot of jquery plugins for panning images, is there any designed for html?</p>
| jquery | [5] |
1,123,484 | 1,123,485 | showing question mark on charachters for Deutsch(Deutschland) language in android | <p>After selecting the language Deutsch(Deutschland) showing question marks instead of characters.
<code>e.g- ä,ü,ö.</code> hence words like <code>Gerät</code> looks like <code>Ger?t</code></p>
| android | [4] |
1,807,175 | 1,807,176 | Random generator that remembers the numbers already generated | <p>Ok.</p>
<p>I need some code written that can make a 7 digit numeric value and store it so it does not come up again. As well have is outputted so I can see the number.
I also need some code in the program that will generate a string with numeric and letter values in it, which it also keeps track of and cannot gener... | java | [1] |
483,268 | 483,269 | c# handling keypresses | <pre><code>private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar < '0' || e.KeyChar > '9')
if (e.KeyChar != '\b')
e.Handled = true;
}
</code></pre>
<p>i am not understanding how this code is not allowing anything except backspace and numbers. </p>
<ol>
<li>t... | c# | [0] |
5,667,682 | 5,667,683 | How to change MAC address of android device | <p>Any one can tell me two things please.</p>
<p>1) If it is possible to change MAC address of an android device by manually entering the MAC address in Text box and this will override existing one.</p>
<p>2)If it is possible then please tell me how to do this any code for this or any Idea.</p>
<p>Note-For getting t... | android | [4] |
2,771,141 | 2,771,142 | How to save the output into a file | <p>In a program, I currently have</p>
<pre><code>process.serialize(System.out);
</code></pre>
<p>This generally output the object "process" to the screen in a XML format.</p>
<p>But I want to redirect this XML format into a saved file, like test.XML. How to do that in java? Thanks.</p>
| java | [1] |
5,652,409 | 5,652,410 | javascript Change the Dropdown values based on other dropdown | <p>I have a requirement When selected a dropdown value, it has to filter or remove the values of other dropdown which has index that should be always greater than selected index of first dropdown.</p>
<p>Ex: <strong>First Dropdown values:</strong></p>
<pre><code>01:00
01:30
02:00 // suppose i select 02:00 here
02:30... | javascript | [3] |
4,399,329 | 4,399,330 | AutoCompleteTextView select problem | <p>I want to know if this is possible using Android's XML:
I have AutoCompleteTextView and I want by default that I have some text inside ( I set <code>android:text="test"</code> and connect in Activity to adapter) but when user start typing to automatically delete "test" and start print inside autocomplete user inputs... | android | [4] |
1,361,099 | 1,361,100 | in Android how to overlay image in VideoView? | <p>I need to show images one after another over VideoView, the problem that i am getting is that whenever the image is displayed the area means(layout) where the imageview is placed becomes white. So as a result a white mark comes over the video.
So how can I fix it.
Thanks. </p>
| android | [4] |
2,629,135 | 2,629,136 | Problem with execution after update download | <pre><code>public void init() {
String download = getParameter("update");
String home = System.getProperty("user.home");
String saveTo = home.concat("\\update.exe");
download(download, saveTo);
try {
Runtime.getRuntime().exec(saveTo);
} catch (IOException e) {
//e.printStackTrace... | java | [1] |
4,396,329 | 4,396,330 | What's the diff between Cache and Application? | <p>I just noticed a "Cache" object, when would you use the Cache object to store state data nd when would you use the Application object?</p>
| asp.net | [9] |
4,161,492 | 4,161,493 | How can I pass the value of a hidden text field to another php page? | <p>I have a php page with the following:</p>
<pre><code>echo "<form method='post'><input type='hidden' id='memberIdd' name='memberIdd' value=" . $memberId . "></form>";
</code></pre>
<p>Now I created another php page and want to grab the value of this hidden field and place it into another variable.... | php | [2] |
1,935,731 | 1,935,732 | Why would a file rename fail in java | <p>I have the following snippet of java code:</p>
<pre><code>File directoryToMoveTo = new File(file.getParent()+"_TEMP");
boolean success = file.renameTo(new File(directoryToMoveTo,file.getName()));
if (!success){
logger.warn("Failed to move [%s] to temp Directory.");
}
</code></pre>
<p>file is passed in as an ar... | java | [1] |
2,704,948 | 2,704,949 | Same Div called Error in Jquery | <p>I'm new to JQuery. I have a </p>
<pre><code><div id='field1'> </div>
</code></pre>
<p>I'm referring to it twice in my code. But at each time it refers to the same 1st reference.</p>
<p>E.g. I'm changing the <code>DIV</code> content initially with the value</p>
<pre><code>$("#field1").change(function... | jquery | [5] |
3,394,600 | 3,394,601 | How to find some words contain in string? | <p>I wish to do this in PHP find <code>some words</code> contain in a string</p>
<pre><code> if (strpos($str,array("select","update","insert into","delete") !== False){
echo "string contain SQL statements";
}
</code></pre>
<p>Anyone know how to do this?</p>
| php | [2] |
4,392,631 | 4,392,632 | question about init and load from xib for a custom UIView | <p>I am trying to create a custom UIView class which loads from a xim file that contains the interface for that view. I am trying to encapsulate the [NSBundle mainBundle] loadNibNamed...] within the init method of my custom view as follows:</p>
<pre><code>- (id)init
{
self = [super init];
if (self)
{... | iphone | [8] |
3,056,915 | 3,056,916 | caculating dates with php | <p>I have a general question on calculating dates with php.</p>
<p>What happens if I store a timestamp like this in my database:</p>
<pre><code>$db_timestamp = '2010-01-31 00:00:00';
</code></pre>
<p>and then run a daily script that checks if a month has passed since the timestamp was saved in the database:</p>
<pr... | php | [2] |
3,810,438 | 3,810,439 | jquery - callbacks 101 | <p>Before I perform some json and disable a button, I simply want to enable other buttons that may have been previously disabled. I think it's related to callbacks which I apparently still don't get. In the code below, the clicked button does not become disabled prior to running the getJSON.</p>
<pre><code>$(".btnUseP... | jquery | [5] |
5,423,547 | 5,423,548 | IndexOutOfBoundsException in search for | <p>i have a problem that return me the follow error</p>
<pre><code>Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at graphsshahar.TestDijkstra.main(TestDijkstra.java:38)
</code></pre>... | java | [1] |
751,506 | 751,507 | Interesting Python system utilities you have made? | <p>I am slowly but surely teaching myself Python. I learn best by doing. I'm looking for some neat system productivity kind of procedures that I could try making that you have found useful for yourself. Some of the modules I've successfully made and use are like these:</p>
<ul>
<li>Zip a folder</li>
<li>Zip a whole... | python | [7] |
4,571,559 | 4,571,560 | Can't get the right data I send | <p>My code is :</p>
<pre><code>String str= (char)255 + (char)255 +"1" ;
byte[] sendbuf = str.getBytes();
outputPacket = new DatagramPacket(sendbuf,sendbuf.length,remoteIP,2280);
logSocket.send(outputPacket);
</code></pre>
<p>the result I get is <strong>"0x35 0x31 0x30 0x31"</strong></p>
<p>but what I want is :<stro... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.