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 |
|---|---|---|---|---|---|
1,470,222 | 1,470,223 | How to read x amount of characters from a text file | <p>How can I read 20 characters of a text file progressively, for example, If i have a function read_next, calling it the first time would return the first 20 characters in a string, calling it the second time would return the next 20 characters of the file. Please note, I don't want to read the whole file into an arra... | java | [1] |
2,529,837 | 2,529,838 | Global Variable Use within the Script Tag's Source Attribute | <p>I run the following javascript code which gives my the list of parameters from the client as well as calling a google fusion table sql statement which supplies its response to the callback function handleResponse.</p>
<pre><code><script>
// get parameter list
var url = window.location.toString();
url.m... | javascript | [3] |
1,788,721 | 1,788,722 | Where are PHP model classes defined for use? | <p>I was wondering where functions and classes are defined for php...</p>
<p>I remember looking at WordPress source, and they were calling functions without including files, so I'm curious where this stuff is defined. </p>
<p>What I'm looking at doing putting some connection code, like mysql or like for twilio below<... | php | [2] |
2,215,858 | 2,215,859 | What is Func, how and when is it used | <p>What is <code>Func<></code> and what is it used for?</p>
| c# | [0] |
4,475,344 | 4,475,345 | Get the Selected value from the Drop down box in PHP | <p>I am populating a Drop Down Box using the following code.</p>
<pre><code><select id="select_catalog">
<?php
$array_all_catalogs = $db->get_all_catalogs();
foreach($array_all_catalogs as $array_catalog){?>
<option value="<?= $array_catalog['catalog_key'] ?>"><?= array_catalog['catalog_... | php | [2] |
5,754,981 | 5,754,982 | using global inside of function to get variable from included file. PHP | <p>Really simple I just think it's me. </p>
<p>this is file 1.php</p>
<pre><code>if(ctype_digit($_GET['id']))
{
$item_id = "Hello";
}
else
{
//Something
}
</code></pre>
<p>this is file 2.php</p>
<pre><code>function item_show(){
$item_query = "SELECT title FROM tbl_items WHERE id='" . mysql_real_esc... | php | [2] |
131,408 | 131,409 | Building a Student Storage server | <p>I work for a school district. I've been put in charge of building a storage server for students. A place for them to work off of from school and home. </p>
<p>My challenge is getting this to work from home. At school they login, authenticate, and they get a mapped drive to their folder on the server (<code>S:\fil... | php | [2] |
1,395,701 | 1,395,702 | Can I assign a static class to a variable? | <p>My question is whether I can assign a static class to another variable (and of what type would that be) ?</p>
<p>Say I have</p>
<pre><code>public static class AClassWithALongNameIDontWantTotType{
public static bool methodA() { stuff }
}
</code></pre>
<p>and then I have </p>
<pre><code>class B{
}
</code></pr... | c# | [0] |
399,030 | 399,031 | Understanding java program | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7924961/weird-java-behavior-with-casts-to-primitive-types">Weird java behavior with casts to primitive types</a> </p>
</blockquote>
<p>Why following prints <code>1</code>?</p>
<pre><code>int i = (char) - (int) ... | java | [1] |
42,766 | 42,767 | get refresh event from page | <p>How to get event of page refresh. i want to detect that user has refreshed page</p>
| jquery | [5] |
3,242,586 | 3,242,587 | Make button call same button's method | <p>So I have two buttons, Left and Right. Both have same </p>
<pre><code>setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
}
</code></pre>
<p>methods inside it but I want my code reduced, so is there a possibility I can just make the Left B... | android | [4] |
4,090,011 | 4,090,012 | Getting PHP (Valums File Uploader) script to NOT overwrite if file exists | <p>/----FIXED THE ISSUE----/</p>
<p>I'm creating a site where you can upload a zip file and we will extract it and provide a method of viewing your html site before viewing it. I can see my main problem is going to be bandwidth right now and that is due to the fact that once you access the <a href="https://github.com/... | php | [2] |
2,154,492 | 2,154,493 | Issues with OnClick Listener for Custom Dialog Box | <p>I am trying to write a custom dialog box that takes a name from the user. I am getting a "OnClickListener cannot be resolved to a type - The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new OnClickListener(){})" error in Eclipse. Anyone know what I am doing wr... | android | [4] |
5,099,326 | 5,099,327 | Maintaining medium-sized to large JS-heavy web apps | <p>What's the best way to deal with lots of JS in a web front end? Google's <a href="http://code.google.com/closure/compiler/" rel="nofollow">Closure</a> compiler can compile and minify JS, which is good for production -- but annoying to have to recompile every time I make a change, and annoying to debug.</p>
<p>What'... | javascript | [3] |
2,751,199 | 2,751,200 | How can I change the color of a complex graphic? | <p>I have a graphic in Adobe Illustrator (lets say a cat) that I want to use in an Android application. I would like to have the user be able to change the color of the fur using a color picker. What can I save the graphic as (SVG?) to allow me to programatically control the color from with the android app? Do I have t... | android | [4] |
4,212,803 | 4,212,804 | Interface decouples the client | <p>Can you please explain how interface decouples client.</p>
| c# | [0] |
366,140 | 366,141 | how to get all the rows as well as the column headers from the datagrid to a list | <p>I am currently working on wingrid. In that.. after the data getting displayed in the wingrid, i want to take all the rows from the grid to new list including the column header.</p>
<p>In windows datagrid we will take the column header like this.</p>
<p>List cols = new List();
// populate
foreach (C... | c# | [0] |
5,010,350 | 5,010,351 | python - Size limit of set data type | <p>I have a list with 7,200,000 elements in it. When I try to convert it with set() it cuts out to 4,500,000 elements. What can I do to bypass this problem?</p>
<p>I'm using Python 3.2.2 x86 on Windows.</p>
| python | [7] |
4,921,904 | 4,921,905 | NSArray adding elements | <p>I have to create a dynamic NSArray. That is I dont know the size of the array or what are all the elements the array is going to have. the elements need to be added to the array dynamically. I looked at the NSArray class reference. there is a method called arrayWithObejcts, which should be used at the time of initia... | iphone | [8] |
2,604,014 | 2,604,015 | Track restarts, shuts down, power up and power down | <p>can we get notification if user restarts, shuts down, power up or down the device</p>
| android | [4] |
4,101,183 | 4,101,184 | Adding both Integer and Float values into One Map as one parameter in java | <p>I have <code>Map<Integer, Integer> pickupMap = new HashMap<Integer, Integer>();</code> Map like this.
I had inserted values like this </p>
<pre><code>if(null != qty_1000 && !"".equals(qty_1000))
pickupMap.put(Integer.parseInt("1000"), Integer.parseInt(qty_1000));
</code></pre>
<p>Now I want... | java | [1] |
1,430,965 | 1,430,966 | Navigating to a project document from a LinkButton | <p>I am trying to get an excel file to popup on a page in a new window when a user clicks an asp:linkbutton on a webform. I am setting it up to use the OnClick function and in the code behind I do a respond.redirect to the location of the excel file in the project. You can see this in the code below. For some reason it... | asp.net | [9] |
2,538,290 | 2,538,291 | application not running in sleep mode? | <p>my code is running fine when phone not in sleep mode</p>
<p>i used broadcast receiver to call application when date going to be changed
the code is as follow </p>
<pre><code>public class DateReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log... | android | [4] |
2,639,994 | 2,639,995 | What's wrong with C#? | <p><a href="http://stackoverflow.com/questions/15528/whats-wrong-with-java" rel="nofollow">Asking the same of Java</a> yielded some very interesting responses, so I thought it would be only fair to ask the same thing of C#, probably Java's closest rival.</p>
<p>I actually like this sort of question because it's a lot ... | c# | [0] |
633,645 | 633,646 | Is my temp folder discoverable after image upload form? | <p>I have a simple php image upload form that saves the images in a temporary folder, lets call it temp, and when the image is approved by me I manually copy it to the album folder.</p>
<p>My question is, if there is a way for someone or I don't know, a search engine maybe to find "guess" my temp folder and what image... | php | [2] |
4,871,231 | 4,871,232 | how do pause this loop for a fixed time frame? | <p>I do have a array which will read text file and do api call and then insert these result to mySQL. but when it run in bulk the response from API server is slow and due to this many of the results are coming blank. what I am looking is is there a way to pause this loop for each call say 5 seconds to get result from a... | php | [2] |
3,526,216 | 3,526,217 | The Java classes instances do not require persistence any time | <p>Is there any java class instances, which does not require persistence. </p>
| java | [1] |
2,292,946 | 2,292,947 | What is the most elegant way to map one list to another in Java? | <p>I am new in Java so please be patient.</p>
<p>It is common to map (convert) lists to lists. Some languages have a <code>map</code> method, some (C#) <code>Select</code>. How is this done with Java? Is a <code>for</code> loop the only option?</p>
<p>I expect to be able to do something like this:</p>
<pre><code>Lis... | java | [1] |
5,337,615 | 5,337,616 | Check All Checkbox with Pagination | <p>I currently have a report with pagination, that displays 20 records at a time. In total, there are 600 records.</p>
<p>Within this report, I also have a checkbox column for every record. Based on this, my queries are as follows:</p>
<p>1) I want to incorporate a "Check All" feature, so based on my scenario which d... | javascript | [3] |
1,126,320 | 1,126,321 | Any standalone converter from Java Class to C#? | <p>I found these two - <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=46bea47e-d47f-4349-9b4f-904b0a973174&displaylang=en" rel="nofollow">Java Language Conversion Assistant</a> and <a href="http://developer.db4o.com/blogs/product%5Fnews/archive/2008/05/20/smart-java-to-c-conversion-for-the-masses... | c# | [0] |
1,677,767 | 1,677,768 | C++ Classes - dot notation vs pointer | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1238613/what-is-the-difference-between-the-dot-operator-and-in-c">What is the difference between the dot (.) operator and -> in C++?</a> </p>
</blockquote>
<p>What's the difference between using dot notation... | c++ | [6] |
3,434,750 | 3,434,751 | Storing Java bytecode in a database | <p><a href="http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html" rel="nofollow">The Java Language Specification</a> states</p>
<blockquote>
<p>A package can be stored in a file system (§7.2.1) or in a database (§7.2.2). </p>
</blockquote>
<p>We're all familiar with packages stored in file syste... | java | [1] |
3,223,448 | 3,223,449 | Difference between simple html img tag running as a server control as opposed to an asp.net Image and security? | <p>If all I want to do is just change an image dynamically, then is an img html tag with the runat="server" attribute sufficient over the asp.net Image control? My main concern is security. For example, I am also curious if using html anchor tags with the runat="server" as opposed to the asp.net HyperLink control rai... | asp.net | [9] |
4,919,146 | 4,919,147 | Uncaught TypeError: Cannot set property '0' of undefined " | <p>i'm getting the error </p>
<blockquote>
<p>Uncaught TypeError: Cannot set property '0' of undefined</p>
</blockquote>
<p>for some reason in this line </p>
<pre><code>world_map_array[i][z]="grass.gif|ongrass.gif|collision.gif|above.gif";
</code></pre>
<p>Why is this happening?</p>
<p>thanks for any help</p>
<... | javascript | [3] |
3,255,776 | 3,255,777 | Write directly to screen with c++ | <p>Hello I am new to c++ and am wondering where to go about looking to print directly to the screen? For example the HUD interface that appears on laptops when you change the volume. I'm not really looking for any fancy graphics, just, say, a variable or info from a file.</p>
<p>I've tried googling but havn't come up... | c++ | [6] |
2,734,714 | 2,734,715 | Android application(.apk files) updating for an existing app in Google play | <p>At present I am having four .apk files for an android application with different version code and version 1.0 . Now I want to update my app with same four .apk files but there are now some changes in the manifest file for each apk. I a using same certificate key(existing one) and different version code with 1.1 vers... | android | [4] |
3,174,869 | 3,174,870 | Java switch constant expression... Is there any clever way to get this to compile? | <p>I'm returning to Java dev after many years away from it. Is there anyway to get this code to compile?</p>
<pre><code>class Mpeg4
{
public static final int FourCC2Int(char aA, char aB, char aC, char aD)
{
return (aA << 24) | (aB << 16) | (aC << 8) | (aD);
}
publ... | java | [1] |
3,505,895 | 3,505,896 | Associate an element placed out of tab with tab items | <p>I have a tab script that works:</p>
<p><a href="http://jsfiddle.net/fmqeh/8/" rel="nofollow">http://jsfiddle.net/fmqeh/8/</a></p>
<p>With click on ".tab" items, ul.tab li items has class "actives". But with click on </p>
<pre><code><a class="bdn" href="#tab2">Go to Tab 2</a>
</code></pre>
<p><code>&l... | jquery | [5] |
3,475,394 | 3,475,395 | How to get value from a label in tableviewcell? | <p>I have a tableview which contains some text and I have a label inside tableviewcell as subview, in the label there is also some values. My question is, when I tap the cell I want to get the label value, I know how to get a cell value when tapping the cell but I need to get the label value, my code for getting the ta... | iphone | [8] |
791,020 | 791,021 | Stopping PHP script putting URL's in address bar? | <p>I have a script that pulls in meta data from a list of URL's but when I try to out too many it it says URL is too long and wont run.</p>
<p>My question is how can I stop this from happening?</p>
<pre><code><?php
ini_set( 'default_charset', 'UTF-8' );
error_reporting(E_ALL);
//ini_set( "display_errors", 0);
func... | php | [2] |
1,363,873 | 1,363,874 | Android: Programmatically change android:name attribute for Application and BroadcastReceiver | <p>Is it possible to programmatically change the <code>android:name</code> attribute in code for Application and BroadcastReceiver? I would like to change the name of my App icon and Widget names programmatically, in order to reuse our existing localization infrastructure.</p>
| android | [4] |
985,619 | 985,620 | android minesweeper code | <p>I am trying to make an application for android(minesweeper) My problem is how to build the mines and how they are placed in the buttons . the interface is 5x5(25 button and 1 for new game)</p>
| android | [4] |
5,080,332 | 5,080,333 | Formulating my div objects in such a way that it resembles a sine wave | <p>So the basic idea is that I have an array of 8 div rectangles with a width of 30 px and a random height through Math. rand. Right now I'm trying to arrange them such that they form a sine wave pattern. I know I have to use Math.sin somewhere, but I have no clue as to go about it. Any help with this issue will be gre... | javascript | [3] |
1,910,588 | 1,910,589 | Including huge string in our c++ programs? | <p>I am trying to include huge string in my c++ programs, Its size is 20598617 characters , I am using <code>#define</code> to achieve it. I have a header file which contains this statement</p>
<pre><code>#define "<huge string containing 20598617 characterd>"
</code></pre>
<p>When I try to compile the program I... | c++ | [6] |
1,388,420 | 1,388,421 | Are classes necessary for creating methods (defs) in Python? | <p>Are classes necessary for creating methods (defs) in Python?</p>
| python | [7] |
4,430,525 | 4,430,526 | No width/height set for items. This will cause an infinite loop. Aborting | <p>I am using jcarousel, and on window resizing I am getting the error:</p>
<blockquote>
<p>jCarousel: No width/height set for items. This will cause an infinite
loop. Aborting...</p>
</blockquote>
<p>How can I avoid this error?</p>
| jquery | [5] |
2,598,795 | 2,598,796 | Android - Layout Height not updating | <p>I have a Scrollview inside that i have a LinearLayout. LinearLayout has some views.
For ex:- My LinearLayout height is 100.
After i removed all views from LinearLayout also i get the same height as 100.
How to update the current height. That is 0 when no views is present.</p>
<p>My code:</p>
<pre><code><ScrollV... | android | [4] |
3,585,539 | 3,585,540 | Breakout of If/Else | <p>I have an if else statement such as:</p>
<pre><code>if (IsContactMatch(p.Email, "emailaddress1"))
{
addContact(p, lService, businessUnit, marketSegment, campaignSource, Evaluation);
}
else if (IsContactMatch(p.Email, "emailaddress2"))
{
addContact(p, lService, businessUnit, marketSegment, ca... | c# | [0] |
1,228,396 | 1,228,397 | jQuery Plugin development Events Handlers | <p>I'm trying to learn to develop jQuery plugins. I readed the base tutorial on jQuery site, and try to understand how it works and how structure the plugin.</p>
<p>I did some fast test, but i'm stuck now and i don't know how to get past.</p>
<p>Here is the code:</p>
<pre><code>var myElement = $("#Foo");
var myButto... | jquery | [5] |
4,216,506 | 4,216,507 | Bindingsource error value does not fall within the expected range | <p><img src="http://i.stack.imgur.com/IKR3S.jpg" alt="enter image description here">I am trying to add BindingSource to my default.aspx. In properties window, when I click on triangle for datasource, a message box appears saying </p>
<p>Value does not fall within the expected range</p>
<p>Why is that? How can I set... | asp.net | [9] |
2,397,017 | 2,397,018 | How to set one select box equal to another? | <p>I have two identical select boxes (aside from their names, of course), and I need to have the value of the second select box be set equal to the value of the first when a checkbox is checked. Here's part of my code:</p>
<pre><code><form id="theForm" name="theForm">
<select name="stateSelect" id="stateSele... | javascript | [3] |
4,096,592 | 4,096,593 | copy std::map<int, vector<int>> to std::map<std:string, vector<int>> | <p>Can we copy contents one one map to another map with different type of key?
<code>copy std::map<int, vector<int>> to std::map<std:string, vector<int>></code> </p>
| c++ | [6] |
34,118 | 34,119 | How to connect facebook with c# to get friends birthdays | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5754124/connect-to-facebook-and-working-with-api">Connect to facebook and working with api</a> </p>
</blockquote>
<p>I have been trying to connect with c# to my facebook account but i don't know how to go by it<... | c# | [0] |
2,834,813 | 2,834,814 | PHP from CMD - 'C:\php\php_openssl.dl l' - The specified module could not be found | <p>First time trying to run a PHP script from CMD. When the script is run in the browser, it runs fine. But I get this error in the CMD.</p>
<pre><code>PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\php_openssl.dll' - The specified module could not be found.
in Unknown on line 0
PHP Fatal error: ... | php | [2] |
2,354,858 | 2,354,859 | Simpler way to check and call overloaded method | <pre><code>private void SomeMethod(DerivedA something) {...}
private void SomeMethod(DerivedB something) {...}
private void SomeMethod(DerivedC something) {...}
BaseClass bc = somevariable;
if (bc is DerivedA) Somemethod(bc as DerivedA)
else if (bc is DerivedB) Somemethod(bc as DerivedB)
else if (bc is DerivedC) Some... | c# | [0] |
4,927,053 | 4,927,054 | creating an initialized string in java given input parameters | <p>is there a nice way for creating a string initialized with a number of characters given an int (counter) and the character to set.
Simply put I would like a method that returns "#,#,#,#,#" when passed 5 and # as parameter.</p>
<p>Any ideas?</p>
| java | [1] |
2,978,904 | 2,978,905 | detecting browser scrolling | <p>How can I know when the user has scroll on the screen?</p>
| javascript | [3] |
831,698 | 831,699 | Where can i learn ASP.NET | <p>I'm quit new to web programming. I know C# well, I've coding in C# for two years and when I decided to get familiar with web programming I was advised to start with ASP.NET as I knew C#, so where can I do that. Can anyone suggest anything? And which one is better classic ASP.NET or Web Form or whatever it's called o... | asp.net | [9] |
4,453,619 | 4,453,620 | How to return a list of strings that is a certain length? | <p>What I'm trying to do is create a program that returns a list of strings that are a certain length. I have a program made but I feel that it's extremely off</p>
<pre><code>def lett(lst,n):
res = []
for a in range(1,len(lst)):
if a == n
res = lst[a]
return res
</code></pre>
<p>what... | python | [7] |
561,289 | 561,290 | Increasing the size of array creates some problem | <p>I tried to check, what is the largest size of array, which can be created in CPP. I declared a "int" array and kept increasing the array size. After 10^9 the program started crashing, but there was a serious error for array of size 5*10^8 and more(even when program did not crash). The code used and the problem is fo... | c++ | [6] |
2,000,622 | 2,000,623 | having problems to import javax.servelt | <p>I am trying to import this package (javax.servelet.*;) but netbeans is saying that the package does not exist. Does anyone know what might be the problem?
Thx.</p>
| java | [1] |
5,903,011 | 5,903,012 | How can I protect my site from being leeched? | <p>I am using the <code>header</code> function of PHP
to send the file to the browser with some small code. Its work well
and I have it so that if any one requests it with a referer other than my site
it redirects to a page first.
Unfortunately it's not working with the internet download manager.</p>
<p>What I want to... | php | [2] |
4,421,425 | 4,421,426 | C++ -- How to overload operator+=? | <p>Given the following code snippet,</p>
<pre><code>class Num
{
public:
Num(int iNumber = 0) : m_iNumber(iNumber) {}
Num operator+=(const Num& rhs)
{
this->m_iNumber = (this->m_iNumber + rhs.m_iNumber);
return *this;
}
private:
int m_iNumber;
};
int _tmain(int argc, _TCH... | c++ | [6] |
1,852,470 | 1,852,471 | how to traverse a grid of numbers using AB-pruning in C++? | <p>Firstly I would like to accept that it is a homework question , but then I know how to code AB-pruning from the algorithm of it . The problem is how to apply it on a grid of numbers where the game can go on in any direction (right , left , up and down ) , thus how will be the tree formed . </p>
<p>Sorry for being a... | c++ | [6] |
4,517,579 | 4,517,580 | navigation Controller button left | <p>In my application, i have some leftBarbutton of the navigation bar set to " retour" and some others set to "back" i would like to set all my buttons to "retour", how to do this please ? i have spend many hours to dos this.</p>
<p>thanks </p>
| iphone | [8] |
5,673,647 | 5,673,648 | how can I get Expiration Date of intermediate Certificate and trusted Root Certificate by C# code? | <p>how can I get Expiration Date of intermediate Certificate and trusted Root Certificate by C# code? I need to get data about certificate in internet Option (-> content -> certificates);</p>
| c# | [0] |
4,830,552 | 4,830,553 | Reverting back JQuery from noConflict mode to its original state | <p>How can I revert back jQuery from noConflict mode to standard mode.</p>
<p>I would like to use two versions of JQuery on one side.</p>
<pre><code><script type="text/javascript">
window.jqSite = jQuery.noConflict(true);
</script>
<script type="text/javascript" src="jquery.new.js" charset="utf... | jquery | [5] |
5,377,046 | 5,377,047 | When to use Server.Transfer or Response.Rewrite? | <p>I found many topics on <code>Server.Transfer</code> VS <code>Response.Redirect</code> but none of them explained about the difference between the Server.Transfer and Response.<strong>Rewrite</strong>.</p>
<p>As far as I know, they use the same type of method for navigating the user: So what is the difference betwee... | asp.net | [9] |
5,300,167 | 5,300,168 | share data between two separated applications in iPhone | <p>im developing two separted applications but there is a plist file for one of those app contains data that i need it on the other one .. is there is anyway to get data ? in case yes please show me some sample code .. and what about the NSUserDefault could it be useful ?</p>
| iphone | [8] |
4,175,986 | 4,175,987 | How to convert a Persian date into a Gregorian date? | <p>I use the function below to convert Gregorian dates to Persian dates, but I've been unable to write a function to do the reverse conversion. I want a function that converts a Persian date (a string like "1390/07/18 12:00:00") into a Georgian date.</p>
<pre><code>public static string GetPdate(DateTime _EnDate)
{
... | c# | [0] |
835,623 | 835,624 | How to display a "loading..." dialog? | <p>I would just like to display something like a dialog (but dialogs are modal only, right?)</p>
<p>when my activity is loading data in onCreate()</p>
<p>and to dismiss this "dialog" when complete.</p>
<p>Just to inform the user that data is loading.</p>
<p>How can I do this easily?</p>
<p><em>I do not want the us... | android | [4] |
2,377,721 | 2,377,722 | Pull value from table | <p>Hello I have the following on a page and I would like to pull the value: 36424. the value will change thus Im trying to create a function that will pull it when i call on the function.</p>
<pre><code> <table cellspacing="0" cellpadding="3" rules="cols" border="1"
id="OSDataCount" style="color:Black;bac... | javascript | [3] |
4,250,225 | 4,250,226 | How to change a class's content using jQuery | <p>Here is the div element on my page:</p>
<p></p>
<p>How can I change a class's content?</p>
<p>So from existing which is: class="jcarousel-next jcarousel-next-horizontal"</p>
<p>to class="jcarousel-next jcarousel-next-horizontal jcarousel-next-
disabled jcarousel-next-disabled-horizontal"</p>
<p>Do I need to com... | jquery | [5] |
462,576 | 462,577 | Touch inputs not work after restart of android froyo with locking applicaion | <p>I have developed locking application(kiosk mode) for the android mobile.Its working propely on android honeycomb and ice cream sandwich version.
IF I set " category android:name="android.intent.category.DEFAULT" " in androidManifest.xml file then touch inputs not work after restating froyo 2.2 tablet.</p>
| android | [4] |
2,520,374 | 2,520,375 | I received auth error (CODE 200) with Liberty Reserve API in my Java program, but using correct data. What it is can be? | <p>I downloaded API interface from offical web site. When I try to load balance, or account name - I recive auth erorr, but account data 100% is right.</p>
<p>I found information about some API bugs. It is happen time on client is not equal with time on server. When I synch time on my PC, but it is not solved the prob... | java | [1] |
518,242 | 518,243 | Check the content on change with java | <p>How to get the content of a site if it changes ?For example i have a select box, and when i change the result i want to get that changet result, without to rerun the application in java. I want that thing to be in core java.</p>
| java | [1] |
2,323,705 | 2,323,706 | Android-Command to run dmtracedump | <p>how to run dmtracedump in android.what is the exact command to run it in linux.</p>
| android | [4] |
1,432,950 | 1,432,951 | How to redistribute aspnet_regsql.exe? | <p>I am writing a setup program for my ASP.NET web site, and I need to incorporate the aspnet_regsql tool for registering/unregistering the membership/roles tables into my database.</p>
<p>If I bundle this with my setup, what are all the dependent files I need to include to ensure it all works?</p>
<p>Or is it better... | asp.net | [9] |
2,015,916 | 2,015,917 | If Statement Post Formats: No post format selected | <p>I'm working with post formats, most of my code looks similar to this:</p>
<pre><code>if ( has_post_format( 'standard' )) {
echo '<?php get_sidebar(); ?>';
}
if ( has_post_format( 'aside' )) {
echo 'this is an aside';
}
if ( has_post_format( 'chat' )) {
echo 'this is the video format';
}
</code></pre>
<... | php | [2] |
5,994,898 | 5,994,899 | What should be the Roadmap for JAVA EE | <p>I have done Java SE and want to start JAVA EE. But i am very confused, from where i have to start .So please tell me the roadmap from where to start Java EE ?</p>
| java | [1] |
5,185,769 | 5,185,770 | Best way to make a remote database driven iphone application | <p>I have a school project that i think i can do with the concept of secure database driven application , can anybody help me how to do that because i am confused with method will be best and secure. Tutorial link will be good</p>
| iphone | [8] |
4,896,644 | 4,896,645 | How to resize Image to specific size in android layout? | <p>I am trying to create a image button and I want to give the specific width and height to it, but my image size 512 x 512 and when activity starts layout is distorted because of the image.</p>
<p>Is there anyway I can resize it to some specific size? </p>
<pre><code> <But... | android | [4] |
2,136,178 | 2,136,179 | iscroll plugin usage in desktop browsers | <p>I wanted a scrollbar functionality for both ipad and desktop so i used iScroll-4. It works fine in ipad ,but in desktop when i drag the scrollbar down it goes up and it is noticed even in demo : <a href="http://cubiq.org/dropbox/iscroll4/examples/simple" rel="nofollow">http://cubiq.org/dropbox/iscroll4/examples/simp... | jquery | [5] |
380,518 | 380,519 | preg_match white space | <p>I would like to ask you about regular expressions preg_match have outlined below. I wish to express their approval to add white space. For one and the other expression. I know that white space is represented by a /s But I can not deal with it. please help</p>
<pre><code> 'string' => array(
'pattern' =... | php | [2] |
4,739,392 | 4,739,393 | How to stop adding a number when it reaches its limit | <pre><code><?php
session_start();
if(isset($_POST['sessionNum'])){
//Declare my counter for the first time
$_SESSION['initial_count'] = $_POST['sessionNum'];
$_SESSION['sessionNum'] = $_POST['sessionNum'];
}
if(!isset($_SESSION['sessionCount'])){
... | php | [2] |
5,178,149 | 5,178,150 | What is causing the NullPointerException in this line? | <p>The debugger says factory is null. What should I do? The factory is set to a plain .png of a black square.</p>
<p>package com.animation.learning;</p>
<pre><code>import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.grap... | android | [4] |
1,207,399 | 1,207,400 | jquery inserts in div | <p>i am having problem with jquery inserts i am using bbedit to inserts images links bold italic etc in my message box and jquery inserts the required html in the corresponding form but its not doing correctly. in below code </p>
<p>in the below code .bbedit-toolbar and .bbedit-smileybar is getting inserted by jquery ... | jquery | [5] |
2,187,996 | 2,187,997 | output query results in html | <p>i query a database for retreiving all the columns. I will probably have many rows. Im trying to output the query results into an html table. This is what i have so far:</p>
<pre><code> protected void Page_Load(Object sender, EventArgs E)
{
message.Text = "Welcome to your profile: " + CUser.LoginID;
... | asp.net | [9] |
2,453,750 | 2,453,751 | Doing something different with last sequence in a loop | <p>I am looking for the basic syntax of doing something different with the last itteration through a loop, using C#</p>
| c# | [0] |
5,653,924 | 5,653,925 | visual c# problems with return in a method | <p>I found this code to search for a registry key, it works fine if i set it to void and have it pop up a window using messagebox.show , and i see the key it found. but, if i change it to return a string, the compiler fails with "not all code paths return a value" if i try to set a string in the method called "reg_resu... | c# | [0] |
783,628 | 783,629 | Child XIB open over Main XIB | <p>i want to open new xib(view) over the Main xib(view).</p>
<p>i.e Main (Parent) xib when i click on button inside parent XIB. child xib open over parent xiB, and it should see parent xib.</p>
<p>is this possible?</p>
| iphone | [8] |
3,043,725 | 3,043,726 | View controller not being released by navigation controller for a long time? | <p>I'm doing some debugging and leak checking, so I've got some NSLog output in a few of my app's view controllers and such. Then I noticed one particular controller appears to be releasing quite a while after the others, even though the navigation controller is popping it off the view stack. Every other view is immed... | iphone | [8] |
4,131,128 | 4,131,129 | iPhone Event Kit : programmatically create a EKCalendar? | <p>I would like to insert events in my app, so they can be viewed in iPhone Calendar.app. But since I don't want to mix the user events with those from my app, I wanted to create a EKCalendar like "MyApp Events"</p>
<p>Is this possible ? How would you filter your events otherwise ?</p>
<p>Thanks !</p>
| iphone | [8] |
1,962,448 | 1,962,449 | FOUND_ROWS() Fails in PHP | <p>I need to retrieve the total count of records after executing a query. I tried like this</p>
<pre><code><?php
include_once 'common.php';
ini_set("mysql.trace_mode", "Off");
$sql ="get_list(0, 40, 'Name', 'DESC', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)";
$con = mysqli_connect("localhost", "root"... | php | [2] |
1,865,529 | 1,865,530 | get ordinal value for letter PHP | <p>I've been given a datafile where the original creator used alphabetical rather than numeric values to show order.</p>
<p>For example, if there's ten items, they'd be named:</p>
<pre><code>12342313A
12342313B
12342313C
12342313D
12342313E
...
</code></pre>
<p>I need to import these values into a mySQL table that h... | php | [2] |
4,716,145 | 4,716,146 | Java Question about Copy Constructor | <p>I hope you will help me understand this <code>Copy Constructor</code> I took more then 2 hours reading reading on websites and I didn't understand anything about it.</p>
<p>I know that a copy constructor is used to copy an object of a class. But I don't understand the code of the copy consturctor.</p>
<p>For Examp... | java | [1] |
1,537,944 | 1,537,945 | How are strings physically stored in Javascript | <p>What I am looking for is how strings are physically treated in Javascript. Best example I can think of for what I mean is that in the Java api it describes the storage of strings as: </p>
<p><code>String str = "abc";" is equivalent to: "char data[] = {'a', 'b', 'c'};</code></p>
<p>To me this says it uses an array ... | javascript | [3] |
286,261 | 286,262 | Restrict cut, copy and paste in clip board manager | <p>I want to add some security to clipboard manager. I have developed an application. Inside my application i am giving the option to copy and paste but i don't want the data copied inside my application to be available outside my application, but it is available in the history of clipboard. How do i solve this?</p>
<... | android | [4] |
3,227,701 | 3,227,702 | Java compare two map | <p>In java, I want to compare two maps, like below, do we have existing API to do this ?</p>
<p>Thanks</p>
<pre><code>Map<String, String> beforeMap ;
beforeMap.put("a", "1");
beforeMap.put("b", "2");
beforeMap.put("c", "3");
Map<String, String> afterMap ;
afterMap.put("a", "1");
afterMap.put("c", "333");... | java | [1] |
1,727,475 | 1,727,476 | Is it possible to change the anchornode of a textnode object? | <p>Here's my code: </p>
<pre><code>function moremagic()
{
var txt = '';
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.