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,151,989 | 1,151,990 | jQuery: div doesn't appear until second click? I want it on the first. =\ | <p>First click: empty floatymessage div. second click and after: works.</p>
<p>jQuery: </p>
<pre><code>function floatymessage(message){
var box = $j(".floatymessage")
if (box.length == 0) {
$j('body').append("<div class='floatymessage'></div>");
}
box.html(message);
// center i... | jquery | [5] |
1,473,095 | 1,473,096 | Map path problem | <p>I want to show the path between the start & the end location inserted for the map. How can i do the whole process? It is not showing the path though i am getting the latitude & longitude properly.</p>
| iphone | [8] |
4,174,493 | 4,174,494 | Overwriting pure virtual functions by 'using' a separately inherited method | <p>Just a small annoyance really as I can work around the problem by wrapping the derived function instead of using the 'using' keyword but why doesn't the following work (the compiler tells me that 'get_elem' is still pure virtual in 'Bar' class).</p>
<pre><code>class Elem {};
class DerivedElem : public Elem {};
cl... | c++ | [6] |
2,554,010 | 2,554,011 | Load picture in app from local folder | <p>I have inside my app folder : images folder with images inside and I have .jar file which I run. I need to load pictures from images folder. I have method which load pictures from URL, I tried with</p>
<pre><code>String path=System.getProperty("user.dir")+File.separatorChar+"images"+File.separatorChar+"first.jpg... | java | [1] |
4,462,460 | 4,462,461 | How to programmatically insert call log entries WITH display name and photo? | <p>I am able to programmatically insert an entry into the Android call log with a number, date, duration & type BUT I cannot figure out how to also include a photo, label and name?
The entry I'm adding is for an existing Contact with the exact same number. I've noticed on a Motorola device the name & pic appear... | android | [4] |
2,790,995 | 2,790,996 | Set any video as a wallpaper in android programmatically | <p>I have a problem that I want to set a video file as a wallpaper in android device through code. But failed to find the exact method for the same on the web. I can set the static wallpaper with WallpaperManager Class in android and I don't know if we have a video file then how can we set it as a live wallpaper in and... | android | [4] |
223,966 | 223,967 | Creating a function (of fewer parameters) from another function | <p>I would like to do the following. Say I have this:</p>
<pre><code>void f(const char* c) {
// Do stuff with c
}
void g(const char* c, int x, int y) {
// Do other stuff
}
</code></pre>
<p>What I'd like to do is to create a function from g that takes a const char* c. That is:</p>
<pre><code>int a = 5;
int b... | c++ | [6] |
3,900,895 | 3,900,896 | why does jquery (1.6.x) context work for bind() and not live()? | <p>Works:</p>
<pre><code>var magic_div = $('<div>');
$('body').html(magic_div);
$(magic_div).append('<a href="#" class="bind-event">click</p>');
$( '.bind-event' , magic_div).bind('click' , function(){ console.log('bind works'); });
</code></pre>
<p>Doesn't work:</p>
<pre><code>var magic_div = $('&... | jquery | [5] |
3,433,313 | 3,433,314 | Why doesn't [].extend(list1) create an identical list to list1? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9724356/python-list-extension-and-variable-assignment">Python list extension and variable assignment</a> </p>
</blockquote>
<p>The analogue for strings holds true:</p>
<pre><code>string1 = 'abc'
''.join(string1... | python | [7] |
4,209,491 | 4,209,492 | Fancy looping in Java | <p>I have a problem wherein I have two strings, the length of one of which I will know only upon execution of my function. I want to write my function such that it would take these two stings and based upon which one is longer, compute a final string as under - </p>
<pre><code>finalString = longerStringChars1AND2
+... | java | [1] |
1,772,535 | 1,772,536 | Getting Android Development Orders | <p>We have newly started android app development. How can we reach prospective clients who are looking for android app developers?</p>
<p>I know about sites such as elance and rentacoder, but they are highly loaded in favour of members who have completed a large no. of projects.</p>
<p>At the moment, we are willing t... | android | [4] |
2,956,359 | 2,956,360 | Javascript string manipulation, combining numbers with strings | <p>I am trying to get values from a data set. My function has to loop from 1 to 7
to get my opening hours for 7 days. what i need to do is:</p>
<p>Where openHours[i] the "i" stands for a number between 1 and 7. I would like to attach that number on the word "openHours" in order to create a new word ex. "openHours1"</p... | javascript | [3] |
1,682,582 | 1,682,583 | Serializing .NET dictionary | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/495647/serialize-class-containing-dictionary-member">Serialize Class containing Dictionary member</a> </p>
</blockquote>
<p>Can I serialize a Dictionary? </p>
| c# | [0] |
4,534,183 | 4,534,184 | How do you run a shell script inside of an Android app? | <p>I am trying to write an android app for root users that runs a series of shell commands, or a shell script if that is preferable, and displays the output... can anyone point me in the right direction?</p>
| android | [4] |
5,871,833 | 5,871,834 | Putting spaces into a PHP date format | <p>In the PHP date function below, I would like to put a few spaces between "a" and "\N\e\w". How is it done?</p>
<pre><code>'l, F j, Y, g:i a \N\e\w \Y\o\r\k \t\i\m\e'
</code></pre>
<p>Thanks in advance,</p>
<p>John</p>
| php | [2] |
5,290,372 | 5,290,373 | Initializing Hashtables in Java? | <p>In C# you can initialize Hashtables (and many other types of objects) using code like this -</p>
<pre><code>Hashtable table = new Hashtable {{1, 1}, {2, 2}};
</code></pre>
<p>Is there anything like this in Java or do you have to just declare the Hashtable first and then manually put items in it one by one?</p>
| java | [1] |
4,477,117 | 4,477,118 | Updating field in icefaces using thread | <p>Good morning guys</p>
<p>I have a textField on my icefaces page which display number of messages in one table in a database.</p>
<p>Since that data changes from other users using the application so I want to update that field after some interval ,lets say every 5 minutes.</p>
<p>Does any one have idea what could ... | java | [1] |
5,354,527 | 5,354,528 | How to write a PHP script to find the number of indexed pages in Google? | <p>I need to find the number of indexed pages in google for a specific domain name, how do we do that through a PHP script?</p>
<p>So,</p>
<pre><code> foreach ($allresponseresults as $responseresult)
{
$result[] = array(
'url' => $responseresult['url'],
'title' => $respons... | php | [2] |
3,005,460 | 3,005,461 | Is it worth to write a custom Profile Provider? | <p>I wrote a custom Membership Provider and it was relatively easy.</p>
<p>Now I need to create users with first name, last name and other fields not considered in the any of the MembershipProvider.CreateUser overloads.</p>
<p>I read that I should not overload CreateUser. Instead, I should write my own Profile Provid... | asp.net | [9] |
5,531,643 | 5,531,644 | why do we need both const and non-const getters in this example | <p>I came across this example <a href="http://groups.google.com/group/comp.lang.c++.moderated/browse%5Fthread/thread/d9f7ec296d353943/6626b24459472798?show%5Fdocid=6626b24459472798" rel="nofollow">here</a>:</p>
<pre><code>#include <vector>
#include <cstddef>
template<typename Tag>
class Ref_t {
s... | c++ | [6] |
3,838,560 | 3,838,561 | Will the statements inside finally get executed if they are following return? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/65035/in-java-does-return-trump-finally">In Java, does return trump finally?</a> </p>
</blockquote>
<p>Wondering if finally statement will still get executed if it is after return statement?</p>
| java | [1] |
709,168 | 709,169 | multiple login popups using windows authentication | <p>I'm am developing an application to use windows authentication.</p>
<p>In IIS anonymous access is turned off</p>
<p>In my web.config file I have:</p>
<pre><code><authentication mode="Windows" />
</code></pre>
<p>and</p>
<pre><code><authorization><allow users="*" /></authorization>
</code... | asp.net | [9] |
1,720,946 | 1,720,947 | Can I avoid using a very large 'switch' block to give access to 400 blocks of program code? | <p>I have written an application in C# which at present includes nearly 400 mathematical functions, each with its own integer ID. To access function code, my application currently feeds the function's ID to a huge 'switch' block which has one 'case' block per function: total, nearly 400 'case' blocks. This seems to wor... | c# | [0] |
2,146,125 | 2,146,126 | can i pass a string between two javascript files | <p>Is it possible to pass a string from one .js to another .js file. For Example main.html contains javascript. I need to pass a string from main.html to another html file that loads a javascript file during run time. Is it possible?</p>
| javascript | [3] |
4,275,483 | 4,275,484 | what is this syntax doing? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4560890/what-is-generics-in-c">What is generics in C#?</a> </p>
</blockquote>
<pre><code>public class MyNewClassMapper < EntityContainer, ModelContainer >
: BaseClassContainerMapper < EntityContaine... | c# | [0] |
1,338,023 | 1,338,024 | Make OS open directory in Python | <p>I am writing a program in Python, and want to get it to make the OS open the current working directory, making for instance Windows open explorer.exe and navigating to the wanted directory. Any ideas on how to do this? </p>
<p>The directory is already given by os.getcwd. </p>
<p>Cross platform methods preferred :)... | python | [7] |
3,229,540 | 3,229,541 | javascript autorefresh error | <p>I am using this code to refresh three of my anchored link. I am binding those code with id="vbar"</p>
<p>my javascript code is </p>
<pre><code>setInterval(function() {
$("#vbar").load(location.href+" #vbar>*","");
}, 18000);
</code></pre>
<p>my html</p>
<pre><code><div id="vbar">
<ul id="sddm1">... | javascript | [3] |
3,428,963 | 3,428,964 | Add pdf icon for all links using jquery | <p>I have over 1K links in a html page, How do I add a pdf icon just before the link using jquery.</p>
<p>Thanks
Jean</p>
<p>[update]
@pekka
I have added the icon, the icon displays, but it is under the text extreme right. I cannot move the icon with left, or padding-left , because the icon is placed as background-i... | jquery | [5] |
3,452,423 | 3,452,424 | Android dalvik problem | <p>Please i have different platforms installed. I just wanted to know what am supposed to do. If i develop with 3.0 platform, would those with a 2.2 be able to use my app??..</p>
<p>The second question which is the main question is I always get this error when i create android projects..
<code>[2011-05-16 16:32:21 - H... | android | [4] |
2,386,529 | 2,386,530 | Toggle DropMenu | <p>I'm trying to create a menu with a droplist, using jQuery to the onclick toggle for changing the class from "hide" to "show". Although I cannot figure it out.</p>
<p>Here's what I have:</p>
<pre><code><style type="text/css">
nav ul li.hide ul {
display: none;
}
nav ul li.show ul {
... | jquery | [5] |
5,713,599 | 5,713,600 | Need some coding to input inside my image? | <p>this is what my program should look like:</p>
<p><img src="http://i.stack.imgur.com/rX79m.png" alt="Expected"></p>
<pre><code>def main():
from graphics import GraphWin, Point, Rectangle
win= GraphWin("Apartment Displayer",700,400)
p1=Point(40,50)
p2=Point(100,130)
rec=Rectangle(p1,p2)
... | python | [7] |
1,272,203 | 1,272,204 | application Installation problem | <p>I am novice in android development.</p>
<p>my application is not installing in emulator.
i saw this in logcat
<strong>failed to load properties file for project android</strong>
what is this please help me</p>
<p>thanks in advance
Arindom ghosh</p>
| android | [4] |
3,424,872 | 3,424,873 | Returning to Screen and updating the View | <p>Having issues with screen progress.</p>
<p>I have a screen displaying information from a database. I have a button on this screen which goes to an add screen</p>
<p>This new screen saves some new info to the database</p>
<p>Once the info is saved I am looking to g back to the first screen and update the screen wi... | android | [4] |
4,769,343 | 4,769,344 | How to enable checkbox when associated textview is clicked | <p>I'm using a CheckBox and TextView in my App(I;m using a image view between Checkbox and Textview, so I couldn't use the CheckBox Text). I want to enable/disable my Checkbox if the corresponding TextView is clicked. Anyone please help me.</p>
| android | [4] |
2,850,221 | 2,850,222 | How to call a function when the user uses the mouse wheel to scroll up/down in javascript | <p>In HTML I have a table that is used as a grid.
Now, I want to attach an event to this table, that when a scroll up/down is triggered, then my ScrollUp/ScrollDown function is called.</p>
| javascript | [3] |
4,952,671 | 4,952,672 | Make the UIWebview fill screen | <p>How do I make the content in the UIWebView fill the whole screen? The UIWebView fills the iphones width correctly, however I need to doubletap the image in the UIWebview to make it stretch out to the bounds.</p>
<p>Help much appriciated!</p>
| iphone | [8] |
86,212 | 86,213 | New In Java and want to learn how to use Java Parse | <p>Please help me in writing a Program that takes a single digit or value from user and then prints whether the value is an Alphabet or a number or a special character. And if the input is alphabet then determines whether its vowel or not. I don't Know how to use the Builtin Java functions coz am new to java. Below is... | java | [1] |
3,819,377 | 3,819,378 | Google maps application in iphone | <p>In my application i added google maps application.It works fine.But in the map UI there is button zoomin and zoomout and also current location button, i want to hide or remove this button is this possible? i have load google map application in my UIWebview using this url @"http://maps.google.com/maps?q=3711.</p>
<p... | iphone | [8] |
2,088,066 | 2,088,067 | Javascript variable scope issues | <p>I'm creating a list of markers for a map, which - when they are dragged onto the map (via jquery draggable) - the image is replaced with a map marker.</p>
<p>The problem I am having, is that when creating my marker controllers - they each have a specific type - extracted from a list. As I iterate through the list, ... | javascript | [3] |
1,060,975 | 1,060,976 | jquery call back function | <p>I have a call back function as follows</p>
<pre><code>$('#lnkClientData').click(function() {
$('#clientdiv').slideToggle(function(){
if($('#lnkClientData').hasClass('open'))
{
$('#divnext').slideToggle();
$('#lnkClientData').removeClass('open').addC... | jquery | [5] |
1,830,104 | 1,830,105 | Detecting if a node in a tree has child(s) or child nodes have been visited | <p>I am struggling with the logic behind detecting nodes in my tree exists or have been visited. </p>
<p>I have a tree with nodes (a node has a left and right child node).</p>
<p>I want to check 2 things on a node:
If there are no child nodes
If there are child(s) nodes I want to check if they have been visited.</p>
... | java | [1] |
70,915 | 70,916 | JQuery add elements on radiobutton selection | <p>I want to add elements dynamically to a Page on selection of a particular RadioButton </p>
| jquery | [5] |
936,055 | 936,056 | how do tag remembers released objects? iPhone | <p>I have a separate method to create customized UITableViewCell,
Which is given Below</p>
<pre><code>-(UITableViewCell*)getCellContentView:(NSString*)cellIdentifier
{
CGRect photoFrame=CGRectMake(10, 10, 60, 60);
CGRect label1Frame=CGRectMake(85, 9, 200, 32);
CGRect label2Frame=CGRectMake(85, 38, 200, 25);
CGRect lab... | iphone | [8] |
2,270,985 | 2,270,986 | How do I select only the elements who coincide with the exact path? | <p>I use the following expression to select all the links in this "path":</p>
<pre><code>$J('#leftmenu li div a")
</code></pre>
<p>The problem is that inside i can have the following hierarchy:</p>
<pre><code><ul id="lefmenu">
<li><div><a href="#">foo</a>
<ul><li><div>... | jquery | [5] |
4,638,754 | 4,638,755 | PHP, explode, and my trouble | <p>Can't wrap my head around this...</p>
<p>Say, we explode the whole thing like so:</p>
<blockquote>
<p>$extract = explode('tra-la-la', $big_sourse);</p>
</blockquote>
<p>Then we want to get a value at index 1:</p>
<blockquote>
<p>$finish = $extract[1];</p>
</blockquote>
<p>My question is how to get it in one... | php | [2] |
4,105,718 | 4,105,719 | Including pages with $_GET | <p>I want url's like index.php?showuser=512, index.php?shownews=317 for pages i get content from db... and for regular pages index.php?page=about and so on WITHOUT mod-rewrite.</p>
<p>Invision Power Board has urls like this. I have looked through their code but I can't figure out how they do it.</p>
<p>I could do it ... | php | [2] |
4,673,358 | 4,673,359 | Strange behavior of PHP time math: Why is strtotime() returning negative numbers? | <p>I'm trying to do some very basic time math - basically, given inputs of time and distance, calculate the speed. I chose to use strtotime() to convert the time inputs into seconds - but I'm getting some bizarre results.</p>
<p>For example, given this sample program:</p>
<pre><code><?php
$t1 = strtotime("3:15:00"... | php | [2] |
1,882,525 | 1,882,526 | Deleting a rectangle class | <p>I'm creating a breakout game in c#, I am using boolean values to tell the program whether to draw the brick or not, i have used rectangle classes to put over the drawn rectangles to be able to tell if the ball has hit the bricks</p>
<p>This is the code i used so far:</p>
<pre><code>Rectangle brick4 = new Rectangle... | c# | [0] |
528,484 | 528,485 | Tools for generating reports in PHP? | <p>Somebody knows a tool or framework that able me to generate the same report in HTML, PDF and Excel with the same effort?</p>
<p>I know about PHPExcel or FPDF, but I don't wanna write and mantain many outputs. I want to have just one effort and have many outputs. </p>
<p>Thanks,</p>
<p>Armando</p>
| php | [2] |
4,634,616 | 4,634,617 | Checking Request.ServerVariables["HTTP_REFERER"] on every request | <p>I am using this code to check if the request came from a page , if not then redirect somewhere.</p>
<pre><code>string referer = Request.ServerVariables["HTTP_REFERER"];
if (string.IsNullOrEmpty(referer))
{
Response.Redirect("/UnauthorizedAccess.aspx");
}
</code></... | asp.net | [9] |
240,104 | 240,105 | To continue in Android career? | <p>Ive been learning android for two months now,Its pretty long,a little bit interesting,I have java knowledge but the question is,I want to venture into writing apps for companies like stores e.t.c,how this can metamorphosize into a career. Some say its too early to make it a career line..Is it?</p>
| android | [4] |
1,602,603 | 1,602,604 | Enum with methods for functionality (Combine Class / Enum) | <p>I may miss some sort of point here, if that's the case - please include that discussion as a part of my question :).</p>
<p>This is a shortened down and renamed sample of a working code. The GetTicks(..) is a single sample, which could be any sort of functionality (value of <code>> 0 < 9</code> should return ... | c# | [0] |
3,985,667 | 3,985,668 | How to resolve main class not found exception while creating jar? | <p>I am creating an executable jar file of a java project.
I successfully created a sample jar file with Hello world class.
I used following commands to create a jar:</p>
<pre><code> trail> javac -classpath "c:\Program Files\Java\jdk1.6.0_01\bin;" MyClass.java
bin> jar cvfm MyJar.jar manifest.mf trail\*.class... | java | [1] |
682,315 | 682,316 | ASP.NET Version 4 Framework, External component has thrown an exception | <p>My web application under develoopment was running just ok until a few hours ago without any change from my side, I started receiving the error "External component has thrown an exception.". The error message is the same even if I open my other web applications which I have not touched for a long time. Any idea what ... | asp.net | [9] |
3,431,981 | 3,431,982 | Jquery featured content slider | <p>Does anybody know what the best way to achieve a Jquery content slider/accordion similar to the <a href="http://www.bbc.co.uk/iplayer/" rel="nofollow">BBC iPlayer Featured/Most Popular</a> one? It's a bit more complex than what is available/searchable on Google. </p>
<p>Any help greatly apprecaited / thanks for any... | jquery | [5] |
2,622,538 | 2,622,539 | Access Javascript variables dynamically | <p>I know you might think this is a duplicate or a dumb question. But the answers doesn't help me.</p>
<p>Here's my simple problem:</p>
<pre><code>var option1 = "some text";
var option2 = "some text";
var option3 = "some text";
</code></pre>
<p>I want to access the elements "option1, option2, option3" in a for loop:... | javascript | [3] |
1,690,973 | 1,690,974 | "Exception: Process timed out" during sending mail in C# windows .net | <p>when i am sending mail i am getting an exception "Timed out". How will i solve this ? My code is below..
// To
MailMessage sendmail = new MailMessage();</p>
<pre><code> for (int k = 0; k < globaldecl.application1.filecount; k++)
{
string fil = attachfile[k... | c# | [0] |
3,124,230 | 3,124,231 | Declaring MutableArray of Custome class in to AppDelegate of iPhone application | <p>I am working on iPhone application in which i have more than 20 class and i am declaring that classes NSMutableArray into my application's app Delegate file, and accessing them from my different views.</p>
<p>All NSMutableArray are filled by XMLParsar requesting from server.</p>
<p>My application is getting slow i... | iphone | [8] |
1,870,745 | 1,870,746 | How To setKeepScreenOn() | <p>How can I reference the <code>Activity</code> <code>View</code> from within the <code>onCreate()</code> method so I can use <code>view.setKeepScreenOn()</code>.</p>
| android | [4] |
2,072,011 | 2,072,012 | Dependencies and respective roles of the JavaScript libraries | <p>SharePoint 2010 pages contain a bunch of JavaScript libraries (core.js, init.js, ribbon.js, etc.). Where can I find a high level description of their respective roles and dependencies?</p>
<p>The objective is to create lighter page templates by removing the unnecessary libraries. For example on some pages I don't n... | javascript | [3] |
2,935,475 | 2,935,476 | Assign face value to cards in python | <p>I made my code but I have a hard time figuring out how to put values to my deck? I have done some research online but I still can't figure out how to do it. I keep getting errors. How do I get face values for cards? 2-10 and 10 for KQJ and 11 for A? I have tried creating a class for it and it's not working. I'm stuc... | python | [7] |
347,923 | 347,924 | sizeof member computation error | <p>I have such a structure (for some reason I cant just use an array):</p>
<pre><code> struct OperatorData
{
char m_record_0[RIX_OPERATOR_CONFIG_SIZE];
char m_record_1[RIX_OPERATOR_CONFIG_SIZE];
//....
char m_record_9[RIX_OPERATOR_CONFIG_SIZE];
};
</code></pre>
<p>And I am trying to calculate am... | c++ | [6] |
3,113,915 | 3,113,916 | If Internet not connected application will show retry button | <p>My program allow user post product to my website, but I don't want user can see URL link appear in WebView when user's phone not connected to internet. So, I would like to show screen like picture bellow when user's phone not connected to internet.</p>
<p>I want screen appear like Google Play when internet not conn... | android | [4] |
2,664,494 | 2,664,495 | how to write into existing xml file using php | <p>Hi every one
I have an XML file, it's contain same tags like this:</p>
<pre><code><data>
<info><detail>first data</detail></info>
<info><detail>second data</detail></info>
<info><detail>third data</detail></info>
....
</data>
</code... | php | [2] |
2,659,846 | 2,659,847 | How to Transfer Files from Client to Server Computer by using python script? | <ul>
<li>I am writing a python script to copy python(say ABC.py) files from one directory to another
directory with the same folder name(say ABC) as script name excluding .py.</li>
<li>In the local system it works fine and copying the files from one directory to others by<br>
creating the same name folder.</li>
<li>Bu... | python | [7] |
4,726,691 | 4,726,692 | Can we update record of addressbook? | <p>I want to update record of addressbook. I searched for it but I have not got any particular solution for this. I am able to access addressbook but after changing phone number or any field I want to update it. Please give some code example......</p>
| iphone | [8] |
4,396,598 | 4,396,599 | How to make table view via coding i know from IB? | <p>I am new in iphone application and i want to make table view using coding so will you please give me some suggestion?</p>
| iphone | [8] |
5,454,318 | 5,454,319 | Reading Response From URL using HTTP WEB REQUEST | <p>I have to read response from <a href="http://www.subway.com/storelocator/default.aspx?zip=04416&country=USA" rel="nofollow">http://www.subway.com/storelocator/default.aspx?zip=04416&country=USA</a> .I have used following code but does not get all the response. instead of it gives response of error page Thank... | c# | [0] |
172,637 | 172,638 | onCompletion isn't being called when I would expect it to | <p>I have a MediaPlayer member variable posted in my parent class, and after I start it, it doesn't ever call onCompletion, or at least onCompletionListener doesn't ever catch it? My code looks something to this effect</p>
<pre><code>mediaPlayer = Mediaplayer.create(this, currentSample);
mediaPlayer.start();
</code></... | android | [4] |
5,986,757 | 5,986,758 | WindowManager is unable to show Window View on screen even though it's visibility property is true | <p>My application shows UI based on events received in various BroacastReceiver . Since I need to generate view directly from BroadcastReceiver I use code like this :</p>
<pre><code>mWindowManager = (WindowManager) context
.getSystemService(Context.WINDOW_SERVICE);
WindowManager.LayoutParams lp = new Window... | android | [4] |
1,663,317 | 1,663,318 | Content Provider in Android basic questions | <p>I am having trouble understanding content providers in Android.</p>
<p>Do you use intents to call content providers as well as managed queries?</p>
<p>Also, an activity has an intent filter. The intent filter has a element which has a mimeType attribute. How does Android know which content provider this mimety... | android | [4] |
5,097,311 | 5,097,312 | Master Page Loading Multiple Pages | <p>I'm developing a web site that has a master page that consists of 4 different pages that will load simultaneously (using ContentPlaceHolder). </p>
<p>However, when I test the website on my local machine, only one page renders at a time (depending on the URL I type in).</p>
<p>Is there any way that on Page Load, ... | asp.net | [9] |
5,488,110 | 5,488,111 | Help with a unexpected T_ELSE | <p>Now I have fixed the problem the T_ELSE parse error is not displaying anymore, But then how can I direct the code to display the if or the else?</p>
<p>Well users are going to come from either page1.php or page2.php </p>
<pre><code>url coming from page1.php
cart.php?ids=1
url coming from page2.php
cart.php?idc=1... | php | [2] |
2,635,600 | 2,635,601 | Stopping a widget's service when not in use | <p>I'm having trouble getting my widget to stop hogging so many resources.</p>
<p>I setRepeating on the AlarmManager to update. When the widget is deleted (onDisabled()), I call .cancel() on the service, but the service still shows up in the android "running processes" making me believe I'm doing something wrong. Any ... | android | [4] |
554,787 | 554,788 | Select the text line and span tag with jquery | <h2></h2>
<pre><code><br/>
<a href="#">News</a>
<br/>
This is the first line
<br/>
This is the second line
<br/>
This is the third line
</code></pre>
<p></p>
<blockquote>
<p>Is there any way to wrap each text line with tag! and content of the text is not fixed and it will come ... | jquery | [5] |
2,634,135 | 2,634,136 | Writing an ASP.NET client to consume a WCF service | <p>I have to write a ASP.NET client to test a WCF service.
I have to test the queuing part by sending multiple requests to this service.</p>
<p>I have done the same from a console application successfully.</p>
<p>How do I go about doing this?</p>
| asp.net | [9] |
4,417,296 | 4,417,297 | python function returns multiple dicts instead of one | <p>Why does this recursive function keep returning multiple dictionaries instead of just one.</p>
<pre><code>def retFiles(dir):
data = {}
root = set()
os.chdir(dir)
cwd = os.getcwd()
for i in os.listdir(cwd):
if os.path.isfile(i):
data.setdefault(i, set())
root.add(o... | python | [7] |
2,451,032 | 2,451,033 | how to create vector in c# | <p>I have a set of servers for which I need the names, but I only want those that are currently available so I need a dynamically sized array. What data structure can I use to store these.</p>
| c# | [0] |
2,303,031 | 2,303,032 | Why is -1 being used when a method does not return a value? | <p>This statement simply checks an "@" symbol in a textbox.</p>
<pre><code>if (string1.indexOf("@")==-1){
alert("Please input a valid email address!")
document.example.email.focus()
</code></pre>
<p>This. <code>if (string1.indexOf("@")==-1){</code> why do we use -1 instead of 0. </p>
<p>it baffles me, since 0 is b... | javascript | [3] |
478,653 | 478,654 | Android:How to disable back press of handset? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4779954/disable-back-button-in-android">Disable back button in android</a> </p>
</blockquote>
<p>i don't want to dismiss my dialog through back button, is there any way to disable back press of handset? when i p... | android | [4] |
708,417 | 708,418 | How to target first td of every row with pure JS? | <p>I tried to change the color of the first td element in each row to red.</p>
<p>HTML:</p>
<pre><code><table id="test">
<tr>
<td>test1</td>
<td>test2</td>
</tr>
<tr>
<td>test3</td>
<td>test4</td>
</tr>
</table>
</cod... | javascript | [3] |
3,965,012 | 3,965,013 | iterate through datatable in c# | <p>i have an datatable like this.
i have got the data from sqlserver and stored in a datatable in c#</p>
<pre><code> User Svc VSS
kiran 6.5 8
kiran 0.5 8
manu 0.0 4.0
manu 0.0 4.0
Priya 9.0 0.7
Priya 9.0 0.7
Peter 4.5 1.5
Pete... | c# | [0] |
2,091,094 | 2,091,095 | Problem while changing the background color of a table using javascript | <p>I am trying to change the <strong>background color</strong> of a <strong>table</strong> on <strong><code>onchange</code></strong> event of a <strong>checkbox</strong>. My checkbox is inside my table. I have written a simple javascript code but I am unable to change the color of my table if any one can help me regard... | javascript | [3] |
652,158 | 652,159 | How to make drawables and other design items for different resolutions? | <p>I'm a new on Android, have checked official guide for my questions but I haven't found it. I need to make drawables for different layout, but I don't know what means mdpi, ldpi, hdpi - which range of resolution values should I use for each drawables? For example, from 100x100 to 200x200 px for mdpi, ...x... for ldpi... | android | [4] |
97,446 | 97,447 | Having problem with jquery? | <p>I am dynamically filling asp.net grid through page method(client side) and in first page load it gets filled by server side coding and after that through page method, In first coloumn i have checkbox,but when i hardcode the checkbox my jquery function works well but when generate dynamically on click jquery function... | asp.net | [9] |
209,522 | 209,523 | error in show data by date wise in grid | <p>i have tried to show a data by date wise but i didn't get the answer exactly, please help me..</p>
<pre><code>public void gettoday()
{
con.Open();
{
string strview = @"select MRNO,MaterialCode,Description,Specification,
Category as Cat,Source as Sor,Popu... | c# | [0] |
5,239,278 | 5,239,279 | Random NullReferenceException on Timer.Stop | <p>I have a System.Timers.Timer that randomly throws a NullReferenceException when I call the Stop() method. This probably occurs probably about 4 times a work day. I've seen the problem repeated on multiple computers.</p>
<pre><code>void myTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
if (myTim... | c# | [0] |
819,837 | 819,838 | $.support.fixedPosition removed in v1.8? | <p>jQuery 1.7 introduced <code>$.support.fixedPosition</code>, but it somehow disappeared in 1.8. I can't find anything in the changelog. Any hints where it has been moved, or if it has been removed?</p>
| jquery | [5] |
440,924 | 440,925 | Java while loop with array | <p>Suppose that p is a two-dimensional array with elements of type int. Which of the statements below best describes the effect of the following code?</p>
<pre><code>int i = 0;
while ( i < p[ 0 ].length )
{
p[ 0 ][ i ] = 0;
i++;
}
</code></pre>
<p>Could someone translate this to plain english for me?
I only... | java | [1] |
425,000 | 425,001 | Hyperlink for each record | <p>I need a link for each depotname that will bring up a child window with the details of the last 10 backup status.</p>
<pre><code>while($data=mysql_fetch_array($res))
{
if(is_null($depot_array) || !in_array($data['depotname'],$depot_array ))
{
$depot_array[$r]=$data['depotname'];
if($data['SCP_status'] <&g... | php | [2] |
5,733,208 | 5,733,209 | How to get user avtar image in xmpp in iphone sdk? | <p>i am not able to get user avtar image of say gmail account, using xmpp sdk for iphone.
i am getting only this :</p>
<p>127e080d522c87e162416c78475a7008ebc8935c</p>
<p>but i googled and found that its not an original image(i thought it was base 64 encoded) but its a checksum (SHA1) of user image.</p>
<p>So how can... | iphone | [8] |
5,375,632 | 5,375,633 | provisioning profile problem? | <p>i am new to creating provisioning profile.can i use same provisioning profile for all applications(except using *, we can install one app at a time)?for example if i go bundle identifier and give my comapanyname only as com.mycompanyname(apple id).${PRODUCT_NAME:identifier},and also i set my certifate,after that
wil... | iphone | [8] |
5,214,498 | 5,214,499 | Adding to a 2 dimensional array with unshift | <p>I have a 2 dimensional array:</p>
<pre><code>var sH = [['two'],['three']]
</code></pre>
<p>and I want to add 'one' to the start/top so my array ends up as </p>
<pre><code> [['one'],['two'],['three']]
</code></pre>
<p>Using <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/unshif... | javascript | [3] |
2,119,354 | 2,119,355 | How to get an IP address in C# code | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1069103">How to get my own IP address in C#?</a> </p>
</blockquote>
<p>I need to get the IP address of the system, where the application is running by C# code</p>
<pre><code>IPAddress[] ip = Dns.GetHostAddresse... | c# | [0] |
5,437,032 | 5,437,033 | Destructor not called when type-casted void pointer to object | <p>Sample</p>
<pre><code>void func(void* data)
{
CResource* resource = (CResource*)data;
delete resource; // ~CResource never called.
resource = NULL;
}
</code></pre>
<p>Kindly help me to figure out this.</p>
| c++ | [6] |
5,887,730 | 5,887,731 | Proportionally resize a bitmap | <p>I've got a bitmap... and if the bitmap's height is greater than maxHeight, or the width is greater than maxWidth, I'd like to proportionally resize the image so that it fits in maxWidth X maxHeight. Here's what I'm trying:</p>
<pre><code> BitmapDrawable bmp = new BitmapDrawable(getResources(), PHOTO_PATH);
... | android | [4] |
1,562,248 | 1,562,249 | Get element by tag (with obscure character) | <p>I could use a little help defining the method of getting a tag name when the tag name contains an obscure character.</p>
<pre><code>artist=(x[i].getElementsByTagName("content:encoded")[0].childNodes[0].nodeValue);
</code></pre>
<p>I tried and failed with:</p>
<pre><code>artist=(x[i].getElementsByTagName("content"... | javascript | [3] |
2,154,695 | 2,154,696 | How should I load files into my Java application? | <p>How should I load files into my Java application?</p> | java | [1] |
3,232,702 | 3,232,703 | Combox SelectedIndexChanged fires when close the WinForm | <p>I am using Combobox SelectedIndexChanged event to perform few tasks. It is working nice. But when i am closing the form, SelectedIndexChanged gets fired and i get "Object reference not set to an instance of an object." exception. My code is following-</p>
<pre><code> private void cmbProductName_SelectedIndexChan... | c# | [0] |
348,118 | 348,119 | How can i send JsonObject to server using Https Post request | <p>How can i send my android application data (mobileNumber and message) which is in JSON format to server using HTTPS Post request. please help me. </p>
| android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.