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,227,920 | 4,227,921 | solve the determinent using python | <p>As a simple example, let's say you have this matrix:</p>
<p>M = [omega 1;
2 omega];</p>
<p>and you need to solve for the values of omega that satisfy the condition det M = 0. How do you do this in python?</p>
| python | [7] |
3,844,673 | 3,844,674 | Does Python's reduce() short circuit? | <p>If I do:</p>
<pre><code>result = reduce(operator.and_, [False] * 1000)
</code></pre>
<p>Will it stop after the first result? (since <code>False & anything == False</code>)</p>
<p>Similarly:</p>
<pre><code>result = reduce(operator.or_, [True] * 1000)
</code></pre>
| python | [7] |
1,081,755 | 1,081,756 | In Android how to get CheckBox onCheckedChanged from other activity | <p>the first one - 16.1 Example A Preferences</p>
<p><a href="Http://www.bogotobogo.com/Android/android16Preferences.html" rel="nofollow">Android tutorial</a><br>
(sorry for the link)</p>
<p>Cant for the love of android not get this to work
I want to click that CheckBox witch is connected to the autosave PreferenceAc... | android | [4] |
4,181,985 | 4,181,986 | Can you capture end user's Java version when they run an applet? | <p>An applet developed outside our company just started failing for some users this week. Apparently it was because of the latest version of java (1.6u24) that auto updated. Is there a way to capture what version of java the user opened the applet with? </p>
| java | [1] |
2,240,688 | 2,240,689 | jQuery > How to pass the value of a select list to an onclick handler? | <p>I have a button element below that has an onclick handler. Inside the onclick I'm building a dyanamic querystring. I need to make the "template" variable dynamic to match the val() property of the currently selected item in the "template" select menu. How can I do this?</p>
<pre><code><select id="template">..... | jquery | [5] |
2,559,160 | 2,559,161 | How to include backslash and quotes in Python strings | <p>I've got an array of special characters that looks something like this.</p>
<pre><code>specialCharList=['`','~','!','@','#','$','%','^',
'&','*','(',')','-','_','+','=',
'|','','{','}','[',']',';',':',
'"',',','.','<','>','/','?']
</code></pre>
<p>The problem is, I ... | python | [7] |
542,236 | 542,237 | Timeout function if it takes too long to finish | <p>I have a shell script that loops through a text file containing URL:s that I want to visit and take screenshots of.</p>
<p>All this is done and simple. The script initializes a class that when run creates a screenshot of each site in the list. Some sites take a very, very long time to load, and some might not be lo... | python | [7] |
1,287,708 | 1,287,709 | Calling method from a class in a different class in python | <p>Let's say I have this code:</p>
<pre><code>class class1(object):
def __init__(self):
#don't worry about this
def parse(self, array):
# do something with array
class class2(object):
def __init__(self):
#don't worry about this
def parse(self, array):
# do somethi... | python | [7] |
5,830,027 | 5,830,028 | How can I show multiple areas of search suggestions for Android search suggestions? | <p>I have an iPhone app with search suggestions that divides the search suggestions into "your query text appears in the name" and "your query text appears somewhere else in the description". The thinking is that users are most likely to be searching by name, so we show those suggestions first.</p>
<p><img src="http:/... | android | [4] |
759,830 | 759,831 | Solving index out of range error | <p>I am using gridview row commands edit and delete. When I click on those links that particular row data shows on textboxes as mentioned.</p>
<p>First loop is working but for <code>e.CommandName == "deletevalue"</code> showing an error </p>
<blockquote>
<p>index was out of range. must be non-negative and less than... | c# | [0] |
4,633,233 | 4,633,234 | Pow and mod function optimization | <p>I need to create an optimized function to count <strong>Math.pow(a,b) % c;</strong> in Javascript;
<br /> There's no problems while counting small numbers like: <br /> <code>Math.pow(2345,123) % 1234567;</code>
<br /> But if you try to count:<br /> <code>Math.pow(2345678910, 123456789) % 1234567;</code><br /> you'll... | javascript | [3] |
836,272 | 836,273 | ASP.NET Error Object reference not set to an instance of an object | <p><code>Object reference not set to an instance of an object</code></p>
<p>I am getting this error sometimes.
I have a page where I load questions and for some question system generate this error. Why do I get this error? Please help me.</p>
| asp.net | [9] |
2,654,160 | 2,654,161 | Javascript get value by radio button name | <p>first of all i am a beginner in javascript, a really big beginer</p>
<p>Can someone give me a hint on this?</p>
<p>I have a <code>form</code>, on the form i have a <code>radio</code> button.</p>
<p>And i would like to that if the radio is set yes , it would show the value of it on another page.</p>
<p>And i woul... | javascript | [3] |
5,853,270 | 5,853,271 | Passing variable to PHP function to be eval'd (DB query) | <p>I'm having trouble describing this issue, which is probably why I can't find the answer on google.. so I figured I would try getting help here. If I'm repeating this question, feel free to direct me to a link to the thread.</p>
<p>So basically the issue I'm having is I am trying to pass a variable to a function tha... | php | [2] |
6,027,609 | 6,027,610 | Breadcrumb implementation | <p>I am confused about the following scenario : </p>
<p>TYpical category, products display.
Categories will be dynamic, so will products.
So, to show all products under a category, I need to show a breadcrumb, and a left menu showing list of categories.
Now, do we need to use SiteMap feature of asp.net, or not.
SiteMa... | asp.net | [9] |
2,082,560 | 2,082,561 | how can i know my application is in not working mode? | <p>i have one application in that i want to know that is this in idle mode ?</p>
<p>how can i know this ?</p>
<p>in my application when it go in idle mode i want to stop one java script. or you can say when no one using application for long time .</p>
| iphone | [8] |
2,506,682 | 2,506,683 | Is there any benefit to using getters/setters inside a class for its own fields? | <p>Usually, in my own projects I use getters and setters for any field access, and I followed to do the same on my job. Some time ago, the tech lead of our project asked me why I was doing that and why is this better than just using fields themselves (with an option of declaring them protected if they needed to be acce... | java | [1] |
3,726,301 | 3,726,302 | checking mutiple file input in php | <p>Guys have a problem don't know why this is not working, i have file input field which can upload multiple images.</p>
<p>this is my form</p>
<pre><code><form method="post" action="" enctype="multipart/form-data">
<input name="images[]" type="file" multiple="multiple">
<input type="submit" name="test... | php | [2] |
2,407,606 | 2,407,607 | Combination and merge of the string | <p>how can I combine this </p>
<p>5 4 3 2 1 1 (an array id)</p>
<p>3 3 2 1 3 2 (an array value)</p>
<p>and I want output is like this for array(value)</p>
<pre><code>id value
5 - 3
4 - 3
3 - 2
2 - 1
1 - 3
1- 2
</code></pre>
| php | [2] |
1,360,017 | 1,360,018 | PHP blank body page on first time open on firefox on my development server | <p>I really don't know why my web page is always blank in body whenever open a new page in firefox on my development server!</p>
<p>My development server have many web sites!
Some sites same problem and some sites no problem...</p>
<p>But I'm not working with server administration.</p>
<p>The result of the page is ... | php | [2] |
1,907,134 | 1,907,135 | Make a form submit() behave like location.replace() | <p>IN SHORT:</p>
<p>There's this web page that needs to be submitted when the user loads the page. There is a good reason for it, long story.</p>
<p>Would it be possible to make a form <code>post</code> submit() behave like a location.replace()? No history trace.</p>
<p>Thanks.</p>
<hr>
<p>LONG STORY: In my CMS, I... | javascript | [3] |
5,393,068 | 5,393,069 | camera black out issue on screen? | <p>I am working on virtual binocular in iphone.I made a application for both iphone and ipad. Getting issue regarding camera black out sceen. Actually, when first time application has load on the iphone its call viewdidload method after that it will call viewwillappear and then viewdidappear.But when I working on my a... | iphone | [8] |
4,684,335 | 4,684,336 | working with files with .txt and .doc extensions | <p>my program below is a simple windows form that searches for a file in the directory then it opens,reads and writes on it after that there is a search button which searches for words in the file but i can only do this with files that have a .txt extension can some help me i want to do this to word documents as well,i... | c# | [0] |
1,641,538 | 1,641,539 | iPhone life cycle | <p>Which method is called first when an iPhone application loads?</p>
| iphone | [8] |
3,826,891 | 3,826,892 | how to delete the video file which is in red5 server? | <p>in my application i want to delete the video file which is in red5 server how can i delete, this is my code.</p>
<pre><code>FileInfo fil = new FileInfo("C:\\Program Files\\Red5\\webapps\\oflaDem\\stream\\" + videofil);
fil.Delete();
</code></pre>
<p>but it is showing error ....</p>
<p>Could not find a ... | asp.net | [9] |
5,945,623 | 5,945,624 | JavaScript visual element selection, deletion | <p>Many of you already familiar with Firebug Inspect option, which allow to move around in loaded web page and select web page Elements for inspection. </p>
<p>Maybe someone know any similar JavaScript which could do the same? I need to allow user to select and remove web page element at runtime. User visit web page, ... | javascript | [3] |
289,114 | 289,115 | array insert into database | <p>guys im trying to make a list of students in php and getting each of its value and insert it in the database.</p>
<pre><code>$b_lname = $_POST['bstudnt_lname'];
$b_fname = $_POST['bstudnt_fname'];
$b_mname = $_POST['bstudnt_mname'];
$department = $_POST['class_department'];
$section = $_POST['section_name'];
$year... | php | [2] |
4,604,506 | 4,604,507 | Alignment issue while implementing TableRow | <p>I need to accomodate three columns in a TableLayout.</p>
<p>The following code creates the table row headers & then populates the values in the columns. Table layout has been defined in the layout xml.</p>
<pre><code>TableLayout tableLay = (TableLayout) findViewById(R.id.table);
// Table Headers
TextView firs... | android | [4] |
5,833,552 | 5,833,553 | Why do two regex literals in my Javascript vary on a property? | <p>I read in <em>Javascript: The Good Parts</em> by Douglas Crockford that javascript regular expression literals share the same object. If so, then how come these two regex literals vary in the <code>lastIndex</code> property?</p>
<pre><code>var a = /a/g;
var b = /a/g;
a.lastIndex = 3;
document.write(b.lastIndex);
... | javascript | [3] |
1,821,093 | 1,821,094 | getting the sub string in the string buffer up to semi colon | <p>i want the substring of the string up to first semicolon
<code>String s = "select *from dept;select *from emp;";</code>
Now i want to get the substring "select *from dept"of that string s
can any one help me ? </p>
| java | [1] |
2,179,229 | 2,179,230 | Adding values to a list | <p>I'm an R newbie and am trying to create a basic "database" for my comic books.
However, I have a problem.</p>
<p>The idea is to place each new entry as a list.
I assumed that I could set up the lists to look like the following.</p>
<pre><code>[Thor, 50, Marvel]
[Thor, 51, Marvel]
[Thor, 52, Marvel]
...
eventually... | python | [7] |
2,569,761 | 2,569,762 | Sending information | <p>I decided that I would like to work programming and Web infrastructure what it says? I
realized that there are programmers and they develop code that can move more information on the same data bus
There's someone who can direct me what to do I mean where do we start to learn it
What do you call this programming lan... | java | [1] |
4,223,302 | 4,223,303 | Extracting parameters of a httprequest when form type is multipart | <p>I have a requirement in which i need to process few data to generate a Id field and at the same time i need to upload a few images which needs to be done at the press of a single button.I mean to say both the data and image have to be processed(image uploaded in file server and data saved in database)at the same tim... | java | [1] |
1,810,901 | 1,810,902 | What is the most efficient way to update a widget? | <p>I wanted to ask, what the most efficient way is to update a widget. For example a clock widget which is not restricted by the <code>appwidget-provider's</code> <code>android:updatePeriodMillis</code>. </p>
| android | [4] |
4,343,140 | 4,343,141 | c++ convert an integer into a string ubuntu | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/228005/alternative-to-itoa-for-converting-integer-to-string-c">Alternative to itoa() for converting integer to string C++?</a><br>
<a href="http://stackoverflow.com/questions/273908/c-integer-stdstring-conversion... | c++ | [6] |
5,886,585 | 5,886,586 | retain state not working in android | <p>I have two different layout for activity like layout-land layout-port with different design .I had given below code but state is maintain but potrait design is coming in landscape mode .can anbody tell how to avoid this? can anybody provide sample?</p>
<p>I have mention android:configChanges="orientation"</p>
<pr... | android | [4] |
5,246,768 | 5,246,769 | Difftime between now and now throws 1hr difference (C++) | <p>Why a difftime between now and now throws one hour as a result? Shouldn't it be 0? </p>
<pre><code>time_t diffe = difftime(now, now);
CCLOG("wow %i", localtime(&diffe)->tm_hour);
</code></pre>
<p>Result of log = "wow 1"</p>
<p>thks</p>
| c++ | [6] |
5,527,342 | 5,527,343 | Cross browser solution for checking Null Iframes | <p>I am struggling since quite a long time now, and finally I have to post a query since I havent received any relevant answer till now.</p>
<p>What I need is to check for Null Iframes and accordingly call a function. I am looking for a replacement for the below three lines of code so as to be able to work in all brow... | javascript | [3] |
4,619,487 | 4,619,488 | minVersion 8 (2.2) - What can replace these functions? | <pre><code>// I use this method to determine the change screen orientation
Activity.isChangingConfiguration()
</code></pre>
<p>and </p>
<pre><code>ColorDrawable.getColor() // I use this method to get activity background color
</code></pre>
<p>These methods were added in api version 11.
Now I have to use minimum ... | android | [4] |
5,022,302 | 5,022,303 | Method Signature in C# | <p>What is the Method Signature in the following </p>
<pre><code>int DoSomething(int a, int b);
</code></pre>
<p>Return type is a part of signature or not???</p>
| c# | [0] |
1,948,966 | 1,948,967 | how to get Theme attributes values | <p>Is it possible to obtain styled attributes values from particular Theme without setting the theme up to application/activity?
(I mean before invoking <code>context.setTheme(..)</code>)</p>
| android | [4] |
3,678,410 | 3,678,411 | UnboundLocalError in python confusing | <p>Could anyone explain the exception the below code. It only works when I change the var sub in the display() to another name. There is no global variable sub as well. So what happened ?</p>
<pre><code>def sub(a, b):
return a - b
def display():
sub = sub(2,1) // if change to sub1 or sth different to sub, it ... | python | [7] |
2,949,523 | 2,949,524 | Playing video in a Customview like iPad feature | <p>When we call MPMoviePlayerController.play method, the movie player is opened and the video is played in a separate full screen. is it possible to play a video in a custom view, that is I have an image added on a view, when this image is clicked, the image has to be removed and the video has to play there itself as t... | iphone | [8] |
295,543 | 295,544 | iphone - how do i check whether im connected to a wifi network | <p>i read,seen the Reachablility example in Apple's website but still not quite sure about determining whether the iphone is connected to a wifi network/ or a pc(ipaddress). All i understand about that example is that you give it a address, and it checks how it is accessible either via wifi,WWAN or not reachable at all... | iphone | [8] |
2,229,678 | 2,229,679 | Finding opening and closing parentheses in an input field, delete them (together with everything inside)? | <p>I would like to accomplish the following with jQuery: find an opening and closing parenteshes in the input field with the ID of <code>#post_tag_names</code> and remove them from he input field (together with the content inside the parentheses).</p>
<p>For example, if the input field has this:</p>
<pre><code>rails ... | jquery | [5] |
5,023,736 | 5,023,737 | why i cannot replace value of a hidden input? | <p>i have a hidden input like this:</p>
<pre><code><input type="hidden" id="selectedItem" value="1,1,1," name="selectedItem"/>
</code></pre>
<p>and i want to replace some values of it to:</p>
<pre><code>value="9,9,9"
</code></pre>
<p>i tried to used </p>
<pre><code>document.getElementById('selectedItem').val... | javascript | [3] |
1,222,744 | 1,222,745 | launch orientation of iPad is incorrect for landscape orientation (upside down) | <p>I read a few different posts on the orientation on launch, but I'm still unsure how it works. We are only supporting landscape orientation. In didFinishLaunchingWithOptions, I do:</p>
<pre><code> HomeController *myHome = [[HomeController alloc] initWithNibName:@"HomeController" bundle:nil];
myHome.navigati... | iphone | [8] |
2,570,051 | 2,570,052 | link button in repeater to pass session variable | <p>I have a repeater listing out my custom data, now what I want to do is pass on a variable from one page to another using a asp:linkbutton. The problem I am having is that when I go to call my link button in the subroutine its not being recognized. I looked at <a href="http://stackoverflow.com/questions/7099485/cant-... | asp.net | [9] |
4,200,305 | 4,200,306 | How to write a program that search for phrases in an audio stream? | <p>someone can help me to implement it?
I'm thinking about KTaglib library.</p>
| php | [2] |
2,240,947 | 2,240,948 | iPhone: Remove single slash from NSString | <p>I want to remove single slash from the following string.</p>
<pre><code>"{\"ID\":\"2\",\"OrderNo\":\"48\",\"Price\":\"95\",\"Title\":\"Sell out\"}"
</code></pre>
<p>I tried using the below code.</p>
<pre><code>resultStr = [myString stringByReplacingOccurrencesOfString:@"\\'" withString:@""];
</code></pre>
<p>But... | iphone | [8] |
4,984,375 | 4,984,376 | Would appending to a non existing element create a new instance of that element in JQuery? | <p>In my browser, I have a textbox and a submit button. Using the text from the textbox, I want to add that text as a list item at the end of an unordered list. The unordered list does not exist yet but I want the text to appear under the textbox and submit button. I made this function:</p>
<p><strong>Code:</strong> <... | jquery | [5] |
4,111,804 | 4,111,805 | creating DB table by giving input from php text box | <p>I want to make a table in a database, by giving the name of that table as an input from a text box. </p>
<pre><code><?php
$tablename = $_POST['tablename'];
// Create a MySQL table in the selected database
mysql_query("CREATE TABLE $tablename(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
... | php | [2] |
2,961,700 | 2,961,701 | Un-named parameter in function definition | <p>I understand that function prototypes don't need to have a name associated with the parameters. For example:</p>
<pre><code>void foo(int, std::string);
</code></pre>
<p>I was interested to find out recently that you could do the same thing in a function definition though:</p>
<pre><code>void* foo(void*) { std::c... | c++ | [6] |
3,325,646 | 3,325,647 | dynamic form validation | <p>i'm creating select box dynamically in php .i can add this select box at the back end.
so how can i validate that select box without knowing name of feild.
kindly help me with javascript if any one have idea about that
thanks</p>
| javascript | [3] |
4,392,674 | 4,392,675 | Search a string without case sensitivity in php | <p>I am trying to search for a string but when I search it has to be case insensible I will then use that string as a delimiter in the explode function. I can't search for a specific position because I can't control how much text will be before the delimiter. </p>
<p>as you can see this only searches for <em>CODE</em>... | php | [2] |
3,603,579 | 3,603,580 | jQuery show more | <p>hoping someone can help me. </p>
<p>I'm trying to have a "show more" link expand a hidden div and have the "show more" to disappear, but I need the list item its in to disappear as well. This needs to apply to multiple lists on the same page, and I need to be able to customize the "show more" text on a item by item... | jquery | [5] |
583,094 | 583,095 | How to read .doc file? | <p>I have a <code>.doc</code> file saved on my <strong>sdcard</strong>. I need to read the content of <code>.doc</code> file and show it in a <code>TextView</code>.</p>
<p>Can anyone please tell me how to do this?</p>
| android | [4] |
5,555,431 | 5,555,432 | Static initialization of object | <p>I have a global object which is declared before main function and a static object inside main.</p>
<ul>
<li>Which one of these uses (or do both?) static initialization?</li>
<li>I've heard that <code>A obj1</code> is also called static; why is that? </li>
</ul>
<p><br/></p>
<pre><code>class A { ... };
A obj1;
i... | c++ | [6] |
724,496 | 724,497 | creating hyperlink dynamically | <p>i am trying to create a hyperlink from code-behind, but it is not creating it where i want it to be.</p>
<p>if i look at my souce code is creating somewhere else and from .aspx page it seems like everything is in place where it needs to be.</p>
<p>.aspx</p>
<pre><code><div class="AZ">
<ol class="AZli... | asp.net | [9] |
2,690,492 | 2,690,493 | How to fix INSTALL_FAILED_CPU_ABI_INCOMPATIBLE errors? | <p>I'm not sure exactly why it's causing a problem but the <a href="http://www.datamax-oneil.com/do/com/en-us/home/service-support/technical-resources&p=78BF687A-B903-0951-A5DC4C57D04BACE2#SM1" rel="nofollow">Datamax Printer SDK</a> jar causes the apk to fail to install on x86 phones, failing with the error <code>I... | android | [4] |
449,831 | 449,832 | How does the Android "Advanced Task Killer App" work? | <p>I am making an app that allows the user to set an alarm based on GPS locations. I am having problems deleting the notifications I create and the alarms I set.</p>
<p>I have found that all the notifications and alarms are deleted permanently when I use the "Advanced Task Killer App". I want to implement whatever it ... | android | [4] |
3,469,352 | 3,469,353 | making the gridview row bold depening on the label control value | <p>I have a label control that has the value</p>
<p>123| value9| value6|value9</p>
<p>Right below this label control, I have a gridview, I want to make that item of the gridview bold that has the linkbutton with
123 value in it</p>
<p>so for e.g</p>
<pre><code>value9 Value1 Value3 ... | asp.net | [9] |
4,805,406 | 4,805,407 | check if an app work on jailbreak device | <p>I have one free app and hope to inform the users to upgrade app when there is new version.
But I need to detect if the app works on a jailbreak device.
Is there a way to check if an app work on jailbreak device?
I try to read the info of Info.plist, but failed.</p>
<p>Welcome any comment</p>
| iphone | [8] |
2,070,873 | 2,070,874 | Subscribe event to event in C#? | <p>Is it possible in C# to connect one event to another so emitting first event will emit second one? The only way i can see is to create a stub function that will emit second event and connect the first event to this function. Compiler do not want to connect event to event or event to anonymouse function / lambda that... | c# | [0] |
5,087,271 | 5,087,272 | javascript push to 1 array | <p>I am trying to push new values to an array, but when the values are pushed 2 new arrays are created. I am trying to push the values into one array not in separate ones. How do I do that? Here is the code I am using.</p>
<pre><code>for (count = 0; count < xmlItem.length; count++) {
// dates
xmlDate = new Dat... | javascript | [3] |
5,426,892 | 5,426,893 | Getting wrong output | <p>This is the code:
A[0] (in the main function) should be equal to 0, not 1. I can't find my mistake. I suppose the problem is somewhere in the and1 function, but again, I can't seem to be able to find it. Anyway I am pretty sure that the first sentence covered the problem pretty well, but the website is forcing me t... | c++ | [6] |
745,439 | 745,440 | Can I apply a class to a table row containing a link, rather than to the link itself? | <p>The following code adds a class to a link and removes another class from the same link:</p>
<pre><code> $('a[href$="' + myStr + '"]').removeClass('yes').addClass('no');
</code></pre>
<p>The link appears in a table. How would I apply this change in class to the ROW that the link appears within in the table, rather ... | jquery | [5] |
3,492,158 | 3,492,159 | jquery 'this' confusion | <p>Hi I have the code below, once the first (only) item in the menu is hovered over, the subtext should appear. I have used 'this' as I thought it should find the class with the "li" and then slideDown. This doesnt seem to work, although 'this' works for when you remove the hover, as it slides up (top part not the subt... | jquery | [5] |
1,941,761 | 1,941,762 | C++ function returning value as reference and return *this | <p>if I wanted to return "this" from a class member function as reference would this piece of code be correct ?</p>
<pre>
Record& operator=(const Record& that) {
m_name = that.m_name;
return *this;
}
</pre>
<p>Shouldn't i just use "return this" ?</p>
<p>Thanks for help :)</p>
| c++ | [6] |
2,275,681 | 2,275,682 | Disable, Enable on('click') | <p>How can i disable and enable a on click event.</p>
<p>I tried with:</p>
<pre><code>$('#web').on('click', function web_function(event){
event.stopPropagation();
// execute a bunch of action to preform
});
$('#web').off('click'); // click is succesfully removed
$('#web').on('click'); // doesnt work, i need t... | jquery | [5] |
5,621,104 | 5,621,105 | Using root to disable navigation bar buttons | <p>I am currently working on a <code>custom lockscreen</code> for Android and I'm working on a way to use root to disable the navigation bar buttons without completely hiding the navigation bar.</p>
<p>For now I managed to completely hide the navigation bar by killing the SystemUI process, and launching it again when ... | android | [4] |
5,932,853 | 5,932,854 | Most efficient way to generate a really long string (tens of megabytes) in JS | <p>I find myself needing to synthesize a ridiculously long string (like, tens of megabytes long) in JavaScript. (This is to slow down a CSS selector-matching operation to the point where it takes a measurable amount of time.)</p>
<p>The best way I've found to do this is</p>
<pre><code>var really_long_string = (new A... | javascript | [3] |
1,404,262 | 1,404,263 | javascript object extensibility restriction on methods only? | <p>Is it possible to restrict the extensibility for methods only?</p>
<p>As preventExtension() prevents addition of property as well as methods( because methods are also property).</p>
<p>What is the solution to prevent further addition of methods only ( and allow addition of non method property)?</p>
<pre><code>Obj... | javascript | [3] |
578,152 | 578,153 | How to fix this java script error handling single quote in the line | <p>Hi I had a similar requirement as below and was
curious to know to fix the issue.</p>
<p>Below is the code</p>
<pre><code><script type="text/javascript">
function Msg1(){
var sd= document.getElementById('myText').innerHTML = 'Thank's!';
alert('-sd-'+sd);
}
function Msg2(){
document.getElementById('myT... | javascript | [3] |
193,037 | 193,038 | Why wamp server is running on my computer? | <p>I have first all install the Visual studio 2008 on my computer and after that wamp server. I was try to start wamp server but it can start it shows error. please help me what can i do?</p>
| php | [2] |
5,817,808 | 5,817,809 | jQuery: Form slideDown() at load | <p>How can I have my form load with a <code>slideDown()</code> effect rather than normal rendering?</p>
<p>Also, how do I know when a particular div or element has been loaded?</p>
| jquery | [5] |
1,722,791 | 1,722,792 | My function is not returning the expected value | <p>When I run the program, the function <code>percentagefreq</code> returns "none". </p>
<p>What am I doing wrong?</p>
<pre><code>def main():
file = raw_input("Please enter name of file: ")
s = readfile(file)
print
print "The file contains:"
print s
lc = tolowercase(s)
print "The file in l... | python | [7] |
931,114 | 931,115 | PHP: Convert input value result to string | <p>if it possible to make variable from text input?</p>
<pre><code>$price = 10;
$shipping ="<input type=\"text\" id=\"shipping\" value=\"$row[price]\">"; <---- sring?
</code></pre>
<p>and display to new variable:</p>
<pre><code>$total = $price+$shipping;
</code></pre>
| php | [2] |
3,335,001 | 3,335,002 | PHP readdir() not returning files in alphabetical order | <p>I am reading through a directory with some pictures and such using a pretty simple implementation of readdir() like the following:</p>
<pre><code>if ($handle = opendir($path)) {
while (false !== ($szFilename = readdir($handle))) {
if ($szFilename[0] !== '.') {
if (is_file($path.$szFilename)) {
... | php | [2] |
37,092 | 37,093 | Android: regarding focus change on video view | <p>I am using a horizontally scroll view like Gallery view. Every view of the Gallery is videoview and will take whole screen at a time. When I am horizontally scrolling gallery view, the video view will be stopped, if it is playing. SO i have implemented onFocusChangeListener for each view and stopping the play when i... | android | [4] |
5,886,158 | 5,886,159 | Using jquery and prototype | <p>im using lightbox.js
it needs prototype.js and i need to use jquery.js. Now both of these libraries dont work together.
Can someone explain how to do noconflict?</p>
<p>The manual on jquery website said i needed to include the prototype.js right after i called noconflict within the script tags, im not sure how to d... | jquery | [5] |
2,107,302 | 2,107,303 | Find nested element in query | <p>I need to find an DropDownList with class addressControlCountry. How?</p>
<pre><code><div id="myDiv">
<asp:DropDownList runat="server" CssClass="addressControlCountry" />
</div>
</code></pre>
<p>This doesn't work</p>
<pre><code>$('#myDiv .addressControlCountry')
</code></pre>
| jquery | [5] |
5,465,792 | 5,465,793 | Has -A Relationship in java | <pre><code>public class Horse extends Animal {
private Halter myHalter = new Halter();
public void tie(LeadRope rope) {
myHalter.tie(rope); // Delegate tie behavior to the
// Halter object
}
}
public class Halter {
public void tie(LeadRope aRope) {
// Do the actual tie work here
}
}
<... | java | [1] |
2,555,152 | 2,555,153 | How to create a Gridview in iPhone programatically? | <p>I want to create a Grid view with images in iPhone programatically. Pls do give me some example for it?</p>
| iphone | [8] |
4,410,536 | 4,410,537 | I want to keep a SlidingDrawer half-open all the time | <p>I want to keep a SlidingDrawer half-open all the time. The user will be able to see the contents of a drawer and interact with it (touch, etc.) for the open portion. If the user want to, she can still slide it further and open it completely. How might I achieve this in Android?</p>
| android | [4] |
5,485,172 | 5,485,173 | Json Array Parsing issue in iphone | <p>In the following code I parse following web service, but when I parse comments array, it's not consider as array brackets like [] it assumes parenthesis () So I will not parse this array, How it happens Still I didn't get please help me.</p>
<p>Please look at following code snap and please help me.</p>
<pre><code>... | iphone | [8] |
5,699,739 | 5,699,740 | How can I solve this without list comprehensions | <p>I´m new in python and I´m trying to find the best way to approach this problem , I need to understand if this can be made only with loops and functions (whithout lists comprehensions).
I also need to find the more elegant way to solve this kind or problems,
simple functions? recursivity? lists comprehensions? Gener... | python | [7] |
779,730 | 779,731 | Why do we need "out" parameters? | <p>I understand that "out" are just like "ref" types, except that out variables do not have to be initialised. Are there any other uses of "out" parameters? Sometimes I see their use in callback methods but I never understood how they actually work or why we need them instead of global level ref variables?</p>
| c# | [0] |
2,347,919 | 2,347,920 | How a plist is used | <p>What is the common use of plist? What kind of data we put in them? Is it always a dictionary kind of data we place in them? I believe we store them in either documents, temp or cache directory at run time, is it correct?</p>
| iphone | [8] |
2,368,000 | 2,368,001 | Without using lambda how can I neatly create a function given an expression? | <p>Would like to be able to do something like</p>
<pre><code>std::map<EventType, boost::function<bool(int,int)> callbackMap;
callbackMap[EVENT1] = boost::bind( magic_creator( this->m_isHerp && !this->m_isDerp ) , _1, _2 );
</code></pre>
<p>basically give an expression that evaluates to true or... | c++ | [6] |
1,308,274 | 1,308,275 | how to detect collision of image views in a puzzle game | <p>i am doing a simple jigsaw puzzle game.</p>
<p>for that i crop a single image into 9 pieces and display it on 9 image views.</p>
<p>Now i need to detect collision when one image view is comes over the half of another image view frame,</p>
<p>and replace image or image view each other.</p>
<p>how can i done can ... | iphone | [8] |
4,566,557 | 4,566,558 | Need a small improvement in this function | <p>I found a great script in one of the posts. That is working like a charm in Mozilla and Chrome, but in Internet Explorer it is working partially (only text without HTML tags in original html are matching...). Here I am attaching an image to show the same:</p>
<p><img src="http://i.stack.imgur.com/4KCcS.jpg" al... | javascript | [3] |
4,283,506 | 4,283,507 | UISlider, slide to unlock | <p>I need to add an UISlider control in my iphone application. That should look like the "Slide to unlock" slider which is displayed in any iphone or ipod touch. I am unable to figure out how to do this.</p>
<p>In slide to unlock slider, if we leave the thumbImage in the middle of the slider it comes back to the left ... | iphone | [8] |
334,051 | 334,052 | Dynamic UI in iphone | <p>I have a plan of creating Dynamic UI in iphone using webservices ..that is the UI will be build according to the xml content from a webservice.
I need to know some of your suggestions regarding this... where will i get resources for building such an app... are there any tutorials available.....?</p>
| iphone | [8] |
3,950,752 | 3,950,753 | Android turn off GPS | <p>Can I turn ON/OFF GPS in an application? As it drains so much of battery, can I turn it OFF for some time? OR there is better solution for this ..... </p>
| android | [4] |
5,779,776 | 5,779,777 | Android: Unable to write the SD card from emulator | <p>I'm using windows vista and Eclipse for developing. I write the simple
code to download a file and store it on my sd card. But i'm getting
Exception(File not found exception).
Here is my code</p>
<pre><code> public void downloadNewapk() {
try {
URL url = new URL(apkURL.toString());
HttpsURLConne... | android | [4] |
4,748,327 | 4,748,328 | how to determine the child of a <ul> using jquery? | <p>how to determine the child of a UL using jquery? </p>
<p>im trying to change the class of the LI items in a UL based on their child type in a clickevent of an element?</p>
| jquery | [5] |
5,403,789 | 5,403,790 | Executbatch file in php to run commands in administrator modeing | <p>i have a batch file which executes command.i have created a shortcut for the batch file and i have set it to run as administrator in shortcut advanced option.when i execute this shortcut through cmd i am able to see the execution.but i want to call the same shortcut from php i am unable to do it...please help</p>
<... | php | [2] |
4,206,603 | 4,206,604 | How to reference THE UIWindow from sub UIViewControllers? | <p>I am trying to add another subview programmatically based on some event (user taps a button, for instance).</p>
<p>My problem is that I am having problems referencing the (one and only) instance of UIWindow. I reach it from my appDelegate, because the MainWindow.xib and the appDelegate have been wired up. But I can... | iphone | [8] |
1,445,714 | 1,445,715 | php - regexp match string and digit | <p>I want to match this </p>
<pre><code>{format i=34 ds=11 k=a /}
$patern = "/\{format[a-z0-9=\s]?\/\}/i";
</code></pre>
<p>but result is null</p>
<p>In additional question:</p>
<pre><code>string string {format mat=34/} string string string string string string string string
string string {format mat=34/} string... | php | [2] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.