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 |
|---|---|---|---|---|---|
4,220,291 | 4,220,292 | Initiate a pairing with a BT device like BluetoothSettings does | <p>i searched and searched, is there any generic way to initiate the paring sequence just like BluetoothSettings does ?</p>
<p>i've looked at android platform source code and most flows are set to "hide". for example, createBond() function in bluetooth device..</p>
<p>please help ... </p>
<p>btw, any trick to remove... | android | [4] |
4,951,874 | 4,951,875 | How to find the name of the parent class, within a base class in C#? | <p>I inherit a class from a base class "MyLog". </p>
<p>If I call "Write" within the inherited class, I want it to prefix any messages with the name of the inherited class.</p>
<p>As this application needs to be fast, I need some way of avoiding reflection during normal program operation (reflection during startup is... | c# | [0] |
2,864,645 | 2,864,646 | Download and save a file using Java | <p>Let's say I have an URL, like something.domain/myfile.txt then I want to save this file, with that "Save File" dialog.</p>
<p>I tried my best to do it, but everytime I save the file using the dialog the file is not there.</p>
<p>An example or somewhere I can find information on this would help a lot!</p>
<pre><co... | java | [1] |
3,508,501 | 3,508,502 | XML string/array Comparison | <p>I'm trying to match the indexes from "filename" and "filesize" with the ones from "xml". They contain filesize and names. I need to match them up in an if statment. I'm stuck though, and have no idea how to proceed.</p>
<pre><code> public static void APB()
{
ArrayList filename = new ArrayList();
... | c# | [0] |
2,818,628 | 2,818,629 | How can I support airview for Note II users in my application? | <p>I want to support the airview feature in my application for Note II users, and I have no idea how from where should I start.</p>
<p>I already did a google search, but I found nothing.</p>
| android | [4] |
457,753 | 457,754 | In Javascript does a recursive function release it's resources once it has hit the base case and starts moving back down the stack? | <p>That is, should you care about returning objects inside of a recursive function if you don't even reference the object until the very bottom of the stack?</p>
| javascript | [3] |
2,778,748 | 2,778,749 | Capturing console output from proc_open | <p>I'm using proc_open to launch a telnet session connecting to a server program.
Connection is ok but when I get the reply, I can't store the whole string on a file as it is cut after some chars.</p>
<p>Here is my snippet: </p>
<pre><code>$descriptorSpec = array( 0 => array( "pipe", "r" ),
... | php | [2] |
5,779,715 | 5,779,716 | why my asp.net application design can be vary with system to system ?how to acheive this? | <p>i developed one asp.net application.i published the application in iis server.then by using that url i am testing the application in my system the design is coming fine.But in other systems the design is vary.both the systems are having IE8 Browser and both are same versions.</p>
<p>why the designing is vary can u ... | asp.net | [9] |
864,977 | 864,978 | Make subcategories in template script | <p>I really need help with a script i have bought, the script has some categories, but i also need sub categories, so i added an extra field in the table traffic_categories. The original traffic_categories has id and category, but i have added sub_id also, so if the category is a main category it has 0 in sub_id, but i... | php | [2] |
2,382,505 | 2,382,506 | Anything similar to LINQ in Java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/50135/linq-to-java">LINQ to Java?</a> </p>
</blockquote>
<p>coming from .Net world, so ask. particularly to operate on collections.</p>
| java | [1] |
353,214 | 353,215 | UserControl Property Changing | <p>I have created a User Control(Popupcontrol) and in that control i have created a property(PageType) and when i am using the Popupcontrol on the page then i set the property(pagetype) according to the page.
but now there is some problem i have to two button on the page and on the second button click i want to change ... | asp.net | [9] |
5,573,576 | 5,573,577 | converting a ssh command to python | <p>I am trying to convert the below ssh command to python code,I was able to convert to python but the python code doesnt give any output,so i think i did not convert it properly especially the boolean "AND" logic..can anyone point what is wrong here?</p>
<pre><code>ssh -p 29418 company.com gerrit query --current-patc... | python | [7] |
5,998,028 | 5,998,029 | Parameter losing value when passed | <p>I'm sure this is something simple but I've been staring at it for a bit now and I think all I need is a fresh pair of eyes to look at it, and since my cat doesn't have a whole lot of experience with iPhone programming I've turned to you.</p>
<p>I am passing a variable of type float from a class (UIView) to another ... | iphone | [8] |
4,257,539 | 4,257,540 | Memory Leak Problems with UIImagePickerController in iPhone | <p>I am using the following code for UIImagePicker,</p>
<pre><code>UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
</code></pre>
<p>When I run instrument, I see a memory le... | iphone | [8] |
264,134 | 264,135 | School Assignment. C++ Book Example seems to have issues | <p>The following code is part of a slide in my C++ Class. IntelliSence is giving me errors and I don't know why. Not sure why it doesnt like the Constructor and Destructor. Can Someone please Help?</p>
<pre><code>class Vehicle {
friend void guest();
private:
string make;
string model;
int year;... | c++ | [6] |
5,686,669 | 5,686,670 | BaseAdapter not allow INTENT action | <p>An extended class with <code>BaseAdapter</code> will not allow me to jump from one activity to the second ::
it give me syntax error :: </p>
<pre><code>holder.capture.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
intent_request = new Intent(this, SaxParser2.cl... | android | [4] |
3,555,349 | 3,555,350 | What is the use of Public Key in Android developer console? | <p>I have signed my android application with keytool but don't know what to do with public key in my android developer console..</p>
| android | [4] |
1,119,590 | 1,119,591 | Is this the right way to set this up for selection in jquery | <p>Is this the right way to select an element, it seems to work but looks really ugly code wise</p>
<pre><code>$(this).parent().parent().siblings('.photoWrap');
</code></pre>
| jquery | [5] |
3,774,050 | 3,774,051 | Android - How to add a View progamatically to an Activity's Absolute Layoute setting it's possition? | <p>I have a form with several Views on it, the last one is a Spinner that is bound to an adapter to get it's data from a Web Server via a POST request, at the end I append an additional entry for "Other...". If this option is selected on the spinner, a new EditText View at the bottom where the user enters a custom valu... | android | [4] |
1,150,862 | 1,150,863 | jQuery how to use .find | <pre><code><table id="myTable">
<tr id="myRow1">
<td>hi</td>
<td>hello</td>
<td>comeon</td>
</tr>
</table>
</code></pre>
<ol>
<li><p>In the above scenario, what's the difference between</p>
<p><code>$("#myTable").find('tr')</c... | jquery | [5] |
2,990,557 | 2,990,558 | How do i get the full path of the file in Firefox | <p>How do i get the full path of the file in Firefox with JavaScript?</p>
<p>Thanks in advance!</p>
| javascript | [3] |
2,093,198 | 2,093,199 | asp.net form submitted twice | <p>I have a web page with a form and a submit button, and in the server side I used a session value to prevent the form submit twice, which is like the initial value of the session is 0 and turn it to 1 after user click submit button, every time submit button will check the session value first. </p>
<p>But, when our p... | asp.net | [9] |
935,855 | 935,856 | Filesize checks for integrity checks | <p>Hey I'm wanting to have an integrity check on a software that will be distributed to many different types of servers. Can I use PHP's filesize() comparisons safely... for example will a filesize that is 745 on my server be 745 across all other servers?</p>
| php | [2] |
2,799,661 | 2,799,662 | Changing Style Sheet javascript | <p>I got this HTML code:</p>
<pre><code><head>
<script type="application/javascript" src="javascript.js">
<link id="pagestyle" href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<button id="stylesheet1" > Default Style Sheet </button>
<button id="styles... | javascript | [3] |
1,331,148 | 1,331,149 | Find out if checkbox is checked using jQuery | <p>I've read lots of other posts on SO from people with the same problem, everything I have tried so far has not worked.</p>
<p>I have HTML like so:</p>
<pre><code><ul>
<li class="templateList">
<input id="ctl00_MainContent_newCollection_wzd_lstSiteTypes_ctr10_chkSite" type="checkbox" checked="ch... | jquery | [5] |
446,119 | 446,120 | How to create Yahoo Messenger Client in Android? | <p>Hi
I am trying to create Yahoo messenger client in Android, and i got Openymsg api to implement that.This is small snippet of my code</p>
<pre><code> Session session=new Session();
session.login("Email Id", "password");
</code></pre>
<p>But this code is throwing UnknownHost Exception in "scs.msg.y... | android | [4] |
708,186 | 708,187 | What is the difference between object keys with quotes and without quotes? | <p>Is there any difference between</p>
<pre><code>obj = {'foo':'bar'}
</code></pre>
<p>and</p>
<pre><code>obj = {foo: 'bar'}
</code></pre>
<p>I have noticed that you can't use <code>-</code> in the key when you don't use the quotes. But does it actually make a difference? If yes, what is it?</p>
| javascript | [3] |
4,709,072 | 4,709,073 | Bypassing a requiredfieldvalidator | <p>I have a webform which has validators on it that work well when the user presses the submit button. But when the user presses the logout button the validators stop that button from working.</p>
<p>Any suggestions as to how remedy this?</p>
| asp.net | [9] |
214,515 | 214,516 | Can one make Python constructors more concise? | <p>My python code has a class from which instantiates objects representing countries. The class has a constructor.</p>
<pre><code>class Country:
def __init__(self, population, literacy, firms, area, populationDensity):
self.population = population
self.literacy = literacy
self.firms = firms... | python | [7] |
1,423,965 | 1,423,966 | Increment current Date by two days | <p>i want to increment todays date (Present date) by 2 days because I need to use it to be sending reminders two days before an appointment.</p>
| java | [1] |
4,392,600 | 4,392,601 | PHP Blank Values Inserted In Database | <p>I'm using PHP and Mysql</p>
<p>Here I have used simple form to insert the Name, Email, Phone Number.</p>
<p>I have validated all the data's: (PHP code after submit...)</p>
<pre><code>$error = array();
if(isset($_POST['Name']) && $_POST['Name']=='') {
$error[] = "Please enter the Name";
}
if(isset($... | php | [2] |
1,959,845 | 1,959,846 | What method is the easiest/fastest way for developing Android Apps | <p>Which one of these is the easiest/fastest choice for developing simple Android apps/games? I'm familiar with all this technologies.</p>
<pre><code> • Android SDK or NDK
• C# on MonoDroid platform
• Adobe Flash & Adobe AIR
• Corona SDK
• Converting tools like PhoneGap
</code></pre>
<p>Fundamentall... | android | [4] |
3,068,429 | 3,068,430 | image change or disable on click | <p>i have a image on my site that work as like button when some one click on it page will be refresh and add 1 in like box.now i want that after click on it once after adding 1 in like count box and page refresh image will be hide or link will remove.please help any one?
here is the button code</p>
<pre><code> <div... | php | [2] |
4,827,794 | 4,827,795 | ListViewItem in WPF ListView | <p>I'm attempting to get the ListViewItem object from the currently selected row of a data bound ListView, like so:</p>
<pre><code>ListViewItem selectedItem = new ListViewItem();
selectedItem = (ListViewItem)listView1.Items[index];
</code></pre>
<p>what this does however, is returns the object type the ListView is bo... | c# | [0] |
1,117,707 | 1,117,708 | how to access label control in repeater for perticular row | <p>i have to set label visibility true or false in repeater. I have to access that label on onclick event of linkbutton. both label and linkbutton are in repeater. so when i click on hide link button i have to hide label and when click on show i have to display.but i didn't get label control of that perticular. onclick... | c# | [0] |
1,655,684 | 1,655,685 | How to achieve autoFit on columns which are merged for an excel sheet generated by POI? | <p>I am novice developer, i am using POI 3.6 for generating ExcelSheet. How to achieve autofit for the columns which are merged - sheet.autoSizeColumn(columnNumber) is not working on columns which are merged?</p>
| java | [1] |
4,039,347 | 4,039,348 | Repeat Python function call on exception? | <p>Hey everybody I'm working on a data scraping project and I'm looking for a clean way to repeat a function call if an exception is raised.</p>
<p>Pseudo-code:</p>
<pre><code>try:
myfunc(x)
except myError:
###try to call myfunc(x) again Y number of times,
until success(no exceptions raised) otherwis... | python | [7] |
3,732,921 | 3,732,922 | Alternative to PHP deprecated function session_is_registered() for logout.php file | <p>I'm trying to create a simple member login site, and I was following along with a tutorial online. However, a deprecated function is used. Here is the code.</p>
<pre><code><?php
session_start();
session_destroy();
if(isset($_COOKIE['id']))
{
//remove cookie
setcookie("$id_cookie", '', time() - 50000);
... | php | [2] |
4,313,344 | 4,313,345 | Extract IFrame source using JavaScript | <p>I have a simple HTML/PHP web page and one IFrame in it. The IFrame contains links to external web sites.</p>
<p>I need some JavaScript that will extract the exact URL of the web page that is currently displayed inside the IFrame (not just the base URL of the external site). How can this be done?</p>
| javascript | [3] |
1,194,836 | 1,194,837 | JavaScript loop running indefinately | <p>so, i am trying to get my script to figure out the relevant last day of the school term. it needs to run until the current date is less than (as in before) the last day of the quarter. it just keeps on running no matter what. ps, i think the problem might be that it isnt resetting the "lastDayofQuarter" (at least ou... | javascript | [3] |
1,007,372 | 1,007,373 | Can we have only Finally block with out Try and Catch? | <blockquote>
<p><strong>Can we have only Finally block with out adding Try and Catch block?</strong></p>
</blockquote>
| java | [1] |
31,252 | 31,253 | Get the child controls with type T of a control | <p>I have the following function to get all the child controls of type.</p>
<pre><code> private IEnumerable<Control> GetControlsOfType(Control control, Type type)
{
var controls = control.Controls.Cast<Control>();
return controls.SelectMany(ctrl => GetControlsOfType(ctrl, type))
... | c# | [0] |
1,537,924 | 1,537,925 | No Output? PHP foreach doesn't seem to work | <p>I am trying to form an acronym from a given text. The Idea here is that the first Letter in $text ($text[0]) will be taken and placed inside the array $storage using array_push(). Now, if there is a space inside the array, the letter of the next index should be a part of the Acronym. I am currently not getting an ou... | php | [2] |
2,292,707 | 2,292,708 | Why is it recommended to save viewstate values in the PreRender event call? | <p>I am trying to persist member variables by saving them in the ViewState (only a few small variables) however I read up and I gather its better to save them into the ViewState at the PreRender stage than PageLoad? </p>
<p>I can see that the ViewState can be saved to anytime before Page rendering, but does it make an... | asp.net | [9] |
5,067,545 | 5,067,546 | Why Does Python Script Jump Over Some Entries And Not Others? | <p>In a Python list, an entry I expected to be removed remained, and another entry was removed. Why is that?</p>
<p>Here's the problematic code:</p>
<pre><code>def getAdjacent(pos, bounds):
posibles = [
[pos[0]-1, pos[1]],
[pos[0]+1, pos[1]],
[pos[0], pos[1]-1],
[pos[0], pos[1]+1]]
for p in po... | python | [7] |
4,065,377 | 4,065,378 | what does ~ mean in the java code? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4887876/what-does-this-tilde-mean">What does this tilde mean?</a> </p>
</blockquote>
<p>I am using IntelliJ and found that it can re-factor my code of the following</p>
<pre><code>Handle<String> handle = ... | java | [1] |
1,345,210 | 1,345,211 | Html Parser using java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/904293/is-there-a-validating-html-parser-implemented-in-java">Is there a validating HTML parser implemented in Java?</a> </p>
</blockquote>
<p>Hi,</p>
<p>Is there is any API which parse the HTML text using java... | java | [1] |
2,520,782 | 2,520,783 | Not able to understand func<Type> code | <p>I know what a func is, but not able to understand the following piece of code:</p>
<p>There's a simple property :</p>
<pre><code> public Func<DomainFacade> BusinessFacadeFactory { get; set; }
</code></pre>
<p>And this is how the property is set:</p>
<pre><code> this.BusinessFacadeFactory = () => n... | c# | [0] |
1,702,576 | 1,702,577 | C# Convert Hex string to byte | <p>Little bit stuck on this, I have a var called PORTBhex holding a value in the range 0x00 to 0x3F which is written to an external device via USB. The problem I am having is getting the value into this bit of code:</p>
<pre><code>public bool PORTBwrite()
{
Byte[] outputBuffer = new Byte[65];
... | c# | [0] |
970,010 | 970,011 | Check whether app updates work without submitting to App Store | <p>I have an application already on the store and would like to release an update. Since my app deals with databases and I've had to change some parts of it, I would like to ensure that the update does not affect the existing functionality in any way once the user updates from the App Store.</p>
<p>What I did was this... | iphone | [8] |
5,290,149 | 5,290,150 | I don't want to select hidden element, How can I do that? | <p>I am using a JQuery Plugin, which uses following line</p>
<pre><code>var inputSelector = 'input[class]:not(:button|:submit|:reset), textarea[class], select[class]';
</code></pre>
<p>It select some element.</p>
<p>It also selects the hidden element, how can I achieve that without giving any class to hidden element... | jquery | [5] |
2,105,707 | 2,105,708 | Learning Python regular expression | <p>Which is the best website for learning python regular expression?
please recommend me the best one.</p>
| python | [7] |
4,763,728 | 4,763,729 | php str_replace and \b word boundary | <p>I am trying to use str_replace, but can't figure out how to use \b for word boundary:</p>
<pre><code><?php
$str = "East Northeast winds 20 knots";
$search = array("North", "North Northeast", "Northeast", "East Northeast", "East", "East Southeast", "SouthEast", "South Southeast", "South", "South Southwest", "So... | php | [2] |
1,743,916 | 1,743,917 | How do I show things directly to the screen in Android? | <p>I'm new to android and I was wandering is there a way to show a stream or a pic to the screen directly even without the manifest?</p>
<p>Or how do I load resources files without using the manifest on the Android platform?</p>
| android | [4] |
5,775,298 | 5,775,299 | How to format dates in javascript | <p>I pick this date from a textbox and i would like to format to this format: yyyy-MM-dd
So from dd/MM/yyyy to yyyy-MM-dd</p>
<pre><code> var startDate = document.getElementById('ctl00_PlaceHolderMain_ctl00_Date').value;
var s = new Date(startDate);
alert(startDate); //which prints out 7/03/2012
//when i u... | javascript | [3] |
3,387,276 | 3,387,277 | Environment.GetResourceString | <p>I had to reverse engineering other vendor code .Since i have to hack his code.I jumped few problem but still can understand c# code(** I'm a php oop developer full time).The only last part was Enviroment.GetResourceString was not found.Some said it was in .net framework 2.0.I have install .net framework 2.0 sdk a... | c# | [0] |
3,245,404 | 3,245,405 | Adding items to a navigation toolbar | <p>I have a navigation toolbar in which I am adding toolbar items programatically, as below. The toolbar displays properly, and the toolbar style is set to black opaque. but the button on the toolbar does not display. Why? </p>
<pre><code> //Set up the toolbar
[[[self navigationController] toolbar] setBarStyle:... | iphone | [8] |
4,982,891 | 4,982,892 | DeviceAdmin policies PASSWORD_QUALITY_NUMERIC not working | <p>I am working on DeviceAdmin policies implementation, followed below link for implementation <a href="http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#PASSWORD_QUALITY_NUMERIC" rel="nofollow">http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#PASSWORD_QU... | android | [4] |
4,605,432 | 4,605,433 | What does the keyword this refer to when used as a function parameter/agrument? | <p>Hello I'm somewhat past the newbie stage of javascript and am looking at how a certain widget library works. (All printed out code, can't copy and paste) I condensed it so I hope it's enough for you guys to understand. </p>
<pre><code>Page.prototype.createForm= function (){
....
this.form1 = new Form();
... | javascript | [3] |
1,872,772 | 1,872,773 | Make a TextView and a Button the same size | <p>I have a TextView and Button in my program and I cannot get the size of the Button and the TextView to be the same. How can I do this? </p>
<pre><code> <LinearLayout
android:layout_width="match_parent"
android:layout_height="67dp"
android:background="#999999"
android:gravity="cen... | android | [4] |
1,343,210 | 1,343,211 | String to Integer array conversion | <p>I need to add values into an int array. </p>
<pre><code> int[] placeHolders[];
</code></pre>
<p>Now i do not know the size of the elements to add into this array. I add it while i have input. I want to know how can i convert my string output values into int array repeatedly. </p>
<p>Input: 23.45.1.34</p>
<p>... | java | [1] |
965,248 | 965,249 | Overridden Class Only Offers Static Methods | <p>I have a class that overrides TextView however if I try to use any of the member functions of either my class or TextView I get an error message in Eclipse stating "Cannot make a static reference to the non-static method ##MEMBER FUNCTION## from the type View". Where ##MEMBER FUNCTION## is the method I am calling i... | android | [4] |
1,704,222 | 1,704,223 | Skill points menu not working | <p>Basically, the user chose a class earlier. IN this menu, it checks, and if the user chose Wizard, then they an choose to spend up to 4 skill points. </p>
<pre><code>if Class == ("wizard") or Class == ("Wizard"):
print("You have four spell points. You can learn up to four level- one spells, or one level-four spe... | python | [7] |
422,271 | 422,272 | Why does overloaded assignment operator return reference to class? | <pre><code>class item {
public:
item& operator=(const item &rh) {
...
...
return *this;
}
};
</code></pre>
<p>Is the following signature wrong?</p>
<pre><code>void operator=(const item &rh);
</code></pre>
<p></p>
<pre><code>item a, b;
a = b; // equivalent to a.operator=(b... | c++ | [6] |
3,642,070 | 3,642,071 | PHP snippet to match wildcarded IPv4 strings | <p>I'm finding an hard time in figuring out how to create a snippet that can tell me if an ip is matching with a database of blacklisted ips, also containing wildcards.
Example:</p>
<pre><code>$global_blacklistedips = Array ( '10.10.*.*', '192.168.1.*' );
function checkBlacklistedIp ( $ip ) {
// some kind of reg... | php | [2] |
3,074,892 | 3,074,893 | Why is it not possible to access elements via JS on this site? | <p>The website I'm talking about: <a href="https://sephir.ch/vfi/user/lernendenportal/index.cfm" rel="nofollow">https://sephir.ch/vfi/user/lernendenportal/index.cfm</a></p>
<p>I wanted to make a simple bookmarklet which fills my email and password into those two textboxes. My JS code works on any other site, but not o... | javascript | [3] |
1,658,872 | 1,658,873 | How does asort work? | <p>I was having a look over some of my old work and saw that the asort function would have worked perfectly for some of the uses I needed, although I attempted an extremely different and longwinded way. </p>
<p>So my question is exactly, how does asort maintain association when sorting? I thought an array can be sorte... | php | [2] |
1,748,264 | 1,748,265 | Increase the grid spacing in android | <p>I have a gridview in which i have a lot of items in three colums. I want to increase the spacing between them. How can I do that in android?</p>
| android | [4] |
4,343,216 | 4,343,217 | javascript open parent window | <p>The following is in the NewForm.aspx which gets executed from a parent page (surveys/lists/testsurvey/allitems.aspx). The javascript works and open google. However, it opens the google in the pop up window (newform.aspx) but i need to close the popup window and show google.com on the parent window (or whatever the p... | javascript | [3] |
2,857,216 | 2,857,217 | How to replace part of href= value from a javascript variable similer to phps str_replace(..)? | <p>i got javascript variable(code2) that holds the following data:</p>
<pre><code><div class="pages"><center><a class="selected" href="/Episodes-1234_power1" title="power album page 1" >1</a><a class="normal" href="/Episodes-1234_power2" title="power album page 2"> 2</a>
</code></pr... | javascript | [3] |
1,425,493 | 1,425,494 | Can I open UNIX POSIX ports from Python? | <p>Can I open UNIX POSIX ports from Python 2.7 ( I don't need IP port, just UNIX POSIX) ? Does anybody have experience with this ?</p>
| python | [7] |
5,861,137 | 5,861,138 | How to disable maximize,mimimize and close button for a new window open | <p>I am using window.open() method to open a page as a pop-up window
for a link button click event.
But the poup-up window is having minimize,maximize,close(x) button.
I dont want those buttons.How can remove these buttons?
this is the method i am using,</p>
<pre><code>window.open(url,"Link","toolbar=0,location=0,dire... | javascript | [3] |
3,397,904 | 3,397,905 | An Exception occur in Tablayout | <p>I wanna add three layout in a TabActivity, but it was force closed when I ran it.</p>
<h2>Here is the code:</h2>
<p>import android.app.TabActivity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;</p>
<p>public class Test1 extends TabActivity {</p>
<pre><code>public ... | android | [4] |
3,320,943 | 3,320,944 | How can I update the title of the tab in the same way GMail/Facebook does? | <p>Every time you receive a new email, or something happens on your Facebook profile, your browser tab's name changes. For example, on gmail, if you receive a new mail, it will change to something like <code>GMail (1)</code>. How can I get the same effect in my application? I think it's a Javascript thing, but I'm not ... | javascript | [3] |
4,564,037 | 4,564,038 | java and website redirection detection | <p>I have java related question...</p>
<p>Website www.stationv3.com gets updated daily (most of the time at least, it's kinda irregular). Every time I connect to a site using address www.stationv3.com (using a browser), it redirects me to it's subpage www.stationv3.com/date_of_latest_update.html</p>
<p>I'm trying to ... | java | [1] |
4,579,157 | 4,579,158 | How read Doctype of XML file | <p>I have
file config.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE app SYSTEM "text.dtd">
<app>
<appname>NTTDK</appname>
<version>1</version>
</app>
</code></pre>
<p>file text.dtd</p>
<pre><code><!ELEMENT app(appname,version)>
&... | android | [4] |
3,838,644 | 3,838,645 | Need to pass a String array to a Set | <p>Hello guys I need to pass a string array over to a setter that takes a Set. Not sure how to pass it over. Thanks</p>
<p>THis is my form:</p>
<pre><code> public String[] getFields() { return fields; }
public void setFields(String[] s)
{
fields = s;
//System.out.println("form Array length " + s.length); ... | java | [1] |
5,800,258 | 5,800,259 | Is it possible to have an array of elements as a property of a PHP class? | <p>As this does not seam to work?</p>
<pre><code>class Site {
private $PROPERTIES = array(
"NAME",'STACKOVERFLOW',
"URL",'http:/stackoverflow.com'
);
function __construct() {
$this->props = $PROPERTIES;
}
function dumpData() {
var... | php | [2] |
2,921,805 | 2,921,806 | Can i inherit the operator>>? | <p>I have the following problem: let's say class <code>Item</code> holds the serial number of a product,
and class <code>Book</code> is an <code>Item</code> which inherits class <code>Item</code>'s serial number. I have to create and use <code>operator>></code> for every class. I thought about creating <code>oper... | c++ | [6] |
4,769,677 | 4,769,678 | Unknown Asp.net syntax | <p>Can some one explain the significance of the $ in the following line of aspnet code? Not sure what to look for since I've never seen the syntax but FormView2 is the name of the formview this input sits inside. </p>
<p>Why is this necessary (if it is at all)?</p>
<pre><code><pre>
<code>
<!--... | asp.net | [9] |
530,947 | 530,948 | Activity not losing its state when I rotate the emulator screen | <p>I have created one layout with two edit boxes. After I launch my application, I enter some text in both of the edit boxes, and I press the 7 and 9 buttons to rotate the emulator screen, and the text I have entered still remains. But I have read from the docs that upon screen orientation change, the activity will be ... | android | [4] |
1,303,606 | 1,303,607 | C# multiple custom controls types recognizing | <p>My question is based on an example from WPF, but, I think, it's more about C# in general.</p>
<p>Suppose I have a WPF app where I use several types of Custom Controls, let it be <code>CustControl1</code>, <code>CustControl2</code>, <code>CustControl3</code>. The page can dynamically load the XAML with controls of e... | c# | [0] |
1,969,447 | 1,969,448 | What does it really mean by 'this' in java? | <pre><code>class A {
void methodA {
B b= new B();
b.methodB();
//point 1
}
private class B {
void methodB(){
//point 2
}
}
}
</code></pre>
<p>if I use a system out to print <code>this.toString()</code> at both point 1 and point 2, it gives the same ... | java | [1] |
5,519,119 | 5,519,120 | parent().filter(":first") doesn't work | <p>I have:</p>
<pre><code><td>firstTD</td>
<td>secondTD</td>
<td>thirdTD</td>
<td>
<img src="img/cross.png" onclick="alert($(this).parent().parent().filter('td:first').val());">
</td>
</code></pre>
<p>Why I didn't get an alert: "firstTD" ?</p>
| jquery | [5] |
5,793,670 | 5,793,671 | list with infinite elments | <p>I need to operate on two separate <strong>infinite list</strong> of numbers, but could not find a way to generate, store and operate on it in python.</p>
<p>Can any one please suggest me a way to handle infinite Arithmetic Progession or any series and how to operate on them considering the fact the minimal use of m... | python | [7] |
3,774,773 | 3,774,774 | Pass variables through Quoted Javascript String | <p>I have a function which returns a string which contains a javascript call. Since it is quoted I cannot pass variables through it. </p>
<p>How can I change the return string which would enable me to pass javascript object values. </p>
<p>Ex: How can I pass <code>var i</code> through the return statement.</p>
<pre>... | javascript | [3] |
1,124,578 | 1,124,579 | Android - Enter button with finger detection? | <p>I'm working on a soundboard, however I've got a problem when it come to drag the finger over the screen to play the sounds for the buttons I drag the finger over.</p>
<pre><code>Button Button3 = (Button)findViewById(R.id.button03);
Button3.setOnTouchListener(new OnTouchListener() {
@Override
... | android | [4] |
2,101,955 | 2,101,956 | Feature detection - Lion scrollbar | <p>I have some css code that mimics Lion/iOS style scrollbars (like Twitter website). However, I would like to prevent the styles to be used for browsers that supports new scrollbars and are running Lion. Is there a better way than checking the user agent for WebKit+Lion ?</p>
| javascript | [3] |
1,197,846 | 1,197,847 | Is there any offline multilingual dictionaries which I could use in my own application via API? | <p>The idea is to use any possible ready to use <em>multilingual dictionary</em> available on the market in my own android app. </p>
<p>What am I looking for is like this <a href="http://www.abbyy.com/lingvo_android/api/" rel="nofollow">http://www.abbyy.com/lingvo_android/api/</a></p>
<p>Does anybody know dictionary ... | android | [4] |
5,201,077 | 5,201,078 | Why doesn't this email-address-submitting code work with Opera and Internet Explorer? | <p>I've just discovered the <a href="http://www.yoomoot.com" rel="nofollow">email-address-saving form on my website</a> does not work on Opera and Internet Explorer (7 at any rate), and possibly other browsers. Works fine with Firefox. Unfortunately I'm not a developer and no longer have any contact with the guy who wr... | php | [2] |
4,081,958 | 4,081,959 | Access Point Location | <p>Is there any way I can know the distance between android device and the access point it is connected too?</p>
<p>let us say if the device is connected to another mobile device via hot spot feature.</p>
| android | [4] |
3,558,645 | 3,558,646 | Make javascript run onclick instead of pageload | <p>I have the the following script that runs when the page is loaded:</p>
<pre><code><script language="JavaScript">
j=parseInt(Math.random()*ranobjList.length);
j=(isNaN(j))?0:j;
document.write(unescape(ranobjList[j]));
</script>
</code></pre>
<p>How can I execute it when a button is click... | javascript | [3] |
777,773 | 777,774 | Is there a better way to write a unit test to ensure an object has been set with a newly instantiated value? | <p>say I have a class:</p>
<pre><code>public class Person
{
public int Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
public int Height { get; set; }
}
</code></pre>
<p>and in a method I instantiate it:</p>
<pre><code>public void SomeMethod(Person person)
{
person = new Per... | c# | [0] |
3,756,979 | 3,756,980 | how to change a function in existing 3rd party library in python | <p>This was an interview question which was asked to me. Please do not penalize me if it doesn't make sense. She asked:</p>
<p>"I have an existing 3rd party lib in python and there is a function foo() in it. How do I modify that function after importing in my existing module?"</p>
| python | [7] |
1,456,778 | 1,456,779 | Can't get session.gc.lifetime | <p>I am trying to find out the maxtime for my php session (I don't have access to the cpanel or php.ini file). I am trying to use this code but its not printing out anything (except 'hello'). Whats wrong?</p>
<pre><code> <?php
session_start();
error_reporting(E_ALL);
ini_set("error_reporting",1);
// Get the curren... | php | [2] |
5,681,050 | 5,681,051 | Time alert problem - Android | <p>I develop app for time alerting ( for example when you need to drink medicine - it repeats at time intervals ). How can I implement that service runs forever in background ? Is that possible at all ?</p>
| android | [4] |
1,562,894 | 1,562,895 | PHP Script Parsing Files Incorrectly | <p>I am not exactly sure what the problem is, but I have a PHP script which should be downloading and displaying specified web pages. However, certain pages create a download dialog in the browser rather than displaying the page (but the downloaded file is still the correct HTML). This only happens for some websites bu... | php | [2] |
2,830,298 | 2,830,299 | Activator.CreateInstance failing | <p>I have am creating an Instance dynamically using Activator.CreateInstance. However, it is saying object cannot be null on every attempt. Pasting the code below. Am I doing anything wrong?</p>
<p>Is there any problem if </p>
<blockquote>
<p>Activator.CreateInstance</p>
</blockquote>
<p>replaces the conventional... | c# | [0] |
468,253 | 468,254 | Returning searched results in an array in Java without ArrayList | <p>I started down this path of implementing a simple search in an array for a hw assignment without knowing we could use ArrayList. I realized it had some bugs in it and figured I'd still try to know what my bug is before using ArrayList. I basically have a class where I can add, remove, or search from an array. </p... | java | [1] |
2,401,573 | 2,401,574 | Event Handler Not Working | <p>I have this jQuery code:</p>
<pre><code>$('#SomeLink').onclick =
function(event)
{
alert('test');
};
</code></pre>
<p>And this is my markup:</p>
<pre><code><a href='#' id='SomeLink'>
Some Link
</a>
</code></pre>
<p>Obviously very simple. <a href="http://jsfiddle.net/Surfer/f... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.