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,445,466 | 3,445,467 | Display looped elements on by one with Jquery | <p>How is it possible to display looped elements with jquery each() one by one, like having a delay between?</p>
<pre><code>function text_animate(){
var get_text=$("#animated_text_falling h1").text();
var words =get_text.split(" ");
$("#animated_text_falling h1").remove("h1");
var wordCount = 0;
... | jquery | [5] |
343,274 | 343,275 | how to add messagebundlefile for language . properties in java | <p>i likely to convert the English words into hindi ...
by the use of...</p>
<p><strong>java.util.Locale;</strong></p>
<p><strong>java.util.ResourceBundle;</strong></p>
<p>or keyword file(where all word are asigned)in textfile</p>
<p>like this</p>
<p>loginform.userid=प्रयोक्ता आईडी</p>
<p>loginform.password=पासव... | java | [1] |
2,121,613 | 2,121,614 | Replace part of a string with new value | <p>I've got a scenario, wherein i need to replace the string literal with new text.</p>
<p>For example, if my string is "01HW128120", i will first check if the text contains "01HW" If yes, then replace that with the string "MachineID-".</p>
<p>So eventually i wanted "01HW128120" to be "MachineID-128120". Sometimes i ... | c# | [0] |
1,683,979 | 1,683,980 | New programmer work rate and expectations | <p>I'm a new graduate and yave just started working a few weeks past as a web programmer. I've kind of been thrown in at the deepend and have been put straight on a project that appears on the face of it to be relatively simple, but there a lot of little intricacies that are making it quite difficult. </p>
<p>What sor... | php | [2] |
2,271,904 | 2,271,905 | How can i write jQuery for below problem? | <p>I need help I am new to jQuery and i want to implement jQuery in one of my webpage.
I also have one form having four text boxes. I have two div tags one in another i.e. my code structure is in following way</p>
<pre><code><div>
<div>
<img>
<img>
<img>
... | jquery | [5] |
4,282,884 | 4,282,885 | how to find the total no.of inbound and outbound links of a website using php? | <p>how to find the total no.of inbound and outbound links of a website using php?</p>
| php | [2] |
3,235,358 | 3,235,359 | JQuery in Dynamically loaded UserControl | <p>I am dynamically loading a user control on a click of a checkbox. I need to run a post on the Jquery when a button is clicked on the user control. When I Load my User Control, I cannot run</p>
<pre><code>$(document).ready(function(){
alert('I am here!!');
}); as a test.
</code></pre>
<p>Any Ideas. or do I ne... | jquery | [5] |
1,636,465 | 1,636,466 | Iphone tabBarController.moreNavigationController options | <p>I have multiple navigationcontrollers on the More Section of the tabBarcontroller,> 4. When I clicked on one of the navigationcontrollers on the More Section,(table view) and then leave , and come back, it always come back to that specific controller view on the More Section. </p>
<p>I want to go back to the Table... | iphone | [8] |
4,092,651 | 4,092,652 | Formatting a string | <p>I have got a string in the form:</p>
<pre><code>8 AM;10:15 AM;3:30 PM;6:15 PM
</code></pre>
<p>which i need to format in the form</p>
<pre><code>8 AM-10:15 AM, 3:30 PM-6:15 PM
</code></pre>
<p>How can i achieve this?</p>
| asp.net | [9] |
921,434 | 921,435 | Is there any Sound filtering library in android | <p>I want to capture an audio and convert it into byte array.<br>
But when I record the audio, noise gets added to it. </p>
<p>Is there any filtering library in android so that I can remove noise in it.</p>
<p>Regards,<br>
Sneha</p>
| android | [4] |
4,287,390 | 4,287,391 | How can I create an application with resizeable frames | <p>How can I create an app in one window with multiple frames.</p>
<p>For example if i want the lower portion of the screen to be taken up by a webbrowser object, and the top split into two halves with different items in.</p>
| c# | [0] |
5,640,293 | 5,640,294 | C# syntax to get access to webcontrol in different file (aspx) | <p>Within my Website project, I have some aspx pages, javascript files, and a custom C# class I called MyCustomReport. I placed a Image box with an ID of Image1 inside SelectionReport.aspx. I need to get access to that Image1 inside MyCustomReport.cs so I can turn it on and off based on conditions. What code do I ne... | c# | [0] |
3,632,424 | 3,632,425 | Getting javascript error with a for loop even though it's working | <p>I'm trying to check a series of check boxes depending on the results I get from a string. Since the values in this string are separated by commas I do the following:</p>
<pre><code>var busLines = 'AB, CD, EF, GH, IJ, KL'
var temp = busLines.split(', ');
</code></pre>
<p>So now my array 'temp' should be the individ... | javascript | [3] |
3,234,934 | 3,234,935 | Enabling buttons | <p>Problem,</p>
<p>with a UIButton, I can do this:</p>
<pre><code>myButton.enabled = YES;
or
myButton.enabled = NO;
</code></pre>
<p>However, I can't do the same with a UIBarButtonItem (navigation bar buttons,)</p>
<p>So, how do I stop the user clicking it? </p>
| iphone | [8] |
493,783 | 493,784 | Implement Android Custom Tabbar | <p>I need to develop this layout in android device, im using a tabview and three tabs in the design. TabWidget need to bottom of the screen and also i need a way to develop this kind of layout for tabwidget.</p>
<p><img src="http://i.stack.imgur.com/lh2eM.png" alt="enter image description here"></p>
| android | [4] |
5,427,984 | 5,427,985 | Get the __FILE__ constant for a function's caller in PHP | <p>I know the <code>__FILE__</code> magic constant in PHP will turn into the full path and filename of the currently executing file. But is there a way I can get the same information for a function's calling file? For example:</p>
<pre><code>//foo.php:
include "bar.php";
call_it();
//bar.php
function call_it() {
... | php | [2] |
4,521,892 | 4,521,893 | How to make System.err write in one block | <p>I'd like to solve following issue: imagine that you are doing lots of outputs in System.out, and from time to time there is an Exception thrown. When you look into the console, you can see that the exception's trace text is mixed up with normal output done by System.out. I understand that these two are different str... | java | [1] |
1,402,645 | 1,402,646 | Iphone/IPad Safety Integrity Level | <p>As a device, does anyone know their SIL level (as defined by IEC 61508)?
i.e. a SIL Level 4 product must have the device and software to Level 4.</p>
| iphone | [8] |
2,861,772 | 2,861,773 | PHP: File upload always returning nothing | <p>Hey guys I'm working on a file uploader and I have come across a problem. In my code I am checking to see if a file has been selected via the file upload form, here is the form code:</p>
<pre><code><form method="post" action="actions/save.php?id=<?print($id);?>" enctype="multipart/form-data">
Listin... | php | [2] |
2,637,953 | 2,637,954 | How can I load all keys from a dict as local variables, a better aproach? | <p>Giving this dictionary:</p>
<pre><code>>>> options = {'DATABASES': {'default': {'ENGINE': 'django.db.backends.sqlite3'}}}
</code></pre>
<p>What would be the best way to get this?:</p>
<pre><code>>>> foo(options)
>>> print DATABASES
{'default': {'ENGINE': 'django.db.backends.sqlite3'}}
<... | python | [7] |
3,664,821 | 3,664,822 | jquery hide element depending of value of input tag | <p>What i want is the <code>select</code> div to be displayed only if the value of the input tag next to it is zero. How do i do this?
Here is the jsfiddle <a href="http://jsfiddle.net/mdanz/xdFkJ/" rel="nofollow">http://jsfiddle.net/mdanz/xdFkJ/</a></p>
<pre><code><style type="text/css">
.select {
overflow:hid... | jquery | [5] |
2,876,897 | 2,876,898 | Uiimage as photolibrary file or camera | <p>I want to select a image from Photo library or camera and have to save it into my photo album(If its already there i want to put 1 more copy)</p>
<pre><code>-(IBAction) getPhoto:(id) sender {
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
if((UIButton ... | iphone | [8] |
4,261,010 | 4,261,011 | Incrementing through object properties? | <p>Is it possible to increment ( not loop ) through object properties. I know that objects don't guarantee ordering but I want to increment through them any ways.</p>
<p>For example, for an array one can do:</p>
<pre><code>arr[index++];
</code></pre>
<p>But this does not work for an object:</p>
<pre><code>obj[key+... | javascript | [3] |
3,960,476 | 3,960,477 | Download part of HTML page as text (PHP) | <p>So I have an 'export' application that arrives the user at an end page with a textarea with lots of text. Now the workflow is to copy and paste that text from the textarea into a file.</p>
<p>The exported code is getting larger, and we want to encourage users to do this more often, so the copy/paste route is no lon... | php | [2] |
3,254,673 | 3,254,674 | Get the source into a string from the next page after a POST | <p>I am posting data to a form and all works well, but afterwards I need to get the source(html) of the page where it reffers to after I POST'ed the data.</p>
<p>Is this possible and if so how?</p>
<p>I am using this method to POST:</p>
<pre><code> string HttpPost(string uri, string parameters)
{
HttpWeb... | c# | [0] |
5,532,022 | 5,532,023 | Pickerview within enclosing view | <p>using iphone sdk 4.0. I have added a UIPickerView to a view. I want the UIPickerView
to be NON transparent ( as it is) but i want the background view to have an alpha of 0.3.</p>
<p>THis is so that the upper portion of the view (which is full size screen) is see through
and the lower portion which has the picker i... | iphone | [8] |
1,944,858 | 1,944,859 | is it possible to set a View as wallpaper on home screen in android? | <p>my question is that I am creating a custom analog clock by extending View, I want to display this clock on home screen as a wallpaper. Can anybody know the answer..any suggestions are appreciated...thanks in advance. </p>
| android | [4] |
5,665,639 | 5,665,640 | Right way to do scrollable view of custom buttons? | <p>I've just started playing with Android in the last few days and have begun to put together a simple application. I am struggling to work out whether I'm doing things the "right" way or just making life difficult for myself.</p>
<p>The app displays a series of connected nodes on the screen, similar to a mind-map. I ... | android | [4] |
5,389,928 | 5,389,929 | How to detect whether network service state changed in android? | <p>How to detect network service state changes in roaming?</p>
<pre><code> <N/wSate 1> <N/wstate 2>
</code></pre>
<p>For Eg: India --> England --> China</p>
<p>Here how to detect n/w state change from 1 to 2??</p>
<p>Thanks,
Chitra</p>
| android | [4] |
2,113,425 | 2,113,426 | Multiple checkbox selection values to be displayed into the different cells of TableView | <p>I have to select dynamically (random) check boxes which will be displayed into the previous list page below the cell values & for all cells it must be different as per the selection of those check boxes for the particular selected cells & when i will select particular cell from the list the listed check boxe... | iphone | [8] |
1,158,852 | 1,158,853 | How to measure javascript parse time | <p>In our company we combine every Javascript file into one big (around 700kb but growing) minified and gzipped Javascript file. I am trying to assess the performance differences between using one big Javascript file for every page (minified and gzipped) and using several Javascript files, one for each page.</p>
<p>An... | javascript | [3] |
2,456,217 | 2,456,218 | Discover mobile devices using wifi | <p>I'm doing some work for my theses in networking, and have stumbled into a little problem. One of the first steps in the work I must do consists on having a computer working as an AP (I am using hostapd for this) and with it, detect all the devices in the room which currently have wifi turned on (do not need to be as... | java | [1] |
236,975 | 236,976 | I'm having trouble understanding page validation | <p>Okay, so I have my asp.net page with all of my comparison and requiredfield validators. This leaves me with two concerns.</p>
<ol>
<li><p>What additional validation do I need? Do I need anything in the code behind? I want them to be unable to hit the 'save' button until their textbox information is complete, and it... | asp.net | [9] |
3,846,983 | 3,846,984 | Format string using RegEx | <p>String to be formatted </p>
<p>"new Date(2009,0,1)"</p>
<p>String after formatting</p>
<p>"'01-Jan-2009'"</p>
| c# | [0] |
4,529,025 | 4,529,026 | javascript get child by id | <pre><code><div onclick="test(this)">
Test
<div id="child">child</div>
</div>
</code></pre>
<p>I want to change the style of the child div when the parent div is clicked. How do I reference it? I would like to be able to reference it by ID as the the html in the parent div could chang... | javascript | [3] |
1,114,642 | 1,114,643 | Make selected by value | <pre><code><select id="selectBox">
<option value="2"> two </option>
<option value="4"> four</option>
<option value="6"> six </option>
</select>
</code></pre>
<p>I have value 4, Now how to make <code>selectBox</code> selected with value 4 with javascript?</p>
| javascript | [3] |
2,540,121 | 2,540,122 | using header function to redirect | <p>I'm new to programming in PHP. Kindly bear me...</p>
<p>when using header function, refresh option is not working when using variable from post method(dynamically). when hard-coded the number its working. I tried different options. You can see my whole code here.not succeeded to make refresh work dynamically. Can ... | php | [2] |
4,801,559 | 4,801,560 | bitmap not showing | <p><code>file.name = "/sdcard/Pictures/Screenshots/Screenshot_2013-01-15-10-42-02.jpg";</code></p>
<p>however, every time i try to open the file by clicking the bitmap, it causes the opening application to crash, not my application. also, the bitmap doesn't show the image somehow. </p>
<p>Adapter.java (to bitmap)</p>... | java | [1] |
2,090,238 | 2,090,239 | php scripts are downloaded, not executed, which I wished | <p>I am using Ubuntu 10.10 with Apache2, PHP5, Mysql etc. (local Web server environment) installed.</p>
<p>When I try to call a PHP script thru a call from a form i.e. (action=scriptname.php), the script is downloaded, not executed. Pl help.</p>
| php | [2] |
2,973,572 | 2,973,573 | jQuery toggle div and toggle text | <p>I want to make the link "Add additional comment" when clicked to show a text area and the text to toggle as "Remove comment". When "Remove comment" is clicked it should hide text area and the text need to change as "Add additional comment".</p>
<p>The code I used is</p>
<pre><code><script type="text/javascript... | jquery | [5] |
3,029,377 | 3,029,378 | Filter rows from Cursor so they don't show up in ListView | <p>I have a Cursor that returns rows I use with a SimpleCursorAdapter to populate a ListView. I would like to filter some of the rows so they don't get displayed in my ListView. I use the data from the rows elsewhere in my Activity so I don't want to change my SQL to filter them with a WHERE clause.</p>
<p>What is t... | android | [4] |
5,869,591 | 5,869,592 | JQuery and multiple radio button groups problem | <p>I am having trouble using JQuery to work with multiple radio button groups. The JQuery code, for some reason, cannot tell the difference between the two groups of radio buttons and cannot tell which group of radio button I clicked on.</p>
<p>Here is the HTML code:</p>
<pre><code><!-- Radio button group 1 -->... | jquery | [5] |
3,528,385 | 3,528,386 | Android KeyEvent getSize or getPressure | <p>Is there a way to <code>getSize()</code> and <code>getPressure()</code> from a KeyEvent like you would with a MotionEvent?</p>
<p>In other words, MotionEvents have <code>getSize()</code> and <code>getPressure()</code> methods, but KeyEvents do not have these methods. Moreover, MotionEvents and KeyEvents are sibling... | android | [4] |
2,338,145 | 2,338,146 | Can I send a user-entered phone number to a server on iPhone? | <p>I know that Apple does not permit developers to read the phone number of the device and send that to a server.</p>
<p>However, I can't find anything about whether I can send the phone number of the current device <strong>if the user enters it into the app</strong>.</p>
<p>I would like to let people sign up to my s... | iphone | [8] |
756,069 | 756,070 | read and process stdin output of another console application | <p>I want to manipulate the output of a console trace tool in a python script. So I want to read each line that the tool writes to stdout and maybe do something with that line and print it to the screen.</p>
<p>I have this script:</p>
<pre><code>import sys
for l in sys.stdin:
print l
</code></pre>
<p>and I star... | python | [7] |
2,612,682 | 2,612,683 | values of one combo box on basis of other combo box - php | <p>i have two tables categories and sub-categories in database.
On my form i have two combo boxes category and sub categories. Now i want that when i change category, subcategories should change accordingly. I can do it if arrays are defined in javascript. but in my case subcategories are to load from database on the b... | php | [2] |
1,052,782 | 1,052,783 | How to ensure process window launched by Process.Start(ProcessStartInfo) has focus of all Forms? | <p>c#.How to ensure process window launched by Process.Start(ProcessStartInfo) has focus of all Forms?
Thanks,</p>
| c# | [0] |
3,210,515 | 3,210,516 | How Vector and Hashtable are thread-safe in collection? | <p>I know that both of them have thread safe methods. I want to know how they are thread safe? What is the implementation? This is a common question in all interviews. </p>
| java | [1] |
953,012 | 953,013 | How to upload images from Android device to Facebook Server | <p>Friend's ,
I need to upload an image from android device to Facebook server of the login users profile,anyone help me to implement this feature by using corresponding API.</p>
| android | [4] |
4,735,057 | 4,735,058 | How to use timer for update time after 5 min in registry | <p>How to use timer for update time after 5 min in registry. My registry file in <code>"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"</code> file. Its run only first time when computer start.I want to update time in registry after 5 min automatically. </p>
| c# | [0] |
2,365,502 | 2,365,503 | time() with different timezones | <p>How can i get user's local time using php time() or there is another way to do it?
Which means it will be in their timezone.</p>
<p>I need to calculate time ago with user's local time, here's a nice script i found for the time ago function:</p>
<pre><code><?php
function timeago($time)
{
$periods = a... | php | [2] |
4,282,753 | 4,282,754 | How to close a program while not in main | <p>Is there a line in c++ that allows me to terminate my program while I am not in main()? </p>
<p>For example, a code where if you die you have to quit the game? I don't want it to rely on the "trust" system.</p>
| c++ | [6] |
4,739,834 | 4,739,835 | Good way to tokenize a string to store values? Or alternative for user input | <p>Hello again Stackoverflow, I'm here again asking a question for my C++ programming class. The problem I am facing is mostly to due with user input from the keyboard. I need to be able to take the user input to decide what function to call and what arguments to give the function. For example something like <code>add ... | c++ | [6] |
2,028,679 | 2,028,680 | Python - value in list of dictionaries | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1580270/whats-the-best-way-to-search-for-a-python-dictionary-value-in-a-list-of-dictiona">What's the best way to search for a Python dictionary value in a list of dictionaries?</a> </p>
</blockquote>
<p>I ha... | python | [7] |
3,978,440 | 3,978,441 | ListBox Inside DataList Control Always Giving the Text of the First Item | <p>I have a ListBox inside DataList control. The Autopostback is set to true in the ListBox. </p>
<p>For some reason when I select an item from the ListBox control and I check in the ListBox_SelectionChanged event it is always the First item of the ListBox items. Why is that?</p>
<p>I just checked and the SelectedInd... | asp.net | [9] |
4,358,499 | 4,358,500 | How to programatically get a list of all iPhone calls and messages? | <p>Is it even possible, without jailbreak?</p>
| iphone | [8] |
1,076,593 | 1,076,594 | How does atoi() function in C++ work? | <p>So...I know that the atoi function in the C++ standard library is supposed to convert a string into an integer...how does it work?...(I'm trying to learn stuff and I was just wondering)...if you could show me the code from it or make your own that would do the same task it'd be greatly appreciated...thanks in advanc... | c++ | [6] |
5,955,868 | 5,955,869 | Applying one jQuery change event to infinite potential html inputs, use same id for them all? | <p>I need to have the ability for the user to click a '+' which adds a new drop-down to an infinitely expanding collection of drop-downs. If I give them all the same id, will the jQuery change event know which one called the change event based on $(this) or do I need to have a new id for each new drop-down that is crea... | jquery | [5] |
4,240,987 | 4,240,988 | Stop scroll on click on anchor in a tab navigation in jquery | <p>How to stop the window from scrolling when an anchor is clicked or opened?
<a href="http://domainsoutlook.com/s/site/stackoverflow.com.html#meta_info" rel="nofollow">http://domainsoutlook.com/s/site/stackoverflow.com.html#meta_info</a>
Try some other tabs and the window scrolls down.</p>
<p>Also, could it be possib... | jquery | [5] |
3,262,604 | 3,262,605 | blank lines at the top of source code page | <p>I am running into a weird issue, a php file which return a valid JSON except that it output a ton of blank lines at the very top of the file, so if the real output contains 300 lines of code, what I get is 300 + 500 blank lines at the beginning.</p>
<p>Please not that these blank lines are visible only when I show ... | php | [2] |
2,769,688 | 2,769,689 | Passing a variable into a php array | <p>I'm trying to pass a variable into an array, looks like php does not like it. Is there any work around to pass a dynamic variable into a php array? I have a result set which is a multi-dimensional array, the variable I'm trying to pass into the second array is part of the result set.</p>
<p>a and b are column alias... | php | [2] |
1,122,526 | 1,122,527 | Android:Need to set Image before to TextView | <p>i need to set a image dynamically before to text view on the below mentioned code , so how to do this.?my code is below..</p>
<pre><code>if (attchStringArray.length > 0) {
LinearLayout attachemntLayout = new LinearLayout(mainContext);
LinearLayout.LayoutParams layoutParam = new L... | android | [4] |
3,048,814 | 3,048,815 | Question about generic function parameter | <p>I'm just wondering why passing a <code>System.Collections.Generic.List<string></code> into this function <code>test(ICollection<object> t)</code> will not work, why can't I pass it in like passing a <code>string</code> into <code>test2(object t)</code>?</p>
<p>Doesn't make much sense to me!</p>
| c# | [0] |
700,605 | 700,606 | itrerate through list of lists | <p>so i have a lists within a list. i'm trying to grab the lists that are within this list. i know i can get the outer list data as seen bellow. But how do i grab the data for all the lists inside the outer list? </p>
<p>this is what i have:</p>
<pre><code>public void iterateThroughList()
{
Iterator<Test1> ... | java | [1] |
466,567 | 466,568 | Asp.net ready modules | <p>I need to add the ability to register users in my web site.
I'm sure that 1000's of programmers already did this, so why should I build from scratch?
Does someone knows where can I find a module like this as well as other modules?</p>
<p>Thanks</p>
| asp.net | [9] |
3,073,376 | 3,073,377 | C#: How to get the full path of running process? | <p>I am having a application that is changing some settings of other application (it is a simple C# application that run by double clicking (no setup required)).</p>
<p>After changing the settings I need to restart the other application so that it reflects the changed settings. </p>
<p>So to do, I have to kill the ru... | c# | [0] |
3,505,605 | 3,505,606 | Android C2DM Completed project | <p>I am developing an Android project where I have to use C2DM. I need a C2DM sample project or Source code.Please any one help me to give completed project.</p>
| android | [4] |
786,333 | 786,334 | Another question, this time regarding breaking a string down for validity | <p>Thanks a bunch for the tip on the static to all of you folks who answered! Feeling a little less frustrated now.</p>
<p>I am not going to ask questions step by step through my whole assignment, but I want to make sure that this is the way to go about one of the next tasks. I have written the following, which compi... | java | [1] |
2,304,158 | 2,304,159 | JQuery, how to make page scroll when div slides down so you can see it | <p>I have some jquery code which opens hidden divs on my page from a dynamic list of data, the trouble is if you click a row from low down on the page it opens the div below the bottom of the page and you have to scroll down to see it, is there a way to set some sort of anchor or get jqyer to scroll to bottom of div wh... | jquery | [5] |
2,955,036 | 2,955,037 | Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity | <blockquote>
<p>Warning: simplexml_load_file() [function.simplexml-load-file]: I/O
warning : failed to load external entity
"USD_en_productdata/USD_en_productdata.xml"</p>
</blockquote>
<p>the code</p>
<pre><code>$src=simplexml_load_file("USD_en_productdata/USD_en_productdata.xml");
foreach($src->ProductIte... | php | [2] |
5,148,194 | 5,148,195 | Grab content from another website | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-xml-with-php">How to parse and process HTML/XML with PHP?</a> </p>
</blockquote>
<p>I want to grab anything thats inside the code below on a website.</p>
<pre><code><tab... | php | [2] |
5,755,668 | 5,755,669 | Alternative to php preg_match to pull data from an external website? | <p>I want to extrat the content of a specific div in an external webpage, the div looks like this:</p>
<pre><code><dt>Win rate</dt><dd><div>50%</div></dd>
</code></pre>
<p>My target is the "50%". I'm actually using this php code to extract the content:</p>
<pre><code>function getv... | php | [2] |
12,921 | 12,922 | Dynamically Return a Class of a Type Determined During a Method Call via Class.forName() | <p>I know that I can dynamically determine the return type of a method by passing in a class and then declaring that class as the return type, as in the following example:</p>
<pre><code>public static <returnType> returnClass dynamicConstructor (Class<returnType> returnClass){
//Dynamically construct a... | java | [1] |
2,667,277 | 2,667,278 | Two clicks to get value of LI Item in jQuery - Should take 1 | <p>I have a jQuery issue.</p>
<p>I have a HTML list setup as follows : </p>
<pre><code><ul class="areas">
<li title="Volunteering">Volunteering</li>
<li title="Partnership &amp; Support">Partnership &amp; Support</li>
<li title="Business Services">Business Services</l... | jquery | [5] |
549,896 | 549,897 | Get other classes from an element with Jquery | <p>I am working on a small bit of script that will allow for easy and flexible creation of buttons.</p>
<p>My buttons are made of three parts, a left, a right and a streched middle piece. There are three different sizes and three different colours of each.</p>
<p>I have written the code that resizes the button to fit... | jquery | [5] |
329,638 | 329,639 | Is there any way to Intercept incoming calls/sms to either block/unblock it?..Android | <p>hi
Is there any way to intercept incomming calls/sms (to block or unblock it) on the basis of mobile numbers which are added to screening list.
Thanks in Advance...</p>
| android | [4] |
4,665,301 | 4,665,302 | Android Muticolum listview onListItemClick | <p>I have done Muticolum listview onListItemClick .Its working fine.Problem is </p>
<p>This line <code>String selection = l.getItemAtPosition(position).toString();</code> return this
<code>{routeName=TestRoute2, outlets=5, routeCode=VRT002}</code> .I want to get it selected row's 3rd column value.How to get it.</p>
... | android | [4] |
4,030,490 | 4,030,491 | How to Make Custom Media Player or VideoView? | <p>How to Make Custom Media Player or VideoView? Please Help Me Thanks in Advance.</p>
| android | [4] |
4,292,295 | 4,292,296 | javascript - different behaviour on page refresh | <p>I have a really weird problem.
I have a site (running wordpress), and I use jquery roundabout plugin.</p>
<p>When I visit the site with the address bar, the site is displayed fine. When I'm already in the site and I hit refresh - everything is messed up. I checked in both chrome and firefox, and I get the same resu... | javascript | [3] |
4,279,566 | 4,279,567 | Use jQuery to insert values into input fields? | <p>In the code below, I would like to use jQuery to put the word <code>"username"</code> into the value field. Then, when the user selects the input box, the word "username" would disappear leaving an empty input field for the user to input his username. </p>
<p>Can this be done with jQuery?</p>
<pre><code><p clas... | jquery | [5] |
3,486,174 | 3,486,175 | Convert resource/stream to File | <p>How can I do this?</p>
<pre><code>File myFile = getFile(this.getClass.getResourceAsStream("test.txt"))
</code></pre>
<p>OR</p>
<pre><code>File myFile = getFile(this.getClass.getResource("test.txt"))
</code></pre>
<p>What code will I write in <code>getFile()</code> method?</p>
| java | [1] |
4,847,355 | 4,847,356 | How to implement the functionality of autoscrolling page if the element is below page fold in javascript? | <p>I want to implement a similar functionality like <a href="http://www.templatemonster.com" rel="nofollow">Template Monster's</a> menu. I am trying to create a feature list which slides down when the user clicks on the feature. But if the link is at the bottom of the page and the user clicks on that link, the feature ... | javascript | [3] |
4,020,147 | 4,020,148 | Does python have one way of doing things? | <p>I have always seen in python articles/books that python is simple and it has only one way of doing things. I would like someone to <strong>explain to me this concept</strong> keeping in mind the example below, if I wanted to get the min and max values of sequence I would do the following;</p>
<pre><code>seq=[1,2,3,... | python | [7] |
5,601,137 | 5,601,138 | Javascript toString quirk | <p>Suppose I have a simple function defined that does nothing: <code>function fn() { }</code></p>
<p>Now, when I run <code>toString(fn)</code> I get "[object Object]". When I run <code>toString.call(fn)</code> I get "[object Function]". Does anyone know why I get a more specific type when using the <code>call</code... | javascript | [3] |
134,932 | 134,933 | Background task is running only when iPhone is connected with xcode | <p>Hi all using following code for background task it works fine ,when iPhone is connected with xcode , but when I ran the app without connected xcode ,then background tasks won't work</p>
<pre><code>- (void)applicationDidEnterBackground:(UIApplication *)application
{
back=1.0f;
NSAutoreleasePool *pool=[[NSA... | iphone | [8] |
4,462,147 | 4,462,148 | Javascript - get contents of div, decode base64, replace the same div with decoded contents | <p>Lets say I have a page with a div, which might or might not (no control over contents) have base64 encoded contents. I have a button, which when clicked will get the contents of the div, decode the base64 and then replace that same div with the decoded contents.</p>
<p>I know that innerHTML can get contents of whic... | javascript | [3] |
3,646,592 | 3,646,593 | Accessing calling object from MethodCallExpression | <p>I'm trying to learn about Expression trees, and I've created a method that takes an</p>
<pre><code>Expression<Func<bool>>
</code></pre>
<p>and executes it if it satisfies some conditions - see the code below.</p>
<pre><code> private static void TryCommand(Expression<Func<bool>> expr... | c# | [0] |
5,982,460 | 5,982,461 | Put javascript in one .js file or break it out into multiple .js files? | <p>My web application uses jQuery and some jQuery plugins (e.g. validation, autocomplete). I was wondering if I should stick them into one .js file so that it could be cached more easily, or break them out into separate files and only include the ones I need for a given page.</p>
<p>I should also mention that my conc... | javascript | [3] |
5,411,990 | 5,411,991 | Endless Adapter with custom listview adapter in android | <p>I am using <a href="https://github.com/commonsguy/cwac-endless" rel="nofollow">this link</a> to create custom listview in my app. </p>
<p>First I want to display listview with 5 items. As I scroll the list it should parse data and load listview for next 5 items.</p>
<p>Listview row contains 5 textviews.</p>
<p>Ho... | android | [4] |
2,337,825 | 2,337,826 | how to insert an hidden field value along side with a checkbox in to the database | <p>i am new here but i have a problem in inserting the id and the value of the checkboxes into my database here is the code of the form:</p>
<pre><code> <?php
include('db.php');
$sql = "select * from sheet1 order by course_level asc";
$r = mysqli_query($dbc,$sql) or die(mysqli_error($dbc));
$co = '';
while($r... | php | [2] |
1,020,405 | 1,020,406 | ViewSwitcher to switch between views | <p>Could anyone please help me getting the dynamic paging with the three views? I have a situation where I'd like to use the pager, but have potentially hundreds of images to show, and need to keep in memory .</p>
<p>However i wanted to be able to scroll through the multiple pages infinitely. In other words, when on... | android | [4] |
5,308,596 | 5,308,597 | Check a checkbox and change the font color of another option | <p>Here is my demo code <a href="http://jsfiddle.net/Wwdmm/3/" rel="nofollow">http://jsfiddle.net/Wwdmm/3/</a></p>
<p>But nothing is happening when I click on <code>require</code>. I want to click <code>require</code> and then change the font color of <code>option2</code> and upon uncheck <code>option2</code> removes ... | jquery | [5] |
2,910,650 | 2,910,651 | Javascript Conflict (mootools, jquery_notification) | <pre><code><link href="css/jquery_notification.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery_v_1.4.js"></script>
<script type="text/javascript" src="js/jquery_notification_v.1.js"></script>
<link rel=stylesheet href="css/mootime.css" type="text/... | javascript | [3] |
692,299 | 692,300 | Replacing links detected in a HTML with other links using JS | <p>I'm having a bit of trouble figuring out how to do this one. </p>
<p>Here's the scenario. My e-commerce site has a blog with a lot of content, promoting the products I sell, reviewing them etc. 99% of the posts on the blog link back to the products they are talking about.</p>
<p>I'm going to be changing the URL wh... | javascript | [3] |
222,663 | 222,664 | SocketTimeoutException problem - how to continue after exception | <p>I write and read in my function using Socket class. I used </p>
<pre><code>synchronized(socket){
.//write;
//read;
}
</code></pre>
<p>I am doing this (repeat) every 50-1000 ms. Problem is when somebody ( unknown reason ) pluged off cable ( I got SocketTimeoutException). When he pluged in again, I need to continue... | java | [1] |
4,526,878 | 4,526,879 | Can we messure height of a div using php? | <p>Hi Can we messure height of a div using php? Any body knows the solution please help me :(</p>
| php | [2] |
5,599,203 | 5,599,204 | Accessing column's value in datagridview | <p>I have a datagrid getting its data from the database. This datagrid has a column named "Room number".</p>
<p>I want to add content double click event so that when the user clicks on a specific room number database should be accessed and get the data related to that room number from database and display it on a sepa... | c# | [0] |
869,202 | 869,203 | What are the free and commercial IDEs? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1715697/what-is-the-best-ide-to-develop-android-apps-in">What is the best IDE to develop Android apps in?</a> </p>
</blockquote>
<p>I'm using Eclipse and ADT plugin, I want to know the options of commercial and ... | android | [4] |
849,427 | 849,428 | How to find minimum date from 3 dates using javascript function? | <p>I want to find minimum date from 3 dates (8/1/2011,6/1/2011,7/1/2011) format is (mm/dd/yyyy) using java script.</p>
<p>Thanks in advance.</p>
<p>Kanak Vaghela</p>
| javascript | [3] |
1,468,900 | 1,468,901 | Could not load file or assembly for c1webreport1 tool in compnentone studio | <p>I'm using Licensed componentone product in my ASP.NET application and spcefically i use C1WebReport1 control from the product.while upgrading C1WebReport1 control from version 2.5.20072.239 to 2.6.20093.53207,i get the error message as</p>
<p><strong>"Could not load file or assembly 'C1.Web.C1WebReport.2, Version=2... | asp.net | [9] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.