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 |
|---|---|---|---|---|---|
563,501 | 563,502 | Is it possible to trigger a broadcast from a home shortcut? | <p>I can easily create home shortcuts that trigger an activity to open. My question is if it's possible to create a shortcut where it would trigger a broadcast?</p>
| android | [4] |
2,535,524 | 2,535,525 | PHP search word in string | <p>I'm trying to scan a piece of text for the occurrence of certain words. If the string contains any of these words, the function should return TRUE. <code>in_array</code> can accept two arrays but it seems that all elements of the needle need to be found in the haystack for the return to be TRUE.</p>
<p>From the use... | php | [2] |
4,440,578 | 4,440,579 | Adding A Class To <A> Tag | <p>this code I used to display paginating links... problem is I need to add some style to the links when its active.. I can style it through some CSS rules.. but at first need to add a class to link tag.. Eg: </p>
<pre><code> // Make the links to other pages, if necessary.
if ($pages > 1) {
echo '&... | php | [2] |
4,324,995 | 4,324,996 | What is the current avg hourly rate for a senior c# developer in the US? | <p>Odd question I know, but I am about to pay someone for offshore consulting services from the United States and trying to get a feel for what the hourly rate for a senior developer is. Will be using a few hours a few only.</p>
| c# | [0] |
1,503,375 | 1,503,376 | Jquery .hover function fade in and out issue | <p>I'm having issues with this hover.
When the child item inside is clicked, the entire menu fades out, then back in.</p>
<pre><code>$('.sc_menuwrap').hover(function(){
$('.sc_menuwrap').stop().fadeTo("slow", 1.0); // This sets the opacity to 100% on hover
},function(){
$('.... | jquery | [5] |
5,004,852 | 5,004,853 | Generating and adding a new class to an existing assembly in runtime | <p>According to MSDN it's possible to create a NEW assembly in runtime using, for example, <code>Reflection.Emit</code> and add a new class in it, I just would like to avoid such an overkill and create the class in an existing assembly. </p>
<p>Is it possible?</p>
| c# | [0] |
2,980,287 | 2,980,288 | How can I detect if my Android app is displayed? | <p>I have an Android app with a service that runs in the background doing various client/server connections. How can I check in my running service if any screen from my app is displayed?</p>
| android | [4] |
5,343,885 | 5,343,886 | Trace the IPAddress | <p>I like to know the IP address of the system from which user is connected to MSTSC or remote system. Here is my problem:-</p>
<p>I have web application wich run on intranet and when user need to access that webapplication they need to login to their office PC. Now to access their office PC user need to connect thoru... | c# | [0] |
3,574,841 | 3,574,842 | Generate 7 random letters into 7 form fields | <p>I am in need to generate 1 random letter into 7 form fields. An example of the fields would look like below.</p>
<p>The letters can repeat, but only based on the letter and an amount of times that letter can repeat</p>
<p>For instance</p>
<ul>
<li>a x 7 (a can repeat only 7 times)</li>
<li>b x 5 (b can repeat onl... | javascript | [3] |
2,362,834 | 2,362,835 | sorting Name And Address array on cell label w.r.t. each other | <p>i have searched a lot but not able two sort my array a/c to requirement</p>
<p>i used this code:</p>
<pre><code>[array1 sortArrayUsingSelector:@selector(caseInsensitiveCompare:) withPairedMutableArrays:arrForName, arrForAddress, nil];
</code></pre>
<p>thanks </p>
| iphone | [8] |
420,234 | 420,235 | Multiple Sections on One Webpage | <p>I'm a total programming beginner trying to absorb HTML, PHP and MYSQL. This is my first question.</p>
<p>I plan to build a site that has an "admin" part and a registered user/member section that are displayed at the same time.</p>
<p>To give a better picture, think of YELP where there is the a part for the busin... | php | [2] |
4,136,325 | 4,136,326 | Python; get last answer | <p>In many symbolic math systems, such as Matlab or Mathematica, you can use a variable like <code>Ans</code> or <code>%</code> to retrieve the last computed value. Is there a similar facility in the Python shell?</p>
| python | [7] |
2,111,077 | 2,111,078 | match query with regex and send to 404 | <p>Google keeps inputing crap into my forms and searching and ending up with 0 result pages and is indexing them.
Google has been searching stuff like this</p>
<pre><code>0 0 41 1 0 0 9 1 0„3�¨7 0 0 0„3�ì7;7 0 6 0 674 0 0 70 555
</code></pre>
<p>I have no clue why google would search for that. I have read o... | php | [2] |
1,967,617 | 1,967,618 | Finding out what the page is loading in with PHP | <p>I'm working on a directory and on some MOD_REWRITES. I have actually deleted the .htaccess file form the site, But there is still something overwriting it.</p>
<p>Is there any PHP Variables that I can use to find out where the over hanging .htaccess file is being loaded from?</p>
<p>There are so many files, that I... | php | [2] |
2,461,522 | 2,461,523 | Append to List while Iterating | <p>I need this behavior, but would rather have a diminishing list rather than a growing one.
Sequence order is important for this operation.</p>
<pre><code>for item in list:
if is_item_mature(item):
## Process him
else:
## Check again later
list.append(item)
</code></pre>
<p>but I woul... | python | [7] |
1,229,292 | 1,229,293 | Starting Activities in a looping chain | <p>I have three Activities, which are started in a chain. ActivityA starts ActivityB, which then starts ActivityC. I also have an Application object.</p>
<p>ActivityA starts ActivityB with (this snippet is actually in an anonymous class, so it needs <code>getApplicationContext()</code> instead of <code>this</code>).</... | android | [4] |
3,462,061 | 3,462,062 | append a GET variable to a link when clicked | <p>Suppose I have URL such as:</p>
<pre><code><a href="images.php?id=15645" rel="gallery">
</code></pre>
<p>There is already a click handler on this URL (FancyBox lightbox gallery):</p>
<pre><code>$('a[rel=gallery]').fancybox();
</code></pre>
<p>I would like to append another GET variable to this URL (<code>t... | jquery | [5] |
2,658,218 | 2,658,219 | What is the purpose of `this.prototype.constructor = this;`? | <p>In the ASP.NET ajax library, there is a line that makes me confused.</p>
<pre><code>Type.prototype.registerClass = function Type$registerClass(typeName, baseType, interfaceTypes) {
//..
this.prototype.constructor = this;
//..
}
</code></pre>
<p>I know that <code>(this.prototype.constructor === this) == true</co... | javascript | [3] |
3,082,273 | 3,082,274 | How do I set a conditional compile variable? | <p>In C/C++ you can define macros in code like this:</p>
<pre><code>#define OLD_WAY 1
</code></pre>
<p>Although I've never done it, I assume that the same thing is available in C#. More to the point, in C/C++ it is possible to then do some conditional compilation logic by doing something like this:</p>
<pre><code>... | c# | [0] |
4,169,290 | 4,169,291 | Can I retrieve a locale independent application label from the Android PackageManager? | <p>I'm using PackageManager.getApplicationLabel(ApplicationInfo) to retrieve application labels. It looks like the label that is returned depends on the Locale set for the phone.</p>
<p>For instance with the music app I get "Music" in English, vs. "Musica" if I have my locale set to Spanish.</p>
<p>Is there a way to... | android | [4] |
3,447,993 | 3,447,994 | animate div up and down | <p>I am just making a panel, ( div ) that has cookie, and can be opened or closed.
I would like though to animate the div open or closed on click.</p>
<p>The code I have so far is:</p>
<pre><code>var state;
window.onload=function() {
obj=document.getElementById('closeable');
state=(state==null)?'hide':state;
... | jquery | [5] |
2,177,513 | 2,177,514 | NullPointerException with an override method | <p>Can anyone comment with their opinion on the best way to resolve the following issue? I've tried init blocks and initializing the field in the constructor, but neither get called before the overridden method tries to clear it.</p>
<pre><code> class TestRunner {
public static void main(String[] args) {
... | java | [1] |
856,054 | 856,055 | while using eval it show function is not defined | <pre><code><html>
<body>
<input type="text" onFocus="javascript:findPosY()"/>
<script type="text/javascript">
eval( function findPosY(){alert("OK");});
</script>
</body>
</html>
</code></pre>
<p>While executing above code, eval() function not called and alert is not displayed.... | javascript | [3] |
2,130,664 | 2,130,665 | How to loop through multiple divs | <p>I have a structure like this :</p>
<pre><code><div>
<div>
<div onclick="someFunction(this)"></div>
</div>
<div>
<div onclick="someFunction(this)"></div>
</div>
..
..
</div>
</code></pre>
<p>So inside my <c... | jquery | [5] |
1,448,838 | 1,448,839 | How to upload a file to server with synchronous request? | <p>My brain is just going to hang, I am working on same method for .....</p>
<p>OK, I am working on an upload code which will upload the file to the server, which is successfully working </p>
<p>now what I need as fallows:</p>
<p>started with an example-->suppose I have a file named file.txt, whose size is 30MB, whe... | iphone | [8] |
1,275,551 | 1,275,552 | Android Thread getState() throws Arrayindexoutofbounds 2.2.2 | <p>I just read from somewhere that calling getState() from a Thread in Android 2.2.2 sometimes causes this error. Is there a workaround for this?</p>
| android | [4] |
22,325 | 22,326 | What's the benefits of registering an event handler implicitly | <p>What's the benefits of registering an event as:</p>
<pre><code>void MyMethod()
{
button1.Click += delegate (object sender, EventArgs e)
{
..
}
}
</code></pre>
<p>in comparison with:</p>
<pre><code>void MyMethod()
{
button1.Click += new System.EventHandler(this.button1_Click);
}
void butto... | c# | [0] |
5,462,477 | 5,462,478 | setNavigationBarHidden:YES doesn't work with the searchDisplayController | <p>I'm using the following code to hide my navigationBar in the detailViewController(my second view),
and it works perfectly fine when I tap any of my object from the MasterViewController(my first view).</p>
<pre><code>- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.navigationC... | iphone | [8] |
4,969,104 | 4,969,105 | Javascript onChange sum input after percentage | <pre><code><form name="cost">
<table border="1">
<tr>
<td>Cost</td>
<td><input type="text" name="cost" /></td>
</tr>
<tr>
<td>Discount</td>
<td><input type="text" ... | javascript | [3] |
2,306,738 | 2,306,739 | JSP: send request and get response XML | <p>I want to setup a JSP page to:</p>
<ul>
<li>to call DDR server with address: <a href="http://ddr.mobileok.kr/profile/DeviceProfile.do" rel="nofollow">http://ddr.mobileok.kr/profile/DeviceProfile.do</a>
with parameter is: ?mn=SCH-W420
(so i will request: <a href="http://ddr.mobileok.kr/profile/DeviceProfile.do?mn=SC... | java | [1] |
3,091,933 | 3,091,934 | unable to be compiled | <pre><code>#include <iostream>
using namespace std;
template < class T >
void swap (T& a, T& b)
{
T temp = a;
a = b;
b = temp;
}
int main ()
{
char a = 'a';
char b = 'b';
swap (a, b);
cout << "a = " << a << endl;
cout << "b = " << b &... | c++ | [6] |
2,574,991 | 2,574,992 | jquery live change on input | <p>I am trying to disable next input boxes if first input box is not empty using jquery, please check html and js code...</p>
<pre><code><input name = "mrp" id="mrp" type = "text" />
<input name = "miw" class="mmw" type = "text" />
<input name = "maw" class="mmw" type = "text" />
</code></pre>
<p>js... | jquery | [5] |
5,315,888 | 5,315,889 | How to show tabs At Bottom rather then at top? | <p>I m having following screen,
<img src="http://i.stack.imgur.com/vws10.png" alt="enter image description here"></p>
<p>I am using Following code to make Layout to show tabhost and tab widget</p>
<p><img src="http://i.stack.imgur.com/N57Lr.png" alt="enter image description here"></p>
<p>I want to place the tabs at ... | android | [4] |
757,356 | 757,357 | Java Menu Driven Programming and Loops | <p>I am creating a basic program that allows users to purchase seats on a plane. I need help modifying this code so that I can return from the inner menu to the outer:</p>
<pre><code>boolean done = false;
while(!done)
System.out.println("Enter 1 to buy seat.");
...
//other menu options
... | java | [1] |
1,215,738 | 1,215,739 | Onkeydown() does not work for delete and backspace in IE | <p>Does anyone know why the Onkeydown() event does not work for delete and backspace key in IE? It works fine for number and character keys.</p>
| javascript | [3] |
3,894,505 | 3,894,506 | The solution to detach a control from a form | <p>I use Java Applet like an example. When you open a website which has a java applet on web page. The java applet application will run in web page. Applet support to detach itself out of the web page and run as a single instance.</p>
<p>I have a question: If I have a control inside a form, or this control maybe in a ... | c# | [0] |
3,030,903 | 3,030,904 | Wifi reports as "enabled" even though it's not | <p>I'm not sure if this is a Galaxy Tab specific issue or if I'm not utilizing some relevant method of the WifiManager library, but my application correctly reports that the Wifi is disabled at launch, but then as soon as I enable it, it deems itself as enabled, even though it's still in the process of connecting.</p>
... | android | [4] |
2,376,831 | 2,376,832 | Can an object contain another object of the same type? | <p>I read several questions and answers for other languages, but did not see any specifically for PHP.</p>
<p>Would the following be valid in PHP?</p>
<pre><code>class foo
{
// constructor, etc..
public function bar()
{
$newFoo = new foo();
// do something
}
}
</code></pre>
| php | [2] |
3,173,708 | 3,173,709 | Android: How to Improve listview search performance | <p>My App has a List-view to display values from an SQLite DB. There is an edit-text on the of the listview for searching for values in the List-view. Here is some of my code:</p>
<pre><code>public void onTextChanged(CharSequence s, int start, int before,int count) {
String sCondition = "C_Data like '%" +... | android | [4] |
118,793 | 118,794 | Android Mobile number and when Unstalling ask password for unstall | <p>I want to know mobile number from android apps.I searched in here.some one give this code.</p>
<pre><code>TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String phone = tm.getLine1Number();
</code></pre>
<p>but It is not working in mobile It is working in Emulator.</p>
<p>M... | android | [4] |
4,430,420 | 4,430,421 | Solution within solutions vs 2010 | <p>Wondering if its' possible to have solution within solution in vs 2010?
How?
thanks alot</p>
| c# | [0] |
3,844,075 | 3,844,076 | Error: Cannot convert lambda expression to type 'int' because it is not a delegate type | <p>This is the source code( I am using CodeSmith Tools):</p>
<pre><code>public static int Delete(this System.Data.Linq.Table<EAccredidation.Data.Programs> table, int pKProgramID)
{
return table.Delete(p => p.PKProgramID == pKProgramID);
}
</code></pre>
<p>I am getting this error:</p>
<blockquote>
<p>C... | c# | [0] |
1,625,354 | 1,625,355 | Passing data from a aspx page to a aspx popup | <p>Following is the scenario I am facing, I have a aspx page in which I have added my ascx user control, I also have a <code><a href</code> control which call a js function to open a aspx popup.</p>
<p>when I open the popup, I need to send the data present in the ascx control to my popup. can you please guide me wh... | asp.net | [9] |
1,911,055 | 1,911,056 | Push notification for Android applications | <p>Do we have any equivalent service of Push Notification (in iPhone) for Android applications?</p>
| android | [4] |
6,018,096 | 6,018,097 | cerr is undefined | <p>New to C++ and having some problems, I'm getting these errors (marked in the code):</p>
<ul>
<li>identifier "cerr" is undefined</li>
<li>no operator "<<" matches these operands</li>
</ul>
<p>Why?</p>
<pre><code>#include "basic.h"
#include <fstream>
using namespace std;
int main()
{
ofstream out... | c++ | [6] |
3,023,742 | 3,023,743 | How to handle CopyToDataTable() when no rows? | <p>I have the code:</p>
<pre><code>dt = collListItems.GetDataTable().AsEnumerable()
.Where(a => Convert.ToString(a["Expertise"]).Contains(expertise) && Convert.ToString(a["Office"]) == office)
.CopyToDataTable();
filteredCount = dt.Rows.Count();
</code></pre>
<p>How should I best handle ... | c# | [0] |
5,228,585 | 5,228,586 | zooming listview in android | <p>I want to zoom in my listview. My listview contains textviews. I want to be able to zoom the listview, so that items in the listview can be read easily.</p>
<p>Please guide me about that. I am a new android developer.</p>
| android | [4] |
1,004,546 | 1,004,547 | jquery 1.7 unable to trigger events in window.onload | <p>Hi i have the following jquery code:</p>
<pre><code>jQuery.noConflict()
jQuery(document).ready(function($) {
$("#input").on("blur", function() {
alert("item is blur");
}
});
</code></pre>
<p>Now later on i have </p>
<pre><code>window.onload=function() {
jQuery("#input").blur();
}
</code></pre>
<p>Th... | jquery | [5] |
3,962,767 | 3,962,768 | Best way to share ASP.NET .ascx controls across different website applications? | <p>Suppose you have 2 different ASP.NET applications in IIS. Also, you have some ASCX controls that you want to share across these 2 applications.</p>
<p>What's the best way to create a "user control library", so that you can use the same control implementation in the 2 applications, withuot having to duplicate code?<... | asp.net | [9] |
1,422,671 | 1,422,672 | Using WM_Close in c# | <p>I am using the below code to exit a process programatically.
since i am new to this concept. I want to know how to use this below code.</p>
<p>Logic : I will have the process name to be terminated, i shud assign that to
this function.</p>
<p>Say if want to terminate a notepad, how to pass parameter [Process Name] ... | c# | [0] |
2,233,513 | 2,233,514 | Multiple Forms on a Single Page - JQuery | <p>I have multiple forms on a single page with the same named variables within each form.</p>
<p>I need to be able to changed the specific values for one form but not the others.</p>
<p>Ie.</p>
<p></p>
<p></p>
<p>I want to be able to set the value of Var2 for form2, but not the values of Var2 for form1.</p>
... | jquery | [5] |
2,228,898 | 2,228,899 | What does this mean? initWithFrame:CGRectZero] | <p>I created switch in cellForRowAtIndexPath like this.</p>
<p>UISwitch *switchView = [[UISwitch alloc] initWithFrame:CGRectZero];</p>
<p>CGRectZero is equivalent to CGRectMake(0,0,0,0).
But, switch is seen in normal size.
I didn't specified actuall size.
Please explain to me how above code works.</p>
| iphone | [8] |
6,010,203 | 6,010,204 | Finding the form Id in javascript | <p>I have a main page (Home.aspx) and on selecting a link from the menu i send an asynchronous request to the server and load the response (another aspx page) inside jquery tabs.</p>
<p>Now i have different hyperlinks inside the pages and on click i call a method in an external js file. How do i get the form id of the... | javascript | [3] |
294,762 | 294,763 | Assign null to empty instance? | <p>I have an empty instance of an object which I assign values under certain conditions. If those conditions are not met I assign null to the instance, like the following:</p>
<pre><code>SomeCustomClass someCustomClass = new SomeCustomClass();
if (myItem != null)
{
someCustomClass.Id = myItem.Id;
}
else
{
some... | c# | [0] |
41,707 | 41,708 | How to invoke static generic class methods if the generic type parameters are unknown until runtime? | <p>Assume I have a static generic class.
Its generic type parameters are not available until runtime.
How to invoke its members?</p>
<p>Please see the following code snippet:</p>
<pre><code>static class Utility<T>
{
public static void DoSomething() { }
}
class Tester
{
static Type GetTypeAtRuntime()... | c# | [0] |
5,880,230 | 5,880,231 | Getting ID of button element with name or class | <p>Can i do that ? </p>
<pre><code> var gender = $('.ImdbAddArtist').click(function() {
alert(this.id);
});
</code></pre>
<p>I use below code, but it s a little bit strange. </p>
<p>Can i have button's ids from their name?</p>
| jquery | [5] |
4,713,091 | 4,713,092 | Give some links or source code of Line chart which is embedded into application | <p>I want to add line chart in my application , which has two view 1st view is image 2nd view is line chart, i want to add x values dynamically chart has to grow after adding each x values.
please suggest some link or code.</p>
| android | [4] |
4,592,855 | 4,592,856 | raise the z-index over prependTo div | <p>I am having difficulty getting one of the page divs to display over a temporarily prepended div.</p>
<p>The div i want to keep at the fore at all times is .outer_box</p>
<p>The Jquery:</p>
<pre><code>$(document).ready(function() {
$("<div/>", {
"class": "DooSuperOverlay"
})
.prependTo("body")
.animate({... | jquery | [5] |
1,385,946 | 1,385,947 | How to dynamically sort data by arbitrary column(s) | <p>Is there a data structure of combination of structures ( STL, Boost etc. ) that would allow me to sort data in memory like it is done in this table here <a href="http://en.wikipedia.org/wiki/List_of_cities_proper_by_population" rel="nofollow">http://en.wikipedia.org/wiki/List_of_cities_proper_by_population</a>
<br><... | c++ | [6] |
1,399,747 | 1,399,748 | Listing all the files from a directory and their paths into separate strings (java) | <p>So I've made many searches on this topic, but nothing seems to work. All the answers I've found are just partial, just code snippets and "just import this". I would like it if somebody could tell me the best package to use for this and the syntax for it. I'd like to be able to use this information in future situatio... | java | [1] |
2,111,549 | 2,111,550 | boost creating group threads for a class function | <p>How can I use the thread group call for a class member function?</p>
<p>For the hole class is <code>mythreads.create_thread(myclass())</code> but for a method of my class like <code>get(int a,int b)</code> how it would be?</p>
| c++ | [6] |
79,462 | 79,463 | jQuery - Detect the div id automatically | <p>I'm trying to automatically detect what div is clicked, and then add the text for a specific div. </p>
<p>So, here is what I'm trying to do: </p>
<pre><code>$('#sjalland').live("click", function(e) {
e.preventDefault();
$('#searchBoxBig').val('Sjælland, ');
$('#searchBoxBig').focus()
return false;
})... | jquery | [5] |
3,206,716 | 3,206,717 | How to find header control of repeater in c# .net? | <p>I am working on asp.net c# . I am trying to find the header control in c# . But I am getting object not set to an instance of an object . My code is </p>
<pre><code> public void R1_ItemDataBound(Object Sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Header)
{
... | c# | [0] |
6,009,304 | 6,009,305 | Update Panel not working correctly? | <p>I have added two update panels to my page. I'm trying to update the first panel but not the second. The second panel contains validation controls which seem to be kicking in no matter what I try. </p>
<p>Code</p>
<pre><code><asp:ToolkitScriptManager runat="server" ID="ScriptManager" />
<asp:UpdatePanel ... | asp.net | [9] |
1,572,355 | 1,572,356 | Using a file located in either the raw or assets folder | <p>Currently I am able to download a file off the internet and store on the SD card, then use the file from there. However that makes the file (with proprietary data) available to be seen. I would prefer to use the file from somewhere like raw or assets folder.
I will skip the downloading code, but my code to use the ... | android | [4] |
1,438,004 | 1,438,005 | Store all users info on login | <p>Is it best to store all the users information in session cookies like this on login? Instead of using alot of querys</p>
<pre><code>$_SESSION['id'] = mysql_result($result, 0, 'id');
$_SESSION['name'] = mysql_result($result, 0, 'name');
$_SESSION['email'] = mysql_result($result, 0, 'email');
$_SESSION['ip'] = mysql_... | php | [2] |
1,905,497 | 1,905,498 | How to load Google Analytics after page load | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/753514/how-do-i-dynamically-load-google-analytics-javascript">How do I dynamically load Google Analytics JavaScript?</a> </p>
</blockquote>
<p>Hi Google Analytics call is slowing down my web page load. Is there ... | javascript | [3] |
5,398,894 | 5,398,895 | Auto select a dropdown based off another dropdown when checkbox is checked | <p>I am working on a form with a two different sections. Both sections have a few text fields and a drop down list. There is also a checkbox in the second section that when checked auto fills the text fields with the information from the previous section. I need to have the selected value from the drop down in the f... | jquery | [5] |
2,728,729 | 2,728,730 | Syntax tree from boolean expression | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3556776/boolean-query-expression-to-a-concrete-syntax-tree">Boolean Query / Expression to a Concrete syntax tree</a> </p>
</blockquote>
<p>I need help. Can anybody tell me hot to generate syntax tree in Java fro... | java | [1] |
1,295,550 | 1,295,551 | Remove multiple Activities to go Back to Dashboard from Options menu | <p>I have a Optionsmenu in my Android App, in which is a Button to Go Back to the Apps Dashboad and remove all Activities laying upon that, also removing the History. How is this possible?</p>
<p>thx</p>
<p>Got the Answer:</p>
<p>That's what does the Trick:</p>
<p>myIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);<... | android | [4] |
3,134,039 | 3,134,040 | Setting select value has no effect on keyboard use | <p>I have a select with f.e. 10 options ('one', 'two', 'three', ...). Loading the page the first option 'one' is selected.</p>
<p>Within a function I set to fifth option</p>
<pre><code>$("myselect").val('five');
</code></pre>
<p>In fact now fifths option is shown in select and value also is set correct. </p>
<p>But... | jquery | [5] |
224,200 | 224,201 | header file to send html mail via c sharp.net | <p>i have a code like this.</p>
<p>using System.Web.Mail;</p>
<pre><code> MailMessage myMail = new MailMessage();
myMail.From = "anitha.anba@gmail.com";
myMail.To = "ani2devi@yahoo.co.in";
myMail.Body = "<html><body>success</body></html>";
myMail.Subject ... | c# | [0] |
5,624,024 | 5,624,025 | Will Web Development Frameworks replace Native IPhone Programming? | <p>I need help clearing up some questions regarding these several third party dev-support frameworks (e.g. ViXML, Titanium Mobile) which promise iPhone app development at lightning speed using only Javascript and XML, without knowledge of Objective-C.</p>
<h3>Questions</h3>
<ol>
<li><p>Are there any features possible... | iphone | [8] |
2,782,110 | 2,782,111 | Concat two populated arraylists without overwriting anything? | <p>I have an arraylist which is populated (call this A). I have another arraylist, which is also populated (call this B).</p>
<p>A has 5 elements
B has 3 elements</p>
<p>Is it possible for me to add all of B's elements to A, so that B's elements start from 6 (length of A + 1), with a total of 8 elements. I am hoping ... | java | [1] |
3,623,862 | 3,623,863 | Linq to SQL: How to update data using stored procedure | <p>I am using linq to sql. I want to update my changed in object question using linq to sql using stored procedure any body have idea?</p>
| asp.net | [9] |
865,716 | 865,717 | User Authentication | <p>I want a cookie for that user when they register on the site to be developed,Next time you visit the site again if the user did not need to re-login cookie that identifies a user's identity
How can I bring up the cookie security.</p>
| php | [2] |
2,652,831 | 2,652,832 | Viewing images from asset folder | <p>I created image folder under assets, I wrote this code to read all image names and store them in an array.</p>
<pre><code> String[] filename = getAssets().list("images");
for(String name:filename){
if(accept(name))
{
imageNames[i]=name;
txt.append(" File ... | android | [4] |
1,306,496 | 1,306,497 | gridview paging | <p>I have a gridview with about 300-400 rows that I use for reporting; it needs paging and requires sorting. My choice is between these two options: a) load the 300-400 in one query and let the gridview do the paging and sorting; b) handle the paging/sorting at the data source level. I know that b) is going to be bette... | asp.net | [9] |
329,089 | 329,090 | JavaScript triple greater than | <p>I saw this syntax on another <a href="http://stackoverflow.com/questions/2608575/jquery-split-and-indexof-results-in-object-doesnt-support-this-property-or-me">StackOverflow post</a> and was curious as to what it does:</p>
<p><code>var len = this.length >>> 0;</code></p>
<p>What does <code>>>></c... | javascript | [3] |
5,534,565 | 5,534,566 | Set all members of class that implements an interface from an object of the interface type without a lot of writing code in C# | <p>It may sound a little bit complicated but I will try to explain it clearly.</p>
<p>Is it possible in C# if I have a long interface :</p>
<pre><code>public interface IInterface
{
bool interface_1;
bool interface_2;
bool interface_3;
bool interface_4;
bool interface_5;
...
}
</code></pre>
<p... | c# | [0] |
3,053,690 | 3,053,691 | how can we use animation one image after another image? | <p>how can we use animation if i want one image after another image
i had some code but it is not working </p>
<pre><code>Context mContext;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.animationdemo);
Resources res = mContext.getResou... | android | [4] |
5,804,421 | 5,804,422 | Creating a 5 star product review with PHP | <p>I'm working on a 5 stars products review for a website using php and MySQL, everything works great except my total stars,
When the review is submitted the customer can only add from 1 to 5 stars (no .5) then I'm summing the rating of each review and dividing it by the number of reviews. Now the proble is I need to g... | php | [2] |
1,729,070 | 1,729,071 | What is the fastest way to find out how many non-empty lines are in a file, using Java? | <p>What is the fastest way to find out how many non-empty lines are in a file, using Java?</p>
| java | [1] |
2,425,891 | 2,425,892 | onItemLongClick listener don't work to a preference?:D | <p>I want to create a list of contact (just like the SMS app you had) and if the user click one of those contact's i will bring them to the SMSReply Class like this :</p>
<pre><code>public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
// TODO Auto-generated method stub
Intent i ... | android | [4] |
4,412,792 | 4,412,793 | Vector iterator | <p>I have a vector like this </p>
<pre><code>std::vector<Sprite*> mDrawings;
std::vector<Sprite*>::iterator it = mDrawings.begin();
</code></pre>
<p>This gives an error</p>
<pre><code>Error: no suitable user-defined conversion from std::_Vector_iterator<std::_Vector_val<Sprite *, std::allocator<... | c++ | [6] |
5,359,176 | 5,359,177 | Roadmap for HTML5 features in WebKit for Android | <p>I recently tried out the applicationCache / offline web apps on Android 2.1's WebKit and unfortunately it does not work exactly like on a webkit on the iPhone. I was wondering how I can easily see what features should be implemented and if there is something like a roadmap?</p>
<p>Does that information somewhere ex... | android | [4] |
3,339,298 | 3,339,299 | Cannot create Android project | <p>I've installed Android SDK and Eclipse IDE. The Eclipse is supposed to recognise the new Android SDK and be able to create a new Android project. But when I click on new project, the option does not appear.</p>
| android | [4] |
1,027,898 | 1,027,899 | Image to byte array from a url | <p>I have a hyperlink which has a image, i need to read/load the image from that hyperlink & assign it to a byte array (byte[]) in C#</p>
<p>Thanks.</p>
| c# | [0] |
141,142 | 141,143 | How to extract paragraphs instead of whole texts only for XWPFWordExtractor (POI Library) Java | <p>I know the following code could extract whole texts of the docx document, however, I need to extract paragraph instead. Is there are possible way??</p>
<p>public static String extractText(InputStream in) throws Exception {</p>
<pre><code> JOptionPane.showMessageDialog(null, "Start extracting docx");
XWPFDocu... | java | [1] |
42,448 | 42,449 | Refire ready event after AJAX reload | <p>I've researched other threads and am just confused.</p>
<p>Situation: I'm supplying a generic jQuery plugin that loads the div the user specifies dynamically via AJAX. Everything works fine, but on e.g. one user's page, there is a piece of JS that is not called, because the "ready" event is not refired.</p>
<p>Th... | jquery | [5] |
5,776,946 | 5,776,947 | string partial match contain method | <p>the following method print s2 and i want to print the else portion in this situation also please share your answer</p>
<pre><code>public static void main(String args[]) {
String s1 = " ";
String s2 = "this is wonderful method i am using";
if (s1!="" && s2.contains(s1))
System.out.println... | java | [1] |
1,541,207 | 1,541,208 | Storing a DataTable in a Flatfile | <p>This is the first time I have done any sort of work with flat files.
I need this to be a plain txt file NOT XML.</p>
<p>I have written the following opting for a comma delimited format.</p>
<pre><code> public static void DataTableToFile(string fileLoc, DataTable dt)
{
StringBuilder str = new StringB... | c# | [0] |
875,234 | 875,235 | jquery loop through element and select specific one | <p>I'm pretty new to jquery so bear with me. I'm currently looping through a set of form elements and trying to select a specific one and do something with it. I'm running into some troubles and just can't figure this out. My below code loops through all the form elements and I'm trying to target an input field with ... | jquery | [5] |
3,734,873 | 3,734,874 | How "==" works for objects? | <pre><code>public static void main(String [] a)
{
String s = new String("Hai");
String s1=s;
String s2="Hai";
String s3="Hai";
System.out.println(s.hashCode());
System.out.println(s1.hashCode());
System.out.println(s2.hashCode());
System.out.println(s3.hashCode());
System.out.println(s==s2);
System.out.printl... | java | [1] |
3,540,696 | 3,540,697 | Inline & not-inline | <p>Suppose I have:</p>
<pre><code>struct Vec3 {
double x;
double y;
double z;
} ;
inline double dot(const Vec3& lhs, const Vec3& rhs) {
return lhs.x * rhs.x + lhs.y * rhs.y + lhs.z * rhs.z ;
}
</code></pre>
<p>Is it possible to have "dot" also exist in a non-inlined version, so that it can be in the ... | c++ | [6] |
4,849,800 | 4,849,801 | Send multiple xml requests in parallel in PHP? Possible? | <p>I have a script that makes calls to an XML api on a remote server. Currently my script sends 10 requests serially to the remote server. It fully processes each request before sending the next one. This is a huge bottleneck for my server at the moment since each API request can take up to a second each. Since mos... | php | [2] |
2,976,824 | 2,976,825 | c++ compiler errors | <p>I get the following error when trying to compile the following.
<em>(oops it didnt paste first try)</em></p>
<p>C:\Users\Owner\Desktop\Study\C++\Assignment 1\Codeblocks\Assignment2\travelLength.h|24|error: multiple types in one declaration|</p>
<p>In the past I've always thought this to be a missing ";", however t... | c++ | [6] |
3,487,964 | 3,487,965 | Load Url without launching android browser | <p>How to load url without launching android browser?</p>
<p>Can anyone help me?</p>
| android | [4] |
1,179,854 | 1,179,855 | jquery: most efficient way to get and store the ids of 100+ td items? | <p>Ok so I have about six of these calendars on page, so thats around 180 td items (1 for each date):</p>
<p><img src="http://i44.tinypic.com/eiwphl.jpg" alt="http://i44.tinypic.com/eiwphl.jpg"></p>
<p>each td has an id that is equal to that day's timestamp.
the dates I want are the red ones (class of <code>.booked</... | jquery | [5] |
4,255,760 | 4,255,761 | Can I refer to a variable using a string? | <p>Say I have the following JS:</p>
<blockquote>
<pre><code>var foo_index = 123;
var bar_index = 456;
</code></pre>
</blockquote>
<p>And the following HTML:</p>
<blockquote>
<pre><code><div id="foo"></div>
<div id="bar"></div>
</code></pre>
</blockquote>
<p>Then I'd like to say this:</p>
<b... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.