Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
2,650,510 | 2,650,511 | How to create Admin part for asp.net website? | <p>What are the steps to create a admin part for asp.net website.
and how to add everything to website from admin panel.</p>
| asp.net | [9] |
4,058,853 | 4,058,854 | Generic Delegate with the type provided on invoke or function add | <p>What I am going after is to be able to do something like this</p>
<pre><code>public class Class1
{
public delegate CollsionType ValidateDelegate< T >(PlayerState<T> state, Vector2 position, CollsionType boundary);
public static ValidateDelegate ValidateMove;
public void AnotherFunction<... | c# | [0] |
989,439 | 989,440 | With checkbox selecting particular record | <p>I have an inflated list with text and checkbox.If checkbox 3 is checked when app relaunches the inflated list should start from the checked text. Can something like this be done?</p>
| android | [4] |
194,156 | 194,157 | jquery animate function and mimic the visuallightbox like effect | <p>EXAMPLE:
<a href="http://visuallightbox.com/lightbox-photo-software-sticky-notes-demo.html" rel="nofollow">http://visuallightbox.com/lightbox-photo-software-sticky-notes-demo.html</a> and click on any image to see how original image is showing.</p>
<p>I want to create the same effect with code instead of using a li... | jquery | [5] |
2,319,055 | 2,319,056 | jQuery error arise in a slider | <p>i have to do a slider of image and content in my site and i use a jQuery plugin for that slider , but there is a error raised .</p>
<p>jQuery("#one").ContentSlider is not a function</p>
<p>and my code for that</p>
<pre><code> jQuery(function() {
jQuery('#one').ContentSlider({
width : '900px',
he... | jquery | [5] |
3,455,849 | 3,455,850 | Basic PHP Script | <p>I'm trying to make a script to do the following:</p>
<pre><code>http://mydomain.com/script.php?name=bob
</code></pre>
<p>That link would output to a blank page with text</p>
<pre><code>Hi bob
</code></pre>
<p>Anyone know what the contents of script.php should be?</p>
| php | [2] |
2,851,865 | 2,851,866 | Python dictionary to store socket objects | <p>Can we store socket objects in a Python dictionary.
I want to create a socket, store socket object, do some stuff and then read from the socket(search from dictionary to get socketobject).</p>
| python | [7] |
1,354,387 | 1,354,388 | would remove a key from Dictionary in foreach cause a problem? or should I better to construct a new Dictionary? | <p>for example:</p>
<p>1.</p>
<pre><code> foreach (var item in myDic)
{
if (item.value == 42)
myDic.remove(item.key);
}
</code></pre>
<p>would the iterator works properly no matter how the statements in the inner brackets could possibl... | c# | [0] |
4,851,201 | 4,851,202 | Print empty line? | <p>I am following a beginners tutorial on Python, there is a small exercise where I have to add an extra function call and print a line between verses, this works fine if I print an empty line in between function calls but if I add an empty print line to the end of my <code>happyBirthday()</code> I get an indent error,... | python | [7] |
303,560 | 303,561 | How to change the "Date" and "Time" of the mobile phone using "J2ME"? | <p>
Im developing a mobile application using "J2me" for a configuration "CLDC-MIDP2.0".
</p>
<p>
In my mobile application,im need to make the user should able to adjust the "Date" and "Time" settings of mobile.
</p>
<p>
Here im using "DateField" to get the date from the user,but i cannot set or change the mobile phon... | java | [1] |
4,377,101 | 4,377,102 | Push out advert effect with jquery | <p>I would like to make an advertisement to my site. Previously i seen a solution when user visit a site, the advert will push out the hole page from right to left.
Is it possible to make it work with jquery?</p>
<p>thanks</p>
| jquery | [5] |
5,122,230 | 5,122,231 | Enter key triggering button click - but I don't want it to | <p>Have a real head-scratcher here: I have a page with several controls on it, and a ASP:Button or two. When I'm in a control, and hit the Enter key, it acts like I clicked the submit button, which I don't actually want to do at this point in time.</p>
<p>The button is not in a ASP:Panel with a DefaultButton set, it h... | asp.net | [9] |
5,637,390 | 5,637,391 | data filtering in gridview using jquery | <p>i have done the data filteration in gridview as like </p>
<p><a href="http://tomcoote.co.uk/wp-content/CodeBank/Demos/columnFilters/demo.html" rel="nofollow">http://tomcoote.co.uk/wp-content/CodeBank/Demos/columnFilters/demo.html</a><br>
on this page. But my requirement is some different from it. I Have a textbox ... | jquery | [5] |
3,391,328 | 3,391,329 | how to copy a file between 2 computers on the network in python | <p>I am trying to move a log file from a computer, where an operation is performed, to another computer, that will get the log file and process it, returning a document with the result of the analysis.</p>
<p>I am using Python for the job, but I am open to other options (I have to run this copy via console on OSX, due... | python | [7] |
1,940,387 | 1,940,388 | 2How to get the current MavenSession or MavenExecutionRequest from a Plexus Component | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3736576/how-to-get-the-current-mavensession-or-mavenexecutionrequest-from-a-plexus-compo">How to get the current MavenSession or MavenExecutionRequest from a Plexus Component</a> </p>
</blockquote>
<p>created a ... | php | [2] |
788,851 | 788,852 | C# hide, background, processinfo | <p>I have this code:</p>
<pre><code>ProcessStartInfo PSI = new ProcessStartInfo("cmd.exe");
PSI.CreateNoWindow = true;
PSI.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
PSI.RedirectStandardInput = true;
PSI.RedirectStandardOutput = true;
PSI.RedirectStandardError = true;
PSI.UseShellExecute = true;
Proce... | c# | [0] |
2,954,196 | 2,954,197 | Approval of iPhone app with UIWebView subclass | <p>Apple does say in the documentation about the fact that they do not want us to subclass UIWebview. After reading a lot of posts, I think it is the internals of the Webview that makes it complicated and it may be the reason apple has said so.</p>
<p>Iam looking to subclass this. Is there anyone who has faced this pr... | iphone | [8] |
3,917,930 | 3,917,931 | What does Class<something> mean in Java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6607550/what-does-angle-brackets-mean-in-java">What does <> (angle brackets) mean in Java?</a> </p>
</blockquote>
<p>i am reading about AsyncTask in Android and i have this example code:</p>
<pre><code>pr... | java | [1] |
4,706,575 | 4,706,576 | can we assign a integer value to a reference variable? | <p>It is not possible to assign an integer value to a reference variable directly, say like:</p>
<pre><code>int &x=10; //not possible
</code></pre>
<p>Is there any other way we can modify this statement to make it possible?</p>
<p>But not like this:</p>
<pre><code>int a=10;int &x=a;
</code></pre>
<p>This w... | c++ | [6] |
3,606,547 | 3,606,548 | How to Display a progress bar that displays over the fade screen overlapping the previous activity | <p>I am trying to make an activity. I have made some controls in that activity.Suppose if I click on some control(e.g Button) ,then a fade screen display that overlaps the previous activity and over the fade screen there is a progress bar .when the progress bar is 100% completed ,then the fade screens disappers and th... | android | [4] |
5,287,935 | 5,287,936 | What are the benefits are programming in C over C++ | <blockquote>
<p><strong>Possible Duplicates:</strong><br />
<a href="http://stackoverflow.com/questions/632474/c-over-c">C over C++</a><br />
<a href="http://stackoverflow.com/questions/497786/why-would-anybody-use-c-over-c">Why would anybody use C over C++?</a><br />
<a href="http://stackoverflow.com/questions... | c++ | [6] |
4,978,753 | 4,978,754 | What is the best way to fill Combo box? | <p>I have 3 form's in my project</p>
<p>When I open form 3, I fill Combo box with data (from DataBase)</p>
<p>it take's time...... </p>
<p>How I can fill this Combo box only one time when the program is open ? </p>
<p>(in the first form - form1)</p>
<p>thank's in advance</p>
| c# | [0] |
6,016,758 | 6,016,759 | how do I write a `is_a_last_of_b(a, b)` to check whether `a` is the last child of `b` | <pre><code>a = $('div:first');
b = $('div');
</code></pre>
<p><code>b</code> may contain multiple DOM elements.</p>
<p>But <code>a</code> only contains 1 element.</p>
<p>How do I know if <code>a</code> is the last element of <code>b</code>?</p>
<p>I tried <code>a == $('div:last')</code>,but it's wrong after my test... | jquery | [5] |
1,555,051 | 1,555,052 | json parser problem in iphone | <p><a href="http://www.bidapene.com/system/Mobile/json_newdata.php?data=" rel="nofollow">http://www.bidapene.com/system/Mobile/json_newdata.php?data=</a>{"action":"login","mailID":"abc@gmail","pass":"admin"}</p>
<p>how to parse above url in json</p>
| iphone | [8] |
5,077,284 | 5,077,285 | How can I tell if a date is before a certain time in Java? | <p>For example given a java.util.Date how could I test if the time was before 12.30 PM that day?</p>
| java | [1] |
2,665,008 | 2,665,009 | What effect does FireBug, Inspection Tools etc. Have on the window? | <p>I have a rather bizarre issue. I'm modifying the jQuery BookBlock plugin;</p>
<p><a href="http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/" rel="nofollow">http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/</a></p>
<p>To work with a full-screen page flip effect & a si... | jquery | [5] |
3,245,888 | 3,245,889 | How to match current location coordinates with coordinates saved in database | <p>I have a database with coordinates of different places. Whenever a user comes to the place saved in database, a window should pop up reminding the user of coming to that place.</p>
<p>For that I continuously need to check the current location coordinates with the coordinates saved in database. And when a match is ... | iphone | [8] |
3,147,703 | 3,147,704 | Pass the image id to a function and show/hide(); | <p>I've four images with IDs img01, img02, img03, img04.</p>
<p>Another four images are added to an array to show that they are related to each image mentioned above, like IDs hover01, hover02, hover03, hover04.</p>
<p>How to write a common function to show the hover image related to each? That is, each time when the... | jquery | [5] |
4,170,821 | 4,170,822 | How do you interpret jQuery(document).ready()? | <p>So <code>jQuery()</code> is is a function and document is an object which is used as a parameter of the <code>jQuery()</code> function. </p>
<p>I suppose, the <code>jQuery(document)</code> function then return an object, which has a ready() method? Is it correct? What kind of object does <code>jQuery(document)</cod... | jquery | [5] |
4,921,097 | 4,921,098 | how to validate first the 2 file name, before comparing the content? | <p>this code is used to compare the content of 2 text files,
but i need to validate first, that the names of those 2 file is not same.</p>
<p>can you help me to fix this code?</p>
<pre><code> import java.io.*;
import java.util.*;
public class compare {
public static void main(String args[]) throws IOException... | java | [1] |
2,792,570 | 2,792,571 | How to push top table rows to the bottom - HTML and JavaScript | <p>I want to push certain rows to bottom of table, how can it be achieved in plain JavaScript?</p>
<p>In the table below, I want to push the 1st and 2nd rows to bottom:</p>
<pre><code><table>
<tr><td>ABCD</td></tr>
<tr><td>XYZ</td></tr>
<tr><t... | javascript | [3] |
5,277,992 | 5,277,993 | Android Localization | <p>the following code is for changing app locale into spainish its working fine in some device ,but in some devices it enalrging(zooming)the views in the app. can any one give the solution?</p>
<pre><code>Configuration config = getResources().getConfiguration();
Locale locale = new Locale("es", "es_ES"); /... | android | [4] |
3,498,669 | 3,498,670 | How to get the letters of a string after a certain character | <p>I have some code that returns the file type (audio/mp3 or audio/wma etc) The user can download the file and i need to name the file test.mp3 or test.wma as appropriate. so i would like a string that returns the letters after the /
Thanks</p>
| php | [2] |
1,683,586 | 1,683,587 | Need to ask user if he wants to try again (Python) | <pre><code>#Ask the user what option he wants
mode = input("Would you like to count Vowel's or Consonant's ? (Vowel or Consonant): ")
mode = mode.strip()
mode = mode.lower()
# Tell the user the input he entered wasn't valid
while mode != 'consonant' and mode != 'vowel':
mode = input("That's not... | python | [7] |
5,197,749 | 5,197,750 | . notaion vs. [] notation | Inserting into a Text Object | <p>I kind of move between dot notation and bracket notation on the line of code noted below. <code>JavaScript - The Good Parts</code> suggests using dot notation by default.</p>
<p>How can I update this code to use the dot notation. Note that form_elements contains form input names as keys which are valid JavaScript... | javascript | [3] |
545,928 | 545,929 | 3D rotation while object being translated | <p>I've been playing with Android animation framework and I found the following 3D rotation sample code: </p>
<p><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/animation/Transition3d.html" rel="nofollow">http://developer.android.com/resources/samples/ApiDemos/src/com/exam... | android | [4] |
2,840,421 | 2,840,422 | Show/Hide divs with same class - jquery | <p>I have 1 div that will contain 3-5 divs with the same class. Below the div is an anchor. I would like for when this anchor is clicked it will hide the first div and then show the second. Another click would show the next and so on. I have set display:none on all divs but the first so only one is currently showing. ... | jquery | [5] |
7,744 | 7,745 | When i create new project in android? | <p>When i create new project in android, i found each and every time error sign on project name just like picture, that could not run? So is that any solution to remove this error?
<img src="http://i.stack.imgur.com/6XgKU.jpg" alt="error when creating new project"></p>
<p><img src="http://i.stack.imgur.com/5biR7.jpg" ... | android | [4] |
1,143,206 | 1,143,207 | How to get exactly "Unknown Sources" application list on Android? | <p>How to get exactly "Unknown Sources" <strong>application list</strong> on Android?
what is flag to used? If it is not this method,what are others method? and
How to programmically?</p>
<pre><code> PackageManager pm = this.getPackageManager();
final List<PackageInfo> appinstalled = pm
.getI... | android | [4] |
2,013,740 | 2,013,741 | Android Broadcast onReceive method not called from service | <p>I have a service that sends an sms. I have a broadcast receiver that is registered to notify me when the sms has been sent or not sent. The problem now is in the emulator (froyo), everything works fine when an sms is sent and when it isn't. However on my phone (galaxy S i9000, darky rom 9.3), and on my friends HTC w... | android | [4] |
3,463,768 | 3,463,769 | javascript regexp for validating url without http in the beginning | <p>I want to validate a javascript string using regexp for URL.</p>
<p>I don't wan't to force http:// in the beginning.</p>
<p>What is the correct regexp, since I have the next one to include http:</p>
<pre><code>var pattern = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
<... | javascript | [3] |
2,227,340 | 2,227,341 | How to find location within list? | <p>I suspect this is a basic question(but I tried to google and search SO with no luck). </p>
<p>I have a list: <code>[1, 2,3,4]</code></p>
<p>and I want to know where in the list the value of 3 is..but without using a for loop to go through the entire list. Is that possible? I'm already going through a very large ... | python | [7] |
3,062,577 | 3,062,578 | how do i take a screenshot of an android layout? | <p>my question is how do I take a screenshot using the built in screen capture. Any hints or sample code would be greatly appreciated.</p>
| android | [4] |
4,728,697 | 4,728,698 | Code Contract C# ensure value is in array | <p>This is most likely very simple but I can't seem to figure it out:)</p>
<p>I have 2 arrays of int.
I want to make sure one value is in both arrays using code contracts in some form.
If the value is not both arrays I don't want to continue</p>
<p>Can this be done?
I was thinking of something like this but can't se... | c# | [0] |
3,852,442 | 3,852,443 | How do I wait for "animated scroll to id" to complete before focusing on first form field? | <p>So, I have a link at the bottom of website. When it is clicked, it scrolls to a form at the top of the page with the animated style. And as it arrives at top of page, it focuses on the first field in form.</p>
<p>Currently, this is my code:</p>
<pre><code>$(document).ready(function() {
$('#goto-show-... | jquery | [5] |
384,754 | 384,755 | JQuery ~ How to keep moving the object when keydown | <p>In JQuery ~
I hope to make a simple character moving, Stop > Left || right.</p>
<p>This script make #moveCharacter turn left walk 10px <strong>once</strong>.</p>
<p>How can I <em>keydown</em> keep turn left <strong>walking</strong>,when <em>keyup</em> stop walking (like a character)??</p>
<pre><code>// Left movin... | jquery | [5] |
637,793 | 637,794 | Writing reusable code | <p>I find myself constantly having to change and adapt old code back and forth repeatedly for different purposes, but occasionally to implement the same purpose it had two versions ago.</p>
<p>One example of this is a function which deals with prime numbers. Sometimes what I need from it is a list of n primes. Somet... | python | [7] |
1,713,870 | 1,713,871 | jQuery replace multiple elements using class | <p>I want to replace all the <code>spans</code> with a <code>div</code>.
When I run this code only one element gets replaced.
How to change this code so that the script affects all the <code>spans</code>?</p>
<p><em>I have tried to use clone(), but it didn't work.</em></p>
<pre><code>$flexBox = $("<div></div... | jquery | [5] |
955,599 | 955,600 | regular expression for date in any format in javascript? | <p>regular expression for date in any format in javascript</p>
<p>The format includes: dd/mm/yyyy or mm/dd/yyyy or yyyy/dd/mm or dd-yy-mmmm or ddmmyyyy like so on.....</p>
<p>can any one help please??</p>
| javascript | [3] |
2,317,901 | 2,317,902 | How to inegrate paypal with iphone? | <p>I am trying to integrate paypal with iphone n i m getting the error related to .o files of mobile payment library..want to know the complete procedure for integating paypal with iphone..and i m trying dis coding for paypal </p>
<pre><code>- (void)viewDidLoad
{
[super viewDidLoad];
[PayPal initializeWithApp... | iphone | [8] |
2,375,354 | 2,375,355 | pass three dropdown selected values as a parameters via Ajax to controller | <p>in jquery three dropdownlists values passing as parameters via ajax in button click event<br>
but the value we store dropdownvalue cant we use out of the change function? </p>
<pre><code> $("#rooms").change(function () {
var searchRooms = $("#rooms").val();
});
</code></pre>
<p>like this i need ... | jquery | [5] |
4,747,862 | 4,747,863 | Problems with replacing text in a text file | <p>I have the following scenarion.</p>
<p>Everytime my page loads I create a file. Now my file has two tags within. {theme}{/theme} and {layout}{/layout}, now everytime I choose a certain layout or theme it should replace the tags with {layout}layout{/layout} and {theme}theme{/theme}</p>
<p>My issue is that after I r... | php | [2] |
5,762,767 | 5,762,768 | IComparable Implementation | <p>i have written the following code</p>
<pre><code> class Program
{
static void Main(string[] args)
{
Circle c1 = new Circle(5);
Circle c2 = new Circle(10);
Console.WriteLine(c1.Area().ToString());
if (c1>c2)
{
}
}
}
public class Circle:System.IComparable... | c# | [0] |
1,731,296 | 1,731,297 | iphone programming adivce | <p>Hello I was wondering if there are any methods that would allow me to interact with the iphone users. What I mean is like UIALERTVIEW of some sorts that will popup and update them with a status. But I don't want to have a fixed status, but one I can change anytime I want, like say if there is a day off, I want to p... | iphone | [8] |
3,686,752 | 3,686,753 | What does '>' do in jQuery find? | <p>I'm trying to decipher the following line of code</p>
<pre><code>.find('> li ul:visible')
</code></pre>
<p>And I cannot figure out what '>' achieves. I'm having trouble searching the documentation</p>
| jquery | [5] |
4,015,324 | 4,015,325 | why is this java initialization giving error? | <p>I am trying to initialise the array C in the loop, but it gives error :<br>
C is array of class ipdata and I have declared it and trying to initialise it inside the loop. </p>
<pre><code>import java.io.*;
import java.util.*;
public class cluster_anlysis {
class... | java | [1] |
2,964,599 | 2,964,600 | replacing quote in php | <p>I want to replace <code>“</code> and <code>”</code> characters with the caharacter <code>"</code> in php . I have written as follow but it doesn't change. How can I do this ?</p>
<pre><code>$temp=str_replace("”","\"",$temp);
$temp=str_replace("“","\"",$temp);
</code></pre>
| php | [2] |
1,469,756 | 1,469,757 | Java Method Pass-by-Value Issue | <p>When I call my <code>bar(Map map)</code> method from my current <code>foo(...)</code> method, I run into the following behavior where bar() says that map is empty.</p>
<pre><code>private void foo() {
Map map = new Map(); // pseudocode
// add (key, value)'s to map
printMap(map); // prints key and values
Map ... | java | [1] |
5,951,913 | 5,951,914 | PDFTextStripper gives "Object reference not set to an instance of an object" exception | <p>I am using <code>PDFTextStripper</code> class and for some .pdf files i am able to get proper text but some .pdf files its throwing the exception: <code>"Object reference not set to an instance of an object"</code></p>
<p>Here is my code:</p>
<pre><code>PDDocument doc = PDDocument.load(path);
PDFTextStripper stri... | c# | [0] |
5,309,029 | 5,309,030 | iPhone - pushed view blocked by invisible toolbar (?) | <p>I have this UINavigationControl that has its toolbar visible and is showing the RootViewController. Then I push a new viewController into the screen but I like the toolbar to be invisible, while this other viewController is being shown.</p>
<p>Then, to show the viewController and hide the toolbar of the UINavigatio... | iphone | [8] |
5,476,916 | 5,476,917 | How do you install your app on your iphone? | <p>I have a developer account, I provisioned a profile etc.</p>
<p>If I plug my iphone into my mac, when I build, will it automatically install the app on my phone also?</p>
| iphone | [8] |
790,119 | 790,120 | Add prefix to mobile number in php before sending it to database | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11786411/please-help-me-validate-mobile-no-in-php-form">Please help me VALIDATE Mobile no in php form</a> </p>
</blockquote>
<p>I got mobile number to validate but I am stuck at the prefix part.</p>
<pre><code>... | php | [2] |
2,021,333 | 2,021,334 | BackgroundWorker progressBar - Problem implementing ReportProgress when loop occurs in another class | <p>Hi
I am trying to integrate a background worker with a progress bar but cannot get it right.</p>
<p>I am processing some files and all the processing is done in an external class.</p>
<p>My difficulty is that the looping is inside this class,where usually I do the talking to the backgroundworker.</p>
<p>The good... | c# | [0] |
2,258,112 | 2,258,113 | splitting arrays | <p>How do I partition an array into four sub arrays in Java?</p>
| java | [1] |
2,531,899 | 2,531,900 | I am a programming student and haveing problems writing a program for guessing random numbers just don't know where to get started | <p>program chooses the number to be guessed by selecting an int at random in the range 1-100. The program then displays the following ext in a label:</p>
<pre><code>I have a number between 1 and 100 -- can you guess my number? Please enter your first guess.
</code></pre>
<p>A TextBox should be used to input the guess... | asp.net | [9] |
5,178,329 | 5,178,330 | How can i get current running context in android | <p>I am trying to get current running context in android, I tried to use:</p>
<pre><code><application android:name="com.xyz.MyApplication">
</application>
public class MyApplication extends Application
{
private static Context context;
public void onCreate()
{
super.onCreate();
... | android | [4] |
1,155,557 | 1,155,558 | Parser error: Could not load type 'Default' | <p>I have built an application in ASP.NET 3.5 framework and it is working fine on localhost but when i am uploading it on my server the page gives an error on loading
"Parser Error Message: Could not load type 'Default'."
<%@ Page Language="C#" AutoEventWireup="true" Debug="true" CodeFile="Default.aspx.cs" Inherits=... | asp.net | [9] |
3,136,098 | 3,136,099 | How to check if android device has access to internet? | <p>I am using following method to check if device has access to internet.<br>
In this code i am trying to ping/request to <code>www.google.com</code> </p>
<pre><code>try
{
HttpGet request = new HttpGet(new URI(WEB_SIT_TO_PING));
HttpParams httpParameters = new BasicHttpParams();
HttpConnectionParams.se... | android | [4] |
1,490,579 | 1,490,580 | C# Load/Unload plugins | <p>Is there anyway to have ClassLibrary plugins which can be loaded/unloaded. The only way I have found is using an AppDomain but that defeats the purpose as the plugin cannot use the hosts API.</p>
| c# | [0] |
5,406,166 | 5,406,167 | Typecast an object to generic | <p>I am developing an application where i need to send an object to another class and back to calling class. My code is....</p>
<pre><code>class Generic{
public static byte[] SerializeObject(Object o) {
byte[] buffer = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ObjectOutput... | android | [4] |
2,098,040 | 2,098,041 | how does CLR run beginXXX in a thread pool thread? | <p>I try to figure out how CLR put asynchronous operations BeginXXX into thread pool's queue.
and which ThreadPool's API is called.
But I did not find anything when I pokeed aroud BeginRead() in System.IO.Stream<br>
and BeginExecuteReader() in System.Data.Sqlclient.SqlCommand by Reflector 6.</p>
| c# | [0] |
2,184,496 | 2,184,497 | creating multidimensional array from single array | <p>i have a html form in which i use array like this (name="courts[]"). when it send data to php file i use foreeach loop to create multidimensional array for inserting records in mysql. In php file i write foreeach loop to iterate like this</p>
<pre><code> $data = array();
$i = 0;
foreach ($court_name as $... | php | [2] |
65,321 | 65,322 | How to avoid undefined index | <p>How can you easily avoid getting this error/notice in PHP?</p>
<pre><code>Notice: Undefined index: test in /var/www/page.php on line 21
</code></pre>
<p>The code:</p>
<pre><code>$table = 'test';
$preset = array();
method($preset[$table]);
</code></pre>
<p>The array <code>$preset</code> exists but not with the sp... | php | [2] |
5,427,480 | 5,427,481 | How do I know when one is done entering cin with \n? (loop) | <p>From Australian voting problem:</p>
<p>A bot will keep putting information and it can reach 1000 lines.
Example of what he'll enter:</p>
<pre><code>"1 2 3
2 1 3
2 3 1
1 2 3
3 1 2
"
</code></pre>
<p>How do I know when he has finished entering information? There is an extra \n at the end and that's my only guess on... | c++ | [6] |
5,061,847 | 5,061,848 | Third party JavaScript - good idea to use try catch? | <p>I am developing a third party JavaScript widget that will be included by users on their applications/blogs. I have good tests around the library, but I am afraid that if despite that if some syntax error sneaks through and cause the other scripts on the user's application to stop loading. </p>
<p>So - to prevent th... | javascript | [3] |
4,182,833 | 4,182,834 | Phone not recognized in android debugger | <p>I am trying to run the android debugger on my phone, but the console as well as eclipse plugin reports a ??? in place of the device name.
The attached phone is a sony ericsson xperia mini, running android 2.3 and the computer is running on ubuntu 10.10 .
I have enabled the usb debugging option on the phone.</p>
| android | [4] |
1,829,644 | 1,829,645 | How to bind the lifetime of a shared resource object to the union of its users' lifetimes? | <p>I have a number of GUI widgets that all make use of the same shared timer object. I would like to have the first GUI object that comes into existence create the timer instance and later have the last remaining gui object take care of destroying the timer.</p>
<p>Is there an idiomatic C++ solution for this kind of p... | c++ | [6] |
3,067,665 | 3,067,666 | JQuery Animation fails randomly | <p>I tried to implement jQuery Animation in my site, but randomly after seconds, minutes or hours, the animation throws an error: "Invalid property value" Line 154 Char 4889 jquery-ui-1.7.2-custom.js.</p>
<p>Here is my Code:</p>
<pre><code> $(idTimer).animate({backgroundColor: '#aa0000', color: '#ffffff'},... | jquery | [5] |
5,484,516 | 5,484,517 | Using PHP, how do I echo a line from a text file that starts with a specific value? | <p>Lets say the text file " data1.txt" contains: </p>
<pre><code>56715||Jim||Green||19
5678||Sara||Red||92
53676||Mark||Orange||6
56787||Mike||Purple||123
56479||Sammy||Yellow||645
56580||Martha||Blue||952
ect...
.
.
</code></pre>
<p>I would like to echo only the line beginning with "5678||". "5678" is... | php | [2] |
4,233,256 | 4,233,257 | Get string data from encoded bytes | <p>I have an array of bytes that has come from a barcode reader (connected via a COM port) reading an ID Card. When I convert these, I can read <em>some</em> of the data, for example:</p>
<blockquote>
<p>Name, Surname, City </p>
</blockquote>
<p>etc, but if some of the data has some characters like 'Ë' or 'Ç', or s... | c# | [0] |
5,270,439 | 5,270,440 | what's an expression and expression statement in c++? | <p>I've read usually statements in c++ ends with a semicon; so that might help explain what an expression statement would be. but then what would you call an expression by giving an example?</p>
<p>In this case, are both just statements or expression statements or expressions?</p>
<pre><code>int x;
x = 0;
</code></pr... | c++ | [6] |
5,808,218 | 5,808,219 | Two buttons needed at navigationItem.rightBarButtonItem. Image not getting displayed | <p>I have to have two buttons on the right side of the navigation bar. So i created a tool bar and added two bar button items to its content view. Like below.</p>
<pre><code>UIBarButtonItem *shareButton = [[UIBarButtonItem alloc]
initWithImage:[UIImage imageNamed:@"share-icon-32x32.png"]
style:UIBarB... | iphone | [8] |
5,232,667 | 5,232,668 | Hangman in Python - Consonant Guessing Coding | <p><strong>The Question</strong></p>
<pre><code>guess_letter:
(str, str) -> str
</code></pre>
<p>The first parameter is the unguessed consonants and the second is the difficulty level. Return the consonant to be guessed next by the computer player. If level is EASY, the consonant to guess is randomly selected. If ... | python | [7] |
1,823,629 | 1,823,630 | Runtime error- Program terminated | <p>My program terminates for some reason. Its a rock-paper-scisors simulation.
The termination takes place when I enter something in the first nextLine.
If anybody could please help.</p>
<p><pre><code></p>
import java.util.*;
import java.math.*;
public class RockPapperScissors {
/**
* @param args
*/
public s... | java | [1] |
4,336,168 | 4,336,169 | How to have custom dialog on preference activity? | <p>I have a preference page where there is a check box preference for enable login password. When the user check it, it should have a dialog pop out and inside there will be <strong>2 edit text</strong> fields for password.</p>
<p>I have done some readings and it seems like using a custom dialog will be the right choi... | android | [4] |
332,889 | 332,890 | operator overloading error C++ | <p>I have a inline operator overloading in cpp file.
My understanding is the inline function should also put in the header file with the body of function. </p>
<p>but when i do that. the error come out which is
redefinition of "operator ==" </p>
<p>could you explain why is the error like that.
and also, could anyone... | c++ | [6] |
5,165,276 | 5,165,277 | reading a line from a file and splitting it - python | <p>I have a file with just 1 line of data ( close to 3 MB ) I need to split it into smaller lines and write the output to a new file.</p>
<p>for eg :</p>
<blockquote>
<p>sample.txt - file
434D012000100009362D00000000069E0F0007000000DA434D01030010010003008000000000000000000000009C434D01200010000
.... and so on</... | python | [7] |
2,746,579 | 2,746,580 | Convert "['a','b','c']" to ['a','b','c'] : Javascript | <p>Which would be best way to do these things?</p>
<p><strong>Note:</strong> My array contains complex values means comma separated or object values in side string array & Arrays string quoted in <strong>double</strong> quotes and elements are in <strong>single</strong> quotes.</p>
<p><strong>EX.</strong> <code>... | javascript | [3] |
5,967,993 | 5,967,994 | Frontend creation using C++ | <p>I have data generation code written in C++. Is it possible to create a frontend using C# and pass values to the data generation code written in C++?</p>
<p>I'm using <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2010" rel="nofollow">Visual Studio 2010</a>.</p>
| c++ | [6] |
4,061,499 | 4,061,500 | Action bar sherlock error - Android | <p>I've created an Action Bar Sherlock library project, I've added that library to my project.</p>
<p>I get the error:</p>
<pre><code>R cannot be resolved to a variable
</code></pre>
<p>Im using min sdk 7, target sdk 15.</p>
<p>I've cleaned the project and all of my projects in eclipse.</p>
<p>I've restarted eclip... | android | [4] |
5,197,008 | 5,197,009 | remove table without id using jquery | <p>I have the following dynamically generated table on a page along with other tables on the page. I need to remove this table which does not have an id.There is one of two ways that I can think of to target the table for removal since these never change.</p>
<p>By the class="matching_results_text" or
by the text "You... | jquery | [5] |
5,127,159 | 5,127,160 | Run external program concurrently | <p>I want to be able to run an external program concurrently with my Java code, i.e. I want to start the program, then return control to the calling method while keeping the external program running at the same time. The Java code will then keep generating input and send it to the external program and receive output ba... | java | [1] |
4,344,715 | 4,344,716 | What is Best Way to Input Decimal Numbers with iPhone SDK? | <p>So after finally learning how to store user input into a variable, I am realizing it is rather difficult to have the user input numbers with decimals. The Number KeyPad doesn't allow a decimal part, and if I use Numbers & Punctuation it looks a bit weird.</p>
<p>So do I have to use a number Picker to smoothly a... | iphone | [8] |
2,238,530 | 2,238,531 | how to give top to bottom animation android | <p>i am able to give bottom to top animation when i go to next activity but now when i pressed back i am using same code for giving animation from top to bottom animation but it always goes to bottom to top so my question is how to give animation from top to bottom when i pressed back button on android device..
my code... | android | [4] |
1,636,594 | 1,636,595 | How upload file in remote machine (LAN) using Flajaxian FileUploader | <p>really it's a crucial point for me, my quastion is : </p>
<p>How upload file in remote machine (LAN) using Flajaxian FileUploader.</p>
<p>Env : C# , ASP.NET , VS .NET 2005</p>
<p>please help</p>
<p>Best regards</p>
| asp.net | [9] |
1,627,144 | 1,627,145 | How static local POD constants are initialized? Lazily or not? | <p>POD means primitive data type without constructor and destructor.</p>
<p>I am curious, how compilers handle lazy initialization of POD static local variables. What is the implication of lazy initialization if the function are meant to be run inside tight loops in multithreaded applications? These are the possible c... | c++ | [6] |
2,977,748 | 2,977,749 | Incrementing characters being read | <p>I am trying to decode an input file that looks something like this: </p>
<pre><code>abbaabbbbaababbaabababaabababaabbababaabababababababa...
</code></pre>
<p>and compare it to a makeshift mapping I have made using two arrays</p>
<pre><code>int secretNumber[10];
string coding[10];
coding[0]="abb";
coding[1]="aabb... | c++ | [6] |
2,822,800 | 2,822,801 | Set current list item as selected in jQuery | <p>I have a list of items; the number of items in the list is different each time:</p>
<blockquote>
<pre><code><li id='item1'>number_1<li>
<li id='item2'>number_2<li>
…
<li id='itemn'>number_n<li>
</code></pre>
</blockquote>
<p>When a user choose an item. I want to set the item as ... | jquery | [5] |
1,889,839 | 1,889,840 | Search by substring on strings which map to id | <p>What would be the best way to implement search by substring on Strings(around 5000 entity names in application) which map to entityId. </p>
<p>I want to implement it so that I could put searched suggestions to the user as he types in one or more characters.For e.g I would want to be able to suggest all entities sta... | java | [1] |
2,939,537 | 2,939,538 | Difference between PrintWriter.printf and PrintWriter.format methods | <p>Is there any difference between the Java <code>PrintWriter</code> methods <code>printf</code> and <code>format</code>?</p>
<p>The doc says <code>printf</code> is a convenience method but if it behaves exactly as <code>format</code>, so I don't understand what's convenient about it.</p>
| java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.