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,428,339 | 2,428,340 | iPhone SDK: How to dismiss keyboard each time user moves to new field | <p>We want the keyboard to be dismissed each time the user moves to a new field. What event would be appropriate to place a resignFirstResponder call?</p>
<p>Thanks.</p>
| iphone | [8] |
3,285,927 | 3,285,928 | Can we create a Javascript confirm box with custom div and message . | <p>I need a javascript confirm box with customized design and dynamic message. My problem is, i need a function to call this popup show .but in that call how can i receive the result of that popup; ( like yes or no). Is that possible? </p>
| javascript | [3] |
4,376,720 | 4,376,721 | How to access a key in a stdclass | <p>I have this situation:</p>
<pre><code>object(stdClass)#203 (1) {
["1"]=>
object(stdClass)#212 (7) {
["user_id"]=>
int(1)
["type"]=>
string(6) "Device"
["name_first"]=>
string(0) ""
["name_last"]=>
string(0) ""
["name_display"]=>
string(0) ""
["gender... | php | [2] |
2,769,044 | 2,769,045 | Update DataSet, How? | <p>I have DataSet that I fill like this:</p>
<pre><code> dsView = new DataSet();
adp = new OleDbDataAdapter("select * from Worki", Conn);
adp.Fill(dsView, "Worki");
this.dataGridView1.DataSource = dsView.Tables["Worki"].DefaultView;
</code></pre>
<p>If I change any cell in the Datagrid, H... | c# | [0] |
5,874,065 | 5,874,066 | success functions refresh div on parent page | <p>I have parent.php which calls child.php through <code>$('#child').load('child.php?id='+id)</code>.
On the child.php page I have an onclick event which does some stuff (mysql etc..), with a success function.
Back on parent.php I also call anotherchild.php through a similar #div.load().</p>
<p>I would like the anothe... | jquery | [5] |
3,163,932 | 3,163,933 | PHP Don't run code on refresh | <p>So I have this page that can only be seen by a user 5 times. And I made this code that goes into the database and it adds 1 to the AccessCount field everytime the user logs in. What I want to do is that if the user refreshes his web browser, have the code that records the AccessCount NOT run.</p>
<p>How can I do th... | php | [2] |
911,141 | 911,142 | question regarding GUI in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5918935/question-regarding-gui-in-java">question regarding GUI in java</a> </p>
</blockquote>
<p>how to input string in JTextfield in java</p>
| java | [1] |
5,603,951 | 5,603,952 | Remove words from string that have a prefix of # or @? | <p>I have a block of text like this:</p>
<pre><code>Hello @Simon, I had a great day today. #StackOverflow
</code></pre>
<p>I want to find the most elegant solution to stripping it down to look like this:</p>
<pre><code>Hello, I had a great day today.
</code></pre>
<p>i.e. I want to strip out all words that have a p... | python | [7] |
5,950,992 | 5,950,993 | Maximum Width of a Printed Double in C++ | <p>I was wondering, how long in number of characters would the longest a double printed using fprintf be? My guess is wrong.</p>
<p>Thanks in advance.</p>
| c++ | [6] |
4,040,287 | 4,040,288 | how to change the AlertDialogue box title back color in Android? | <p>im new to android development i want to change the title backcolor of alerdialogue box in android which is by default is black ,kindly tell how to change this any help in this regards is greatly appreciated thanks in advance.</p>
| android | [4] |
530,845 | 530,846 | convert string to predefined 2D array | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8785815/convert-string-to-2d-array-using-php">convert string to 2D array using php</a> </p>
</blockquote>
<p>I have the string like the following:</p>
<pre><code>01,03,02,15|05,04,06,10|07,09,08,11|12,14,13,16
... | php | [2] |
3,057,632 | 3,057,633 | PHP 5.3 pass function by reference | <p>Is it possible to pass functions by reference?</p>
<p>Something like this:</p>
<pre><code>function call($func){
$func();
}
function test(){
echo "hello world!";
}
call(test);
</code></pre>
<p>I know that you could do <code>'test'</code>, but I don't really want that, as I need to pass the function by re... | php | [2] |
5,463,119 | 5,463,120 | invoke javascript | <p>I need to retrieve a value from the javascript below in my html code and inject this value into a webbrowser. how can I format and invoke this script ?</p>
<pre><code>$(function()
{
jQuery.liveviewWithTable(
{
enableCountsTable:false,
enableCountTable:true,
countTableElement:$("#count"),
directionIn:$.get... | javascript | [3] |
3,082,431 | 3,082,432 | Position cursor at the end of the email content to be sent using Intent.ACTION_SEND | <blockquote>
<p>I am using the following code to send an email from my app.The cursor points to the beginning of the "Please look into this issue". Is there any way to position the pointer at the end of the Text content? Thanks in advance.</p>
</blockquote>
<pre><code> intent.putExtra(Intent.EXTRA_EMAIL, new Strin... | android | [4] |
5,356,842 | 5,356,843 | Incorrect image dimensions in android when using Bitmap | <p>I have.png image file stored as a resource in my android application.
In my code, i am allocationg new Bitmap instance from that image as follow:</p>
<pre><code>Bitmap img = BitmapFactory.decodeResource(getResources(), R.drawable.imgName);
</code></pre>
<p>But when I read the image dimensions from the Bitmap obje... | android | [4] |
748,936 | 748,937 | Singleton implementation question | <p>Is it better to rely on IOC Framework to implemented singleton? I heard that either double checked locking or relying on static constructor are not good practice, is this true?</p>
| c# | [0] |
1,807,122 | 1,807,123 | how to get last inserted date in php MYSQL | <p>I have two tables, and I want to get the last enterd date.</p>
<p>The first table is <code>seeker</code>:</p>
<pre><code>seeker_nic-----username
111-------------ali
222-------------umer
333-------------raza
</code></pre>
<p>The second one is <code>requestblood</code>:</p>
<pre><code>id-------seeker_nic-----requi... | php | [2] |
4,105,444 | 4,105,445 | jQuery Replace One Div with Another | <p>I need to replace one div with another and also i need another container to be removed. Please, see my code:</p>
<pre><code><a id="load-more" href="#">
<div class="text">Load more</div>
<div id="infscr-loading">
<img alt="Loading..." src="../loading_small.gif" style="display: none; ">
... | jquery | [5] |
3,295,340 | 3,295,341 | Get anchor inside td | <p>I use only JavaScript.</p>
<p>I have the following code inside a function:</p>
<pre><code> siblings=getSiblings(obj);
for(var i=0;i<siblings.length;i++)
{
if(siblings[i].getAttribute('f')=='ytw')
{
ytw=siblings[i].innerHTML;
alert(ytw);
... | javascript | [3] |
4,672,628 | 4,672,629 | How to get data from MySQL database and list in the ListView | <p>I've seen numerous questions/tutorials about this, but all of them either use some kind of premade database or work with JSON.</p>
<p>I already created a database and a table with simlpe data that resides on my <code>MySQL</code> server, which is running separately as a service on my development machine.</p>
<p>I ... | android | [4] |
5,698,102 | 5,698,103 | Is it possible to add objects or data members to category in objective C? | <p>we know that using category we can add functions to existing class. But i have a doubt that, Is it possible to add objects or data members to category in objective C ??</p>
| iphone | [8] |
1,865,763 | 1,865,764 | Is there a regular expression to check for correct PHP date format entry? | <p>I have an input box that lets users enter a date format in PHP date format, for example:
M j, Y</p>
<p>I want to verify on submit that the user actually enters a date that's in PHP date format. I already have the validation script ready, I just need a regular expression or some sort of way to check that the user a... | php | [2] |
3,842,478 | 3,842,479 | Datagrid view to fill based on columns | <p>Below is my Datagridview code to get the data from employee table.</p>
<p>the problem am facing is ,my employee table have 10 columns (ID,emplNo,Dob,JoingData...etc)</p>
<p>i just want to fill my grid with only ID,EmplyNo and DOB.</p>
<p>but the below code get everything,please advise me what i suppose to do to g... | c# | [0] |
4,389,432 | 4,389,433 | Creating PHP class instance with a string | <p>I have two classes:</p>
<p>class <code>ClassOne { }</code> and class <code>ClassTwo {}</code> . I am getting a string which can be either "One" or "Two".
Instead of using a long switch statement such as:</p>
<pre><code>switch($str) {
case "One":
return new ClassOne();
case "Two":
return new Cl... | php | [2] |
5,418,680 | 5,418,681 | How to add an advert pic of your app on android market | <p>Added an image from android market. I would like to know how can we get that image in market.
<img src="http://i.stack.imgur.com/cPgFc.png" alt="enter image description here"></p>
| android | [4] |
1,086,348 | 1,086,349 | How do I create these nested dom elements with jquery? | <p>Given these javascript variables:</p>
<pre><code>var div_id = "my_div";
var h1_class = "my_header";
var a_class = "my_a_class";
var a_string = "teststring";
</code></pre>
<p>and this page element:</p>
<pre><code><div id="container"></div>
</code></pre>
<p>I want to build this html structure with jQue... | jquery | [5] |
2,845,246 | 2,845,247 | Android as an Appliance | <p>I am new to Android and I am trying to use a Android tablet to create an appliance. See this link as a reference. <a href="http://www.youtube.com/watch?v=ouP-CgLfANw" rel="nofollow">http://www.youtube.com/watch?v=ouP-CgLfANw</a> . I don't want to user </p>
<p>Is this possible by just modifying the boot process ... | android | [4] |
1,654,328 | 1,654,329 | passing value into a different class | <p>I have an array of data called msg.data[2] where i have used pubsub i now want to pass this data into the PlotCanvasExample Class</p>
<p>Here is where i call the class</p>
<pre><code>self.pubsubText.SetLabel("This is the Contact Map for the chain "+msg.data[0]+" in the PDB file "+msg.data[1])
frame = self.GetP... | python | [7] |
4,739,535 | 4,739,536 | How to get any identifier of the topmost activity? | <p>I have a service and its behavior must change when topmost Activity changes. Say, Activity A is active and then service starts some kind of processing. This processing must stop when Activity A is no longer visible: user pressed "Back", "Home" or did anything else that makes Activity A invisible. This Activity A mus... | android | [4] |
1,690,580 | 1,690,581 | Android: How to Clear Intent Stack While Using SingleTask | <p>I'm using Twitter <code>oAuth</code> library in my application. Users are logging in with ther Twitter accounts. </p>
<p>In activity A, twitter login is available. When user logged in, I want to start activity B with no history. Here is my all stuff:</p>
<p>Firstly, <code>Manifest.xml</code>, so I set <code>launch... | android | [4] |
941,692 | 941,693 | To use MSMQ or WCF - VS 2008 | <p>This is my situation:
1. have an existing application which relies on XML being fed via FTP. Based on the XML, the application performs tasks.</p>
<ol>
<li><p>Now i want to download files, path being an element of the XML file, using BITS</p></li>
<li><p>I want to create a BITS application and that should work on t... | c# | [0] |
1,646,405 | 1,646,406 | how to set a title for spinner which is not selectable..? | <p>I have <code>spinner</code> but in it only selectable items are shown as default title.. </p>
<p>is there any way i can set title which doesn't appear when spinner unfolds...</p>
| android | [4] |
2,674,539 | 2,674,540 | File operation in android | <p>I am new to android platform. I need to create a text file in android. Please let me know how to perform this task in android. I have written a code that is working fine in java but not in android. Please help me on this....the sample code that ihave written is :-</p>
<p>try
{
DataOutputStream dos = new DataOutpu... | android | [4] |
5,245,703 | 5,245,704 | Android AccountManager | <p>Can some one help me with step by step approach to use the AccountManager in android along with a minimalistic example for better understanding?</p>
| android | [4] |
4,434,515 | 4,434,516 | sftp java client | <p>I am able to connect to server2 via sftp at server1 using public key . But I am facing "Auth fail" error while connecting server 2 from server1 via java code</p>
<p>public key is already setup at both servers</p>
<p>Can you let me know where I am wrong?</p>
<pre><code>ChannelSftp channelsftp = null;
S... | java | [1] |
5,497,245 | 5,497,246 | Making on onClick to change text in javascript | <p>I want to make a format like the following:</p>
<p>Phrase<br>
[Button]</p>
<p>When the button is clicked, the 'phrase' changes and the button remains. I am able to make it so text appears, however I can not make it so the button stays. Does anyone have an idea of how this may be done? Thanks.</p>
| javascript | [3] |
1,035,720 | 1,035,721 | Android album art caching | <p>Does anyone know how to store the album art of a music album into a cache? I already have my album arts fetched from my content resolver. But I would like to store them inside a cache (probably, a hash map) so that it will not need to fetch the images from the content resolver again but from the cache.</p>
| android | [4] |
5,049,869 | 5,049,870 | JQuery RSS Feedzilla Searching | <p>I'm in the process of building an RSS Feed Search for my company so we can add in parameters to search on. I'm using the Feedzilla API located here: <a href="http://code.google.com/p/feedzilla-api/wiki/RestApi" rel="nofollow">http://code.google.com/p/feedzilla-api/wiki/RestApi</a> . Right now, what I have, is a sear... | jquery | [5] |
2,204,297 | 2,204,298 | How to compile c++ program with pngwriter | <p>I'm trying to make a png file using <a href="http://pngwriter.sourceforge.net/" rel="nofollow">"pngwriter"</a>. I'm using Ubuntu as my OS. I've put these following files in /home/ediamin/png/ folder
1.png.h, 2.pngconf.h, 3.pngwriter.h, 4.test.cpp, 5.zconf.h, 6.zlib.h</p>
<p>my test.cpp contains this codes</p>
<pre... | c++ | [6] |
5,031,711 | 5,031,712 | how to get category name if my category got custom slug | <p>so my category got slug 'aeroplanes' and I need to get category names from it, but I can't get it with </p>
<pre><code>$category = get_the_category($post->ID);
echo $category[0]->cat_name;
</code></pre>
<p>cause it takes all posts from default category with category slug 'category'. How can I do that if I g... | php | [2] |
200,860 | 200,861 | how to see current version of iphone SDK in MAC system? | <p>anyone can help?</p>
| iphone | [8] |
321,391 | 321,392 | Unexpected identifier error, javascript | <p>I'm getting an unexpected identifier at <code>float farenheitFloat = parseFloat(farenheit)</code></p>
<p>Can't for the life of me figure out why. Any help?</p>
<p>A little background...<code>validateFarenheit(farenheit)</code> is working.</p>
<pre><code>function convertFarenheit() {
var farenheit = document.g... | javascript | [3] |
4,455,260 | 4,455,261 | C++ overloading and picking right function | <p>C++ Overloading of methods question</p>
<p>I have 1 parent class call Vehicle</p>
<p>I have 2 child class call Motorcycle and Car</p>
<p>I have this value call getNoOfWheels();</p>
<p>Parent class got that method, motorcycle and car also got.</p>
<p>Lets say i prompt user for input</p>
<pre><code>string vehicl... | c++ | [6] |
3,293,149 | 3,293,150 | Loop over ALL the values | <p>This might be an odd question, but how does one nicely loop over ALL values of a type. In particular the standard integral types such as <code>unsigned short</code>. A normal <code>for</code> loop construct presents a difficulty: what condition to use to exit the loop - because all values are valid.</p>
<p>Of cou... | c++ | [6] |
2,446,675 | 2,446,676 | Select from upper level folder | <p>So, I've created a website and I have lots of pages in the public_html folder. Those page load the images and script from folders who are direct child of public_html folder.</p>
<p>Now I need to move all those files into a folder (let's name it sample-folder).</p>
<p>My question: Is there any way to let the pages ... | php | [2] |
4,150,032 | 4,150,033 | Use Javascript to make Image visible when page opens | <p>I'm looking for Javascript that will fire when page opens and sets Image1 visibility to true.</p>
<p>Thanks</p>
| javascript | [3] |
4,207,088 | 4,207,089 | defining bunch of static methods in c++ | <p>Which is appropriate:</p>
<pre><code>class xyz {
static int xyzOp1() { }
static int xyzOp2() { }
};
</code></pre>
<p>OR</p>
<pre><code>namespace xyz {
static int xyzOp1() {}
static int xyzOp2() {}
};
</code></pre>
<p>Is there something specific which we can get when we define using class tag in comparisi... | c++ | [6] |
3,981,429 | 3,981,430 | Security application | <p>i am developing a password storage software. To enter into the application we have to login with valid details.</p>
<p>Now when i press home key, the application should log of automatically and then start all over again from security perspective. It should logout everytime the home key is pressed.
How do i do it?</... | android | [4] |
690,881 | 690,882 | Allowing users to upload ANYTHING | <p>I'm building a file sharing site, and I'm thinking, I want my users to be able to upload and share anything.</p>
<p>Sounds dangerous, I know. But, is there a method to allow this to be possible? For example, forcing the download when the user requests the link with a mime type? Rather than "running" something on th... | php | [2] |
1,284,190 | 1,284,191 | Link JQuery click methodto Button click event | <p>On my web page I have a button, and some JQuery code. The problem is that when I click the button, the JQuery code is not executed. Clicking the button still does a postback, and seems to ignore the JQuery code.
Here is my button:</p>
<pre><code><button id="btnCancel" class="button" runat="server" ><span... | asp.net | [9] |
4,382,071 | 4,382,072 | Tababar application in iphone | <p>hi
i am making an tabbar application in which i have 4 tabbars. tabbars are working perfectly, my problem is that the title is overlapping over other tab bar. Title are a bit long like Instructional Videos. how can i fix it. </p>
| iphone | [8] |
1,083,153 | 1,083,154 | Persistant notification | <p>Hi I was wondering if anyone knows of a jquery plugin to create a behavior similar to the notification header that appears on Stack Overflow. I understand how to hide and show elements, I dont know how to make its toggle status be persistent throughout the site. I guess basically what I am asking is how to add cook... | jquery | [5] |
1,907,353 | 1,907,354 | How to get webpage HTML | <p>I'm trying to load a webpage html in my Android app with the following code:</p>
<pre><code> HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet("http://www.stackoverflow.com/");
HttpResponse response = client.execute(request);
String html = "";
InputStream in = response.... | android | [4] |
4,951,883 | 4,951,884 | JavaScript alertbox | <p>Is there anyway of displaying a selectbox in an alert box of javascript. when user clicks an add button then alertbox must be displayed in which a selectbox (dropdown) must be shown with add button</p>
| javascript | [3] |
313,167 | 313,168 | Various problems in JSHint | <p>In JSHint I get the follwing message about my array declaration:</p>
<pre><code>jesuschrist["eng_male"] = [//tons of arrays here];
</code></pre>
<blockquote>
<p>['baby_jesus'] is better written in dot notation.</p>
</blockquote>
<p>Does it mean I should write it as <code>baby.jesus</code>?</p>
<hr>
<p>Also, I... | javascript | [3] |
3,016,097 | 3,016,098 | Javascript: toggle loading InnerHTML | <pre><code><script>
function toggle_table() {
visibility = document.getElementById("table").style.visibility;
document.getElementById("table").style.visibility = (visibility == 'visible') ? 'hidden' : 'visible';
document.getElementById("toggle_table").innerHTML = (visibility == 'visibl... | javascript | [3] |
4,372,563 | 4,372,564 | How get list of days in a week that exist in some date range (Javascript) | <p>Hello I need to define existing days in some date range.
I don't wont to make loop from start to end dates and use like here <a href="http://www.w3schools.com/jsref/jsref_getday.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_getday.asp</a>
Is it possible to calculate it some how ?</p>
| javascript | [3] |
3,274,329 | 3,274,330 | play mp3 from network | <p>I have tried below three solutions but none of them worked. I am sure I am missing some key point but not clear what. (FYI, I am trying out below solutions on iPhone device, not on simulator.) </p>
<pre><code>- (IBAction)actionAVPlayer:(id)sender {
AVPlayer* player = [[AVPlayer alloc] initWithURL:[NSURL URLWithStr... | iphone | [8] |
770,052 | 770,053 | Looking for experienced PHP programmers in/near NYC | <p>I hope I am not breaking protocol by this posting. </p>
<p>I need PHP programmers to help with projects. Full time is best, and nearby (LI/NYC) is heavily preferred though I would not rule out long distance for the right people.</p>
<p>thanks</p>
| php | [2] |
374,501 | 374,502 | Load a html page into a div for jqueryui dialog and editing the contents | <p>I have a Html page i'm loading into a jquery ui dialog, I need to insert a session id into the static loaded html for the page onload processing. My first thought was to use .Data() and add in the var that way but I don't think it's possible on a .Load(page.html) call?</p>
<p>So I have tried to do this a lot of d... | jquery | [5] |
254,185 | 254,186 | Text for links android | <p>Hello I would like to have a link to a website but with a different text on the link like a html anchor tag <code><a href="google.com">Alternative text</a></code>.</p>
<p>Can anyone show any example on this? I have tried Linkify without success.</p>
| android | [4] |
5,213,897 | 5,213,898 | how to identify the extension/type of the file using C#? | <p>i have a workflow where user is allowed to upload any file and then that file will be read. </p>
<p>Now my question is if user have image file xyz.jpg and he renamed it to xyz only (extension removed) in this can we still get the type/extension of the file using/reading files data/metadata.</p>
<p>Thanks all</p>
| c# | [0] |
5,488,719 | 5,488,720 | how to use html templates in C++ to convert html file to ps in C++ | <p>how to use html templates in C++ to convert html file to ps in C++ </p>
| c++ | [6] |
5,411,041 | 5,411,042 | Measuring TTFB and TTLB with HTTP in C# | <p>I am looking for ways to measure the TTFB (Time to First Byte) and TTLB (Time to Last Byte) while making a http web request to a specific web page.</p>
<p>How can I do the measurement in C#.</p>
<p>I am writing a monitoring tool to measure the TTFB and TTLB for accessing a web page. </p>
| c# | [0] |
4,530,380 | 4,530,381 | php print different color in rows | <p>I try to print out all user email from table,
but i want odd number print in red
even number print in blue.
how to do this in while loop?</p>
<pre><code>$connect=mysql_connect("localhost", "root", "");
$database=mysql_select_db("phplogin", $connect);
$SQL=mysql_query("SELECT * FROM users");
$num=mysql_num_rows($SQ... | php | [2] |
4,084,319 | 4,084,320 | Pancake Sorting Through List | <p>I am to pancake sort a list and return the minimum number of calls to flipStack. Primarily, I am confused as to why my program doesn't end when the base case is reached (the list is sorted). Shouldn't the best number (minimum number of flips) just be returned right there?</p>
<p>Secondly, I need to add a pruning fi... | python | [7] |
393,210 | 393,211 | iPhone - How do I change default status bar when opening apps? | <p>I have used Winterboard to apply a theme. I have put <code>Translucent_Base@2x.png</code> in <code>UIImages</code> folder and works fine, but when I open apps such as Settings or Phone, the status bar turns to default silver. How can I make it so that it is same as <code>Translucent_Base@2x.png</code> all the time?<... | iphone | [8] |
2,384,574 | 2,384,575 | How to step frames in a movie recorded by iPhone | <p>Is there a way to have my iPhone program step frame by frame through a movie recorded by the iPhone? What I want to do is have the user record a quicktime movie, then be able to step through the movie frame by frame.</p>
<p>Alternately, I suppose if there was a way to extract every single frame from the movie to a ... | iphone | [8] |
3,827,653 | 3,827,654 | Python SimpleHTTPServer with PHP | <p>I used <strong>python -m SimpleHTTPServer</strong>, but the PHP files don't execute instead they just been downloaded.</p>
<p>I heard about <a href="http://pythonpaste.org/wphp/">WPHP</a> in an old <a href="http://stackoverflow.com/questions/9900706/simple-python-server-similar-to-simplehttpserver-but-with-php-supp... | php | [2] |
5,335,360 | 5,335,361 | php 5.2.12 Maximum execution time when using include() | <p>Anyone got a problem with php 5.2.12 getting a lot of " Maximum execution time" error when trying to include() files?</p>
<p>I can't seem to find the bug in php.net, but it's consistently giving us that error on numerous scripts.</p>
<p>Anyone can recommend solutions?</p>
<p>The same script runs on a few other se... | php | [2] |
2,309,123 | 2,309,124 | Implicit conversion for pointer to data member vs. non-member | <p>Most discussion I've seen about member pointers focus on conversions permitted on the type to which the member belongs. My question is about conversions on the type of the member.</p>
<pre><code>struct Base{};
struct Derived : public Base{};
struct Foo{ Derived m_Derived; };
</code></pre>
<p>Given these declarati... | c++ | [6] |
5,308,748 | 5,308,749 | i am developing stock management system in java but i am new in java | <p>I am developing stock management system in java and I am new in java.I started coding but stucked.i would like to make a login form and there will be username JTextfield and password JPasswordfield, login button, cancel and register button.login button for login if user name and password is correct,if not will not a... | java | [1] |
1,135,611 | 1,135,612 | How can I create site bar? | <p>How can the administrator for the menu bar segment to create the name of the source menu bar text and url menu bar gets in the Reserve database keeps main part of the menu bar about menu bar text and url for the database to read and display?</p>
| php | [2] |
5,453,107 | 5,453,108 | Adding and removing handlers that have additional parameters? | <p>When you are adding and <strong>removing</strong> event handlers and you want to have additional parameters, how do you go about doing this? The below code is like something i would want but obviously does not work.</p>
<p>How would you go about this? - it's troublesome that i cant use delegates or lambdas as i nee... | c# | [0] |
406,570 | 406,571 | php loading problems | <p>I am using php and mysql to grab and display details depending on the user request. The problem that I am having is while the results are loading none of the other files are accessible to anyone.
For an example when someone is using results.php none of the other users are able to access listall.php until the results... | php | [2] |
1,538,209 | 1,538,210 | Need an algorithm to manipulate array structure in javascript | <p>In javascript, here is my start array:</p>
<pre><code>[{
name: 'aaa',
value: 1
},
{
name: 'bbb',
value: 0
},
{
name: 'bbb',
value: 1
}]
</code></pre>
<p>I want to transform it into this array as result:</p>
<pre><code>[{
name: 'aaa',
value: 1
},
{
name: 'bbb',
value: [0, 1]
}]... | javascript | [3] |
2,981,622 | 2,981,623 | Does SetVaryByCustom work in User Controls? | <p>It seems to me that </p>
<pre><code>Response.Cache.SetVaryByCustom("mykey");
</code></pre>
<p>is not working from within ASCX User Controls. It works from the Page. The ASCX works only when VaryByCustom is specified in the outputcache directive. </p>
<p>I'm using ASP.NET 3.5. </p>
<p>Any help?</p>
| asp.net | [9] |
315,490 | 315,491 | Single character input with wake state | <p>Back in college I wrote a game where the computer would sleep for 1 second, wake up and check to see if anything needed to be processed.
Of course, if the user entered a single character command, it would respond immediately.</p>
<p>Is there a way to do that with JavaScript?</p>
| javascript | [3] |
5,714,417 | 5,714,418 | Specifically, what does % do in C#? | <p>I have never came across anything that requires me to use it, and when I google what it does nothing comes up.</p>
<p>So, can someone please explain in detail, what does it do?</p>
| c# | [0] |
5,775,316 | 5,775,317 | How to exclude a layout from touch events in Android? | <p>In my application I have a requirement of hiding a layout when the user clicks on any part of rest of the screen.But when I click on the part of layout,it is hiding the layout.I want to exclude this part from touch events.</p>
<p>How can I do this?</p>
| android | [4] |
542,388 | 542,389 | Pass set of functions as arguments to another function in Python | <p>I would like to implement my own basic Runge-Kutta 4 integrator in Python. The format should be something like this:</p>
<pre><code>---- EXAMPLE set of equations ----
f1 = lambda x: x**2
f2 = lambda y: y**2
.
.
.
fn = lambda n: n**2
f = [f1, f2, f3, ... , fn]
result = integrate(f, other arguments [e.g. stepsize et... | python | [7] |
5,789,524 | 5,789,525 | Calling a Method on a method | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3724112/php-method-chaining">PHP method chaining?</a> </p>
</blockquote>
<p>So I can remember seeing in some code examples somewhere calling of a method on a method like:</p>
<pre><code>$classname->method1()... | php | [2] |
4,722,679 | 4,722,680 | Customized Toast or something else? | <p>Sorry for my bad english.
I need help.</p>
<p><a href="http://habrastorage.org/storage2/605/02c/601/60502c60140c90bcd61829a1cdee9af8.png" rel="nofollow">image with view component</a></p>
<p>What is the element with "Drag apps to your ..." text on Adroid emulator? Customized Toast or ... what?</p>
| android | [4] |
3,606,467 | 3,606,468 | change two images in php | <p>EDIT:
I have to images (or two strings) on a page. One on the left and the other on the right side. I want them to randomly switch their position when refreshing the site. How can I do this? Thanks.</p>
| php | [2] |
3,352,533 | 3,352,534 | SQlite database creation? | <pre><code>public static final String TABLE_COMMENTS = "comments";
public static final String COLUMN_ID = "_id";
public static final String COLUMN_COMMENT = "comment";
// Database creation sql statement
private static final String DATABASE_CREATE = "create table "
+ TABLE_COMMENTS + "(" + COLUMN_ID
+... | android | [4] |
1,286,918 | 1,286,919 | Error when use javascript mouseover from an array? | <pre><code><a href=""></a>
<textarea></textarea>
<object></object>
<img src="" />
<div id="content">content</div>
<div class="test">test</div>
</code></pre>
<p>And javascript</p>
<pre><code>oj = ['a', '#content', '.test'];
oj.forEach(function(val) {
... | javascript | [3] |
694,625 | 694,626 | create a href to call a function "javascript" | <p>I'm trying to create " a href" tag by using javascript but instead of using it as a web-link, i want to use it to do a certain steps! so what can i do?</p>
<pre><code> var a = document.createElement('a');
a.attributes('href', 'function () { nn = 0 }' );// ?
a.textContent = " " + pn.length + " ";
... | javascript | [3] |
1,754,967 | 1,754,968 | How to create an android plugin with views, activities and objects | <p>So... I'm trying to create a plugin for one of my apps. This plugin would require several views, images, an activity and a parser for CharSequences... Ideally, this plugin would be downloadable from the Android Market. </p>
<p>I understand how to create a library, but that would need to be included in the applicati... | android | [4] |
3,861,321 | 3,861,322 | android - How to set the Rating bar is non clickable and touchable in HTC mobile | <p>My application have rating bars. I want to set the Rating bar is non-click able and no-touchable. For this i added the following code in xml file of each rating bar.
It is working in samsung galaxy Apollo GT-i5801. But it is not working in the HTC mobile. Why? can anybody help me.</p>
<p><strong>xml code</strong><... | android | [4] |
5,665,073 | 5,665,074 | How to get the width of a TextView? | <p>I tried to resize an image inside a textview (using HTML layout and the image callback), but I could not get the correct width of the view. getWidth() always returns 0 for this view. I am calling the function inside onStart() in the application that contains the TextView.</p>
<p>Thanks for any hints!</p>
<p>RG</p>... | android | [4] |
86,432 | 86,433 | libzip with Visual Studio 2010 | <p>Is there anyway documentation for compiling libzip for Visual Studio 2010? Everything I have seen from the libzip website and Google has returned no results.</p>
| c++ | [6] |
1,788,950 | 1,788,951 | Android: build android application to check app is running at emulator or real device | <p>We need to develop android basic app which will detect the device is real or emulator and behave accordingly. But did not found sample code or process to detect this thing actually. Please suggest me somebody to resolve this issue. Thanks</p>
| android | [4] |
2,138,638 | 2,138,639 | What is the best way to invoke action in Form1 When Form2 is closed without using ShowDialogue in C# Windows Form Application? | <p>I've a project that contain 2 forms e.g. (Form1 , Form2 ).The user should be able to use any of the 2 forms while both of them are visible(i.e. Can use Form1 While Form2 is Open).At the same time when Form2 is closed there is an action that should be invoked in Form1 related to From2_close. I can't use Form2.ShowDia... | c# | [0] |
172,360 | 172,361 | I want to restore my orientation in fragment. | <p>I am using onSaveInstanceState(Bundle outState) and passing a int value in PutInt , but in my onActivitycreated method when i am trying to getInt then it is showing exception saying , Key android:view_state expected Bundle but value was a android.util.SparseArray. The default value was returned.</p>
<pre><code>... | android | [4] |
5,492,661 | 5,492,662 | How to compute number of syllables in a word in javascript? | <p>Is there javascript library for counting number of syllables in a word? How to count?</p>
<p>Thanks</p>
<p><strong>Edit</strong></p>
<p>Thank Sydenam and zozo for useful information and possible answers.</p>
<p>I found code by <a href="http://stackoverflow.com/questions/1271918/ruby-count-syllables">Pesto at thi... | javascript | [3] |
3,181,282 | 3,181,283 | What is your strategy to avoid dynamic typing errors in Python (NoneType has no attribute x)? | <p>Python is one of my favorite languages, but I really have a love/hate relationship with it's dynamicness. Apart from the advantages, it often results in me forgetting to check a type, trying to call an attribute and getting the NoneType (or any other) has no attribute x error. A lot of them are pretty harmless but i... | python | [7] |
3,048,979 | 3,048,980 | How to c# function using javascript | <p>I have input HTML button(Not ASP.NET Button) click event in c#</p>
<p>Is there any way i can call c# function using javascript</p>
<p>Thank you very much....</p>
| javascript | [3] |
1,503,241 | 1,503,242 | Why should some methods be invoked only from the main application thread? | <p>I read about <a href="http://developer.android.com/reference/android/speech/SpeechRecognizer.html" rel="nofollow">this class</a>:</p>
<blockquote>
<p>Do not instantiate this class directly, instead, call
createSpeechRecognizer(Context). This class's methods must be invoked
only from the main application threa... | android | [4] |
3,270,315 | 3,270,316 | Thread.sleep() hangs in java in 64 bit blade server | <p>I have scenario where I am scheduling task at fixed duration repetitively.Fixed delay is generated by calling start method of another class that implements runnable interface using Thread.sleep(long ms ) method.
But when I test this application in my local pc it is working.But when I run this application in ibm ... | java | [1] |
2,059,485 | 2,059,486 | how to navigate two page back using popviewController? | <p>I'm iphone developer. I got a problem that my first page is login page than home page. I navigate two pages from home page and now I want to navigate back to home but I can't come. if I'm using popToRootViewControllerAnimated then its come to login page but I need to come to home page. please some one help me.</p>
| iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.