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,009,860 | 4,009,861 | Python module can't see class file that was already loaded | <p>I'm developing an interactive modeling platform called QREDIS. It is composed of a set of interrelated modules, which get imported by a setup script and provide a set of model research functionality to the user.</p>
<p>As part of the setup, I load a class <code>QMod_Template</code> using</p>
<pre><code>exec(open(... | python | [7] |
5,537,226 | 5,537,227 | based on object value how do i get NSMutableArray index value | <p>How do i get index value from NSMutableArray.</p>
<p>I got <code>NSString *stringValue=@"e";</code></p>
<p>And my <code>NSMutableArray *arrayValue=[[NSMutableArray alloc]init];</code></p>
<pre><code>[arrayValue addobject:@"a"];
[arrayValue addobject:@"b"];
[arrayValue addobject:@"c"];
[arrayValue addobject:@"d"];... | iphone | [8] |
5,158,588 | 5,158,589 | Passing by referencing with a function in php? | <p>I have a simple function like so which I use to compare something,</p>
<pre><code>function life($life) {
while($life) {
echo $life . '<br />';
--$life;
}
return $life;
}
$life = life($user['lifeforce']);
if($life) { ... }
</code></pre>
<p>Should I pass it by reference or forget it... | php | [2] |
216,158 | 216,159 | Javascript server side? | <p>Is it at all possible to use javascript server side and thus not shown in page source for certain core calculations?</p>
<p>I'm developing a game, and one crucial part of the code needs to be only calculated server side then passed back to client.</p>
<p>My entire game is in Javascript - but most of it is client s... | javascript | [3] |
2,948,463 | 2,948,464 | return multiple value from one method | <p>I have a class UserFunction and it have two method getAudioFunction and getPromptFunction with returning String value, my problem is that i want to return both value in one method
how can i able to do that</p>
<p>UserFunction.java</p>
<pre><code> public class UserFunction{
Map<String,PromptBean> p... | java | [1] |
4,320,031 | 4,320,032 | How to launch landscape view from portrait in iphone? | <p>Im new to iPhone developer, I have a Login screen in Iphone, when i run, it displayed in half screen only, then i change the orientation it displayed the login screen in landscape mode, but i want when i launched the app it displayed in landscape mode in portrait and navigation to another screen also landscape mode ... | iphone | [8] |
4,958,347 | 4,958,348 | Writing a website in Python | <p>I'm pretty proficient in PHP, but want to try something new.</p>
<p>I'm also know a bit of Python, enough to do the basics of the basics, but haven't used in a web design type situation.</p>
<p>I've just written this, which works:</p>
<pre><code>#!/usr/bin/python
def main():
print "Content-type: text/html"
... | python | [7] |
86,662 | 86,663 | Using Progressbar in c# windows application | <p>The user will be able to search for some document in the local machine and i want to show user, a progress bar during my program searches. To be more clear, i have foreach loop for which i want to tie up my progress bar to show the progress. my foreach loop and progress should work simultaneously. Is this possible ... | c# | [0] |
3,871,169 | 3,871,170 | Difference between drawable and drawable-mdpi | <p>As I understand it, the default DPI setting for Android is equivalent to MDPI. Is there any reason to have both drawable and drawable-mdpi folders, or would it work the same if I just put them in drawable?</p>
| android | [4] |
293,160 | 293,161 | install 2 apk files while installing one | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3062685/download-and-install-apk-from-a-link">Download And Install apk from a link.</a> </p>
</blockquote>
<p>hi..
Wen my application is being installed i also want to install Adobe reader apk.</p>
<p>Is it po... | android | [4] |
609,295 | 609,296 | PHP: show entrys per month | <pre><code><?php
while($show = $grabAlbums->fetch() ){
$date_headers_array[date('m', $show["date"])][date('d', $show["date"])][] = $show;
}
foreach ($date_headers_array as $month => $v1) {
foreach ($v1 as $day => $v2) {
?>
<h3 class="EventlistHeader" style="margin-... | php | [2] |
806,473 | 806,474 | classnotfound exception | <p>when i tried to use robolectric i found class not found exception is there a way to solve this ..
thanks in advance..</p>
| java | [1] |
1,084,395 | 1,084,396 | How to handle out of memory error? | <p>I am using following code to display bitmap in my ImageView.
When I try to load image of size for example bigger than 1.5MB it give me error.
Any one suggest me solution?</p>
<pre><code> try {
URL aURL = new URL(myRemoteImages[val]);
URLConnection conn = aURL.... | android | [4] |
2,552,211 | 2,552,212 | How to make background service run as a seperate process? | <p>We have developed one android application which will send the request and receive the response from the server and based on the response it will update the UI.This application handles so many different types of requests and it will enunciate as well as display the server status on the status bar.
this application is... | android | [4] |
2,165,425 | 2,165,426 | How do I resolve this ambiguity? | <p>I'm trying to use a field and method with the same name.</p>
<pre><code>class Foo {
String Bar;
String Bar() { return "woo"; }
}
</code></pre>
<p><code>Error 8 Ambiguity between 'Foo.Bar' and 'Foo.Bar()'</code></p>
<p>Can I do this without making <code>Bar()</code> an extension method? For example, thi... | c# | [0] |
2,312,390 | 2,312,391 | How can I add a space between words in jQuery? | <p>I have a jQuery function that returns a row from a database table. When it is displayed in a textbox, the words all run together. For example: <code>Everyonepleasebecarefulwhenleavingthebuilding</code>. I would like to separate the words to read: <code>Every one please be careful when leaving the building</code>. T... | jquery | [5] |
3,588,402 | 3,588,403 | Color Change Event For Asp Using Javascript? | <p>I wrote a javascrpit Code for Changing Color. It's working Properly.</p>
<p>Whenever I click on the File Upload Control Button, Textboxes looses their Focus and get back to the Previous State. </p>
<p>Can Any One Help For This Situation.</p>
<p>My Code IS:</p>
<pre><code><script language="javascript">
func... | asp.net | [9] |
3,273,066 | 3,273,067 | Getting a count of list items in a list via ECMAScript | <p>I have a SharePoint 2010 web site with a master page that has a counter on it. I'm trying to update that counter using the ECMAScript. The code I have falls nicely into the success method - but I cannot find the right call to get a count. I have tried length, length(), count & count(). Does anybody have any sugg... | javascript | [3] |
1,754,003 | 1,754,004 | clearInterval is not working | <p>I have a div that is above something I want to showcase, and I have the <code>setInterval</code> working, but the clearinterval isnt firing when it reaches 2 loops.</p>
<p>I have this:</p>
<pre><code> window.setInterval(play_ani_clickthese, 3000);
var fade_count = 0;
function play_ani_clickthese() {
$("#click_... | javascript | [3] |
12,121 | 12,122 | I have a problem with inline vs included Javascript | <p>I am relatively new to javascript and am trying to understand how to use it correctly.
If I wrap js code in an anonymous function to avoid making variables public the functions within the js are not available from within the html that includes the js. On initially loading the page the js loads and is executed but on... | javascript | [3] |
1,846,708 | 1,846,709 | geting the html of tables with greater than 4 rows stored in an array map(function() | <p>With the following code in jquery:</p>
<pre><code> $(source).children('table').filter(function() {
return ($('tbody > tr', 'table').length >= 4)})
</code></pre>
<p>I filter out tables that have 4 rows or greater. I'm trying to create an array of the html from this using the map (function() but this doesn't ... | jquery | [5] |
3,355,601 | 3,355,602 | Get a screenshot of a page | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/757675/website-screenshots-using-php">Website screenshots using PHP</a> </p>
</blockquote>
<p>I have an application where people watch a stream of content (a video stream) and need to click a button each time so... | php | [2] |
728,139 | 728,140 | modify datarow value for a specific gridview column | <p>how would i change the value IBM to something arbitrary like Cisco in one of the gridview events listed?</p>
<p>there can be varying columns in the dynamic gridview so would be nice to address the column by name.</p>
<pre><code>namespace WebApplication1
{
public partial class _Default : System.Web.UI.Page
... | asp.net | [9] |
4,889,590 | 4,889,591 | Is this correct to Initialize a matrix in C++ | <p>I have a class with an variable of array of array. </p>
<pre><code>private double * array[4][4];
</code></pre>
<p>Can I initialize it this way? </p>
<pre><code>void RealMatrix::init(int i, int j) {
this->array[i][j] = new double;
*(this->array[i][j]) = 0;
}
</code></pre>
| c++ | [6] |
4,308,451 | 4,308,452 | What is the purpose of "@SuppressWarnings("unchecked")"? | <p>I have found following code on net. I am confused about the first line. What is the purpose of this line ?</p>
<pre><code>@SuppressWarnings("unchecked")
private void showAlert(String title,String msg,final Class cls)
{
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setTitle(ti... | android | [4] |
4,180,880 | 4,180,881 | multiple icons possible for one app? | <p>can the same app have different icons so that a user can select the icon he/she desires.
ex. user1 wants icon x
user2 wants icon y
both users using the same app.</p>
| iphone | [8] |
2,782,532 | 2,782,533 | Trying to save images to hard disk give me error: URI formats are not supported | <p>This is the function im using and I want to save the images in the links i got from the website on my hard disk. </p>
<pre><code>public void GetAllImages()
{
// Bing Image Result for Cat, First Page
string url = "http://www.bing.com/images/search?q=cat&go=&form=QB&qs=n";
// For speed of dev, I... | c# | [0] |
5,986,330 | 5,986,331 | How do I combine 'this' with a first-child selector? | <p>I'm trying to combine 'this' with div:first-child to get the html value of a hidden div that makes up the body of an anchor tag. How should this work?</p>
<pre><code>$('a').click( function(){
$(this + "div:first-child").html();
}
</code></pre>
| jquery | [5] |
1,983,135 | 1,983,136 | iphone populating dynamic controls | <p>I am working on iphone aaplication..
As I have seen in iphone app, the controls used in app are statically predefined in interface builder and uiviewcontroller...
But I have to deal with situations where I do not know what type of control to create..The controls are known to me at runtime of application....
How do i... | iphone | [8] |
4,691,645 | 4,691,646 | Sent user to page bottom by javascript | <p>I am trying to send user to the bottom of page</p>
<p>by javascript</p>
<p>I am trying this code</p>
<pre><code>window.scrollTo(0,document.body.scrollHeight);
</code></pre>
<p>it does not work</p>
<p>but if i try</p>
<pre><code>window.scrollTo(0,9999999999999999);
</code></pre>
<p>it works very well</p>
<p>I... | javascript | [3] |
487,973 | 487,974 | C++: How do you convert the name of a function pointer to text? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/351134/how-to-get-functions-name-from-functions-pointer-in-c">How to get function's name from function's pointer in C?</a> </p>
</blockquote>
<p>I'm printing the configuration for the program to the comm... | c++ | [6] |
4,034,335 | 4,034,336 | Android. Dynamic class loading and Java interfaces | <p>I've almost finished my first real Android project, a taxi ordering application, only some little usability concerns are left. For future releases we plan to implement built-in automatic updates of programming code and resources like some good programs do. I managed to run a simple example, based on <a href="http://... | android | [4] |
4,143,744 | 4,143,745 | How do I change C file operation to Objective C? | <p>char buf[32]; </p>
<p>FILE *fp = fopen("test.txt", "r");</p>
<p>fscanf(fp, "%s", buf);</p>
<p>fclose(fp);</p>
<p>I want to change above C file operations to Objectiv C.</p>
<p>How do I change?</p>
<p>Isn't there fscanf kind of thing in Objcectiv C?</p>
| iphone | [8] |
1,295,383 | 1,295,384 | Get all images from any url in php? | <p>I have input type text for url on my website. By posting value of this url field, i want to fetch all possible images (if present) from that particular url as this happens in <a href="http://facebook.com" rel="nofollow">http://facebook.com</a> at update status textarea. So what will be the code for this in php?</p>
... | php | [2] |
332,129 | 332,130 | About redirecting page to another with querystring in asp.net c# | <p>Hi
I am creating online quiz. Here in 1st form i have dropdownlist for list of tests & start button. In the click of start button i am creating random list of questions(random ids). After clicking start button 2nd form appears here questions & their answers and next button displays. After clicking next butto... | asp.net | [9] |
1,764,489 | 1,764,490 | Trying to get info out of an object within and object PHP | <p>Ok, I'm very new to PHP. I will try my best to explain my question. </p>
<p>This is a var_dump of a json object. <br/>
What i am trying to do is access the information in the 'register_sale_products' object.<br/>It contains product info like SKU, Price etc of the products in each sale. In the example below i am try... | php | [2] |
3,804,481 | 3,804,482 | Programmatically find device support GPS or not? | <p>I am trying to find some code which will help me to find out if the device which I use has GPS or not? I don't want to know if GPS is enabled or disabled. I just want to know if the device has GPS hardware or not through my program.</p>
| android | [4] |
5,248,142 | 5,248,143 | Python 3.1 Installation missing Tkinter on OS 10.6.4 | <p>Has anyone else had this problem? I have re-installed twice with the same result. The pre-install of 2.6 on the Mac had a lib-tk folder with the correct modules. Nothing like this is being created for 3.1. There is a Tkinter folder but it contains only a few obscure modules. Importing _tkinter and tkinter works but ... | python | [7] |
4,769,398 | 4,769,399 | How to disable button double click on button | <p>I have next button in one activity which takes you to the next activity and the same button is used their to go to next activity.</p>
<p>Here my problem is when I click twice on next in first activity it is taking me to the third activity.</p>
| android | [4] |
4,510,014 | 4,510,015 | REGEX: Breaking Capital Letters | <p>hello need help in regex i use this to split strings with capital letters like OldMcDonald
<code>preg_split('/(?=[A-Z])/', $data, -1, PREG_SPLIT_NO_EMPTY);</code> </p>
<pre><code>output
[0] => Old
[1] => Mc
[2] => Donald
</code></pre>
<p>now i need to split strings like MWTTH
i need to tell the rege... | php | [2] |
4,983,351 | 4,983,352 | array manipulation help in php making phrases | <p>I will have four word list arrays.</p>
<pre><code>$array1 = array('red','blue','green');//it can have more elements
$array2 = array('ball','radio','bat');
$array3 = array('free','$10','bonus','2free');
$array4 = array('Ny','california');
</code></pre>
<p>using these 4 arrays of words which can have 0 to any no ... | php | [2] |
5,759,269 | 5,759,270 | how to create user defined function in Java Exception handaling | <p>how to create user defined function in java exception handaling</p>
| java | [1] |
4,395,266 | 4,395,267 | updating the text view on user Click | <p>I have array of 15 elements...mObjects and have 7 textviews to display. At first I am loading 7 in the TextView array and then as user goes on click text view should get update i.e. if user got the third element then it should update the 3rd Texvire with the next mObject in a list kind of manner.... My logic works w... | android | [4] |
5,414,733 | 5,414,734 | how to pass complex Library class object from one activity to another activity | <p>I need to pass an object from one activity to another activity ,
I am using tesserect OCr Library so I need to pass its object,Please tell me how i do this i am struck here.
Advance Thanks.</p>
| android | [4] |
4,390,411 | 4,390,412 | passing value to other module python | <p>i have two script name is A.py and B.py</p>
<p>i want to know how to send value from A.py to B.py.</p>
<p>for more detail,when run finished A.py script at the end of script ,A.py call B.py.</p>
<p>my question is i have to send some value from A.py to B.py.</p>
<p>anybody some help me how to send value A.py to B... | python | [7] |
3,450,641 | 3,450,642 | How to handle large memory footprint in Python? | <p>I have a scientific application that reads a potentially huge data file from disk and transforms it into various Python data structures such as a map of maps, list of lists etc. <code>NumPy</code> is called in for numerical analysis. The problem is, the memory usage can grow rapidly. As swap space is called in, the ... | python | [7] |
2,637,620 | 2,637,621 | Pass comma-separated arguments to js function | <p>I have the following function:</p>
<pre><code>function calculateAspect(options){
def = {
orgw: 0,
orgh: 0,
tarw: 0,
tarh: 0
};
o = $.extend(def,options);
console.log(o);
};
calculateAspect({orgw:640});
</code></pre>
<p>And i want to be able to pass it values li... | javascript | [3] |
4,201,243 | 4,201,244 | Is there a way to check how much of the picture has been loaded, in pixels, from the top? | <p>The heading sums is all. Though, the case is where I have a long (20x2000px) picture as a sprite for thumbnails. It would be nice if I could start showing the sprite only for the thumbnails that already have required-part of the sprite loaded, and show loader in the meantime.</p>
<p>All I need is to know how much o... | javascript | [3] |
2,615,208 | 2,615,209 | How to hide the plumbings of program.cs | <p>In a typical winform program.cs contains the entry point:</p>
<blockquote>
<pre><code> static void Main(string[] args) {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// the code goes on
</code></pre>
</blockquote>
<p>I want to create my own fr... | c# | [0] |
4,153,467 | 4,153,468 | JavaScript to login account not working | <p>Code that automatically go to login page and click login:</p>
<pre><code>javascript: window.location = 'https://1.1.1.1/login.HTML';
while (true) {
if (document.readyState == "complete") {
window.onload(document.forms[0].Submit.click());
break;
}
}
</code></pre>
<p><sup>Code passed through ... | javascript | [3] |
5,603,617 | 5,603,618 | How to assign a string to char *pw in c++ | <p>How to assign a string to char *pw in c++</p>
<p>like...</p>
<p>char *pw = some string</p>
<p>??</p>
| c++ | [6] |
3,247,393 | 3,247,394 | JavaLib that visits all classes in a jar etc and reports violations using white&black lists | <p>Id like to pass in white and black lists of classes and methods, the lib must then report the bads and accept the goods. I know i could do the same with ObjectWebs ASM but i was hoping this was already done by someone.</p>
<p>Eg id like to do something along the lines of Android or J2ME to catch invalid API calls.<... | java | [1] |
1,311,752 | 1,311,753 | Replacement for Spring Richclient Statusbar class | <p>I'm currently upgrading an application from the 0.2.0 version of Spring Richclient to 1.1.0, and the class org.springframework.richclient.progress.StatusBar seems to have been removed. </p>
<p>I can't find any documentation on it, does anybody know if it's been renamed or if the specification has been changed?</p>
| java | [1] |
512,606 | 512,607 | Android development for beginners | <p>I want to learn Android development and create mobile apps. What would be the recommended resources (There's too many on the web)? </p>
| android | [4] |
3,595,345 | 3,595,346 | jQuery confirm dialogue with link | <p>I have a link that when clicked opens a dialogue and when a CONFIRM button in the dialog is clicked the user needs to be sent to a specific URL via GET action with some variables (original link). Clearly, if CANCEL is clicked, void link click action.</p>
<p>Not really sure how to put this all together. Here's what... | jquery | [5] |
5,124,454 | 5,124,455 | android:windowsoftinputmode="adjustpan" causes the issue in edittext when soft keyboard shown | <p>I have a layout with two edittext and a button.when softkeyboard shown the button is on the top of the softkeyboard.To avoid this set in the manifest android:windowsoftinputmode="adjustpan" .Then that issue is solved.But when data is there in the second edittext.Then the softkeyboard covers the edittext .If there is... | android | [4] |
4,951,852 | 4,951,853 | how to fadeIn and fadeOut html() | <p>i have this 23 jpeg images but i couldnt do the proper animation like fadein fadeout
heres my code:</p>
<pre><code>var srcStr1 = "../img/portrait/anne/",
srcStr2 = ".jpg",
counter = 1,
pos =0,
x;
var anne = $('#anne').attr('rel');
... | jquery | [5] |
5,840,625 | 5,840,626 | Getting substring of a string from different aspects | <p>I need to get substring from a string where it will give output of first 25 characters from different aspects. Here substring should only consider commas (,) not spaces.</p>
<p><em>Scenario 1:</em></p>
<pre><code>$str = "the, quick, brown, fox";
$res = "the, quick, brown, fox";
</code></pre>
<p><em>Scenario 2:</... | php | [2] |
1,374,611 | 1,374,612 | Android 2.2 How to know when somebody is typing? | <p>I am developing an IM application on android 2.2 and when somebody writes to me I want to see that he is typing to me, exactly like on yahoo messenger. How could I do this on Android 2.2? If you can give me an example I would be grateful. Thank you and I'm waiting your answers.</p>
| android | [4] |
1,851,817 | 1,851,818 | how to set tablelayout row background color programmatically android | <p>how to set tablelayout row background color programatically.</p>
<p>Please let me know...</p>
<p>Thanks in advance</p>
| android | [4] |
17,412 | 17,413 | jquery adding new class configuration on id? | <p><code><area shape="poly" coords="63,10,64,38,89,37,91,10" class={"strokeColor:'0000ff',strokeWidth:5, fillColor:'ff0000',fillOpacity:0.6}" href="#" id="x1"></code></p>
<p>There is a imagemap in my html and I want to dynamicly add a new configuration "alwaysOn:true" to the class attribute.</p>
<p>I cannot fig... | jquery | [5] |
4,443,078 | 4,443,079 | For loop error in C# | <p>Im trying to run this for loop to fill a certain column in a datagrid view but give the error of "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"</p>
<pre><code> for (int i = 0; i < noofloops; i++)
{
dgrout... | c# | [0] |
3,701,570 | 3,701,571 | construct object from parent class | <p>A extends B, may i reference B suboject in A's constructor? </p>
<pre><code>public A(B b)
{
/*(B)this = b*/
}
</code></pre>
<p>If not, how do i construct an A object with a B object?, i mean other that using Cloneable to create some other instance or solutions out of the JLS (dozer, beanutils, etc.). In a nutshe... | java | [1] |
3,163,350 | 3,163,351 | android volume keys issue | <p>i have the following code:</p>
<pre><code>@Override
public boolean dispatchKeyEvent(KeyEvent event) {
int action = event.getAction();
int keyCode = event.getKeyCode();
switch (keyCode) {
case KeyEvent.KEYCODE_VOLUME_UP:
if (action == KeyEvent.ACTION_UP) {
int curr... | android | [4] |
23,138 | 23,139 | nodeType == 3 in p elements greater than 150 characters | <p>right now, I have this code:</p>
<pre><code>var source = $('p').filter(function(){
return $(this).text().length > 300;})
.parent().slice(0,1);
</code></pre>
<p>By filtering through p elements, I find the first one that is longer than 300 characters, and store the parent of that in source. My question is... | jquery | [5] |
2,511,382 | 2,511,383 | Reading a specific row & columns of data in a text file using Python 2.7 | <p>I am new to Python and need to extract data from a text file. I have a text file below:</p>
<pre><code>UNHOLTZ-DICKIE CORPORATION
CALIBRATION DATA
789 3456
222 455
333 5
344 67788
12 6789
2456 56656
</code></pre>
<p>And I want to read it on the shell as two columns of data only:</p>
<pre>... | python | [7] |
2,662,750 | 2,662,751 | how to stop reloading page with every new form input (submit) in php? | <p>I want to make script that allows user guessing numbers until hits the right one. The idea is that php "imagine" one number using <strong>rand()</strong>.User has unlimited number of hits. But the problem is that user has to find the very same number as php "imagine" at the beginning of his quest, and my script rel... | php | [2] |
5,951,084 | 5,951,085 | Camera app on android open souce? | <p>Is the Camera app on android open source?
I have installed android 4.0.3 emulator and get the camera app source. But when I run it, it only let me set the exposure. But when I run Camera app on Galaxy Nexus, the camera app let me set more than exposure, it let me set white balance, flash mode.</p>
<p>My question is... | android | [4] |
1,074,101 | 1,074,102 | getline() error. no instance of overloaded function matches argument list. | <p>Hi i am trying to use getline() function by giving two arguments to it. but it is giving error as no instance of overloaded function matches argument list. </p>
<p>Here is my code snippet:</p>
<pre><code> string equation;
cout<<"Enter the string";
getline(cin, equation);
</code></pre>
<p>can anyone p... | c++ | [6] |
2,620,812 | 2,620,813 | What are the complete legal entities that can be put in a namespace? | <p>I'm learning C++ now. What are the complete legal entities that can be put in a namespace?</p>
<p>Legal entities here means valid members of a namespace </p>
<p>Oh, this is a real question. I'm coming from .net and I have the .net mindset. </p>
| c++ | [6] |
4,665,089 | 4,665,090 | How To Close Popup Window Automatically When Its Not In Use? | <p>I want a popup window to close automatically as soon as the user minimizes the window. My code is as follows:</p>
<pre><code><a href="#" onclick="Popup=window.open('fb.html','Popup','toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=620,height=400,left=230,top=23'); return false;">... | javascript | [3] |
1,434,788 | 1,434,789 | Searching in listView (extending ListActivity) | <p>I am developing an Android app using listView in which <strong>MainActivity extends Listactivity</strong>.
I have searched it but unable to embedd the searching functionality in listView.
PLz HELP </p>
<p>Thanks in Advance</p>
| android | [4] |
1,665,573 | 1,665,574 | Can't add project as library to my project | <p>I'm trying to use ABS library in my project. I added library project to my workspace, checked this state ("Is Library" is true in project's settins), added this project to my one "Java Build Path" -> "Projects". But I can't mark this project as library ("Android"->"Libraries" in properties). I had added that, but wh... | android | [4] |
1,347,442 | 1,347,443 | Object[] to Class[] in Java | <p>Is there any built-in Java6 method (perhaps in lang or reflection?) for performing:</p>
<pre><code>private Class[] getTypes(final Object[] objects) {
final Class[] types = new Class[objects.length];
for (int i = 0; i < objects.length; i++) {
types[i] = objects[i].getClass();
}
return type... | java | [1] |
3,788,818 | 3,788,819 | What is the good way to access one object in different methods | <p>I have an object person that I'm using in several methods on the front-end. How do I do that best? create new instance every time? or do public? or something else? seems pretty basic question to me.</p>
<pre><code>public class Employee
{
public void DeleteEmployee(int employeeId)
{
... | c# | [0] |
2,932,121 | 2,932,122 | How can I retrieve last inserted calender event id using Intents? | <p>I'm wondering how to retrieve event id after saving it.</p>
<pre><code>public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
try {
if (ACTION_ADD_TO_CALENDAR.equals(action)) {
JSONObject arg_object = args.getJSONObject(0);
... | android | [4] |
344,839 | 344,840 | Java Script: Uncaught TypeError: Cannot read property 'value' of undefined | <p>I am sorry if I this questions is duplication, I have read all the Q & A in the site regarding but did not find the answer.</p>
<p>I am getting the error message <code>Uncaught TypeError: Cannot read property 'value' of undefined</code>. The funny thing is this is coming for only 1 client.
I have created a plac... | javascript | [3] |
5,019,660 | 5,019,661 | trying to teach myself python, stuck during one chapter of this book, very simple question | <pre><code>from sys import argv
script, user_name=argv
</code></pre>
<p>that's part of the program i'm trying to run and I don't think any more is necessary. I try and run it by typing into terminal:</p>
<pre><code>python exl.py script user_name
</code></pre>
<p>That should work, right? I know this is pretty simple... | python | [7] |
1,317,327 | 1,317,328 | jquery no conflicting error | <p>I have particular set of files for toggle effect. When I use these two files separtely it works for me. But I use to copy the files with collection of my js files so it start giving me error. Its giving me conflicting error. When firebug. It shows error on first file.</p>
<pre><code><script>
$(document).ready... | jquery | [5] |
4,093,226 | 4,093,227 | javascript page zoom | <p>Hi
i develop my web site
and i want to make two buttons (+ and -) with functions of ctr+ and ctr-
for zoom in and zoom out of whole web page in all browsers.
I need javascript code for this purpose
Can anybody help?</p>
| javascript | [3] |
3,396,766 | 3,396,767 | the decimal, octal and hexadecimal value of an integer in C++ | <p>I know that it may sound hilarious, but how can I find the hexadecimal value of a decimal integer? (C++)
What is the difference if I want to find the hexadecimal value for the opposite of that number?
(only answers that use iostream)</p>
| c++ | [6] |
2,543,304 | 2,543,305 | C# Constructor constratint to types that support comparison operators | <p>How do I create a class to store a range of any type provided that the type allows comparison operators to ensure that that the first value provided to the constructor is less than the second?</p>
<pre><code>public class Range<T> where T : IComparable<T>
{
private readonly T lowerBound;
private ... | c# | [0] |
4,440,835 | 4,440,836 | Why is this php array not getting anything? | <p>I'm trying to submit a 'defacto' option array (although it looks like a search bar) to a php file and show the results that I sent. This is what it looks like now:</p>
<p><img src="http://i.stack.imgur.com/WUzLR.png" alt="enter image description here">
Link to image: <a href="http://i.imgur.com/Ak4dk.png">http://i.... | php | [2] |
738,818 | 738,819 | How to check input field's length? | <p>How am I able to check input field's length? </p>
<p>For example, how to check if name entered in <code>input</code> field has <code>length</code> bigger than <code>2</code> characters?</p>
<p>Here is the code that I tried to use, but <code>length</code> always returns <code>0</code>.</p>
<pre><code>$(document).r... | jquery | [5] |
725,076 | 725,077 | android developer training errors in sample code for network connection | <p>I am going through the android developer training material here - <a href="http://developer.android.com/training/basics/network-ops/index.html" rel="nofollow">http://developer.android.com/training/basics/network-ops/index.html</a>. I downloaded the sample code NetworkUsage.zip and imported it to eclipse. The code ... | android | [4] |
2,767,545 | 2,767,546 | Can we alias a class name the way we do in namespaces? | <p>Can we alias a class name the way we do in namespaces?</p>
<p>For example:</p>
<pre><code>namespace longname{ }
namespace ln = longname;// namespace aliasing
class LONGNAME {};
class LN = LONGNAME; // how to do class name aliasing, if allowed?
</code></pre>
| c++ | [6] |
2,458,367 | 2,458,368 | emmulator-5554 issue | <p>When i try running the simple Hello Android program i get the following message in console
emulator-5554 disconnected! Cancelling 'com.android.hello.HelloAndroid
As a result the program does not run.</p>
<p>Can any one help me out of this...</p>
<p>Thanks in Advance..
sandeep</p>
| android | [4] |
3,386,275 | 3,386,276 | Not giving right message | <p>I'm trying to figure out why when the user is locked out and it has NOT been 10 minutes then they are given a message of:</p>
<blockquote>
<p>Account is unlocked. You may now try to log in again!</p>
</blockquote>
<p>I'm not sure why.</p>
<pre><code>// User is registered and verified
$query = "SELECT * FROM use... | php | [2] |
2,523,770 | 2,523,771 | How to edit and save the connectionstring in web.config file during the installation in c#? | <ul>
<li>i have created installer for the web application.</li>
<li>i want to change the default connectionstring value in web.config by the connectionstring passed by the user from the installation.</li>
</ul>
| c# | [0] |
2,668,495 | 2,668,496 | C# Windows application | <p>how to add columns in C# windows applications</p>
| c# | [0] |
2,812,101 | 2,812,102 | What is the most secure way to do a cookie based "Stay logged in"? | <p>Hi
what is the securest way to do a "stay logged in" feature?</p>
<p>i think thinking of user logs in store their userid, timestamp and a hash of <code>timestamp + salt + hash of their pw</code> in a cookie. then when they visit the site next, check if a hash of the <code>cookie timestamp + salt + hash of their pw<... | php | [2] |
5,810,428 | 5,810,429 | Rotate in Android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7490277/android-rotate-dial">Android - Rotate Dial</a><br>
<a href="http://stackoverflow.com/questions/7491579/android-rotate-image-around-center-point">Android - Rotate image around center point?</a> </p>
</bloc... | android | [4] |
2,020,909 | 2,020,910 | How can i input only valid telephone number in input box? | <p>I am trying to input a telephone number in an input box like this (ex. 111-222-3333)</p>
<p>so I use this code:</p>
<pre><code><script type="text/javascript">
function validate(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromChar... | javascript | [3] |
2,885,272 | 2,885,273 | How to restrict time peried for posting a form from a website? | <p>On my website I included a post card that users can send from my site. I want to restrict based on IP (from one computer) only 5 post cards can be sent in 30 minutes. If an IP is trying to send their 6th postcard, the page should redirect to the registration page.</p>
<p>I am not a php script writer. I don't kno... | php | [2] |
5,352,124 | 5,352,125 | try catch error in javascript - get more error details | <p>How can I get more error details from a javascript catch?</p>
<p>Are there more parameters to get more details from the caught error.</p>
<pre><code>try {
var s = null;
var t = s.toString();
} catch(err) {
alert(err);
}
</code></pre>
| javascript | [3] |
6,018,519 | 6,018,520 | how i can save message which is sending to my email in server to database by php? | <p>how i can save message which is sending to my email in server to database by php ?</p>
<p>i mean when you buy hosting in the internet, you have special email like john@webpower.info
i want if any body sent message to this email (john@webpower.info) from gmail, msn, special server saved messages info in database by ... | php | [2] |
1,263,187 | 1,263,188 | What is the easiest way to serialize and deserialize to XML | <pre><code>class Server
{
public int ID { get; set; }
public string Name { get; set; }
public string Url { get; set; }
public string Login { get; set; }
public string Password { get; set; }
public string AdminEmail { get; set; }
}
</code></pre>
<p>I need to serialize to XML and deserialize <cod... | c# | [0] |
2,452,525 | 2,452,526 | Detect online users? | <p>I'm not sure what would be the easiest way to do this. I need to be able to detect what users are online on my website. So when people are viewing a thread or something it will say next to the users name if they are ONLINE or OFFLINE. And at bottom of forum index it will say all the users who are online.</p>
<p>Wha... | php | [2] |
4,514,340 | 4,514,341 | does closing of web browser window cause the termination of php script? | <p>I have a special php script that I call from a browser. It does lots of things and it runs for about 15mins. It does stream back some results.</p>
<p>My question is what happens if I close the browser windows? Is the php script terminated? If yes, can I make it somehow not to be affected when the browser window is ... | php | [2] |
1,444,250 | 1,444,251 | How to use project layout inside Library project in android | <p>I am developing an android app in which I have included a library project, I am able to use the resources of library project (ie layouts, styles etc) inside my main project. But I want to use the resources of my main project inside my library project. Is there any way to do that? I am stuck at this problem for quite... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.