Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
2,613,361 | 2,613,362 | jquery realtime variable (for responsive) | <p>This code give me document width when document ready.</p>
<pre><code>jQuery().ready(function(e) {
var sayfaboyut = jQuery(document).width();
document.write(sayfaboyut);
});
</code></pre>
<p>But I want real time variable. When I change document width I want to get that width real time.</p>
<p>How can I do th... | jquery | [5] |
5,643,362 | 5,643,363 | Casting a function parameter from void* to actual | <p>I have a routine that gets passed a void* to a structure. In the
routine I cast it to the correct type, e.g.</p>
<pre><code>SomeFunc(void* pMsg) {
printf("Event = %d\n", static_cast<struct MyEventMsg*>(pMsg)->Event);
}
</code></pre>
<p>If I am accessing many members of the structure the code looks pret... | c++ | [6] |
895,420 | 895,421 | NSThread and UIProgressView on an UITableCells | <p>I have a project in which a series of NSThread objects do something and display the progress on the relevant UIProgressView.
I display and custom draw these UIProgressViews on a UITableView.
I set the progress delegate of each NSThread to a certain UIProgressView one by one.</p>
<p>One problem is that if I drag and... | iphone | [8] |
524,555 | 524,556 | Checking user input | <p>I'm creating an edit page which should get called this way:</p>
<pre><code>users.php?action=edit&id=5
</code></pre>
<p>This is my code for this:</p>
<pre><code>} elseif (isset($_GET['action']) && $_GET['action'] == 'edit' && isset($_GET['id']) && is_numeric($_GET['id']) && $_GE... | php | [2] |
357,862 | 357,863 | htmlspecialchars text | <p>I have created an article comment for my user to post comment. I also have a function that automatically creates link if url is detected in the message. However now I am puzzled as to how do I convert text using htmlspecialchars and at the same time creates the link together without "authoring the URL"?</p>
<p>For ... | php | [2] |
1,950,533 | 1,950,534 | android crash when trying to switch layouts | <p>My goal: onclick hide main linearlayout and make another linearlayout with picture on top visible</p>
<p>Here is my code I can run the onclick and have the main linearlayout hide but the other layout doesn't showup</p>
<pre><code>final LinearLayout jamesaionolayout = (LinearLayout) findViewById(R.id.jamesaionolayo... | android | [4] |
2,766,697 | 2,766,698 | Show output of System.out.println | <p>How do I show the output of <code>System.out.println("Hello World!")</code>?</p>
<p>I can only get the output when using <code>System.err.println("Hello World!")</code>.</p>
<p>I'm running the java program from the command line.</p>
| java | [1] |
3,463,439 | 3,463,440 | Hiding a div by selecting anywhere outside of it | <p>I'm trying to find a way to display a hidden div via clicking a button, and hiding it the same div if the button is clicked again, or if the user clicks anywhere outside of the div. The function is very similar to the function seen in notifications icon in Facebook.</p>
<pre><code> $('.button').click(function() ... | jquery | [5] |
2,923,713 | 2,923,714 | How do I call a function as a parameter at the end of a jQuery command chain? | <p>...if the last command doesnt have a callback function? Like for example</p>
<pre><code>$(something).remove(other_thing).append(new_thing)
</code></pre>
<p>Append doesnt have a callback function, so my question is, is there a jQuery method (or other way) to call a passed function after a chain of commands? The fun... | jquery | [5] |
4,936,309 | 4,936,310 | Best way to write a reusable module with URLs? | <p>I am writing a reusable module in PHP. This module can write content to an arbitrary page, but it needs URLs that reference scripts within this module. Right now, I use a hard-coded variable that points to the root of the module:</p>
<pre><code>$module_root = "http://www.example.com/my_module/";
</code></pre>
<p... | php | [2] |
726,397 | 726,398 | How to continue rtsp video play while orientation change in android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11629556/how-to-continue-video-play-while-orientation-change-in-android">How to continue video play while orientation change in android</a> </p>
</blockquote>
<p>I'm just playing an rtsp video on android default... | android | [4] |
3,829,788 | 3,829,789 | code error postback | <p>Could someone help me to check my code, no matter what value i clicked,the radio always checked on the last one. it doesn't postback correctly, however the return "echo" value is right. </p>
<p>Thanks a lot</p>
<p>here is my code </p>
<pre><code><html>
<form id="form" name="form" method="post" action=... | php | [2] |
358,450 | 358,451 | implode explode in php | <p>This is my code-</p>
<pre><code>$row=mysql_fetch_array($sql1);
echo $days= $row['attending_days'];
echo $days1 = explode($days',');
echo count($days1);
</code></pre>
<p>it will show me the only one value</p>
| php | [2] |
5,443,756 | 5,443,757 | how to append the value from picker to textfield | <p>i am hvaing a picker, which displays data from 2 arrays, say like it is a picker with 2 sections.
now i want the selected values from both the sections, to appear in a single textfield.</p>
<p>i tried with
textField.text=[[First_Array ObjectAtindex:row]appendString:[Second_Array ObjectAtIndex:row]];</p>
<p>But it... | iphone | [8] |
1,910,458 | 1,910,459 | Avoiding time consuming data loading during Fragment rotation | <p>I want to avoid time consuming data loading during <code>Fragment</code> rotation.</p>
<pre><code>public class WatchlistFragment extends SherlockListFragment {
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
if (savedInstance... | android | [4] |
4,293,842 | 4,293,843 | What does it mean if a "variable or field" is declared void? Error message help | <p>variable or field `letterGrade' declared void. This error message is coming up on the last iteration of the function 'letterGrade'. Anyone have an idea why? </p>
<pre><code>#include <string>
#include <iostream>
using namespace std;
void letterGrade (int score, string& scoreLetter);
string scoreLette... | c++ | [6] |
4,467,261 | 4,467,262 | jQuery: rename duplicate id | <p>I would like to insert multible sliders in one page. I have a block of code I would like to reuse but it will insert 2 DIV's with <code>id=slider</code>...</p>
<p>Is it possible to find second element with <code>id=slider</code> and rename to <code>id=slider01</code>?</p>
<p>BR. Anders</p>
| jquery | [5] |
1,838,720 | 1,838,721 | jQuery, draggable, container id | <p>I have the following code in jQuery...</p>
<pre><code>$("#sortable2").sortable({
connectWith: '.connectedSortable',
dropOnEmpty: true,
receive: function (event, ui) {
var colNum = $(ui.item).attr("id").replace(/col_/, "");
$.post("/Category/Insert", { title: colNum });
},
</code></pr... | jquery | [5] |
748,560 | 748,561 | Java "if" statement | <p>Here is my current code:</p>
<pre><code>
import java.util.Scanner;
public class Random {
public static void main(String ars[]){
Scanner input = new Scanner(System.in);
System.out.println("Welcome");
hey = input.nextLine();
if(hey == "M"){
System.out.println("Yup");
... | java | [1] |
4,865,404 | 4,865,405 | How to convert a void * to CString | <p>Not much of a C++ developer and the multiple ways to handle strings always confuses me.</p>
<pre><code>int Mine_SSL_Read(SSL* ssl, void* buf, int size)
{
int length = Real_SSL_Read(ssl, buf, size);
CString msg = ???
}
</code></pre>
<p>However I need to write a hook for SSL_Read function (OpenSSL) and that... | c++ | [6] |
1,779,456 | 1,779,457 | how to implement authentication using shared preferences in android? | <p>I am new to Android.my requirement is to implement simple authentication logic for login screen by using sharedpreferences in android.
can any one suggest me...?</p>
<p>Thanks & Regards
Shiva.M</p>
| android | [4] |
2,860,093 | 2,860,094 | problem with inherit a c# class in c++ code | <p>I have two projects, one written in c# and the other in c++. I was able to use the class written in c++ in c#. But when I try to inherit a class in c# from c++, I got the error saying c++ code can find the namespace of c# code. </p>
<p>I am using visual studio 2008 professional. Is there a way to inherit a class th... | c# | [0] |
4,047,516 | 4,047,517 | Android BaseAdapter cannot load the last Array Value | <p>everybody</p>
<p>Recently I have use ADT to develop the android 2.2 program. The program run correctly in the simulator, but it meet a strange problem when it run in the real machine.</p>
<p>I use BaseAdapter to create a MenuAdapter, it will load the custom class called ViewHolder. Both the custom class and MenuAd... | android | [4] |
3,081,338 | 3,081,339 | Logo for my iPhone application | <p>I would to ask please what software to use to conceive the logo of my iPhone app and if the logo should respect some standards given by Apple? </p>
| iphone | [8] |
1,591,596 | 1,591,597 | debug dll in in diffrent solution | <p>i have a *.exe project that was written in one solution under vs2005 and i have aDll file
that the *.exe project is using.
the problem is that the dll was written in adiffrent solution and when i try to make attach
to the *.exe file (after i run it) from the dll solution in order to debug the dll , i get no symbols... | c++ | [6] |
600,300 | 600,301 | Print extremely large long in scientific notation in python | <p>Is there a way to get python to print extremely large longs in scientific notation? I am talking about numbers on the order of 10^1000 or larger, at this size the standard print "%e" % num fails.</p>
<p>For example:</p>
<pre>
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help",... | python | [7] |
5,601,720 | 5,601,721 | C++ random number 1-9 | <p>I need random numbers from 1 to 9 (without 0).</p>
<pre><code>//numbers 0 to 9
int iRand = rand() % 10;
</code></pre>
<p>But I need 1 to 9.</p>
<p>Thanks.</p>
| c++ | [6] |
3,963,008 | 3,963,009 | Assign VAL of input to other inputs before the click method | <p>I have 3 date range forms on my site. Essentially I want to hide two of the date ranges and only show the user one. However, I still need the value's chosen in the one date range to be distributed to the other date ranges. I tried applying the VAL of the first date range to a variable before click and applying it... | jquery | [5] |
285,960 | 285,961 | How to get UIView's Position in DrawRect method | <p>I have 4 views and i am drawing circles inside these views.The user is able to move these views.How can i get the position of each view?</p>
| iphone | [8] |
1,054,962 | 1,054,963 | c++ Build class attributes from configuration file | <p>I've already implemented an algorithm using a class with hard coded attributes.</p>
<p>But now, I'd like add some flexibility to it.</p>
<p>Suppose that I've used only two attributes of the four available for <code>class Voice</code>. By available, I mean that I have data for them, stored in a database.</p>
<pre... | c++ | [6] |
2,785,502 | 2,785,503 | How to render to offscreen buffer using ClanLib | <p>I'd like to modify sprite on the fly with ClanLib however I can't find a way to retrieve a CL_GraphicContext from a CL_Sprite object. How should it be done?</p>
| c++ | [6] |
2,271,949 | 2,271,950 | Using Twitter REST API in JSON Format with AJAX | <p>I'm trying to do AJAX on Twitter REST API (JSON Format). I did the below thing, But, nothing happens. </p>
<p>Not getting any response from server (Twitter). Did I miss something?</p>
<pre><code>function getRecentTweet(){
twitterUsername = document.getElementById("twitterUsername").value;
if(wind... | javascript | [3] |
136,994 | 136,995 | what is the use of having public methods when the class is having a default access modifier? | <p>as for my observation when the class itself is having default access modifier, what is the use of having public methods in it. the java compiler could have stopped using public methods in default class. is there any reason for that?</p>
| java | [1] |
3,047,081 | 3,047,082 | Toolbar in Javascript | <p>I want to study how to develop a toolbar using Javascript
Can anyone please post some useful links to develop a toolbar.
If any one have sample code, please share it.</p>
| javascript | [3] |
1,321,730 | 1,321,731 | Android app, how would i do this? | <p>I have tried doing some research on this but to no avail. Someone give me the link to this site and said someone here might be bale to offer some help.</p>
<p>So here we go.</p>
<p>What I want to do is have a a 3d office, with a desk.</p>
<p>I would be using sticky notes to write notes and stick them to wall or d... | android | [4] |
48,066 | 48,067 | Pythonic way to check if: all elements evaluate to False -OR- all elements evaluate to True | <p>I want the results of the function to be:</p>
<ul>
<li>All values evaluate to False (None, 0, empty string) -> True</li>
<li>All values evaluate to True -> True</li>
<li>Every other case -> False</li>
</ul>
<p>This is my try at it:</p>
<pre><code>>>> def consistent(x):
... x_filtered = filter(None, x)
.... | python | [7] |
5,904,266 | 5,904,267 | clicking function in android | <p>How do I apply clicking action on listview in android?</p>
| android | [4] |
3,709,323 | 3,709,324 | get the text of a div | <p>I have been trying to get the text from a div using only javascript.</p>
<p>I started with jQuery using the following code:</p>
<pre><code>var divText = $("div.Xr3").html();
</code></pre>
<p>Then for my JavaScript I tried:</p>
<pre><code>var divText = document.getElementsByClassName("Xr3").innerHtml;
</code></pr... | javascript | [3] |
5,581,277 | 5,581,278 | android development - interrupt calling process | <p>How can i interrupt the calling process and when identifying specific prefix, and change the calling number to my company's switchboard?</p>
<p>I want to call to specific numbers through my company's PBX to save money</p>
| android | [4] |
1,169,287 | 1,169,288 | Running a simple Hello World program | <p>I made a simple hello world program which just makes a window pop up with the title being "hello world". I want to know, What do I give to someone if I want them to run it like a normal java program? Would a .class file be enough?</p>
<p>do I just take the .class file and try to open it with java?</p>
<p>Here is t... | java | [1] |
4,857,165 | 4,857,166 | two forms or one form with conditional logic | <p>Currently have a form with a ListView.<br />
Users of role A get an image when in ViewMode.<br />
Users of role B get an image when in EditMode. </p>
<p>Is it better to create two clean forms with proper markup, or create one form with conditional logic? The image will be an HTML img, with no runat=server. If I ... | asp.net | [9] |
4,325,475 | 4,325,476 | Replace string in php | <p>I have this string:</p>
<p>525,294,475,215,365,745</p>
<p>and i need to remove 475..and comma.
and if i need to remove first number i need to remove also the next comma, also for last.
I can i do?
a regular expression?
thx</p>
| php | [2] |
2,326,075 | 2,326,076 | When does a browser stop executing a recursive function in javascript? | <p>I am a beginner in javascript. I was trying recursive function in javascript. </p>
<pre><code><html>
<head>
</head>
<body>
<script type = "text/javascript">
function first(){
document.write(" first");
first();
}
first();
</script>
</body>
</html>
</code></pre>... | javascript | [3] |
316,996 | 316,997 | *.ics file to Google calendar in android | <p>I have to read *.ics file from the download files by using my application and transfer the data in to Google calendar in android. I am new to android. I need some help to do this.Can anyone help me to do this?</p>
| android | [4] |
5,090,584 | 5,090,585 | Order a list manually C#? | <p>I have a list of ingredients with the name of ingredient and the corresponding values. which I want to sort depending on a pre defined order.</p>
<pre><code> List<Ingredients> frmltnIngredientsList = new List<Ingredients>
</code></pre>
<p>The list can have as many as 10 records. The first four records ... | c# | [0] |
4,360,114 | 4,360,115 | Tiffany Framework for Android | <p>Does anyone know about Tiffany Framework for making page curl effects in Android?<br>
This is the <a href="http://www.youtube.com/watch?v=Yg04wfnDpiQ" rel="nofollow">youtube video</a><br>
I need to know how to implement it in Android?</p>
| android | [4] |
715,671 | 715,672 | File not uploading to dropbox via python script | <p>This problem is just a more in depth explanation of the other problem.</p>
<p>I put the code on github because it's quite a fair bit. I'm sorry for the inconvenience
<code>https://github.com/lonehangman/mccdropdav/blob/master/views.py</code></p>
<p>Line 100 onwards is where the problems start. For the past week I... | python | [7] |
4,806,397 | 4,806,398 | Delay in changing background color using Jquery in iPhone | <p>I have the following code which changes the background color of a link when clicked.</p>
<pre><code>function showSelectEffect(obj) {
$(obj).css("background-color", "#d7d7d7");
}
</code></pre>
<p>The method is called onclick of the link as below</p>
<pre><code><a onclick="showSelectEffect(th... | jquery | [5] |
2,108,919 | 2,108,920 | It sometimes say the password is invalid when it is actually valid | <p>I need to make sure it begins with a <code>Z</code>, has 8 minimum characters and has an <code>*</code>.
Consider this function:</p>
<pre><code>function validatePassword()
{
var strPassword
//Request user enter their password then check its validity
strPassword = prompt("Please Enter A Valid Password","");
... | javascript | [3] |
2,788,605 | 2,788,606 | how to fetch the id or class of a textbox if not known | <p>i am using a jquery functionality which uses the dasher java applet(a writing aid)
using which when one clicks on an input area(mostly textboxes) the popup window opens and the dasher starts working
this jquery element works on any web page this means i should not know the id or the class of each and every text area... | jquery | [5] |
3,803,166 | 3,803,167 | Creating a Deque Class methods | <p>I need to write my own Deque class and must used a doublylinked list implementation to store data. the problem is writing the method pushfromLeft(Thing thing) which will insert into the left side of the deque. Below is what I have thus far but does not seem to work. </p>
<pre><code> public void pushLeft(Thing thing... | java | [1] |
513,659 | 513,660 | Value needs to be retained to add to another table | <p>I have a MultiView with 2 views in which there is EmpID.
In the View2: I have Skills (dropDown) as to added of the Employee's that goes into table
dbo.Emp_Skills</p>
<p>EmpID | SkillID</p>
<p>How do I retain the value of EmpID so that in next view I can add that in other table? </p>
| asp.net | [9] |
2,811,372 | 2,811,373 | jquery 2 iframes back button problem | <p>Hi i have the following problem. I have in a page two iframes. The "gmap" iframe and the "bframe" iframe. I have created a back button and i want it to control only the bframe. Assume i have visited some links in the bframe and a link at the gmap iframe and i hit the back button. Then the gmap frame loads the previw... | jquery | [5] |
5,478,039 | 5,478,040 | How to paste text using windows paste command to other application in c#? | <p>How calling interop to paste text using windows pastse command to other application in c#?</p>
<p>calling interop?</p>
<p>i mean how to programing c# same right click to past text</p>
| c# | [0] |
5,536,026 | 5,536,027 | Prevent delete on pointer in C++ | <p>Is there any way to prevent deleting a pointer in C++ by its declaration? </p>
<p>I've tried following code without luck.</p>
<pre><code>const int* const foo()
{
static int a;
return &a;
}
int main()
{
const int* const a = foo();
*a = 1; //compiler error, const int*
a++; //compiler... | c++ | [6] |
1,411,604 | 1,411,605 | Vector. How to set the maximum number of elements and find the current count? | <p>I want to create a vector with a maximum number of elements 48, and I want to know at any time the current number of elements in the vector.</p>
<p>I use this code:</p>
<p><strong>.h</strong></p>
<pre><code>std::vector< CPPobject* >vec;
</code></pre>
<p><strong>.mm</strong></p>
<pre><code>int maxCountEle... | c++ | [6] |
2,957,380 | 2,957,381 | check variable if char exist or not | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4444477/how-to-tell-if-a-string-contains-a-certain-character-in-javascript">How to tell if a string contains a certain character in javascript?</a> </p>
</blockquote>
<p>Suppose I have a string in variable ex. <... | javascript | [3] |
4,661,593 | 4,661,594 | why HitTestResult.getType() retuns UNKNOWN_TYPE | <p>Why <em>HitTestResult.getType()</em> retuns <strong>UNKNOWN_TYPE</strong> in Android OS 2.2? </p>
<p><strong>edit:</strong></p>
<pre><code>WebView.HitTestResult hr = ((WebView)v).getHitTestResult();
if(hr!=null){
if(hr.getType()==HitTestResult.EDIT_TEXT_TYPE)
((Activity) co... | android | [4] |
4,029,149 | 4,029,150 | How to fix unchecked call warning in Java? | <p>Here is the code I have written?</p>
<pre><code>Set keys = map.keySet();
SortedSet s = new TreeSet(keys);
</code></pre>
<p>The warning I'm getting is:</p>
<pre><code>warning: [unchecked] unchecked call to TreeSet(java.util.Collection<? extends E>) as a
member of the raw type java.util.TreeSet
</cod... | java | [1] |
5,805,599 | 5,805,600 | How to create 7" Tablet (1280 * 800) Screen Resolution Emulator in Oracle Virtual box? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14064998/make-emulator-of-asus-google-nexus-7">Make Emulator of Asus google nexus 7</a> </p>
</blockquote>
<p>I am trying configure to <strong>7" Tablet (1280 * 800) Screen with dpi=216</strong> Resolution Emula... | android | [4] |
3,939,620 | 3,939,621 | How do I list files in SD card? | <p>I have an android project that allow user to download pdf files, and it has been stored the files in the sd card,
I want to collect all the pdf files in specific button, when the user click on this button it will show the list that contains all downloaded files.
how can I do this function
thanks </p>
| android | [4] |
2,929,191 | 2,929,192 | Javascript CKeditor with JSON parser | <p>I have to include the widely used JSON parser (https://github.com/douglascrockford/JSO ... r/json2.js) on the same page as CKEDITOR but when I do so IE7&8 produce errors</p>
<p>IE8</p>
<pre><code>'M' is null or not an object ckeditor.js, line 100 character 2116
</code></pre>
<p>IE7</p>
<pre><code>'null' is n... | javascript | [3] |
5,935,393 | 5,935,394 | Is there any event when local time is changed | <p>I wonder, is there any events triggered when phone clock is changed?</p>
| android | [4] |
3,796,894 | 3,796,895 | How can my android app detect a dropped call? | <p>I am writing an app that is meant to be run during a call. After the user makes a call, and starts my app, I want my app to be able to know if the call is dropped from bad connection. Is this possible? Thanks</p>
| android | [4] |
1,631,348 | 1,631,349 | Difference between executing php from the commandline and from the Http Side | <p>What is the difference between executing php from command line and from HTTP? Do they use the same executable such as (php.exe or php-cgi.exe ( Apache or IIS ))? Do the results differ when they are executing from command line or HTTP?</p>
| php | [2] |
3,996,353 | 3,996,354 | Difference between JavaScript's Math.floor() and Math.round()? | <p>What is the difference between <code>Math.floor()</code> and <code>Math.round()</code>?</p>
| javascript | [3] |
1,255,643 | 1,255,644 | Problem in removing the controls dynamically | <p>Note : In WinForm</p>
<p>I facing problem in TableLayoutPanel. I adding and removing the control dynamicall using TableLauoutPanel. My problem is, if i remove the control in the middle (ie i added TextBox1, TextBox2 and TextBox3 and now i removed TextBox2) at this time other controls are not resized properlly. When... | c# | [0] |
3,245,778 | 3,245,779 | Are these ways of writing function prototype equivalent? | <p>I have always used to write function prototype declaration in this way:</p>
<pre><code>var O = function () {};
O.prototype.fn = function () {}
</code></pre>
<p>But Some developer write in this way:</p>
<pre><code>var O = function () {};
O.prototype.fn = function fn () {}
</code></pre>
<p>Are these way equivalent... | javascript | [3] |
1,934,073 | 1,934,074 | Functional Programming issue regarding passing functions with parameters in Javascript | <p>I am currently writing an API to unzip files to the web browser sandbox filesystem. I have a basic need to pass a parameter to a function that in turn is it'self passed as a parameter. Here is some code to illustrate the issue:</p>
<pre><code>//Request a permanent filesystem quota to unzip the catalog.
function req... | javascript | [3] |
3,874,935 | 3,874,936 | Handling a resource effectively using auto pointers | <p>I have a code which looks like this:</p>
<pre><code>class Parent
{
auto_ptr<Resource> ptr2Resc;
public: void parentMethod(int i )
{
SomeOtherClass someOthrPtr = new SomeOtherClass(ptr2Resc);
}
};
The ctor of SomeOtherClass:
SomeOtherClass(auto_ptr<Resource> ptrRes);
</code></pre>
<p>So now when i ... | c++ | [6] |
4,043,641 | 4,043,642 | Regarding the python module symtable | <p>I'm working on a plugin which is sort of a class browser for python codes. I found the python module <em>symtable</em> helpful. However, it seems that the module has a drawback. I cannot get instance attributes using this module. Here's an example python code in a file named <em>src.py</em>:</p>
<pre><code>import o... | python | [7] |
4,237,635 | 4,237,636 | passing data from data set to a dictionary | <p>Basically I have a data set with some data a data base table, I want to pass the data to a dictionary, what could be a good way yo accomplish my goal. Assuming that the dictionary have this structure </p>
<pre><code>Dictionary<int,string>
</code></pre>
<p>I'm looking for some method to bind the rows of the d... | c# | [0] |
4,848,077 | 4,848,078 | .click event and checkboxes | <p>In my script I'm using .click event. When I click my checkbox, value is sending, but there isn't tick in it. So using jquery I "clicked" checkbox, but there isn't working. There is the code: </p>
<pre><code>$(".checkinput").click(function() {
var id = $(this).attr('id')
var dumpthis = $(this);
var data = "id=" + i... | jquery | [5] |
2,296,997 | 2,296,998 | Android GLSurfaceView as subview | <p>I'm very new to an Android platform and currently trying figure out why things work this way:</p>
<p>If I create <code>GLSurfaceView</code> and add it using the <code>setContentView</code> or <code>addContentView</code> to an activity everything works fine (<code>Renderer.onDrawFrame</code> is called as expected). ... | android | [4] |
1,553,227 | 1,553,228 | Slots machine in JS - stack call size exceed | <p>I'm trying to make a basic (non animated) slot machine but am getting an error with stack size.</p>
<p>I'm hoping some one can explain what the cause is =/</p>
<p>My Error :</p>
<pre><code>Uncaught RangeError: Maximum call stack size exceeded
</code></pre>
<p>Code:</p>
<pre><code> window.requestAnimFrame = (... | javascript | [3] |
5,332,890 | 5,332,891 | Operator '*' cannot be applied to operands of type 'double' and 'decimal' | <p>I get this message in my program but i don't know how to fix it i have search on the net but don't find any thing that can help me.</p>
<pre><code>private double Price;
private int Count;
private double Vat;
private const double foodVATRate = 0.12, otherVATRate = 0.25;
private decimal Finalprice;
private decimal R... | c# | [0] |
4,460,010 | 4,460,011 | How to get height of Screen? | <p>I am trying to get the Height of the device screen that the application is running on. </p>
<p>How would i go about getting just the Height only?</p>
| android | [4] |
513,906 | 513,907 | read /etc/fstab entries from python | <p>Is there a python package that knows how to parse the <code>fstab</code> file? Perhaps similar to <code>getmntent(3)</code> in <code>linux</code>.</p>
<p>Admittedly it's not hard to grok that with python (or <code>awk(1)</code>, etc.), but I was wondering if that wheel had already been invented.</p>
| python | [7] |
4,154,590 | 4,154,591 | c++ heap memory allocation/deallocation | <p>If i declare something on the heap like <code>char *a=new char[1000]</code> and the main program stops what will happen with that allocated memory if there is no <code>delete[]</code> call? It remains on the heap or is automatic deallocated?</p>
| c++ | [6] |
2,746,961 | 2,746,962 | Does such an android app exists? | <p>I am planning to make an Andorid App as learning project and I searched high and low but couldn't something similar that exists to compare with.</p>
<p>The plan is to make a To-do List alert which runs relative to a start time rather than an absolute time.</p>
<p>For example :- <br/>
Instead of <br/></p>
<ul>
<li... | android | [4] |
4,174,663 | 4,174,664 | Use of compound statements without conditionals in Java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9329921/what-does-two-consecutive-blocks-of-code-do">What does two consecutive blocks of code {}{} do?</a> </p>
</blockquote>
<p>I am reworking a very old Java application and have observed that the original dev... | java | [1] |
949,543 | 949,544 | how to implement the foldout animation view like the original iPhone google map app? | <p>all coder , I see the foldout animation view in the original iPhone google map app, I want the same effect in my view , but I have not find solution ...</p>
<p>how to do the same animation via iPhone sdk ? any tip will be much appreciated...</p>
<p>thanks...</p>
<p>iRobin</p>
| iphone | [8] |
1,600,018 | 1,600,019 | CSS doesn't affect new items on asp.net web form | <p>I have a web form with a CSS, I'm working on it with visual studio.</p>
<p>Yesterday I edited the CSS and it worked just fine, new fonts, positions, labels, everything works.</p>
<p>Today I decided to add a new label and dropdown box to my web form, and I did some styling for them in the same CSS. In the visual st... | asp.net | [9] |
1,923,588 | 1,923,589 | Custom PHP App with a wordpress site | <p>I have created a new 'page template' and (this is probably not the right way to do this, but this is the way I have got it working), and created a new page using that template. Within the page template (PHP file) I have made, I have put lots of PHP which makes the page function, like it has a simple login an view i... | php | [2] |
4,119,540 | 4,119,541 | How can I set the value of a textbox through PHP? | <p>So I have this empty textboxes in a registrationg page. The user enters some data, hits continue and then there's a confirmation page. If the data is incorrect, the user hits go back to go correct whatever was wrong. However, when he goes back, all the textboxes are empty. So the first thing that comes to my mind is... | php | [2] |
5,765,521 | 5,765,522 | Create a python object that can be accessed with square brackets | <p>I would like to create a new class that acts as a special type of container for objects, and can be accessed using square brackets.</p>
<p>For example, suppose I have a class called <code>ListWrapper</code>. Suppose <code>obj</code> is a <code>ListWrapper</code>. When I say <code>obj[0]</code>, I expect the method ... | python | [7] |
5,246,115 | 5,246,116 | C# Member Access from Nested Class to Containing Class | <p>I have ClassB, which is nested inside of ClassA. In ClassA I have a variable called _MyId... how can I access _MyId from ClassB?</p>
<p>Thanks in advance!</p>
| c# | [0] |
1,400,263 | 1,400,264 | What can be done when data in a table is very large? | <p>What can be done to handle data in tables that are extremely large?</p>
| java | [1] |
5,013,809 | 5,013,810 | How to enable or disable autolock in android? | <p>I have one toggle button which desides to enable and disable autolock in app,so how can we do that in app pls help me out here.</p>
<p>Thanks in advance.</p>
| android | [4] |
2,969,719 | 2,969,720 | constant parameters in a function | <pre><code>class foo
{
public:
void set(const int a)
{b=a;}
private:
int b;
};
</code></pre>
<p>Here <code>a</code> is a constant parameter which is assigned to a non const </p>
| c++ | [6] |
5,161,125 | 5,161,126 | How to get started with the MVC pattern | <p>It's there some good MVC framework to get started with?</p>
<p>I want to migrate my projects to a MVC framework but i'm very confused and I don't know what framework is the best for learn...</p>
<p>My projects always consists of backend and a frontend, programmed by me.</p>
<p>Do you recommend me some book to und... | php | [2] |
1,058,084 | 1,058,085 | How to avoid multiple method overriding in C#? | <p>I have a DLL, that we bought and I can't access its source. However, for the problem that I'm now facing, I've been told that I must inherit from a class in the DLL, and override one of its methods.</p>
<p>I tried it and it works quite well, as expected. My problem now is that I have quite a few classes where I nee... | c# | [0] |
2,553,399 | 2,553,400 | map when return value is not required | <p>I have a list of objects and I want to change the value of an attribute of all the objects (to the same value-NewValue). </p>
<p>Is <code>map()</code> more efficient than a normal for loop in this situation where the function(lambda) doesn't return any value?</p>
<pre><code>map ( lambda x: x.attribute = NewValue, ... | python | [7] |
2,335,141 | 2,335,142 | Neatest way of preserving application settings between upgrades? | <p>Our product has several user-defined settings, which to date have been stored using the project's Settings variables, e.g.</p>
<pre><code>public string MySetting {
get { return Settings.Default.MySetting; }
set {
Settings.Default.MySetting = value;
Settings.Default.Save();
}
}
</code></pre>
<p>That ... | c# | [0] |
3,459,661 | 3,459,662 | How to slidedown and animate the width together in sequence | <p>How would I slideDown a div and animate the width together. </p>
<p>The jquery docs website is down to look at an example. Could I maybe use the new promise() for this?</p>
<p>I have tried:</p>
<pre><code>$foo.slideDown({duration:500},function(){
$dropDown.animate({"width": 400}, 450);
});
</code></pre>
<p>A... | jquery | [5] |
5,974,489 | 5,974,490 | Detach App from Google Play | <p>I have an OpenSource App on my SGS2 with OS 2.3.5 (root) which I want to detach from Google Play. I don't want that Google Play shows me Updates for this App anymore.</p>
<p>What do I need to do, to get this app out of Google Play, let's say to make the app different from the one in Google Play which will be update... | android | [4] |
1,937,955 | 1,937,956 | ProgressDialog communicate with AsyncTask in android | <p>Tips or ideas on how ProgressDialog can communicate with asyncTask.
For example when I click the button, the program will validate the input to internet, This is should not be interupted. so I use ProgressDialog.</p>
<p>After progressDialog.dismiss(), I need to refresh the view by calling the asyncTask.
I have trie... | android | [4] |
285,773 | 285,774 | how to identify the login details from data base | <p>i created a signup page and enter those values in database. Now i want to create a login page and have to check the details from the data base, whether the user registered or not? How can any one help me...please?</p>
| asp.net | [9] |
438,309 | 438,310 | About invalidating iterators | <p>STL containers have the problem that iterators can be invalidated when the container changes. Would it be possible for the container to announce that it has changed by adding a call has_changed()? </p>
<p>It is common to query empty() before certain operations. If the container set a bool on operations that woul... | c++ | [6] |
4,397,471 | 4,397,472 | jQuery $this problems | <p>I have the following code:</p>
<pre><code><ul class="cssdropdown">
<li class="headlink">RANGE
<ul class="innerDrop">
<li>Range Child</li>
<ul>
<li>
<li class="headlink">HOME
<ul class="innerDrop">
<l... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.