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 |
|---|---|---|---|---|---|
3,678,262 | 3,678,263 | virtual keyword internals | <p>I heard lots of times virtual function is usually implemented using a vtable. But I actually don't know actually how its implemented and how it works.</p>
<p><em>edit</em></p>
<p>I didn't actually get this code: How can it be rewritten. Can someone explain this in detail please.</p>
<p>Finally, let's see how the ... | c++ | [6] |
2,273,467 | 2,273,468 | How to make auto casting between list item? | <p>I define 2 object: </p>
<pre><code> public sealed class obj1
{
public int i1;
public string str1
}
public sealed class obj2
{
public int i2;
public string str2
public static explicit operator obj2( obj1 e )
{
return new obj2()
{
i2 = e.i1;
... | c# | [0] |
3,828,513 | 3,828,514 | Problem with asp.net custom hander | <p>ive written a custom http handler and its in app_code. It's just a website so code is not being compiled into a dll. I've written the handler and its signature looks like this...</p>
<pre><code>namespace MicrotanksWebsite
{
public class RssHandler : IHttpHandler
{
}
}
</code></pre>
<p>The error i'm g... | asp.net | [9] |
176,591 | 176,592 | Convert timezone in php | <p>I have these timezones. I want to get the current datetime depends on the given timezone. The user will select either one timezone. so need to return current time.</p>
<p><strong>ASKT<br/>
CDT<br/>
EDT<br/>
HST<br/>
MDT<br/>
MST<br/>
PDT<br/></strong></p>
<p>How can i convert? Please help</p>
| php | [2] |
3,611,343 | 3,611,344 | Using Java to get OS-level system information | <p>I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows.</p>
<p>Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just ... | java | [1] |
3,387,031 | 3,387,032 | What's the most efficient way to empty an element with jQuery | <p>All these do it, but what is the most efficient way?</p>
<pre><code>$(selector).html('');
$(selector).text('');
$(selector).children().remove();
</code></pre>
| jquery | [5] |
3,229,414 | 3,229,415 | tablesorter works on all except one | <p>I have a tablesorter that works on all except one column.
See <a href="http://www.dbno.us/finance/beta/old.php?index=sp100" rel="nofollow">http://www.dbno.us/finance/beta/old.php?index=sp100</a></p>
<p>When you click on P/E, it sorts incorrectly. On ascending order, it will put 223.68 ahead of 23.30. On descending ... | jquery | [5] |
892,705 | 892,706 | Execute multiple batch files c# | <p>I hope that you can help me. When I want to execute those .bat files, I can see that the files are executed but I can get only the first one, the second one or the others I can't get them, I have no problem with my batch files, I've tried to executed them one by one and it works.</p>
<pre><code> string str_Path = S... | c# | [0] |
4,982,028 | 4,982,029 | FadeIn appended div with jQuery | <p>I load some divs with append. Works, but I'd like to fade it in. Fade Out works but not fade in...</p>
<pre><code>$("#click").click(function() {
var overlay = $('<div id="overlay1">'),
overlayBox = $('<div id="overlay2">');
$('body').append(overlay1, overlay2).fadeIn(500); ... | jquery | [5] |
48,310 | 48,311 | Ninject Func clarification | <p>Could someone please help me to understand the statement below please:</p>
<pre><code>kernel.Bind<Func<IKernel>>().ToMethod(ctx => () => ctx.Kernel)
</code></pre>
<ol>
<li>What does above code do?</li>
<li>What is Func?</li>
<li>Is it trying to bind and Interface IKernel to something...? This par... | c# | [0] |
805,420 | 805,421 | Hide and Show same div using Jquery | <p>Hi im trying to figure out how to hide and show content using multiple links. Ex.</p>
<pre><code><a href="#">Content 1</a>
<a href="#">Content 2</a>
<a href="#">Content 3</a>
<div class="show">content #1</div>
<div class="hidden">content #2</div>
<div ... | jquery | [5] |
3,187,237 | 3,187,238 | Compile a .cs file which is located in different folder of the disk from another .cs program | <p>i want to compile a .cs program which exist in some other folder on the disk and generate a .dll of it, using another .cs program or a console application or a window application. i tried using the following </p>
<pre><code>using (StreamReader textReader = new StreamReader(@"path\Filename.cs"))
{
textFile = te... | c# | [0] |
1,622,955 | 1,622,956 | Add to Dictionary<string, string> using foreach | <p>what is the best way to ensure that optionValue is always unique in the following scenario? </p>
<pre><code>public Dictionary<string, string> Dict = new Dictionary<string, string>();
foreach (string optionKey in i.options.Keys)
{
string optionValue = i.options.Values.ToString();
D... | c# | [0] |
1,403,215 | 1,403,216 | Remove console.assert in production code | <p>I'm using console.assert to test/debug but I'd like to remove this in production code. I'm basically overwriting console.assert to be a noop function right now but wondering if there's a better way. It would be ideal if there was some javascript preprocessor to remove this.</p>
| javascript | [3] |
1,523,117 | 1,523,118 | What does threadid bogus mon mean? | <p>I am using a <code>ScheduledThreadPoolExecutor</code> and when I have multiple scheduled threads running I am getting <code>threadid=xx: bogus mon 1+0>0; adjusting</code> in LogCat.</p>
<p>Can anyone shed any light on what this means, is it bad and if so how do I stop it?
Thanks.</p>
| android | [4] |
4,388,346 | 4,388,347 | how to acess excel cell value and set it | <p>need to open an excel sheet and then go an to cell range like A 4, B5
<strong>set A4= " India" and set B5="Report name"</strong></p>
<p>in the excel sheet i do not have any headers like.i have few data dump in excel sheet
above that data i need to write 2 value "India" and "Report name " in the cell range<... | c# | [0] |
3,006,532 | 3,006,533 | What is the best way to learn jQuery? | <p>I am new to <a href="http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework">ASP.NET MVC</a> and <a href="http://en.wikipedia.org/wiki/JQuery">jQuery</a>. What is the best way to learn jQuery? Are there any good links, blogs, and screencasts?</p>
| jquery | [5] |
4,954,481 | 4,954,482 | php function with Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$' | <p>The PHP function below is producing this error: Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$', on this line that contens this code:<code>$obj = new ( );</code></p>
<p>Does anyone know what's wrong?</p>
<pre><code>function createContextAwareObjectOfClass($className) {
$clas... | php | [2] |
1,501,951 | 1,501,952 | Highlight the tabbaritem with image | <p>I have three TabBarItem in a TabBar . And each tabbar item has normal image. I want to highlight the TabBarItem image instead of the normal image.</p>
<p>Can i achieve it?</p>
<p>Thanks in advance</p>
| iphone | [8] |
4,864,564 | 4,864,565 | How to get all option values with jQuery? | <pre><code><select>
<option>test</option>
<option>test1</option>
</select>
</code></pre>
<p>In fact I'm going to retrieve the innertext of <code><option></code>,but these two jobs are similar.</p>
| jquery | [5] |
3,021,663 | 3,021,664 | How do I hide the navigation bar for popups in javascript? | <p>How do I hide the navigation bar for popups in javascript?</p>
| javascript | [3] |
3,967,613 | 3,967,614 | How do I call static method for a generic type in a class? | <pre><code>interface TerminationCondition
{
static bool IsSatisfied(some parameters);
}
</code></pre>
<p>Let's say some classes A and B implement this interface. </p>
<p>Some other class C has a generic type:</p>
<pre><code>class C<termCondition> where termCondition : TerminationCondition
</code></pre>
<p... | c# | [0] |
1,111,423 | 1,111,424 | How to prevent "MainActivity screen "display | <p>I have an Android app in which the first screen is a menu display. Before it gets to the menu display though it displays a page with the launcher icon and "Main Activity" at the top. How do I prevent this display? Manifest file has this:</p>
<pre><code><manifest xmlns:android="http://schemas.android.com/apk/res/... | android | [4] |
1,461,973 | 1,461,974 | go back to the previous activity when clicked on back button in android | <p>I am designing a login based application.i have applied on click on the submit button to go to next view.In the nextview i have back button.I want that when i click on back button view should go back to previous activity</p>
<p>Thanks in advance
Tushar</p>
| android | [4] |
3,621,981 | 3,621,982 | Echo a comma on all but the last value? (result from mysql_fetch_array) | <p>How do I echo a comma on all but the last value? Here's my code:</p>
<pre><code>while ($servdescarrayrow = mysql_fetch_array($servdescarray)) {
ECHO $servdescarrayrow['serv_desc'].",";
}
</code></pre>
<p>Shouldn't this work:</p>
<pre><code>$i = 0;
while ($servdescarrayrow = mysql_fetch_array($servdescarray)... | php | [2] |
3,850,172 | 3,850,173 | Force Calculate using UIAcceleration values in iphone | <p>How to calculate force value of iphone using UIAcceleration values....</p>
<p>Can anyone help me?</p>
<p>What i want is ? When user moves slowly from one region to other i want to do some task or they move faster i want to do some other task ....</p>
<p>Can anyone help me ?</p>
<p>Thanks in advance.....</p>
| iphone | [8] |
5,975,858 | 5,975,859 | How to replace " and \ from text files using Java? | <p>I'm using <code>replace</code> and <code>replaceAll</code> Java functions to replace strings in text files.</p>
<p>I've some issues with some symbols occurring in my text file, such as <code>"</code> and <code>\</code></p>
<p>Let's say I have to remove the " from "blablabla", what should i use ? I'm currently usin... | java | [1] |
5,042,722 | 5,042,723 | compile error: cannot find symbol: In, StdIn and StdOut | <p>The code is from
<a href="http://algs4.cs.princeton.edu/11model/BinarySearch.java.html" rel="nofollow">http://algs4.cs.princeton.edu/11model/BinarySearch.java.html</a> for Algorithms textbook.</p>
<pre class="lang-java prettyprint-override"><code>import java.util.Arrays;
public class BinarySearch {
// precon... | java | [1] |
186,602 | 186,603 | picker view in iphone | <p>i am new developer in iphone application
how to length decreases of the picker view in iphone application </p>
| iphone | [8] |
5,931,253 | 5,931,254 | jQuery append while slideToggle | <p>I am appending new data - $('#posts').append(data);<br>
But I want this new data to .slideToggle() while appending.</p>
<p>How can it be done?</p>
| jquery | [5] |
5,779,721 | 5,779,722 | Tableview scrolling and header views | <p>My application has a header (like toolbar) which contains some button controllers,and just below the header view there is a tableview which contains some datas from sqlite.</p>
<p>When the tableview starts scrolling, I need the top header to hide and another header to pop out in place of the main header view.</p>
... | iphone | [8] |
4,759,204 | 4,759,205 | How to sort table rows using class names? | <p>Hi i have the bellow code i want to sort table rows based on the class name ..here each row contains two classes one is "sprint1" and second one is "cls*" ..i want to sort the rows bassed on the second class...thanks in advance</p>
<p></p>
<pre><code> <tr class="sprint1 cls5">
<tr class="sprint1 cls... | jquery | [5] |
5,747,196 | 5,747,197 | Describe an algorithm to perform depth first (preorder) traversals on a quadtree and implement in python | <p>Let's assume that a given object occupies a 2D space, which can be decomposed into N cells. These N cells can, in turn, be stored in an n X n square matrix M, where n is a power of 2 and n = sqrt(N). If a cell is occupied by any portion of the object, then the corresponding matrix entry M[i][j] = 1, otherwise M[i][j... | python | [7] |
3,072,856 | 3,072,857 | My asp.net site has stopped giving me control not found error | <p>I work in an asp.net website, Earlier if I remove any control from my page and it has references in javascript something like this</p>
<pre><code>$('#<%= txtName.ClientID %>') // just an example of use
</code></pre>
<p>it used to give me the error saying something like "txtName does not exist", showing the e... | asp.net | [9] |
2,156,138 | 2,156,139 | Issue with clickable links when running jquery | <p>We've set up some fun jquery additions in two places:
<a href="http://artsygeek.com.s141242.gridserver.com/565" rel="nofollow">http://artsygeek.com.s141242.gridserver.com/565</a> (the 404 error page)
<a href="http://artsygeek.com.s141242.gridserver.com/services/magic" rel="nofollow">http://artsygeek.com.s141242.gri... | jquery | [5] |
5,380,556 | 5,380,557 | PHP: Skipping to a position given by strpos() | <p>If I have a string position that I derived with STRPOS(), how would I skip to that position? I am using a function that needs to start at the position, or at the start of the next line.</p>
<p>How would I do this? Speed is a factor.</p>
| php | [2] |
3,191,716 | 3,191,717 | Iphone SDK how to save my score? | <p>i have a integer called HighScore which is connected to highscorelabel . i have made it so when the user gets a high score it puts the score they got onto the label but i would now like to know how i can save it so that when the app is opened again it will still have the high score : this is my code for detecting wh... | iphone | [8] |
3,054,013 | 3,054,014 | Looping through with double variables | <p>I have two arrays with two sets of values in ($a[] and $b[])
I want to do something like the following:</p>
<p>$a[0] - $b[0]
$a[0] - $b[1]</p>
<p>$a[1] - $b[0]
$a[1] - $b[1]</p>
<p>This will continue until the arrays reach the end.
So i want a hyphen to seperate the two arrays, with the first array staying the s... | php | [2] |
3,987,661 | 3,987,662 | How to pass an array of C-Strings to a function | <p>Normally I would just pass an array into a function, however, I am doing a homework assignment and my professor says to use an array of C-Strings and I want to use a function. However, I can not think of how to send this to a function. Any help would be great.</p>
| c++ | [6] |
5,271,450 | 5,271,451 | A better way of finding out if any running process was launched from a given file? | <p>I have to check whether another process is running, based only on the name of the EXE file.</p>
<p>Currently I get the process list and then query the <code>MainModule.FileName</code> property, however some processes throw <code>Win32Exception</code> "Unable to enumerate the process modules" when you access the <co... | c# | [0] |
4,729,622 | 4,729,623 | Launching an application (3rd party, closed source) | <p>I am trying to interface with 3rd party software, trawling for ideas and suggestions:</p>
<p>There is a COMPANY file, shared among an entire user group, which just contains text, say</p>
<pre><code>H:\Vin2010.L50
H:\NewVat.L50
H:\Vatchange.L50
H:\WES009\L50Data
H:\SOF001\L50Data
</code></pre>
<p>Now in my app, I'... | c++ | [6] |
1,615,499 | 1,615,500 | Error: variable might not have been initialised | <p>I am doing a book exercise regarding the Ackermann function.</p>
<p>I have one question though. If I declare result but do not initialise it, the compiler complains that "variable result might not have been initialised". </p>
<pre><code>int result;
</code></pre>
<p>When I set it to default to 0, it does not compl... | java | [1] |
3,920,738 | 3,920,739 | Why does the radix for JavaScript's parseInt default to 8? | <p>Defaulting the radix to 8 (if the string starts with a 0) in JavaScript's parseInt function annoys me, only because I continue to forgot to pass the optional second argument as 10. I'm looking for an answer telling me why it makes sense to have it default to 8.</p>
| javascript | [3] |
1,282,143 | 1,282,144 | How to convert number to next higher multiple of five? | <p>I am coding a program where a form opens for a certain period of time before closing. I am giving the users to specify the time in seconds. But i'd like this to be in mutliples of five. Or the number gets rounded off to the nearest multiple. </p>
<p>if they enter 1 - 4, then the value is automatically set to 5.
I... | c# | [0] |
3,865,340 | 3,865,341 | Get 3 most common Point from List<Point> | <p>I have a quick question that I haven't found out how to do efficiently (in C#).</p>
<p>I have a list array of Points (X,Y). I need to find which 3 points are the tightest cluster. It's for a mapping project.</p>
<p>What would the best way to do this be? There's only about 6 to 9 items in the list.</p>
<p>Thanks i... | c# | [0] |
4,752,450 | 4,752,451 | Date format and Array which used menu based progarm | <p>How to make hindi lanuage date format which is use a locale class in java language? and second question how to make bank account use array for loop in menu based program in java ?</p>
| java | [1] |
2,325,989 | 2,325,990 | Elegant way to express shift left OR right in template | <p>I currently have a template function which, depending on its template parameters A and B, may shift a value either left or right:</p>
<pre><code>template <int A, int B> void f(X) {
// ...
if (A >= B)
{
SetValue(X << (A-B));
}
else // (A < B)
{
SetValue(X >> (B-A));
}
</code></pre>
<p>Wh... | c++ | [6] |
1,272,246 | 1,272,247 | How to layout view right aligned and bottom of an LinearLayout | <p>I am trying to layout 1 textview (upText) left aligned and 1 textview (downText) and an image view (image) both on the same line and right aligned.</p>
<p>how can I do that? I tried that, but both 'textview' and image view at left aligned.</p>
<p></p>
<pre><code> <TextView
android:id="@+id/u... | android | [4] |
3,370,177 | 3,370,178 | javascript: shortcut build-in object function (setInterval) | <p>I was doing something similar to this few days ago and it worked perfectly , now i try to write it same as it was and it's not working , somehow.</p>
<p>what's the problem here?</p>
<pre><code>var win = window ,
setInter = "setInterval";
win[setInter](function(){alert();}, 1000);
</code></pre>
<p>as i ... | javascript | [3] |
2,593,650 | 2,593,651 | Converting VB.NET Web Form to C# and wiring up events | <p>In My VB.NET web page, I have this standard event. Note the "Handles" clause on teh event declaration.</p>
<pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
</code></pre>
<p>In my C# web app, I have this:</p>
<pre><code>protected void Page_Load(object ... | c# | [0] |
4,688,466 | 4,688,467 | How to create my own java library(API)? | <p>I created a program in java and I designed it so that methods that I want them to be appear(Getters methods) in the main, I can call them easily after initiate the class that holds these methods...</p>
<p>The question is that, I need to make this application(that holds the getters methods) be like an API... So, tha... | java | [1] |
2,912,984 | 2,912,985 | PHP Associative Array Duplicate Key? | <p>I have an associative array, however when I add values to it using the below function it seems to overwrite the same keys. Is there a way to have multiple of the same keys with different values? Or is there another form of array that has the same format?</p>
<p>I want to have
42=>56
42=>86
42=>97
51=>64
51=>52
etc ... | php | [2] |
1,486,086 | 1,486,087 | jquery popup is not working | <p>i want to open a pop in my mvc3 razor application for that i am witting following code .
When i click button .nothing happen . and i see a error in Error console " $(#dialog).dialog is not a function ". I am new to jquery , can any one help me what mistake i am doing.</p>
<pre><code> $(function () {
$(... | jquery | [5] |
1,162,608 | 1,162,609 | List Item Selected Behavior | <p>When I change the background color of a list item it no longer flashes green when selected. Is there a way to retain this default behavior when the background is changed?</p>
| android | [4] |
1,458,495 | 1,458,496 | Location manager does not detect location correctly even we are moving miles away in android | <p>In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is:</p>
<pre><code>locManager = (LocationManager)getSystemService(Context.LOCA... | android | [4] |
1,437,263 | 1,437,264 | App can report it's own memory usage? | <p>I have a console app that watches a folder (Manual code... not using the .Net classes) for file changes, and then does some moving of files based on rules.</p>
<p>However, it seems to shut down by it's self. Crashes, I guess. Now, it's a home project, and I have a 'Hit a key to end' option. I also have a 3 year old... | c# | [0] |
817,444 | 817,445 | JavaScript object method name for setTimeout | <p>my object has a function that i want to call recurseively.
my problem is how do i use setTimeout to point to the method of that instance of the object?</p>
<pre><code>MyObject.prototype.Play = function() {
// do some stuff
setTimeout(thecurrentmethodnameHERE, 1000);
}
var test = new MyObject();
test.Play();
... | javascript | [3] |
2,966,264 | 2,966,265 | Variable in PHP http link | <p>I'm trying to get the cureent url and send that through in a link and I'm stuck. The link displays but it's missing the url that I want to include (content in the code sample here)</p>
<pre><code>'href' => ( "http://chart.apis.google.com/chart?cht=qr&chs=300x300&choe=UTF-8&chld=H&chl='.$content .... | php | [2] |
2,160,880 | 2,160,881 | PHP fopen forloops | <p>I'm not exactly sure why this isn't working I tried googling it to see if there was a answer a lot of them came up with a foreachloop instead of regular for loops can someone explain to me why this isn't working.</p>
<pre><code><?php
$list = array("GOOG", "AAP", "MSFT");
for($i=0; $i<3; $i++)
{
... | php | [2] |
1,859,470 | 1,859,471 | Asp:table bordercolor different html rendered for 1.1 and 2.0 | <p>I have the following markup .NET 1.1 app.</p>
<p>I want the grid lines of the table to be darkgray this is the goal here.</p>
<pre><code><asp:table id="tbl" Runat="server" CellSpacing="0" BorderColor="darkgray" GridLines="Both"></asp:table>
</code></pre>
<p>I have the app in IIS set as ver 1.1 in my d... | asp.net | [9] |
4,500,395 | 4,500,396 | link to automatically open my App? | <p>1) Is it possible for an iPhone (iOS device) to automatically open an App (that they already have installed) when the user taps on a link (for example a link they received via email)? I'm thinking of using emails for notifications and all the email would have is some text about the notification and then a link that... | iphone | [8] |
2,089,375 | 2,089,376 | php combat system: issue with loops | <p>Folks at gamedev shot me down so I'd like to try here. </p>
<p>Here's my problem. Two users have a speed variable, based on who has the faster speed is who hits the most, and first. So here are some imaginary stats:</p>
<blockquote>
<p>UserA has 2,000 speed</p>
<p>UserB has 4,000 speed</p>
</blockquote>
<p... | php | [2] |
1,957,201 | 1,957,202 | How Can i get data from the file in the documents folder | <p>i am new to xcode and objective c.</p>
<p>firstly i have created a file in documents directory and it is created and now what i need is how can i read the data from that file like whether the file is containing a particular string or not</p>
<p>How can i get that</p>
| iphone | [8] |
2,172,393 | 2,172,394 | How to navigate the user from floor to floor using android application | <p>I have the requirment to navigate the user from floor to floor using wifi and gps. If user have have android tablet with wifi connection and walking to get lattitude and longitude .I have to draw or voice recognition to go left or right to tell to the user.Is it possible? if it is can anybody tell how to dO?</p>
<p... | android | [4] |
5,948,885 | 5,948,886 | Function that accepts variable arguments of different datatypes in c++ | <p>I have been searching for this in stackoverflow but i was unable to understand most of the solutions proposed. The problem is that i need to write a function that may accept any datatype and the number of arguments to the function also vary..For now i would just like to print those arguments in the function.</p>
<p... | c++ | [6] |
5,631,550 | 5,631,551 | Javascript mailto function loading issue | <p>I'm using JavaScript <code>mailto</code> function and when clicking on the button the mail loads in the same tab. How can I load the mail in a new tab? </p>
<p>Here's my code:</p>
<pre><code><input type="button" value="Apply" name="apply" onclick="mailJob('Sample');">
</code></pre>
<pre><code>function mai... | javascript | [3] |
1,295,964 | 1,295,965 | Jquery .unbind and .html not working | <p>the code below is suppose to remove #approve and #deny and echo what the user has pressed when one of the links are pressed. </p>
<pre><code><html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
... | jquery | [5] |
3,283,440 | 3,283,441 | Why is this jQuery code not getting parsed? | <p>Can someone take a look inside <a href="http://www.tapet-online.ro/skin/frontend/default/acumen/js/manatln.js" rel="nofollow">this script</a> and tell me why isn't it parsed, triggered and active?
I mean, everything I put after <code>(function($) {</code> has no effect.</p>
<p>That script should've dropped down a f... | jquery | [5] |
3,938,989 | 3,938,990 | How to add one extra field to contact database? | <p>I want to add one field(column) to contact fields,that i can set value for that field in code and mobile user can not see that field in contact properties.In this way i can use contact information without create another database to copy contact database.
Is this possible?
please help me</p>
| android | [4] |
992,520 | 992,521 | Image into the UITextView | <p>Is this possible to insert the image into the UITextView from the Gallery. If this is possible then how this can be done? Is there any default method of the UITextView? Please suggest me.</p>
| iphone | [8] |
1,543,871 | 1,543,872 | Method calling from 2 diffferent classes | <p>I am new to java. I have 2 methods form 2 different classes. I would like to return the methods into 1 class. An error is occuring to me. Could someone see the code and help me pls?</p>
<pre><code>public int getHeight () {
if (nd.leftNode == null && nd.rightNode== null) {
return 0;
} else {
... | java | [1] |
5,452,494 | 5,452,495 | Deployment of website | <p>I deployed my website into IIS..I created virtual directory and gave an alias 'a'..but when I open the site in IE or Mozilla, it says 'Access is denied'..i write <a href="http://localhost/a/Login.aspx" rel="nofollow">http://localhost/a/Login.aspx</a>
Server Error in '/a' Application.
Where is the problem?</p>
| asp.net | [9] |
2,855,677 | 2,855,678 | Do I need to delete all the children of a DOM element , when I delete the parent itself? | <p>If I delete a parent element, do the child elements remain in the browser's memory?</p>
<pre><code><div id="parent">
<ul>
<li>one</li>
<li>two</li>
<li>one</li>
</ul>
</div>
<script>
var element = document.getElem... | javascript | [3] |
287,976 | 287,977 | Using mysql to query a table with a product code which is part of a filename | <p>I am trying to query a table which has a column called "filename".</p>
<p>The actual filename is made up of "productcode-category.jpg"</p>
<p>If i have the product code posted to a php page, how could i then take the value and search in the filename column where it equals the product code?</p>
<p>It would be grea... | php | [2] |
5,309,327 | 5,309,328 | Using reflection - how to get all fields and methods | <p>Using Java reflection:</p>
<ul>
<li>How can I get all the methods of a given object (private, protected, public etc)</li>
<li>And perhaps create a structural representation of the class</li>
<li>And finally, serialize the object into String or byte array</li>
</ul>
<p>Does this idea look sound? or this won't get m... | java | [1] |
3,243,260 | 3,243,261 | Update tableView with AccessoryCheckmark when switching back to that TabView | <p>My app has 3 tabs, and the array that populates a tableView in third tab can be changed in the other two tabs. When I switch to the third tab, I need the tableView to be updated. I know how to do this, the only problem is that the table view is a check list.</p>
<p>When I tick some of the rows in the third tab, swi... | iphone | [8] |
2,583,756 | 2,583,757 | Is there any way to know if connected device is a specific one? | <p>I want to let just specific DOK device something-
is there way to know that the specific DOK is connected to my machine??-
like MAC address or something else?- and if so- how do I do it through the code? </p>
| c# | [0] |
96,212 | 96,213 | Java: store to memory + numbers | <p>Im having a function:</p>
<pre><code>private void fixTurn(int turn)
</code></pre>
<p>And then I have:</p>
<pre><code> memory1 = memory1 + count;
</code></pre>
<p>Now, I would like to make, if turn is 2 it should:</p>
<pre><code> memory2 = memory2 + count;
</code></pre>
<p>I tried this:</p>
<pre><code> memo... | java | [1] |
2,168,687 | 2,168,688 | Make jQuery works for element created with "insertAfter" etc | <p>Hello<br>
I have some elements like <code><a class='link'>click</a></code> which are created after clicking on another div ...<br>
Is there any chance to make jQuery works for <code><a class='link'>click</a></code> ? </p>
<p>For now I'm forced to use <code><a onclick='func()' class='link... | jquery | [5] |
5,054,075 | 5,054,076 | custom datagridview | <p>Can you please help to create a proper custom datagrid of which, if I select any of the cell only that cell will be in edit mode and all others are in read only mode and that cell should have a data source to bind with it.</p>
| c# | [0] |
2,253,027 | 2,253,028 | make div appear on only 1 of many image rollovers | <p>I have a hidden div with class <code>hidden_thing</code> that is positioned in the center of an image and then hidden using CSS visibility. I can switch it to visible with the following jQuery, but I have many images on the page with the same class <code>cat_image_table</code>. So how do I select on the currently ro... | jquery | [5] |
4,631,152 | 4,631,153 | android and camera flash | <p>I want to write application which will be used camera flash. I want the light to blink. For now I have this code:</p>
<pre><code>void ledon() {
cam = Camera.open();
Parameters params = cam.getParameters();
params.setFlashMode(Parameters.FLASH_MODE_ON);
cam.setParameters(params);
cam.startPrev... | android | [4] |
1,966,532 | 1,966,533 | Just declaring a variable in Python? | <p>Is it possible to just declaring a variable in Python, like so?:</p>
<p>var</p>
<p>so that it's gonna be initialized to None?</p>
<p>It seems like python allows this, but as soon as you access it, it crashes.</p>
<p>Is this possible? If not, why?</p>
<p>EDIT: I wanna do this for cases like this:</p>
<pre><code... | python | [7] |
2,424,245 | 2,424,246 | How to carry textbox values from one webpage to another webpage using JavaScript? | <p>I'm quite new to JavaScript andI'm trying to do the following:</p>
<p>I've two webpages Page1.html and Page2.html
On Page1.html I've one textbox and a button.
After a user puts in some text in the textbox and clicks the button, I want Page2.html be opened and the text of the textbox appearing in the body of the new... | javascript | [3] |
692,133 | 692,134 | Code to launch external app explicitly | <p>From one of my apps, I'm trying to launch another. I want to use an explicit intent.</p>
<pre><code>ComponentName cn = new ComponentName("com.myOtherApp", "OtherAppActivity");
Intent intent = new Intent();
intent.setComponent(cn);
context.startActivity(intent);
</code></pre>
<p>When I run that code, however, it as... | android | [4] |
4,887,287 | 4,887,288 | Serialized string to array in PHP | <p>I receive a string from jQuery UI Sortable plugin, it gives me a string like this one</p>
<pre><code>items[]=1&items[]=2&items[]=3
</code></pre>
<p>How can I trun it into a real array?</p>
<p>I was thinking replacing <code>&</code> with <code>;</code> and asserting it. Any better suggestions?</p>
| php | [2] |
299,147 | 299,148 | C# virtual keyword | <p>Is a virtual method compulsory to override by its subclass?</p>
| c# | [0] |
5,343,730 | 5,343,731 | how to set listview with multiple fonts | <p>My application have listview with friends name in Marathi and Hindi fonts.
But names in Marathi and Hindi fonts are displayed as block.</p>
<p>I also have <code>.ttf</code> file for Marathi and Hindi fonts and i also added that in <code>assets->fonts</code> folder. </p>
| android | [4] |
4,711,271 | 4,711,272 | how to print the mysql shell output table | <p>in mysql shell print a table like this </p>
<p>[code][1] </p>
<pre><code>mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| PROXY |
| bbs_bj |
| bbs_bj_copy |
| mysql |
| octopus |
| octop... | python | [7] |
2,510,861 | 2,510,862 | Android-sharedpreference | <p>Hi
I need simple explanation about shared preference in android and preference data</p>
| android | [4] |
3,286,128 | 3,286,129 | asp.net requiredfieldvalidator clientside validate multiple groups | <p>I have a form with 3 asp textboxes for changing password - old password, new password and confirm password and a submit button on form. Old password is checked first for setting new password. The scenario is if administrator wants to change the password it will not check any old password, while for user it will chec... | asp.net | [9] |
903,941 | 903,942 | If i add element first then if i delete that later dynamically i should get an alert..can u help with idea how to do that? | <pre><code>var a1=document.getElementById("txtbx1");
if(a1.value!="")
{
alert('Enter Name!!!');
var lbl1=document.createElement("label");
var lblTitle1=document.createElement("label");
lblTitle1.innerHTML='Name:';
label.appendChild(lblTitle1);
var txt1=doc... | javascript | [3] |
4,675,665 | 4,675,666 | Is it necessary to learn about Code Access Security (CAS)? | <p>Is it necessary to learn about Code Access Security (CAS) for desktop application development in C#.</p>
| c# | [0] |
2,835,204 | 2,835,205 | How could you generate an APK from project B programmatically, using a button click from project A? | <p>I have a project A that should use a wizard to create a project B. Project B is based on a template. Project A should send data to that template and generate an APK from this data and template programmatically.</p>
<p>I've read about the APK structure and what it includes, like classes, resources, and manifest file... | android | [4] |
6,024,914 | 6,024,915 | IPhone Development on MacBook | <p>Is IPhone development possible on MacBook? Or do I need MacBook Pro?</p>
<p><a href="http://www.apple.com/macbook/" rel="nofollow">http://www.apple.com/macbook/</a></p>
<p>Thanks.</p>
| iphone | [8] |
1,429,403 | 1,429,404 | How to know the position of StackView in Android 3.0..OnItemClick is returning 0 everytime | <p>I m tring to get the position of My views when i click on them in StackView but its always returning zero unlike other ViewGroups like Gallery,ListView and GridView.OnSelectedListener also not working ..can anyone help plz???</p>
| android | [4] |
4,939,725 | 4,939,726 | How to put an image on another Downloaded Image | <p>I have a question that I want to put a small image on left top corner of a downloaded image, showing on my web page. I don't know how to do that? </p>
<p>Please help me out about this problem.</p>
<p>Thanks in advance.</p>
| asp.net | [9] |
3,533,985 | 3,533,986 | Refactoring options - multiple methods in same class or into separate classes | <p>we have some API which will be called either by client A, B, C or D</p>
<p><strong>Current code</strong></p>
<pre><code>doSomething(String client){
if (client.equals("A")){
...
}
else if (client.equals("B")){
...
}
</code></pre>
<p><strong>Proposed refactoring 1</strong></p>
<p>separate into multiple methods an... | java | [1] |
2,434,744 | 2,434,745 | GridView elements changes their place dynamically when scroll screen | <p><strong>i have a gridview layout, and all items are insert very fine,</strong></p>
<p>now if I check on big screen then all work done is fine, because no scrolling is required</p>
<p>but if I check on small screen then items are changed their position dynamically,</p>
<p>bereif example is given below:-</p>
<p><s... | android | [4] |
3,409,831 | 3,409,832 | Is it possible to fetch the links on the flash part of the web page using php? | <p>I am working to fetch the links on a web page in php.The non-flash part of the web page is done but I am unable to fetch the links on the flash part of the web page.I want to know whether it is possible to fetch that using code?If so please guide me in the right direction.</p>
| php | [2] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.