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,565,225 | 1,565,226 | Testing all Letters? | <p>I am working on a script and the script should read a text file and test to see if the specified letters(a,a,r,d,v,a,r,k) are on each line. Im having a problem as I am trying to check for 3 different a's instead of just one. My code is below:</p>
<pre><code>#Variables
advk = ['a','a','r','d','v','a','r','k']
textfi... | python | [7] |
1,248,964 | 1,248,965 | Can someone help me properly set-up jquery? | <p>This is what I have so far and for some reason the text just doesn't turn blue--></p>
<p>Testing.html:</p>
<pre><code><html>
<head>
<script src = "jquery-1.5.min.js" type = "text/javascript"></script>
<script src = "get_comments.js" type = "text/javascript"></script>
</head&g... | jquery | [5] |
5,856,550 | 5,856,551 | Android Database Creation | <p>i have created a class for creating database in android, but there are some compilation errors in this.....
I am not able to identify why these errors are coming.. My Code is</p>
<pre><code>public DbHelper(Context ctx) {
try {
db = ctx.openDatabase(DATABASE_NAME,null);
} catch (FileNotF... | android | [4] |
3,365,587 | 3,365,588 | Store score at the time of completing game & get data on HighScore button press in iphone | <p>I have done this code to store score.</p>
<p>But this is giving me the last added score only, not storing data every time on new index.</p>
<pre><code>-(IBAction)btnSaveScore:(id)sender
{
if(!dictWinData)
dictWinData = [[NSMutableDictionary alloc] init];
array = [NSMutableArray arrayWithObjects:tx... | iphone | [8] |
2,473,795 | 2,473,796 | Android how to get wifi signal strength and connection subType | <p>i i am checking network type by calling this function</p>
<pre><code> ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo Info = cm.getActiveNetworkInfo();
if (Info == null || !Info.isConnectedOrConnecting()) {
Log.i(TAG, "No ... | android | [4] |
2,880,468 | 2,880,469 | Copy BufferedImage to clipboard | <p>How do I store a BufferedImage into the system clipboard?</p>
| java | [1] |
5,922,864 | 5,922,865 | resignFirstResponder for numberpad | <p>There is a text field to enter PIN in my login form. When i press "login" button i call the following method:</p>
<pre><code>* (IBAction) loginBeforeAction:(id) sender {
[pin resignFirstResponder];
[progressView performSelectorInBackground:@selector(startAnimating) withObject:nil];
[self login]... | iphone | [8] |
2,938,797 | 2,938,798 | Unable to cast object of type 'System.Single[]' to type 'System.Double[]', why? | <pre><code>double[] vTessTriangles = (double[])swFace.GetTessTriangles(true);
double VTTx2 = vTessTriangles[2];
</code></pre>
<p>Why I get this <code>InvalidCastExpection</code></p>
<blockquote>
<p>Unable to cast object of type 'System.Single[]' to type
'System.Double[]'.</p>
</blockquote>
| c# | [0] |
5,879,223 | 5,879,224 | Python httplib2.Http not sending post parameters | <p>I have been trying to make an API request to Twilio using the httplib2 Http class and no matter how I try to setup the request, it doesn't send my post DATA. I know this, because I posted to a local URL and the post arguments are empty. Here is my code:</p>
<pre><code>_TWILIO_URL = 'https://api.twilio.com/2010-04-0... | python | [7] |
128,218 | 128,219 | What are the pitfalls of a Java noob? | <p>I've gone through a few Java questions on SO. And I must say the content here is <a href="http://stackoverflow.com/questions/457822/what-are-the-things-java-got-right">pretty well written</a> and the Java guys on SO can really pump out the answers.</p>
<p>But what I always found was Java answers for Java people. Wh... | java | [1] |
5,900,537 | 5,900,538 | php Syntax error at first property definition. Appears to be an environment issue. Any suggestions on how to fix? | <p>I am learning php and have put a very simple class definition on my host and am getting syntax errors at the first property definition.</p>
<p>See the first few lines below - the error is </p>
<blockquote>
<p><strong>Parse error</strong>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION ... | php | [2] |
23,226 | 23,227 | How to turn on speaker programmatically in android | <p>How to turn on speaker programmatically when incoming calls received and headphone attached on audio jack?</p>
| android | [4] |
3,492,206 | 3,492,207 | C++ Extension functions? | <p>Are there extensions for C++ like there are in C#?</p>
<p>For example in C# you can do:</p>
<pre><code>public static uint SwapEndian(this uint value)
{
var tmp = BitConverter.GetBytes(value);
Array.Reverse(tmp);
return BitConverter.ToUInt32(tmp, 0);
}
someuint.SwapEndian();
</code></pre>
<p>Is there ... | c++ | [6] |
4,100,675 | 4,100,676 | Javascript writing to window | <p>How do you print onto seperate lines like in Java with println? </p>
<pre><code><script language = "javascript">
document.write("Your name is:" + fullName);
document.write("You were born in:" + birthYear);
document.write("You already had your birt... | javascript | [3] |
759,206 | 759,207 | how to add icons beside app_name in android | <p>I need a help regarding an issue in android...</p>
<p>I have an application with a name "Example" which i declared it in string<code><string name="app_name">Example</string></code>and now i want to add some buttons/icons like search beside my app_name...</p>
<p>on emulator it should look in this format... | android | [4] |
2,467,192 | 2,467,193 | using PHP foreach loop to add ID's to table columns | <p>I am looking to add column IDs to a table created by a foreach loop like this. Help is appreciated!:</p>
<pre><code>echo "<h1>Table: {$table}</h1>";
echo "<table border='0'><tr>";
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))
{
echo "<tr>";
... | php | [2] |
1,229,219 | 1,229,220 | Changing background color for items of Spinner | <p>I am working on Android application.I am using Spinner control and added items to it.
Is there a way to change the background color of items in spinner.
<br> can any one help me in sorting out this issue.
<br>
Thanks in Advance,</p>
| android | [4] |
1,502,675 | 1,502,676 | Calculate number of pages which will print using Javascript window.print | <p>My Client requirement is to show to make a customized page print using window.print method of js.
major Issues are</p>
<p>How I can check how many pages are creating of letter size page when content is populated dynamically?</p>
<p>If content is choping at the end of page it may automatically transfer content to n... | javascript | [3] |
1,204,490 | 1,204,491 | Why deepcopy doesnt create new references to lambda function? | <p>Found this strange in python:</p>
<pre><code>class SomeClass():
def __init__(self):
pass
a = [SomeClass()]
b = copy.deepcopy(a)
</code></pre>
<p>Output:</p>
<pre><code>>>> a
[<__main__.Some instance at 0x10051b1b8>]
>>> b
[<__main__.Some instance at 0x10051b092>]
</code>... | python | [7] |
4,760,447 | 4,760,448 | I am having an "Illegal start of expression" error with user imput | <p>I am trying to get user input, however I am getting
<code>illegal start of expression</code> at:</p>
<pre><code>public static String askTheUser() throws IOException
</code></pre>
<p>Complete code:</p>
<p>Edit: I have made most of the changes you guys suggested so now I have this:</p>
<pre><code>import java.io.B... | java | [1] |
5,010,706 | 5,010,707 | Android ICS Youtube app(tablet) coverflow | <p>I'm looking for a control that most closely resembles the ICS tablet version youtube app's coverflow. The requirements are: 2-4 row coverflow(depending on the screen orientation), and rows must scroll together.</p>
<p><img src="http://i.stack.imgur.com/ydC7k.png" alt="enter image description here"></p>
| android | [4] |
2,914,940 | 2,914,941 | Best solution for getting referral information in PHP | <p>I am currently redoing some link structuring on a website. In the past we have used specific php files on the last step to direct the user to the proper place.</p>
<p>Example:</p>
<pre><code>www.example.com/action/go-to-blue.php
</code></pre>
<p>or</p>
<pre><code>www.example.com/action/short/go-to-red.php
www.e... | php | [2] |
1,196,024 | 1,196,025 | C# Timer run every 5th minute | <p>How can I run some function every 5th minute? Example: I want run sendRequest() only at time 14:00, 14:05, 14:10 etc.
Update:
Need to do it programmatically, in C#, application is windows service.</p>
| c# | [0] |
4,465,664 | 4,465,665 | How to center a jQuery popup title? | <p>I have this jQuery popup that I am invoking like this:</p>
<pre><code>$("#createprofilepopup").dialog( { title: 'Title text' , height: 490, width: 580 } );
</code></pre>
<p>But it appears aligned left. Is there a way to center the title? </p>
<p>Thanks!!</p>
| jquery | [5] |
1,128,943 | 1,128,944 | Get image src from java file android | <p>I have an imageButton :</p>
<pre><code>img = (ImageButton)findViewById(R.id.image3);
</code></pre>
<p>I wanted to check if this img has a specific image , if yes then it changes to another image. </p>
<p>How can I get and store the image resource and later can be used to compare with the current image source?</p... | android | [4] |
4,545,662 | 4,545,663 | PHP Post & Redirect | <p>I have the following code which checks the post for a "no" and if it exists prints and error or if not it redirects. It currently redirects everytime regardless of the fact the post array has 'NO' as a value.</p>
<pre><code>if($_POST["minRequirementsForm"] == '1') {
foreach($_POST as $key => $value) {
... | php | [2] |
2,348,520 | 2,348,521 | How to solve javax.crypto.IllegalBlockSizeException: data not block size aligned | <p>I am doing an assignment about use blowfish to do encryption & decryption in java.</p>
<p>I had added a provider, and get instance "Blowfish/ECB/NoPadding", but I still get this error when I do the encryption. </p>
<pre><code>Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
</cod... | java | [1] |
3,895,473 | 3,895,474 | Use cases for referencing to a constant variable | <p>I understand the reference variable concept. It's an alias to the other variable.</p>
<pre><code>int varA = 100;
int &varB = varA;
</code></pre>
<p>Here <code>varB</code> is a referring to <code>varA</code>, both pointing to same memory location. Changes to one variable reflect in the other. </p>
<p>Questio... | c++ | [6] |
2,829,476 | 2,829,477 | Parser Error Message: Ambiguous match found | <p>Im running a web application in visual studio 2008..
i got this error when particular page was loaded..
help me to proceed....
Thank u.....</p>
<blockquote>
<p>Server Error in '/PSS.NET' Application.<br>
Parser Error<br>
Description: An error occurred during the parsing of a resource required to service this ... | asp.net | [9] |
4,615,912 | 4,615,913 | String Constructor_networking | <p>One of the constructor defined in String class is <code>String(char chars[],int startindex,int *numChars*)</code>, but i came across this <code>String(p.getData(),0,p.getLength())</code>.</p>
<p><em>Note:p has reference of DatagramPacket Object.</em></p>
<p><strong>Since getData() returns byte array of data contai... | java | [1] |
1,537,653 | 1,537,654 | Encoding issue PHP-- special characters | <p>i have the url in my php code:</p>
<pre><code>echo "http://s7g1.scene7.com/is/image/LOREALDPP/?src=is{BLOREALDPP/dl-big?&$image-name=LOREALDPP/bad-mud-homme_illustration_HD&$text=test?$png-alpha$}&mask=is{BLOREALDPP/download-big}&&fmt=png-alpha";
</code></pre>
<p>When executed I got:( '{' becom... | php | [2] |
3,949,082 | 3,949,083 | Setting up a process to deal with GPS for multiple activities | <p>I am writing an application that uses GPS to give distance to a starting line and speed and direction to that line. I have GPS running fine in a test file I wrote that prints out latitude and longitude and time to my cell phone display but it is a single activity. I need to have my program do calculations in the b... | android | [4] |
2,111,495 | 2,111,496 | how to get the negative factors of a positive product with a sum | <p>I may not have explained this very well in the title simply because I don't really know how to explain it in the length a title has so I apologize for that. Anyways this is my current code:</p>
<pre><code>// Gets the product that is used to get the factors
cout << "Enter a number that you want to be factored"... | c++ | [6] |
1,552,616 | 1,552,617 | Header cannor be sent | <p>I got some error when I uploaded my site to server. The error is:</p>
<p>Cannot modify header information - headers already sent by (output started at.....)</p>
<p>My site works fine on my localhost. Whats the possible error?</p>
| php | [2] |
1,623,256 | 1,623,257 | Reading content from site in background using javascript | <p>Have been looking around for some time now and didn't seem to find a solution that worked for me.
I'm newbie regarding javascript (only done basic JAVA) but that haven't kept me from trying >D</p>
<p>I have to check whether a site exist before opening it. This is an example of a site not working:</p>
<p><a href="... | javascript | [3] |
4,839,288 | 4,839,289 | Append LinkedList to the end of another LinkedList? | <p>Let's say I have the following:</p>
<pre><code>LinkedList<int> list1 = new LinkedList<int>();
LinkedList<int> list2 = new LinkedList<int>();
list1.AddLast(1);
list1.AddLast(2);
list2.AddLast(1);
list2.AddLast(2);
</code></pre>
<p>As far as I know you cannot do the following;</p>
<pre><co... | c# | [0] |
3,842,923 | 3,842,924 | Invalid Conversion Error When Using Function Pointers in C++ | <p>So I have been trying and battling with this for a few hours now. I am relatively new to c++ but I read about function pointers and it looked pretty useful. Essentially, what I am attempting to do below is to pass two integer values to the function foo and then multiply it by 10. However, I keep getting the followin... | c++ | [6] |
1,236,895 | 1,236,896 | Image should not lose quality and add white spaces around the image | <p>Hi guys i have a bitmap with size 600*420 and i need to post the image in size 900*900..so the image is stretched.but i don't want it to be stretched i need that image to add white spaces and save the quality.</p>
| android | [4] |
5,233,521 | 5,233,522 | Matching files using python program | <p>I have to two files as follows</p>
<pre><code>File1
ids
CID5265
CID7263
CID9289
....
File 2
ids
CID7363 3.5e-06 -3837
CID5265 4.5 -938
CID9289 8.9 -9873
....
</code></pre>
<p>I want compare file1 with file2 to match any ids in file1 is present in file2 if yes i should print whole line as follows<... | python | [7] |
4,394,635 | 4,394,636 | How to post/get with asp:Button to another page and with custom data | <p>I have a simple button on the page:</p>
<pre><code> <asp:Button ID="generateIsp" runat="server"
style="float: right;"
Text="" SkinID="Classic"
PostBackUrl="../Handlers/ISPOutput.ashx" />
</code></pre>
<p>But <strong>ISPOutput... | asp.net | [9] |
2,688,692 | 2,688,693 | CLLocationManager updates location when user select location button | <p>In my application ,in initial lunch i have to used cllocationmanager class to find current location ([locationManager startUpdatingLocation];) using this method.After find a location i
fired this method ([locationManager stopUpdatingLocation];).</p>
<p>Now a user will move from one place to other place.It will auto... | iphone | [8] |
3,007,369 | 3,007,370 | Can't echo variable | <p>I'm thinking it's the smarty templates setup that is preventing me from echo'ing the $setlnk variable elsewhere on the page. Or, am i'm doing something else wrong. Is there another method I could use?</p>
<pre><code><?php
$setlnk = "<img src='/files/pvtexp.php?mid=" . $set[2] . "&iid=" . $set[3] . "&i... | php | [2] |
3,796,014 | 3,796,015 | Creating an array of a type depending on runtime | <p>... is what I want to do. I have the following code:</p>
<pre><code>...
int len = 0;
char c;
bool fp = false;
while (infile.good()) {
c = infile.get();
if (c == '\n') ++len;
else if (c == '.') fp = true;
}
if (fp == true){
float Ai[N];
... | c++ | [6] |
3,391,626 | 3,391,627 | Android force app to use mobile data channel | <p>I am doing some investigation on an app I am developing. The issue is the app requires connection to mobile data network so when wifi is on, it will not route properly since the servers are on the carrier network vs public network. Can a single app target mobile data while others fall back onto Wifi or is this som... | android | [4] |
2,652,677 | 2,652,678 | Convert python script to binary executable | <p>I wrote a number crunching python code. The calculations involved can take hours. Is it possible somehow to compile it to binary?</p>
<p>Thanks</p>
| python | [7] |
951,765 | 951,766 | 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] |
4,414,717 | 4,414,718 | trim of extra character from the dropdown box | <p>I have one text box in the User Interface where in user is asked to key in some input , which in turn i am saving in database , which finally i have to show in the dynamically populated dropdown list . since the user can type in any ways in the text box as in </p>
<ol>
<li>XXXXXX</li>
<li><p>XXXXXX
or </p>
<p>1.XX... | java | [1] |
3,714,065 | 3,714,066 | decode encode between String and byte in java | <pre><code>byte[] bytes = new byte[] { 1, -1 };
System.out.println(Arrays.toString(new String(bytes, "UTF-8").getBytes("UTF-8")));
System.out.println(Arrays.toString(new String(bytes, "ISO-8859-1").getBytes("ISO-8859-1")));
</code></pre>
<p>output:</p>
<pre><code>[1, -17, -65, -67]
[1, -1]
</code></pre>
<p>why???</p... | java | [1] |
1,411,354 | 1,411,355 | PHP Exchanging numbers for words | <p>I have the following code:</p>
<pre><code>for($n=1; $n<=100; $n++)
{
echo $n . '<br />';
}
</code></pre>
<p>How could I change it so it shows a word for:</p>
<p>multiples of three</p>
<p>multiples of three and five</p>
| php | [2] |
3,768,671 | 3,768,672 | PHP - read date results and add style at different | <p>I have the following set of results from a query:</p>
<pre><code>name date_added
---- ---------
dan 15/11/2012
jane 15/11/2012
ted 14/11/2012
larry 13/11/2012
corben 13/11/2012
</code></pre>
<p>These results are from a simple MySQL query and I display the results e.g... | php | [2] |
4,712,030 | 4,712,031 | browser starts , then closes quickly in Android Simulator | <p>I started the Android Emulator in Windows 7.</p>
<p>The emulator windows pops up. I can see the menu. I can see the icon of the browser.
I click on it. It starts up. The screen changes. I can see a white screen and the black stripe at the top. Then it closes quicly after 1 second. The same happens with Google Searc... | android | [4] |
5,496,418 | 5,496,419 | Leading zero in javascript | <p>Try this:</p>
<pre><code><script language="javascript">
var iTest=040;
alert(iTest);
</script>
</code></pre>
<p>Since when is 40 = 32?</p>
| javascript | [3] |
377,508 | 377,509 | How to use pythons map with a non-iterable and iterable set of parameters? | <p>To make a simple example, I don't care about the practicality, just the implemenation. Say I create some class with a few methods. I want to create a list containing whether or not they're callable. So I can take this example from:
<a href="http://stackoverflow.com/questions/34439/finding-the-methods-an-object-has... | python | [7] |
705,551 | 705,552 | Get the maximum time of a date | <p>How can I get the maximum time of a DateTime value selected from datetimepicker?
For example '08/21/2011 23:59:59'</p>
| c# | [0] |
5,338,827 | 5,338,828 | How to play two mp3 audio? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5026105/2-mp3-sounds-at-the-same-time-in-iphone">2 mp3 sounds at the same time in iphone?</a> </p>
</blockquote>
<p>Hi i am creating test application where i am using two mp3 audio file.One for the background mu... | iphone | [8] |
1,297,225 | 1,297,226 | Refreshing part of the DOM via jQuery | <p>Is it possible to refresh part of the DOM via jQuery?</p>
<p>I'm using drag & drop and when a div is dropped I need to update the dom so that dropped item new position is accessable via the dom.</p>
<p>BTW I'm not looking for any information with regards jQuery to drag and drop</p>
<p>So for example just refr... | jquery | [5] |
745,700 | 745,701 | Sharing variables acoss several python files | <p>I have tasked to modify a wx python gui based program which has several .py files.
I would like to share some variables defined in a.py and use them in b.py
The 10 -15 variables are of this form:</p>
<pre><code> Amode = [SINGLE]
Format = [A] etc...
</code></pre>
<p>I would like to use them in b.py.
How do I go a... | python | [7] |
2,429,280 | 2,429,281 | John Resig Advanced Javascript Question | <p>Im in a little over my head, but I was wondering if anyone can help me with this one:</p>
<p><strong>taken from: <a href="http://ejohn.org/apps/learn/#43" rel="nofollow">http://ejohn.org/apps/learn/#43</a></strong></p>
<pre><code>function highest(){
return arguments.slice(1).sort(function(a,b){
return b - ... | javascript | [3] |
4,184,199 | 4,184,200 | How to use different object in javascript on click? | <p>Using Javascript, I have two arrays called "array1" and "array2".</p>
<p>I set currentArrray to be array1. Later when user clicks on some button, currentArray switches to Array2 and back to array1 if I click on it again.</p>
<p>This way, whenever there is any part of the code that needs to use an array, I just use... | javascript | [3] |
2,833,963 | 2,833,964 | Android: 50dip is different size on different devices? | <p>My understanding of the density independent pixel, is that it will render as the same size regardless of the screen dpi and dimensions. I created an image button of with and height of 50dip. On my medium dpi Samsung Galaxy Tab, this button measures about 10mm x 10mm (measured with a ruler. On my large, hdpi Acer ... | android | [4] |
4,465,821 | 4,465,822 | Checking if character is a part of Latin alphabet? | <p>I need to test whether character is a letter or a space before moving on further with processing. So, i </p>
<pre><code> for (Character c : take.toCharArray()) {
if (!(Character.isLetter(c) || Character.isSpaceChar(c)))
continue;
data.append(c);
</code></pre>
<p>Once i examined the ... | java | [1] |
5,221,735 | 5,221,736 | How do i replicate 10060 ( WSAETIMEDOUT ) error in c++ socket programming? | <p>In Socket programming, i am getting an error 10060 while sending data using <strong>WSASend</strong>, Can anyone help to replicate the error in code.This error occurs after 3 or more hours of continuous sending of data.</p>
| c++ | [6] |
1,910,410 | 1,910,411 | typecasting in inheritance | <p>Given:</p>
<pre><code>class TestA {
public void start() { System.out.println(”TestA”); }
}
public class TestB extends TestA {
public void start() { System.out.println(”TestB”); }
public static void main(String[] args) {
((TestA)new TestB()).start();
}
}
</code></pre>
<p>What is the result?<... | java | [1] |
972,191 | 972,192 | min3d for Android | <p>I have just downloaded min3d framework for Android and tried to change the .3ds object and I</p>
<p>get IndexOutOfBundsException : Invalid index 0 , size is 0.Anyone else had the same problem?</p>
<p>Thank you.</p>
| android | [4] |
5,987,475 | 5,987,476 | Python (2.x) multiplication is not happening properly | <p>Here is the code ...</p>
<pre><code>a=4
b=8.0
if a and a >0:
a=a*int(b)
print "Value:",a
</code></pre>
<p>The desired o/p should be 32. i am also getting the same in python console. But the same code is present in my product where instead of 32 the out put is coming as 44444444 (eight fours) i.e whatev... | python | [7] |
5,349,538 | 5,349,539 | Best scaleable way to find many keywords in a large amount of text? | <p>Ever few minutes around 500 paragraphs are supposed to be submitted to the database in a table called "Content" (this number will go to over 2,500 in a few months).
There is another table called "Keywords" which has over 4,000 rows (and is expected to grow to over 10,000).</p>
<pre><code>Keywords
+------------+----... | php | [2] |
4,153,089 | 4,153,090 | Validate plugin and CK Editor? | <p>Before submitting my form I:</p>
<pre><code>CKEDITOR.instances.ckEditor.updateElement();
</code></pre>
<p>This copies the content of CKEditor to the text area it replaced (id of ckEditor, name of article).</p>
<p>Using validate plug in I have the following rules:</p>
<pre><code>rules: {
article: {
... | jquery | [5] |
1,860,338 | 1,860,339 | Back key behavior after up action | <p>Here <a href="http://developer.android.com/design/patterns/navigation.html" rel="nofollow">http://developer.android.com/design/patterns/navigation.html</a> is some tips about <strong>back</strong> and <strong>up</strong> navigation. It's quite clear what does <strong>up</strong> do on <a href="http://developer.andro... | android | [4] |
4,333,227 | 4,333,228 | get javascript data in a tweet | <p>On my website, client will type a message, says "John loves Gmail because..."
I have this message in javascript and I can display it dynamically. Now on the same page, I have a button twitter.
I would like to tweet this entire message
I know I can do in in php, but I don't refresh the page so I can't
Do you have any... | javascript | [3] |
1,148,397 | 1,148,398 | Trouble with Javascript object manipulation | <p>Let's say I have a JavaScript object that is made up of several key/value pairs of string keys and JavaScript objects.</p>
<pre><code>var obList = { key:{..}, key2:{..}, key3:{..}, ... }
</code></pre>
<p>And I construct a new set, obList2</p>
<pre><code>var obList2 = { key:{..}, key2:{..}, key3:{..}, ... }
</code... | javascript | [3] |
3,223,319 | 3,223,320 | Why put a constructor function directly into a variable? | <p>Im trying to set up a variable and pass it constructor function essentailly like an anonymous type in c# but javascript doesnt seem to like it...</p>
<pre><code>var aPerson = function Person(){
};
$(document).ready(function(){
Person.prototype.age = 22;
window.alert(aPerson .age);
});
</code></pre>
<p>Wh... | javascript | [3] |
4,536,735 | 4,536,736 | iPhone, Order UIImages Programatically | <p>So essentially I would like to add a UIImage programmatically to my interface, using:</p>
<p>[[self view] addSubview: myImage]</p>
<p>However, I would like to add the image BEHIND an existing image already present in the interface builder. Is there a method to accomplish this?</p>
<p>Thanks a lot!</p>
| iphone | [8] |
915,921 | 915,922 | hidden field usage | <p>what are the possible usage of hiddden field control of VWD in asp.net page</p>
| asp.net | [9] |
2,067,667 | 2,067,668 | returning member function display with string? C# | <p>So with this member function I'm suppose to "invoke the base class displayTime method and then add the time zone to the output message" </p>
<pre><code> public string DisplayTime()
{
//return base.displayTime();
return "okay";
}//end of DisplayTime
</code></pre>
<p>bas... | c# | [0] |
3,365,116 | 3,365,117 | How to get a Fragment to remove itself, i.e. its equivalent of finish()? | <p>I'm converting an app to use fragments using the compatibility library.
Now currently I have a number of activities (A B C D) which chain onto one another, D has a button 'OK' which when pressed calls finish which then bubbles up through onActivityResult to additionally destroy C and B.</p>
<p>For my pre Honycomb f... | android | [4] |
3,246,454 | 3,246,455 | Checking for input with space | <p>I've made an offline currency convertor that gets the users input in the EditText section using a TextWatcher and returns the required ouptut from methods...and I"ve made it an a way that the user cannot insert a "null" value in the EditText section and then press the convert button by using euro.getText !==null f... | android | [4] |
4,104,718 | 4,104,719 | GetFiles using path and pattern while ignoring a certain file name in C# | <p>I am trying to get all the .cs files in a certain path. I am doing this using </p>
<pre><code>string [] files = Directory.GetFiles(path, pattern);
</code></pre>
<p>Where path is a valid folder path and pattern is *.cs. However this also returns AssemblyInfo.cs and i dont want that file to be included although it m... | c# | [0] |
3,035,565 | 3,035,566 | How to find out currently used DNS namesevers on iPhone | <p>How to find out currently used DNS nameservers on iPhone? Using SDk 4.
Basically i am looking for an equivalent function on iPhone OS to GetNetworkParams on Windows</p>
<p>Thanks</p>
| iphone | [8] |
849,404 | 849,405 | Response Code 202, Not a Qualified Error Code | <p>I'm working with an API which I post files to. However, when I receive the response, the HTTP status code is a 202. This is to be expected, but in addition the API will also respond with XML content.</p>
<p>So in my try/except block urllib2.urlopen will result in a raised urllib2.HTTPError and destroying the XML co... | python | [7] |
5,982,179 | 5,982,180 | Python: Self is not defined | <pre><code>class a(object):
def __init__(self):
self.b = 1
self.c = 2
</code></pre>
<p>This gives the error: NameError: name 'self' is not defined</p>
<p>I looked at a previous post, but the error was for a different reason. Any help with this?</p>
| python | [7] |
4,779,757 | 4,779,758 | JQuery slideDown doesn't work when first clicked | <p>When I use slideDown my box just appears and doesn't slideDown when I first click on the link, but every subsequent click, it works as intended:</p>
<p><a href="http://jsfiddle.net/3Gc6Q/" rel="nofollow">http://jsfiddle.net/3Gc6Q/</a></p>
| jquery | [5] |
2,399,260 | 2,399,261 | Best function for Title capitlization? | <p>Should I be using <code>mb_convert_case</code> with <code>MB_CASE_TITLE</code> or <code>ucwords</code>? Or something else? What will the differences be?</p>
| php | [2] |
43,690 | 43,691 | javascript switch/case : are types compared? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6989902/is-it-safe-to-assume-strict-comparison-in-a-javascript-switch-statement">Is it safe to assume strict comparison in a Javascript switch statement?</a> </p>
</blockquote>
<p>Does a switch/case statement in... | javascript | [3] |
2,606,315 | 2,606,316 | Replacing built-in types with more complex types. Python | <p>I want to create a replacement class of the built-in type <code>set</code> that can be constructed exactly like set. Inheritance must not be used because some functions are removed to trigger <code>method not found</code> exceptions. This class is also used to find places where there might be implicit type conversio... | python | [7] |
2,231,188 | 2,231,189 | image change every a fixed time in iPhone | <p>I have 4 images. I want to load image in first screen and change images after every 10 second. when we click any images than next screen come up.</p>
<p>please give me help i am new in iPhone.</p>
| iphone | [8] |
5,288,738 | 5,288,739 | how to make gallary with viewpager effect? | <p>i want to make gallary in that after clicking on the gridview image item it should have to open in next layout which is viewpager view with next previous effect.just like android gallary view and one more thing is that view pager is used pager adapter and gridview is used baseadapter so i am going... | android | [4] |
1,845,469 | 1,845,470 | Invalid Entitlement.plist for my iphone? | <p>i m sending .ipa file and ad-hoc provisional profile to my friend for installing my application in his iphone through itunes of windowsXP
But it shows invalid entitlement.plist for his iphone.
please reply me as soon as possible,
And i also does not know about importance of entitlement.plist file.
Thanks in advance ... | iphone | [8] |
2,806,073 | 2,806,074 | Intializing classes in module for namespace | <p>There is a module <code>car.py</code>.</p>
<p>There are engine and tires, and I want them (theirs methods and properties) to be accessible as </p>
<pre><code>car.engine.data
# and
car.tires.data
</code></pre>
<p>So file <code>parts.py</code> looks like </p>
<pre><code>class engineClass(object):
def __init__... | python | [7] |
1,505,218 | 1,505,219 | Simple Android Broadcast does not show toast | <p>I'm just trying to create a simple broadcast in Androids activity but its not working. </p>
<pre><code>/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Intent i = new Intent("a... | android | [4] |
5,016,988 | 5,016,989 | PHP Selecting HTML from the DB and apply changes | <p>With a normal <code>SELECT</code> in the mySQL DB I select the HTML content of the final page.</p>
<p>I am building a way to create pages on the fly ( as any CMS does ) and I am saving the HTML code for each page inside a specific table fo my DB.</p>
<p>The problem is I want the content to be multi-language. But I... | php | [2] |
4,952,578 | 4,952,579 | Can I work with only PYC files | <p>I have a program that uses couple of PY files. The code works perfectly till I use the PY files. However, for encryption when I delete the PY files and just keep the PYC files the program fails with message:
<strong>ImportError: No module named abc</strong> </p>
<p>Any ideas/thoughts why python does not like the PY... | python | [7] |
1,283,478 | 1,283,479 | How to store text with special characters in php? | <p>My description paragraph contains ("" and ') but when I try to save data, slash(\) get saved in database before these characters. I am using <code>mysql_real_escape_string($_POST['des'],$link);</code> but that is not working.</p>
| php | [2] |
5,431,561 | 5,431,562 | Converting date formats in PHP | <p>I have a date:</p>
<pre><code>20-01-2013
</code></pre>
<p>I need it to be in a format for the database:</p>
<pre><code>2013-01-20 20:39:39
</code></pre>
<p>So far I have this:</p>
<pre><code>$originalDate = "20-01-2013";
$newDate = date("Y-m-d", strtotime($originalDate));
</code></pre>
<p>But how do I get the ... | php | [2] |
2,382,681 | 2,382,682 | How to store a cookie with php | <p>How can a save a cookie using php for every visitor on my site? My website also has a unique ID generator. I want to know how to make the id stay the same using cookies</p>
| php | [2] |
3,551,522 | 3,551,523 | xmlHttpRequest.send(Params) not working in tomcat 7 | <p>I am trying to send some parameters through xmlHttpRequest.send(params) written in a JS file to my servlet where I try to get the parameters by req.getParameter("some_Parameter"); it returns null on the servlet. though if i send the parameters by appending them in url it works fine. but when the url will be large it... | javascript | [3] |
3,319,414 | 3,319,415 | Prevent an effect running twice in jQuery mouseenter/leave when used with .on() | <p>I have a dropdown box that operates with the following:</p>
<pre><code>$(document).on("mouseenter mouseleave", "#dropdown", function(event){
if (event.type == 'mouseenter')
$('#dropdown ul.children').slideDown(1000);
else
$('#dropdown ul.children').slideUp(1000);
//stop();?
});
</code... | jquery | [5] |
5,439,618 | 5,439,619 | Find substring or exact string in php | <p>When I use strpos it returns false if the both strings are equal. Is there a function or a parameter to this function that returns tru if there is a substring in the main string or both strings are equal?</p>
<p>Or am i wrong and it does it for the full string also?</p>
| php | [2] |
1,856,130 | 1,856,131 | Jquery failing to detect change in select in IE7&8 but works in FF | <p>I can get this to run in IE9 and FF but does not work in IE7&8 can anybody point me in the right direction. Any ideas what to look out for?</p>
<p>JQuery</p>
<p></p>
<pre><code>$(document).ready(function() {
$('#page').change(function(){
alert('--not-calling-in-IE8-or-IE7-Mode-Works-Fine-In-FF... | jquery | [5] |
5,890,780 | 5,890,781 | Converting const unsigned int to unsigned int in template parameter | <p>With the following code:</p>
<pre><code>#include <iostream>
template< class T, unsigned int NVectorDimension = 3 >
class Vector
{
};
template< unsigned int TDimension >
int RunTest( void )
{
const unsigned int VectorDimension = 4;
typedef Vector< int, VectorDimension > VectorPixelT... | c++ | [6] |
4,473,248 | 4,473,249 | Can we store 30mb of data in our android application? | <p>Actually my project database size is <strong>30mb</strong>. I have used only <strong>7mb</strong> of data till now. But now <strong>I need to place the complete database(30mb) in my assets folder</strong> of my project. <strong>Can we place that much data for android application?</strong> Please help me regarding th... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.