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 |
|---|---|---|---|---|---|
5,487,264 | 5,487,265 | Hide Registration And Login Form When User Is Logged In? | <p>Hide Registration And Login Link When User Is Logged In?</p>
<p>I am new at PHP and I am having some difficulties.I have downloaded a login/register code. I also created a login/register link on my index page. What I want to do is to hide the Login/register links when I am logged on. How do I go about it?</p>
<p>T... | php | [2] |
697,012 | 697,013 | String to jQuery object, how to remove elements | <p>I'm trying to manipulate some html which is in a textarea (not part of the page) but I want to be able to perform jQuery functions on it.</p>
<p>Here I am trying to remove the div with the attr 'my_id' of 1234, but the resulting data remains the same?</p>
<pre><code>var data = "<div>something<div my_id='1... | jquery | [5] |
828,288 | 828,289 | I was able to open a command prompt from my Java program, How to run some exe in this command prompt using java code? | <p>I tried open a command prompt using java program, how to execute the some exe file in this command prompt using java code.</p>
| java | [1] |
4,525,441 | 4,525,442 | When does the C++ default assignment operator become unaccessible? | <p>If I define an own assignment operator, which has a different signature than the normally generated default assignment operator:</p>
<pre><code>struct B;
struct A {
void operator = (const B& b) {
// assign something
}
};
</code></pre>
<p>does the default assignment operator, in this case <code>operator = (... | c++ | [6] |
3,767,432 | 3,767,433 | Filtering text files in C# | <p>How do I just open files with the .txt extension, I want to my program to pop up an error message if the file is not a .txt file I want a code that can modify this code below</p>
<pre><code>private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog of = new OpenFileDialog();
of.ShowDialog();
t... | c# | [0] |
2,032,800 | 2,032,801 | What is quick way to check if ImageView has bitmap assigned? | <p>I need to quickly and safely check if an android.widget.ImageView currently has a Bitmap of non zero value attached. What is a quick way to do this. </p>
<p>Update my image view is set initially drawable set to "logo.png" so if I know that it is currently set to logo.png than I know that the bitmap has not yet be... | android | [4] |
5,302,381 | 5,302,382 | Get the name of a calling class without the use of Exceptions | <p>Yes, getting the class name by using an exception is a plausible solution, but I'm looking for something that is a bit more elegant. </p>
<pre><code>String className = new Exception().getStackTrace()[1].getClassName();
</code></pre>
<p>This will be used mainly for logging purposes and making sure my cache keywords... | java | [1] |
3,779,323 | 3,779,324 | Reading a series of input / output in Python | <p>For my app, I need to print out a series of outputs and then accepts inputs from the user. What would be the best way of doing this?</p>
<p>Like:</p>
<pre><code>print '1'
x = raw_input()
print '2'
y = raw_input()
</code></pre>
<p>Something like this, but it would go on for at least 10 times. My only concern with... | python | [7] |
1,652,905 | 1,652,906 | How to print DateTime object in yyyy-MM-ddThh:mm:ssZ format? | <blockquote>
<p><strong>Please see also:</strong><br>
<a href="http://stackoverflow.com/questions/1728404/date-format-yyyy-mm-ddthhmmssz">date format yyyy-MM-ddTHH:mm:ssZ</a> </p>
</blockquote>
<p>Could anybody help me to find a formatter to print DateTime object in the following way:</p>
<pre><code>2012-09-30... | c# | [0] |
5,956,358 | 5,956,359 | session_write_close equivalent for asp.net (Disable and Enable Sessions programmatically) | <p>I'm looking for a way to turn on and off session in asp.net in code programmatically.</p>
<p>In php this can easily achieved by using: <code>session_write_close</code> and then <code>session_start</code> function to enable it again.</p>
| asp.net | [9] |
4,401,497 | 4,401,498 | jQuery selector help | <p>Good Morning,</p>
<p>I am trying to write a selector that would select all rows that contain a span element that has a class of "cancelMenu".</p>
<p>Is either of these better than the other? Or is there an even better way to write it?</p>
<pre><code> $("span.cancelMenu").closest("tr");
$("tr > span.cancelMenu... | jquery | [5] |
2,432,057 | 2,432,058 | How do I simulate ctrl-F5 with jQuery? | <p>So the refresh should discard the cache, how to do it with jQuery?</p>
| jquery | [5] |
4,773,926 | 4,773,927 | getApplicationContext issue | <p>I have VideoApplication class which extends Application class. I have created my other java class's object in this class so that I can pass it through activities.</p>
<pre><code>public class VideoApplication extends Application {
private Client client;
public Client getClient(){
return client... | android | [4] |
2,750,866 | 2,750,867 | android application delete only one sms in the inbox | <p>hi friends
I am create delete sms
It will delete sms successfully but i want to delete only one sms.
It can possible if possible than how can do it.
If its code available please send me.
Please help me.</p>
<p>Thanks in advance.</p>
| android | [4] |
5,713,535 | 5,713,536 | How to programmatically set the length of a function | <p>The <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length" rel="nofollow"><code>length</code> property of functions</a> tells how long the 'expected' argument list is:</p>
<pre><code>console.log((function () {}).length); /* 0 */
console.log((function (a) {}).length); /* 1 */... | javascript | [3] |
1,079,234 | 1,079,235 | how to represent negative number to array of integers? | <p>I must convert string of 1324312321 to array of integers in java</p>
<p>this is fine. I could use integer parseint and string substring method </p>
<p>but how do I repesent -12312312 to my original array of integer.. </p>
<p>the fact that - is a char / string and convert to array of integer would alter the value ... | java | [1] |
5,194,498 | 5,194,499 | Pythonic way to fetch all elements in a dictionary, falling between two keys? | <p>I have a dictionary object, and I want to extract a subset of the dictionary (i.e. return another dictionary), which contains all elements of the parent dictionary where the key matches a certain criteria. </p>
<p>For example:</p>
<pre><code>parent_dict = {1: 'Homer',
2: 'Bart',
3: 'L... | python | [7] |
2,182,289 | 2,182,290 | Convert a string into a double, and a int. How to? | <p>I'm having trouble converting a string into a double.
My string has been declared using the "string" function, so my string is:</p>
<pre><code>string marks = "";
</code></pre>
<p>Now to convert it to a double I found somewhere on the internet to use word.c_str(), and so I did. I called it and used it like this:</... | c++ | [6] |
4,581,754 | 4,581,755 | Problem in enabling APC on PHP 5.3.6 | <p>I am having a problem in enabling the APC Cache. Here is my configuration.</p>
<pre><code>PHP 5.3.6
Apache 2.2.19
Windows 7
</code></pre>
<p>I have downloaded the php_apc.dll from below URl:
<a href="http://downloads.php.net/pierre/php_apc-20110109-5.3-nts-vc9-x86.zip" rel="nofollow">http://downloads.php.net/pierr... | php | [2] |
623,770 | 623,771 | Class method returns object from a class that uses methods/properties from the higher class. How? | <p>I'm trying to achieve a simple behavior in my code, but i can't think of a decent way of doing it. Take a look at what i'm trying to do: </p>
<pre><code>$db = new Database('mydb');
$db->createTable('sample');
$myTable = $db->getTable('test');
$myTable->insert($data);
$myTable->insert($data);
$myTable-&... | php | [2] |
696,452 | 696,453 | What would the equivalent of this be in jQuery? | <p>Hello just wondering if anyone knows what this would be in jQuery. Thanks in advance.</p>
<pre><code>function remix(random_num){
var limit = images.length;
var random_num1 = Math.floor(limit * Math.random());
var random_num2 = Math.floor(limit * Math.random());
var random_num3 = Math.floor(limit * M... | jquery | [5] |
3,869,150 | 3,869,151 | Display WordPress Post Content in 3 Columns | <p>How can I display WordPress Post Content in 3 Columns and in order using WP_Query(); ?</p>
<p>For example,</p>
<pre><code><div class="1column">
Post-1
Post-4
</div>
<div class="2column">
Post-2
Post-5
</div>
<div class="3column">
Post-3
Post-6
</div>
</co... | php | [2] |
5,936,366 | 5,936,367 | Android - Signing an apk | <p>Hi<br />
I have written a little program, by default, it is signed with debug certificate.
I checked the documentation at Android developer site, I don't know how to get the certificate and key, could someone advice me?</p>
<p>Thanks</p>
| android | [4] |
2,098,645 | 2,098,646 | JQuery hover addclass not working | <p>I am trying to use JQuery to change a picture inside of a nested li with an id of "logotest"</p>
<p>The classes I want applied are logotest1 and logotest2. Basically when the user hovers over the button, the picture is changed to a different one so the colors match. Here's a fiddle. Obviously the pictures aren't th... | jquery | [5] |
4,049,679 | 4,049,680 | Python string representation of binary data | <p>I'm trying to understand the way Python displays strings representing binary data.</p>
<p>Here's an example using <a href="http://docs.python.org/library/os.html#os.urandom" rel="nofollow">os.urandom</a></p>
<pre><code>In [1]: random_bytes = os.urandom(4)
In [2]: random_bytes
Out[2]: '\xfd\xa9\xbe\x87'
In [3]: r... | python | [7] |
1,994,951 | 1,994,952 | Click and drag to another button | <p>There is an app call DurionLite (free on iPhone) which plays a word game where letters are clicked and dragged into word construction slots to create words. As the dragged letter gets near the construction slots, the borders of the nearest construction slot is highlighted and if you then release the letter, it goes... | iphone | [8] |
629,496 | 629,497 | GPS current location | <p>I've been working on this code for some time,everything seems ok but my editor,eclipse keeps telling me to cast myManager. The code is as below,</p>
<pre><code>package com.gps.project;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import ... | android | [4] |
1,919,820 | 1,919,821 | C# virtual automatic properties omit get / set | <p>Is it ok to omit get or set in an automatic property when it is declared virtual?</p>
<p>I am referring a book on C# which shows the members of System.Exception as follows : </p>
<pre>
// Properties
public virtual IDictionary Data { get; }
public virtual string HelpLink { get; set; }
public Exception InnerExcepti... | c# | [0] |
1,105,443 | 1,105,444 | How to generate an random 8 character string that won't occur twice in jQuery? | <p>How do I generate a random string that is only 8 characters long, that will not occur twice in jQuery.</p>
| jquery | [5] |
3,852,047 | 3,852,048 | Keep only first n characters in a string? | <p>Is there a way in JavaScript to remove the end of a string?</p>
<p>I need to only keep the first 8 characters of a string and remove the rest. </p>
| javascript | [3] |
3,778,746 | 3,778,747 | What's the difference between == and ===? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/589549/php-vs-operator">php == vs === operator</a><br>
<a href="http://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php">Reference - What does this symbol mean in PHP?</a> </p>
</bl... | php | [2] |
4,635,083 | 4,635,084 | I want to know about this javascript function pattern | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4043647/what-does-this-function-a-function-inside-brackets-mean-in-javascript">What does this “(function(){});”, a function inside brackets, mean in javascript?</a><br>
<a href="http://stackoverflow.co... | javascript | [3] |
342,223 | 342,224 | Python string list to string | <p>I am doing something painfuly simple, and rather than looping over the list, and += everything, I was wondering if there was a "sleezier" way to do it.</p>
<p>Simple concept I have something like:</p>
<pre><code>some_string_array = [ "s", "t", "a", "c", "k", " ", "o", "v", "e", "r", "f", "l", "o","w" ]
some_strin... | python | [7] |
4,405,065 | 4,405,066 | Where can I store User Permissions for my website? | <p>Hai,
i am trying to store the user permissions for my web site.But I am little bit confused with xml and Database. For each user in site have different permissions. Have u ever faced this issue? for Example , if my site is a shopping site , for a local user , the report menu need not to display. A sales man need n... | asp.net | [9] |
820,340 | 820,341 | How to pick a key with the highest value | <p>heres an example code of what I have</p>
<pre><code>my_dict = {'a':2, 'b':5, 'c':3, 'd':8, 'e':3}
</code></pre>
<p>How could i make it print the key that has the highest value. For example in the above code it would print:</p>
<pre><code>d
</code></pre>
<p>thats all i would want to be printed, just the key that ... | python | [7] |
4,128,377 | 4,128,378 | Dismiss modal view causes issue with ShareKit Email and Twitter | <p>I have a pop up game view and then a Sharekit on top of that.
When I send mail through ShareKit Email or Twitter and then did dismiss the game view
through [self dismissModalViewControllerAnimated:YES], next time the game view brought up again, then sharekit Email and Twitter view have issue popping up.</p>
<p>I t... | iphone | [8] |
37,658 | 37,659 | Am i evaluating the right way? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points">Undefined Behavior and Sequence Points</a><br>
<a href="http://stackoverflow.com/questions/949433/could-anyone-explain-these-undefined-behaviors-i-i-i-i-i-etc">Could... | c++ | [6] |
3,404,769 | 3,404,770 | httpsessionstate in firefox | <p>I have an ashx file (http handler) with my asp.net app. Now it seems like that every time I store a value in session state it does not really get stored, meaning if I click a button then check for the session it always returns null. However it is working fine in IE8. can anyone please suggest?</p>
| asp.net | [9] |
5,444,857 | 5,444,858 | Directions in mapView | <p>In my mapView I have an overlay in my current location but I need to insert a direction to an editText and that my map add an overlay there. </p>
<p>Is this possible?</p>
| android | [4] |
4,119,960 | 4,119,961 | javascript regular expression validation for domain name? | <p>how to check a valid domain name and username with regular expression in javascript?</p>
<pre><code>-<script>
function validate()
{
var patt1=new RegExp(/^[a-zA-Z0-9._-]+\\[a-zA-Z0-9.-]$/);
var text= document.getElementById('text1').value;
alert(patt1.test(text));
}
</code></pre>
<p>but it does not ... | javascript | [3] |
27,412 | 27,413 | Writing file to remote PC | <p>I am running some experiments on an embedded platform. The problem is, that the memory ressources are limited; hence, I am thinking of writing the output into a file on a remote
machine. I am wondering what is the best way to realise that? I am using C++ on the embedded platform. I was thinking of communicating over... | c++ | [6] |
5,983,489 | 5,983,490 | PHP rename function problem | <p>I'm trying to move a file on my server from one folder to another using the php rename function, but I'm getting this error</p>
<blockquote>
<p>Warning: rename(/home/pramiro/public_html/new/cipri/adauga/tmp/Koala.jpg, /home/pramiro/public_html/new/images/memo/Koala.jpg) [function.rename]: No such file or director... | php | [2] |
513,758 | 513,759 | argv listing directory files | <p>this very simple code is driving me nuts.</p>
<pre><code>import sys,string,socket
maquina = sys.argv[1]
texto = string.join(sys.argv[2:], " ")
print '['+maquina+']'
print '['+texto+']'
mysock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
if maquina == '*':
for ip in range(18,254):
mysock.se... | python | [7] |
3,531,185 | 3,531,186 | How to decode eval( gzinflate( base64_decode( | <p>I have this code injected in my site. How can I decode the trailing string? I need to know what happened and what is the code behind it.</p>
| php | [2] |
5,672,162 | 5,672,163 | How do I get PHP to display a user picture if you have one within a blog post? | <p>I have a script that can disply user pictures but I want to have it now so if you don't have a picture it displays a default one.</p>
<p><strong>CODE</strong></p>
<pre><code>if (file_exists($displayuserimage)) {
$displayuserimage = '<img src="upic/'. $posts['userid'].'.jpg" width="50px" height="50px" borde... | php | [2] |
2,965,362 | 2,965,363 | help with error | <p>I am reading a row from a data table and trying to insert into a database. In the row, some cells/columns doesn't contain a value. So, I am trying to check initially whether the row contains a value or not and then insert into database. Here is my code,</p>
<pre><code>string barcode = null;
string itemName = null;
... | c# | [0] |
782,916 | 782,917 | Android SQLiteDatabase.delete method wouldn't delete using where args | <p>Watch how i call the <code>db.delete</code> method; if I do the following a record is successfully deleted:</p>
<pre><code>public void deteleProfile(Long id) throws SQLException {
SQLiteDatabase db = helper.getWritableDatabase();
Integer i = db.delete(ProlificDatabase.TABLE, "_id=?", new String[] {i... | android | [4] |
3,900,336 | 3,900,337 | Programatically add view one below other in relative layout | <p>I want something like this programatically:</p>
<pre><code>view1 | view2
view3 | view4
----------------
view1 | view2
view3 | view4
----------------
view1 | view2
view3 | view4
---------------
...........
......
which keeps repeating
--------------
</code></pre>
<p>I don't want to use ListView.</p>
| android | [4] |
5,028,930 | 5,028,931 | jQuery - Wrap div to a specific element | <pre><code><div id="last"></div>
<p id="text">text</p>
<a id="link" href="xxx">link</a>
</code></pre>
<p>Suppose I have the code above, how can I wrap a <code><div></div></code> to the a element, and insert it after div element, the result should be:</p>
<pre><code><... | jquery | [5] |
3,996,220 | 3,996,221 | calculate number 3 places ahead when at the end of looped sequence | <p>Lets say I have a sequence of 8 items, these loop such that after 8 comes 1.</p>
<p>1, 2, 3, 4, 5, 6, 7, 8</p>
<p>If the selected item is number 7 how do I get the number three places ahead, ie: 2 ?</p>
<p>I have:</p>
<pre><code>var total; // (total number in sequence)
var pos; // (current position number)
if (... | javascript | [3] |
4,044,592 | 4,044,593 | How do I get the current URL and then get the last words | <p>I want to get the url I'm on and then get what's after the =</p>
<p>For example if I were on:
<a href="http://chusmix.com/?s=pizza" rel="nofollow">http://chusmix.com/?s=pizza</a></p>
<p>It should echo pizza</p>
| php | [2] |
2,020,615 | 2,020,616 | jquery prevent the onclick event of a tags with specified class name | <p>this is the code I have:</p>
<pre><code> $('a').on('click', function(e) {
e.preventDefault();
});
</code></pre>
<p>but this stops every link from working, I need it to be specific to the link that have a class of the name : "prevent"</p>
<p>for example : <code><a class="prevent" href="#link"> <... | jquery | [5] |
3,055,897 | 3,055,898 | charCodeAt to return correct code for custom charcodes | <p>Would this be good way to return correct code for custom charcodes</p>
<pre><code>String.prototype._charCodeAt = String.prototype.charCodeAt;
String.prototype.charCodeAt = function( i , keycodes ) {
if( keycodes !== 'undefined' ) {
for( var j = 0; j < keycodes.length; j++ ) {
if( this[i] ... | javascript | [3] |
475,181 | 475,182 | Scroll to new content inserted | <p>Let's say I made an insertion of a post to a database, then, I don't want to reload the page to show it, so I append it, with jQuery..now...how could I do to scroll down to that post and do like an animate to show the user that's the new post inserted. Something like Facebook, when you open a notification of a comme... | jquery | [5] |
4,403,648 | 4,403,649 | Disable the save option from downloading window? In Asp.net? | <p>In web application, i am trying to disable or remove the save dialog , when user click the download option. Can you help me. Thank you. LIke Do You want to Open or save this file?
in this option i want only Open option not save option.</p>
| asp.net | [9] |
3,603,156 | 3,603,157 | Does it matter whether PHP code is in header or footer? | <p>Does PHP send over code as it processes the file, or does it compose the whole HTML response and then send it over? For example would it make any difference to move expensive PHP functions into the file footer on the server? </p>
<p>Also, would it make any difference if you were using <code>Transfer-Encoding: chunk... | php | [2] |
2,823,703 | 2,823,704 | Which jQuery selector is more efficient? | <p>I was just wondering if there is a reason why I should prefer this</p>
<pre><code><div class="identifying-class">bla bla</div>
<div class="identifying-class">bla bla</div>
var interestingElements = $("div.identifying-class);
</code></pre>
<p>over this</p>
<pre><code><div data-identifyin... | jquery | [5] |
4,484,901 | 4,484,902 | is startsWith faster than indexOf | <p>I am writing some java code where I branch off based on whether a string starts with certain characters while looping through a dataset and my dataset is expected to be large. </p>
<p>I was wondering whether startsWith is faster than indexOf. I did experiment with 2000 records and did find any difference.</p>
| java | [1] |
4,734,512 | 4,734,513 | How to Go to home screen when pressed on navbar button | <p>I want to add a rightbar button on navigation bar as home button..</p>
<p>When ever i tap on that button i want to go to firstcontroller,that is my home screen</p>
<p>Please help me in this</p>
<p>Thanks in advance</p>
| iphone | [8] |
3,333,208 | 3,333,209 | Change href value for a hyperlink | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/179713/how-to-change-the-href-for-a-hyperlink-using-jquery">How to change the href for a hyperlink using jQuery</a> </p>
</blockquote>
<p>I have a link that is being generated by a database that I need to change... | jquery | [5] |
2,104,067 | 2,104,068 | PHP: Get the Latest File Addition in a Directory | <p>How to get the latest file name, or the file path that is added into a directory?</p>
| php | [2] |
3,075,646 | 3,075,647 | How i can convert this (′) character to html entities using php? | <p>i want to make this character (′) html entity for storing in my database using php. I am using MySQL databse. I use
<br /><br /></p>
<pre><code>$string = "HTML5′s placeholder Attribute";
$newStr = htmlspecialchars($string, ENT_QUOTES);
echo $newStr;
</code></pre>
<p>the above code prints the following</p>
<pre><... | php | [2] |
4,690,526 | 4,690,527 | Python: line break in a textfile after specific word | <p>I have a textfile and there's just one line with 10.000 words.
Now I want to add a line break before a specific word ("Comment") appears and I also want to write this in a new textfile:</p>
<p>The textfile looks like: "Comment: Yeah, you're right Comment: That's very interesting Comment: really?</p>
<p>And the ne... | python | [7] |
4,981,860 | 4,981,861 | c++ error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘secret’ | <p>I do not understand where this error is located. I've spent a few hours on just trying to figure this out but no luck. Using g++ My compiler highlights class secret. </p>
<pre><code>#ifndef ENEMIES_H
#define ENEMIES_H
class secret {
private:
int damage;
int accuracy;
int hlth;
public:
int attack(int x);
int healt... | c++ | [6] |
4,052,674 | 4,052,675 | How to send mail only through email clients in my android application | <p>How to send mail through only email clients from my android application.</p>
<p>I am using the below code in my application but its <code>opeing messeges</code> and <code>bluetooth</code> also. I need only Email clients like <code>Gmail</code> or <code>yahoo</code>.</p>
<pre><code> Intent emailIntent = new Intent... | android | [4] |
55,585 | 55,586 | Java String attribute | <p>I came across this statement and i have never seen it before:</p>
<pre><code>String caseTag = tag.toLowerCase(), attrib;
</code></pre>
<p>I see that there is an Attribute class but i don't understand what the above statement does.</p>
| java | [1] |
1,991,244 | 1,991,245 | Java code not compiling with a SQL statement | <p>I am trying to delete a record from a database using the following code in Java</p>
<pre><code>try {
Statement st = db.con.createStatement();
con.stmt = st.executeUpdate("DELETE FROM item, WHERE Name=" + textField_name.getText());
</code></pre>
<p>however "stmt", (which is my PreparedStatement initialized ... | java | [1] |
5,585,711 | 5,585,712 | js get radio label text | <p><br>
i have this code : </p>
<pre><code><input type=radio name="vote_x" value="5">
<label for="vote_x">blabla</label><br>
</code></pre>
<p>how can i get the label value for radio with id of <code>vote_x</code> [using JS] ??</p>
<p>thanks</p>
| javascript | [3] |
1,207,014 | 1,207,015 | Inserting code in forums | <p>If we insert code in asp.net forums we have to put any additional tags in code for displaying??because so many sides my code is not coming in questions but if we are going to edit question the code is coming</p>
| asp.net | [9] |
4,796,099 | 4,796,100 | Add node to jQuery selection | <p>I have a function that applies a wrap to different elements (and does some other stuff that is not relevant for this question). I would like the function to return the globality of the wrap element as jQuery selection. I dont want to have to reselect them.</p>
<p>i have tried something like this:</p>
<pre><code>my... | jquery | [5] |
274,376 | 274,377 | FileDescriptor to open a file in Java | <p>I want to have a method whose purpose is this :</p>
<p><code>fileDescriptor openFile (filename)</code> : will open a file with a specific name (it will erase the content if it already exists) and put a “Beginning of Process” as a first line); return a file descriptor</p>
<pre><code>public FileDescriptor openFile(S... | java | [1] |
1,503,064 | 1,503,065 | PHP script ending early, no evidence of an error and timeout set to 0 | <p>time for another brain teaser of something I guess is quite rare.</p>
<p>Is there a hard limit in PHP? Or in Apache? I had a script running last night which lasted around 20 hours. Then it just stopped, mid script on a random line with no errors that I could find.</p>
<p>set_time_limit(0); was set in the script bu... | php | [2] |
3,272,858 | 3,272,859 | getting variable value from inside a callback function | <p>I am trying to pull a variable's value from a callback function.
What am I doing wrong here?</p>
<pre><code>var storyList = [];
var storyTemp ={};
// get list of all stories
db.getAllStoriesSet(function(err, reply) {
if (err) throw err;
else {
storyList = reply;
console.log("storylist inner... | javascript | [3] |
97,065 | 97,066 | jquery .append() not working | <p>I am trying to append some text to the dynamically created div. I am doing this inside the .each() fucntion. The problem the text is not getting appended. Can someone please help me with this. Here it is what I am trying to do</p>
<pre><code> $('<div class="window" id="window'+i+'" />')
... | jquery | [5] |
5,691,636 | 5,691,637 | PHP parsing XML with invalid character | <p>I am getting an xml file from a webservice.</p>
<p>Unfortunately the file contains character code 2 (\u0002), which breaks the parser.</p>
<p>So I'm trying to remove all character code 2's, but I get wierd results just when trying to do a simple string replace.</p>
<p>To test this, I created a php file named test... | php | [2] |
3,881,471 | 3,881,472 | please can anybody help me out how to do the Spell check using jquery | <p>I need to implement Spell Check for my application using jquery,</p>
<p>Please can anyone help me out about this?</p>
<p>thanks</p>
| jquery | [5] |
3,946,734 | 3,946,735 | Change Content like google? | <p>I'm trying to make a help page with a similar layout as <a href="http://support.google.com/plus/?hl=en" rel="nofollow">http://support.google.com/plus/?hl=en</a>. Could someone please give me some advice or example of the best way to get the new content list to load without having to reload the page.</p>
<p>If you l... | javascript | [3] |
393,131 | 393,132 | iPhone base64 encode image asynchronous download | <p>I have an app which requires downloading image asynchronously in base64 encoded string(server is returning the image in Base64 encoded format),I am using the AsyncImage view,but it seems that AsyncImageView library only accepts the url to download asynchronously.
Anyone having any idea how to go about this,if i will... | iphone | [8] |
6,007,031 | 6,007,032 | Detecting Mouse position in Firefox in javascript | <p>I'm trying to detect mouse position inside the element through on mouse move event but it does not work in Firefox.</p>
<pre><code>function mouseover_imageChange(imgid,imgArr) {
var x= event.pageX- jQuery("#"+imgid).offset().left;
var y= event.pageY- jQuery("#"+imgid).offset().top;
}
</code></pre>
<p>Any i... | javascript | [3] |
127,849 | 127,850 | Currency CultureInfo | <p>I need to display currency in a culture specific way we are currently supporting only english speaking countires but that might expand to another countries. We are implementing this quickly so I need a way of displaying a universal currency format for the time being until I can implement a culture specific. </p>
<p... | c# | [0] |
5,398,307 | 5,398,308 | invalid conversion from ‘int (*)(int)’ to ‘int’ error? | <p>I am learning C++ and one of the programs was for a random number generator.<br>
Once I wrote the program I got the following errors: </p>
<pre><code>dice.cpp: In function ‘int main()’:
dice.cpp:18: error: pointer to a function used in arithmetic
dice.cpp:18: error: invalid conversion from ‘int (*)(int)’ to ‘int’
<... | c++ | [6] |
2,401,692 | 2,401,693 | Explicit template specialization issue | <pre><code>template <class T>
class Test
{
public:
template<class U> void f(); //generic function
template<> void f<char>(); //Specialization for char.
};
template <class T>
template<class U>
void Test<T>::f() //Definition of generic function
{
}
template<>
... | c++ | [6] |
5,073,324 | 5,073,325 | Control '0' of type 'TextBox' must be placed inside a form tag with runat=server | <p>there is dynamic table that i created(on server-side), the cols is(irem,price, pic and textxbox),
when i try to add the textbox i getting the messege <strong>Control '0' of type 'TextBox' must be placed inside a form tag with runat=server</strong>
.</p>
<p>here is the code (case 4 is where i create the textbox ):</... | asp.net | [9] |
1,803,214 | 1,803,215 | ASP.NET - Dynamically created button | <p>I have added a dynamically created button in my Webform. But its click event is not working. Can anyone please explain why?</p>
<p>This is my code:</p>
<pre><code> Button save = new Button();
save.ID = "btnSave";
save.Text = "Save";
save.Click += new System.EventHandler(this.Save_Click);
Webform... | asp.net | [9] |
3,483,284 | 3,483,285 | How do I provide a download for existing Excel with PHP? | <p>I have a generated xls file on my server that I would like to push to the client for download but can't seem to get it working. Here is what I have so far:</p>
<pre><code>$xlsFile = 'test.xls';
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Ty... | php | [2] |
3,616,903 | 3,616,904 | how to write regular expression to validate a string using regex in C# | <p>I need to validate a user input based on condition. i wrote a regular expression to do so, but it's failing not sure why.
Can somebody point where i am making mistake?</p>
<pre><code>Regex AccuracyCodeHexRegex = new Regex(@"^[PTQA]((0|8)[01234567]){2}$");
</code></pre>
<p>This is what i am trying to validate(If th... | c# | [0] |
5,100,007 | 5,100,008 | Response.Redirect and IFrames | <p>I have a Main.aspx page and a Sub.aspx page.</p>
<p>The Sub.aspx page resides in my Main.aspx page via IFrame. So the IFrame contains / loads the Sub.aspx</p>
<p>In another Third.aspx completely unrelated I've got some code that needs to redirect back to Main.aspx but then there are some querystrings that need to... | asp.net | [9] |
877,316 | 877,317 | Javascript to replace innerText and not if its an attribute | <p>How to use Javascript to selectively replace the word called Rindan in he below text ,
but not if its in some attribute like img alt=="Rindan"
I want to replace the word Rindans which is an inner text and not if it is in attribute .</p>
<pre><code>`"<a href="http://edition.cnn.com/video/?hpt=hp_t1#/video/bestoft... | javascript | [3] |
2,731,121 | 2,731,122 | Running a PHP in the background while displaying another PHP | <p>Currently I have 2 PHP files. 1 is the user interface and another fetches data from the backend and inserts into the database.</p>
<p>Currently if I use the following in the UI php:</p>
<pre><code><html>
<body>
<form action = "test.php" name="form" method="post">
<input... | php | [2] |
5,128,073 | 5,128,074 | Convert a PHP String to a Keycode String | <p>I need to take a string and convert each character in the string to it's Keyboard code using PHP.</p>
<p>So for an example <code>Dave</code> would turn into <code>68,61,76,65</code></p>
<p>I have a client who insist on using one of those JavaScript scramblers which converts an Email into the keycodes, then the Jav... | php | [2] |
5,124,750 | 5,124,751 | Speeding up Java Program | <p>Sorry for the non descriptive title, I couldn't think of a way to ask the question.</p>
<p>I wrote a java program which involves two long discrete processes. The first creates a hashmap from a text file with about 400,000 lines; so as you can imagine this takes some time to do. The thing is, this textfile never c... | java | [1] |
5,643,023 | 5,643,024 | How to detect no child xml node using XmlReader? | <p>How to differenciate between the two nodes</p>
<pre><code><Header Name="ABC" />
and
<Test Test="AA">
Hello
</Test>
</code></pre>
<p>using XmlReader? The problem is that I am not been able to know whether a node contains child or not using <code>XmlReader</code>.</p>
| c# | [0] |
301,530 | 301,531 | calling jquery function from a dropdown list | <p>I have the following dropdown list box:</p>
<pre><code> <select name="DDLConditional1" size="1">
<option selected="selected">is equal to</option>
<option>begins with</option>
<option onclick="ShowBetween();">is between</option>
... | jquery | [5] |
3,828,365 | 3,828,366 | Why loop overwriting my file instead of writing after text? | <pre><code>i = 1 # keep track of file number
directory = '/some/directory/'
for i in range(1, 5170): #number of files in directory
filename = directory + 'D' + str(i) + '.txt'
input = open(filename)
output = open('output.txt', 'w')
input.readline() #ignore first line
for g in range(0, 7): #write n... | python | [7] |
1,066,788 | 1,066,789 | Check if value is multiple of 10 | <p>I want to check if a value is a multiple of a certain number, for example, multiples of 10, but I also want to be able to change it to whatever I want.</p>
<pre><code>if (directWinner == 10){
}
</code></pre>
| javascript | [3] |
3,149,770 | 3,149,771 | Why is __radd__ not working | <p>HI</p>
<p>Trying to understand how <code>__radd__</code> works. I have the code</p>
<pre><code>>>> class X(object):
def __init__(self, x):
self.x = x
def __radd__(self, other):
return X(self.x + other.x)
>>> a = X(5)
>>> b = X(10)
>>> a + b
Traceback (... | python | [7] |
5,775,662 | 5,775,663 | Find out client-side ID of HTML element created by .NET? | <p>How do I write some client-side script to access a HTML element when .NET has generated the element's ID at runtime?</p>
<p>At present I have this in my ASPX: </p>
<pre><code><asp:Content ContentPlaceHolderID="middle_area" runat="server">
<asp:Image ID="ImageBarChart" runat="server" />
</asp:Co... | asp.net | [9] |
3,593,020 | 3,593,021 | Android RSS reader | <p>I'm trying to develop an Android RSS Reader. I would like to use android.sax to read some information from a rss but I'm not sure how to do it. I need a tutorial about android.sax or some example about it. Can somebody help me please?</p>
| android | [4] |
3,422,782 | 3,422,783 | jQuery Event Propagation: fadeIn get call multiple times | <p>Here is my base case. If I click on <code>Text</code>, a text box will fade in, and put a focus on that text box. When I press Esc, the text box will disappear and the <code>Text</code> will fade back in. <a href="http://jsfiddle.net/FDjUm/" rel="nofollow">http://jsfiddle.net/FDjUm/</a>. I have two questions. <stron... | jquery | [5] |
329,643 | 329,644 | Fail to launch Application | <p>error: failed to launch '/Users/imobdevtech/Library/Developer/Xcode/DerivedData/timesync-ajuwdrwsixqrnodrkmfmwjpptbmq/Build/Products/Debug-iphoneos/timesync.app/timesync' -- failed to send the qLaunchSuccess packet</p>
<p>This is the error I get First time installing app into Devic.
It installs Perfectly but could ... | iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.