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
3,521,001
3,521,002
Facebook like count is not changing instantly
<p>I am trying to develop a facebook app,in that I have developed the news feed data as we see in android facebook app. It contains all posts with like,comment,comment number and likes number.</p> <p>when I press like, it should change to unlike and the count of likes should increases as quickly as we find in android ...
android
[4]
4,628,783
4,628,784
C++ Constructor call
<p>I have written this small code snippet in C++, the output is also attached. I fail to understand why the constructor is being called only once, while i can see two calls being made for destructor.</p> <p>From what i understand, default constructor and overloaded assignment operator should be called at line 28.</p> ...
c++
[6]
3,134,434
3,134,435
Warning: DOMDocument::loadHTML() [domdocument.loadhtml]
<p>After installing a plug in on my site I now have the error </p> <blockquote> <p>Warning: DOMDocument::loadHTML() [domdocument.loadhtml]: ID tribe-events-s already defined in Entity, line: 5 in /home/flatoute/public_html/wp-content/themes/yoo_revista_wp/warp/helpers/dom.php on line 44</p> </blockquote> <p>Well to...
php
[2]
3,210,096
3,210,097
Finding a common way to slide 'div's by clicking on the buttons for each of them
<p>My HTML consists of lines of text(questions) and a button beside each to show/hide answers. It is something like this.</p> <pre><code>&lt;div id="test"&gt; &lt;ul&gt; &lt;li&gt;ques 1 &lt;button&gt;view/hide answer&lt;/button&gt; &lt;/li&gt; &lt;div id="ans1"&gt; Answer 1 &lt;/div&gt; &lt;li&gt;ques 2 &lt;bu...
jquery
[5]
868,581
868,582
jQuery: grabbing form values
<p>If form is submitted to a function using onsubmit(), how can I get an array of the values of all checkboxes with name='values[]' ? </p> <p>EDIT: originally I mentioned radio buttons, this is wrong - checkboxes is correct.</p> <p>EDIT: line below only gets the value of the first one, obviously</p> <pre><code>$("in...
jquery
[5]
4,587,163
4,587,164
Java ArrayList problem (involves valueOf())
<p>So I have this function, combinations, which adds to an arraylist all permutations of a string.</p> <pre><code> public static void combinations(String prefix, String s, ArrayList PermAttr) { if (s.length() &gt; 0) { PermAttr.add(prefix + s.valueOf(s.charAt(0))); combinations(prefix +...
java
[1]
2,152,996
2,152,997
When will one need to create a separate process in a Application?
<p>I was reading a article in Android developer blog <a href="http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html" rel="nofollow">Process and Threads</a> which talks about creating new process for specific component of Application. But I failed to understand when will creating a new proces...
android
[4]
1,483,184
1,483,185
How to visualize text in message field in android?
<p>I would like show my text messages like this in picture that i have attached. Please give me some hints on that...</p> <p><img src="http://i.stack.imgur.com/FxZRV.png" alt="enter image description here"></p> <p>Sample text that i like to have:</p>
android
[4]
2,264,176
2,264,177
Android: Is it is possible to override the default dialog title and set our own xml
<p>I want to override default setTitle method of Dialog class. We can have only text there. But i want to have text and image as a part of title.</p> <p>I have one text and image in one xml. Which i want to set it as title. How can i do this. Please guide me. If any sample code is provided it will be great help. Any h...
android
[4]
5,177,027
5,177,028
Jquery function calling sequence
<p>I'm newbie to Jquery and saw this piece of code in a book. I'm trying to understand how hideCode() is being executed.</p> <p>This is my understanding of the sequence of evets thats going to happen:</p> <ol> <li>Document gets loaded and its ready to perform the jquery function.</li> <li>When the guess_box is clicke...
jquery
[5]
3,440,880
3,440,881
RSS error in pubDate?
<p>I m getting RSS from a site. Especially, i m getting the title of the news and the pubDate.My problem is that the site is giving me date PDT,and if the device language is e.x. English US ,i m getting my catch exception...how could i fix it in order to work on every time zone?</p>
android
[4]
5,621,359
5,621,360
Python puzzle sets
<p>I found this table in How to Think Like a Computer Scientist: Learning with Python.</p> <pre><code>1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 6 12 18 24 30 36 7 14 21 28 35 42 49 </code></pre> <p>The exercise ...
python
[7]
1,896,942
1,896,943
Add timestamps in python month wise
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6775811/add-timestamps-in-python">Add timestamps in python</a> </p> </blockquote> <pre><code>dates = {} dates.update({'2011-03-07':'16:03:01'}) dates.update({'2011-03-06':'16:03:01'}) dates.update({'2011-03-08'...
python
[7]
3,357,929
3,357,930
increment and decrement between 2 buttons
<p>I have 2 buttons and these 2 buttons will increase the total number of clicks. (The total is count separately) An user only allow to select 1 of them which means if user has previously clicked on buttonA and click buttonB again. ButtonA will - 1 and ButtonB will + 1. </p> <p>I have following codes and there is a pr...
jquery
[5]
387,394
387,395
Detect on which browser current web application is running
<p>I wanted to know in PHP, how to detect on which browser my web application is running. </p> <p>e.g. </p> <p>If current browser is chrome then alert("Chrome browser processing") otherwise alert("rest browser processing");</p> <pre><code>echo $_SERVER['HTTP_USER_AGENT']; </code></pre> <p>Below output I am getting ...
php
[2]
998,786
998,787
Why does TextAppearance and TextAppearance.Small has the same text size?
<p>I am developing a android app and i believe using the official text style can give user the best experience across all kinds of platforms and devices. But i found that <code>TextAppearance.Large</code> has the bigger text size but <code>TextAppearance</code> and <code>TextAppearance.Small</code> has the same size bu...
android
[4]
4,611,126
4,611,127
PHP - Get values from Array
<p>I am trying to get a record from a database using an sql lookup (sql1). This then returns as an array which is fine, but I need to use part of the array for my next stage.</p> <p>$opt=get_records_sql($sql1);</p> <pre><code> //Diags for SQL content print_object($opt); $n = count($opt); if (empty...
php
[2]
1,607,112
1,607,113
Override line in file while writing
<p>I am reading a file using streamreader opened in ReadWrite mode. The requirement I have is to check for a file for specific text, and if it is found, replace that line with a new line. </p> <p>Currently I have initialized a <code>StreamWriter</code> for writing.</p> <p>It is writing text to a file but it's appendi...
c#
[0]
1,684,982
1,684,983
What are your Java 'rules'?
<p>I'm learning Java and I'm wondering what everyone's Java rules are. The rules that you know intrinsically and if you see someone breaking them you try to correct them. Things to keep you out of trouble or help improve things. Things you should never do. Things you should always do. The rules that a beginner woul...
java
[1]
962,843
962,844
IE8 gets caught in an infinite loop with array push
<p>I am confused the following loop causing an infinite loop in IE8</p> <pre><code>for (var i in theArray) { this.theArray.push(theArray[i]); } </code></pre> <p>IE8 get caught in an infinite loop which I don't understand why because <code>this.theArray</code> is a global array while <code>theArray</code> ...
javascript
[3]
1,753,951
1,753,952
how to pass value of checked checkbox in php
<p>Hi i am generating checkbox list by using a for each loop, I want to pass the <code>value</code> of checked checkbox into database.</p> <pre><code>foreach($this-&gt;lis as $lst) {?&gt; &lt;tr&gt; &lt;td&gt; &lt;input type="checkbox" name="list" value="1" /&gt; &lt;label for="list_32"&gt;&lt;?ph...
php
[2]
4,435,230
4,435,231
What is difference between the xpath and xpathselect in asp.net datalist?
<p>I got this question from programming asp.net and web-site called quickstart.asp.net. In this it is mentioned that xpath and xpathselect is how used and syntex but it is not mentioned how it differs in work, i ckecked but both are giving same result.</p>
asp.net
[9]
937,779
937,780
Creating a ListView and setting the background color of a view in each row
<p>I am trying to implement a ListView that is composed of rows that contain a View on the left followed by a TextView to the right of that. I want to be able to change the background color of the first View based on it's position in the ListView. Below is what I have at this point but it doesn't seem to due anything. ...
android
[4]
3,222,642
3,222,643
Android App - disappearance of app GUI
<p>I'm trying to create a simple app, whose main task is to open the browser on defined URL. I've created first Activity:</p> <pre><code>public class MyActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.main); ...
android
[4]
3,470,813
3,470,814
How to compile and run a Class.java file from another java program
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1064259/how-can-i-compile-and-deploy-a-java-class-at-runtime">How can I compile and deploy a java class at runtime?</a> </p> </blockquote> <p>I am creating a swing gui application within this i want to compile a...
java
[1]
5,700,802
5,700,803
How can I check for existence of element in std::vector, in one sentence?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/571394/how-to-find-an-item-in-a-stdvector">How to find an item in a std::vector?</a> </p> </blockquote> <p>This is what I'm looking for:</p> <pre><code>#include &lt;vector&gt; std::vector&lt;int&gt; foo() { /...
c++
[6]
2,908,095
2,908,096
Problem with my method in C++
<p>I have a class like so:</p> <pre><code>class Qtree { public: Qtree(); Qtree(BMP img, int d); private: class QtreeNode { public: QtreeNode* nwChild; // pointer to northwest child QtreeNode* neChild; // pointer to northeast child QtreeNode* swChild; // pointer to southwest child ...
c++
[6]
2,520,868
2,520,869
ContactsContract.Contacts does not return ASC order by ContactsContract.Contacts.DISPLAY_NAME
<p>I've written code to access Contacts order byContactsContract.Contacts.DISPLAY_NAME ASC , but it does not return in order . My code is below </p> <pre><code>contactCursor = requestActivity.managedQuery( ContactsContract.Contacts.CONTENT_URI, new String[] { ContactsCo...
android
[4]
1,382,550
1,382,551
Designing a C++ library
<p>I am in the process of designing a C++ static library. I want to make the classes generic/configuarable so that they can support a number of data types(and I don't want to write any data type specific code in my library). So I have templatized the classes.</p> <p>But since the C++ "export" template feature is not ...
c++
[6]
3,675,531
3,675,532
Javascript summation calculator
<p>I would like to make a calculator for summation.</p> <p>I write number, then i click on button + , and then i enter second number, and then i click on Submit button and get value in input.</p> <p>I am getting values from input with this:</p> <pre><code>var something = document.getElementById('inputid'); var newva...
javascript
[3]
2,716,469
2,716,470
onload function issue
<p>I use this javascript on the home page, and that page contain h2 tags within an element magazine-brief, the alert is working well. If I go to any other page which does not have an element magazine-brief the alert box does not work. How can i solve this problem. my code is :</p> <pre><code>window.onload = function()...
javascript
[3]
700,661
700,662
Jquery mask for number and letter
<p>I'd like check via jquery a string, thi string can begin by "P" or "M" and after that some number, sample P1456598, M124, P47, M798664645</p> <p>Any idea ?</p> <p>Thanks,</p>
jquery
[5]
2,763,641
2,763,642
JavaScript client-side search engine
<p>I am developing a local web application with jQuery/JavaScript.</p> <p>My goal is to create search engine for searching content from a JSON file. I already made it with regex, but it works slowly.</p> <p>What is the best way? Is there a JavaScript search engine?</p>
javascript
[3]
3,544,323
3,544,324
Editing one List<> edits it's clone
<p>I have this list of custom class objects:</p> <pre><code>List&lt;URL&gt; URLs = new List&lt;URL&gt;(); </code></pre> <p>and I'm trying to push a copy on to a Stack:</p> <pre><code>Stack&lt;List&lt;URL&gt;&gt; undo = new Stack&lt;List&lt;URL&gt;&gt;(); List&lt;URL&gt; temp = new List&lt;URL&gt;(); temp.AddRange(n...
c#
[0]
1,925,940
1,925,941
Socket Send/receive simultaneously
<p>can any one point out the reason why u cant send and receive on a socket at the same time ?</p> <p>to my understanding there are 2 streams one to push and one to pull </p> <p>if you attempt to send/receive simultaneously you will get wasealready error </p> <p>what is the reason that the socket throws wasealready ...
c#
[0]
2,235,631
2,235,632
How can I deploy a service provider and activity package together within eclipse
<p>In Eclipse I want to deploy both a Service Provider package and a standard Activity-based package (which uses the Service Provider). Can I bundle these together in Eclipse to make a single apk which gets deployed to the device?</p> <p>thanks</p> <p>anton</p>
android
[4]
3,362,248
3,362,249
is it possible to have a virtual class declaration in a class?
<p>I'm setting a up an interface for various components of a framework in a personal project, and i've suddenly thought of something that i figured might be useful with an interface. My question is whether this is possible or not:</p> <pre><code>class a { public: virtual class test = 0; }; class b : public a { p...
c++
[6]
1,709,650
1,709,651
Refresh UIView for drawRect?
<p>Is there a way to refresh a UIView which will subsequently call drawRect?</p> <p>EDIT:</p> <p>I am doing <code>[view setNeedsDisplay]</code> however it doesn't appear to be working! Or at least my NSLog in drawRect isn't displaying.</p> <p>EDIT2:</p> <p>Please see comments of selected answer for the gory details...
iphone
[8]
5,677,063
5,677,064
Updating a datatable in c#
<p>I have a datatable storing info about a student classroom. My table looks like this:</p> <pre><code>Student ID Grade Absence Count 00001 85 0 00002 95 7 00002 70 5 00003 35 1 </code></pre> <p>Dont ask me why there are t...
c#
[0]
5,983,613
5,983,614
Android UI Implementation
<p>I was having a look at the footprints application found on the Android Market Place. I have rather intrigued with the Tab Bar that they used. Does anyone have an idea how to do that ? </p>
android
[4]
181,689
181,690
Converting string to c-style string and detecting null terminating character
<p>I am trying to convert a C++ string object to C-Style NULL terminated string using c_str() and then trying to access individual character as it can be done for c-style string.</p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; using namespace std; int main() { string str1("Alpha"); cout &lt;&l...
c++
[6]
2,876,294
2,876,295
read an string line by line using c++
<p>I have a <code>string</code> with multiple line and I need to read it line by line. Please show me how to do it with a small example.</p> <p>Ex: I have a string <code>string h;</code></p> <p>h will be:</p> <pre><code>Hello there. How are you today? I am fine, thank you. </code></pre> <p>I need to extract <code>H...
c++
[6]
3,987,958
3,987,959
xml for multiple screen in android
<p>i am working on 2.2 version of android and xml is designed according to this version Specification of emulator : version 2.2, Built-in : HVGA , Memory : 1024</p> <p>and now i need this application to be transformed into 4.0 version of Samsung galaxy s3 but the screen are very streched and does not look good </p> <...
android
[4]
1,246,744
1,246,745
Two new lines instead of one
<p>I banged my head as to why this code is inserting two new lines instead of one. Can someone help?</p> <pre><code>file=open('16052013') for line in file: line=line.strip() splitLine=line.split("\t") strSentence=splitLine[2] caseId=splitLine[0] for word in strSentence.split(): word=word.st...
python
[7]
2,989,573
2,989,574
Comparing mysql record with current time
<p>I have a query that shows appointments that a user has made in a format year-month-day start time(00:00:00) end time(00:00:00),now i want to compare this whole format with the current time and if it is equal or higher to not show do appointment because user has the option to cancel the appointment and if the time fo...
php
[2]
1,732,005
1,732,006
Set defaults at runtime
<p>I manage a fairly large python-based quantum chemistry suite, <a href="http://pyquante.sf.net" rel="nofollow">PyQuante</a>. I'm currently struggling with how to set various defaults so that users can choose among different options at runtime.</p> <p>For example, I have three different methods for computing electron...
python
[7]
3,218,849
3,218,850
C++ Proper way of deleting a new struct array that contains new struct array?
<p>What is the proper way of deleting a new struct array that contains new struct array?</p> <pre><code>typedef struct CALF_STRUCTURE { char* Name; bool IsBullCalf; } CALF; typedef struct COW_STRUCTURE { CALF* Calves; } COW; int main( void ) { COW* Cows; Cows = new COW[ 3 ]; // The...
c++
[6]
3,335,394
3,335,395
javascript: how to check a property is undefined
<p>I have codes below.</p> <pre><code>elem.onkeypress=function(e){ if( (e.which===undefined?e.keyCode:e.which)==13 ){ //dosomething } } </code></pre> <p>at IE8, it occus erros: <code>'which' is null or not an object</code></p> <p>how to fix this problem.</p>
javascript
[3]
4,983,535
4,983,536
manipulating a stream via FILE*
<p>I've just run across some C++ code which uses a FILE* to manipulate a file stream using the "f" functions (fopen, fseek, fread, etc). I believe that these are provided by standard header cstdio.</p> <p>Is this considered a dated or bad practice in modern C++ code? I ask because I also see that you can get/set the p...
c++
[6]
2,394,899
2,394,900
Remove View from LinearLayout in Android issue
<p>I created a LinearLayout that has ImageViews added dynamically to it. I can have a list of 50 ImageViews but only 3 will be shown in it at the same time. </p> <p>I need to reference the 3 items in it so I have private variables setup at the top of my activity called ImageView item1, item2, item3. </p> <p>When a bu...
android
[4]
5,964,359
5,964,360
looking for a c++ function to load a specified Line from a file (txt)
<p>I have to load data from a file which contains hundreds of lines. in each line, we have the input and its output.</p> <p>I am trying to implement a C++ function that takes the line number as argument, and go to the specified line in order to load existed data.</p>
c++
[6]
39,593
39,594
Development of Browser ToolBar
<p>I want to make a browser toolbar for Windows that should work for existing browsers like Firefox (2.x, 3.x) and Chrome as well in c#.net. I have read some articles on accomplishing this task and found some good stuff.</p> <p>Does anyone have any ideas about how to do this?</p>
c#
[0]
1,554,440
1,554,441
Is there a jquery plugin to refresh certain areas of page
<p>I want to find out a plugin which can refresh certain areas of a page, without refreshing the entire page itself. I have a custom control kept inside a div that changes its contents only on refresh, so I am thinking to use something that can refresh only the div</p>
jquery
[5]
4,097,349
4,097,350
Res folder in a library project
<p>I have a couple of projects that use one common library project for shared code. I'd like to be able to put layouts, strings, etc into the common project, but the compiler is not recognizing the res folders, so I can't use R. Is it possible to put layouts, etc into a library project, or am I going to have to copy th...
android
[4]
5,663,363
5,663,364
ASIHTTP Request & Classes
<p>I am new to iPhone application development and working on a web service based application.</p> <p>I am using NSXML parser in this application and all is working finr, I am able to get the data from server.</p> <p>But my friend told me that I should include ASIHTTP Classes in this project that is mandatory, but I w...
iphone
[8]
2,970,487
2,970,488
Starting debugger on errors in threads
<p>I'm using following trick to get debugger started on error <a href="http://stackoverflow.com/questions/242485/starting-python-debugger-automatically-on-error">Starting python debugger automatically on error</a></p> <p>Any idea how to make this also work for errors that happen in newly created threads? I'm using thr...
python
[7]
1,026,305
1,026,306
Android emulator crash on Mac osx 10.7 lion, causing kernel panic
<p>I am using Android emulator with an intel x86 based image for version 2.3 and developing on a Mac 10.7 lion system. I have also installed intel hardware execution manager due to which the emulator runs at faster speed than normal. However while using the emulator it crashes randomly causing a kernel panic. This happ...
android
[4]
2,130,963
2,130,964
Datastructure to map Class objects to values while considering superclasses?
<p>Is there a map like data structure that uses Java Class objects as keys but uses fallback to superclasses if no mapping is found? Let me give a short example:</p> <pre><code>ClassMap&lt;Integer&gt; map = new ClassMap&lt;Integer&gt;(); map.put(Object.class, 1); map.put(Number.class, 2); assertEquals(1, map.get(Stri...
java
[1]
5,568,263
5,568,264
Logging recursively
<p>I am trying to use my logger to dump variables to my logfile. I need it to write down arrays within arrays. Could you explain please how to do this ? (I am not sure of how to pass the sub-array of the rest of the array but here's what I came up with, which obviously is missing something)</p> <p>Thanks</p> <pre><co...
php
[2]
4,449,057
4,449,058
ListView Listener not Working
<p>I've seen a few examples on here to this problem, but none have solved this issue, observe the code below:</p> <pre><code>mProductList = hotdealhelper.getCatalog(getResources()); ListView myListView = (ListView) findViewById(R.id.listViewoffers); myListView.setAdapter(new hotdealadapter(mProductList, getLayoutInfla...
android
[4]
338,463
338,464
what does 'objects being subclassable' mean?
<p><a href="http://diveintopython.net/getting_to_know_python/everything_is_an_object.html" rel="nofollow">Dive into Python</a> - </p> <blockquote> <p>Different programming languages define “object” in different ways. In some, it means that all objects must have attributes and methods; in others, it means that all ob...
python
[7]
4,370,781
4,370,782
Using appropriate layout markup according to screen resolution
<p>I've got a design list for 480x800, 1024x600, 1280x800. How do I ask android to use exact markup based on user screen's resolution ? As far as I know there're only abstract means(hdpi,xdpi) for solving resolution difference.</p>
android
[4]
3,978,890
3,978,891
Remote OS detection with PHP
<p>I run a Apache/php server on Mac, and I want to show different info based on the OS that accesses it. </p> <p>How can I do that with PHP?</p>
php
[2]
781,514
781,515
Removing an element permanently in jQuery
<p>when I append an element and afterwards remove it the object still exists?</p> <pre><code>bg = $('&lt;div class="dialog_bg"&gt;&lt;/div&gt;'); $('#'+elm).append(bg); bg.remove(); </code></pre> <p>how is that? isn't it possible to remove the element permanently?</p>
jquery
[5]
705,903
705,904
Is it possible to save the voice data recorded from an iPhone?
<p>What would be a good way to transport the voice data recorded on the iPhone? I am building some sort of online cloud system where the user is able to record a clip and save it online to be retrieved later on from our server. What format should I save the voice data and how should it best be stored (as a file etc)?</...
iphone
[8]
2,243,012
2,243,013
how to edit the text of a button which is in the list item of android
<p>how to edit the text of a button which is in the list item of android</p>
android
[4]
4,807,894
4,807,895
Sinatra inspired PHP Framework any ones that stand out?
<p>I know this has been asked before but there all in 2008 - 2010. Is there any ones that seem to stand out that you can recommend that are being updated/maintained?</p>
php
[2]
578,359
578,360
Creating variable from the url string and using the last one to set an image path
<p>I've got a site where I'd like to have a specific header image displayed for each individual page. The way the layout is done, it's not easily achievable with the current templating system. What I'd like to do is grab the last piece of the url string, create a variable and use that variable to complete an image path...
jquery
[5]
1,782,122
1,782,123
Android: "Path for project must have only one segment"
<p>I just setup the NotePad sample project as described here, but when I try to launch it (Ctrl+F11) I received the following error message box:</p> <blockquote> <p>Path for project must have only one segment.</p> </blockquote> <p><img src="http://i.stack.imgur.com/iBurr.png" alt="enter image description here"></...
android
[4]
4,377,230
4,377,231
Best mock framework for android
<p>Can anybody suggest a good framework for mocking in Android. I have found robotium <a href="http://code.google.com/p/robotium/" rel="nofollow">http://code.google.com/p/robotium/</a> . I also read that EasyMock is also available. Can you suggest sth else or share your experiance using the latter two?</p>
android
[4]
1,111,847
1,111,848
Please any one give me simple or First Example of SNMP in JAVA
<p>I am new in Networking Filed and I want and Require a use of SNMP so please give a best and simple and First Example of SNMP that i use to my learn.... Please ...Please</p> <p>Thanks </p>
java
[1]
37,694
37,695
whats a good way of always having the correct doc root string?
<p>if i have a menu such as</p> <pre><code>&lt;a href="index.php"&gt;home&lt;/a&gt; &lt;a href="aboutus.php"&gt;about us&lt;/a&gt; &lt;a href="contact.php"&gt;contact us&lt;/a&gt; </code></pre> <p>inside a file called menu.php</p> <p>and this menu.php file gets include into pages all across the application. but what...
php
[2]
2,953,934
2,953,935
How do I move a pointer in C++?
<p>This is a stupid question but I just have no idea how to accomplish this.</p> <p>I have an object and a vector. At a set time during execution, I need to put this object in the vector and overwrite this object with a new one. I currently have this, </p> <pre><code>std::vector&lt;Cube*&gt; cubes; Cube* workingCube ...
c++
[6]
1,121,302
1,121,303
unbelievably simple "if" failing in PHP
<p>I have been banging my head against this one for a while now and have tried many versions of this code. I must be doing something <em>very</em> basic wrong ...</p> <pre><code>$pop = FALSE; $pop = ($visits &gt; 4); if ($pop){ drupal_add_js(drupal_get_path('module', 'spester') .'/light.js'); } </code></pre> <p>...
php
[2]
2,848,485
2,848,486
jquery if have html tag
<p>I have some code, the <code>p.words</code> is hidden, I tried to make a judge, if next <code>div</code> has <code>span</code> tag, then show the <code>p.words</code>, else keep the css rule.</p> <p>I use <code>jquery.next</code> and <code>jquery.find</code> to make a judge <code>$(this).parent().next('.col').find('...
jquery
[5]
1,977,266
1,977,267
list of android market to publish app
<p><strong>hello friends</strong>,</p> <p>I need a publish my app in <code>different-different</code> market but not in <code>https://market.android.com/</code>. so simply I need a list of that can any one help me? </p> <p><strong>Thanks<br> nik</strong></p>
android
[4]
2,471,520
2,471,521
click event for the button inside listview in android
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1709166/android-listview-elements-with-multiple-clickable-buttons">Android: ListView elements with multiple clickable buttons</a> </p> </blockquote> <p>how to do click event for the button inside listview in and...
android
[4]
5,843,777
5,843,778
jQuery hover - mouseout not working
<p>I have the following script here... It works when I mouseover the item... but when the mouse leaves, it doesn't hide anything. In fact, it just seems like an endless loop. Help please! :-)</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function() { // Handler for .ready() called....
jquery
[5]
1,468,547
1,468,548
Animation causes AsyncTask HttpClient task to be super slow
<p>I have a network task defined inside of an AsyncTask that takes approximately 2-3 seconds to complete.</p> <p>When I add the animation code below:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="0" an...
android
[4]
3,386,544
3,386,545
Can javascript be enabled only when the user is on a mobile devices?
<p>I'm trying to figure out how to make a javascript line work only when the user is using a mobile device.</p>
javascript
[3]
1,957,472
1,957,473
Input a data file .txt and output specific data to a new .txt file using Python
<p>I would like to input or read the following data of a .txt file:</p> <pre><code>VIBRATION/SHOCK CALIBRATION DATA DATE: 2/26/2012 TIME: 0800 Time (ms) Channel 1 Channel 2 Channel 3 0.0 -0.9 9.0 12.9 50.0 5.0 12 343 100.0 56.7 120 ...
python
[7]
4,474,567
4,474,568
Way to exit from the method
<p>Is there any way to exit from the method? I hear that there are two way to exit.</p> <p><strong>One :</strong> throw Exception. </p> <pre><code>public void dosomething() { if(...) { throw new MyException(); } // there might be another process. } </code></pre> <p><strong>Two :</strong...
java
[1]
364,188
364,189
Why isn't this referring to window when called in setTimeout
<p>If there is no binding of functions to instances in javascript how does <code>getName()</code> return <code>john</code></p> <pre><code>function Person() { this.name = "john"; this.getName = function() { return this.name; }; } var me = new Person(); setTimeout(function(){alert(me.getName())}, 30...
javascript
[3]
3,837,441
3,837,442
Visual Stduio, ASP.NET, C#
<p>How can I send pictures to database and then how can take it?</p>
asp.net
[9]
4,622,636
4,622,637
Storing just 2 variables in ASP.NET in most easy way
<p>How to store 2 integers between all users in most easiest way, should I use global session variable or cache somehow?</p> <p>Are these safe methods - is assume lost only if server needs to be rebooted?</p>
asp.net
[9]
1,148,517
1,148,518
Check version of Python library that doesn't define __version__
<p>I'm dealing with a Python library that does not define the __version__ variable (<a href="http://code.google.com/p/sqlalchemy-migrate/" rel="nofollow">sqlalchemy-migrate</a>), and I want to have different behavior in my code based on what version of the library I have installed. </p> <p>Is there a way to check at r...
python
[7]
1,558,172
1,558,173
Check if line affected when writing a file with php
<p>how can i check if a line was written to a file? I am trying something like this:</p> <pre><code> if (fwrite($handle, $data) == FALSE) { echo "&lt;script&gt; alert('Not written'); &lt;/script&gt;"; include ('index.html'); } else{ echo "&lt;script&gt; alert('Wri...
php
[2]
763,026
763,027
Best method for dividing list into equal parts
<blockquote> <p><strong>Possible Duplicate:</strong><br /> <a href="http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python">How do you split a list into evenly sized chunks in Python?</a> </p> </blockquote> <p>I have a list more than 500 elements long.</p> <p>I want ...
python
[7]
4,349,407
4,349,408
Timetable generation algorithm
<p>C#.Net timetable generation.</p> <p>I'm trying to make the program for timetable generations using C#.net. So i'm looking for the algorithm,hints or links regarding this . So it would great if any one help in this. </p>
c#
[0]
3,606,966
3,606,967
python: Dictionaries of dictionaries merge
<p>I need to merge multiple dictionaries, here's what I have for instance:</p> <pre><code>dict1 = {1:{"a":{A}},2:{"b":{B}}} dict2 = {2:{"c":{C}}, 3:{"d":{D}} </code></pre> <p>with <code>A</code> <code>B</code> <code>C</code> and <code>D</code> being leaves of the tree, like <code>{"info1":"value", "info2":"value2"}<...
python
[7]
3,541,078
3,541,079
Deselecting rows in table using jquery
<p>In <a href="http://jsfiddle.net/hKZqS/51/" rel="nofollow">this code</a>, if I press shift+down key it selects multiple rows and if I press the up key, it is deselecting. But if I press shift+uparrow only deselection should happen.</p> <p>Normally using the up and down keys, I can navigate up and down.</p> <p>eg:If...
jquery
[5]
2,701,017
2,701,018
Populate select box depending on choice of different select box (php / ajax)
<p>Basically I have two forms The first form Is a simple select box which submits it's value to be processed and inserted into a database (mysql) However on the same page I have a second form with a select box which will be auto populated with the results from the database(ajax / php), depending on which option was cho...
php
[2]
2,391,444
2,391,445
Getting UIImageView to Change its Image IPhone App
<p>Still a newbie here, forgive me. I'm trying to make a button that will change an Image thats located in the same view.</p> <pre><code>- (IBAction)myButton:(id)sender { myUIImageView.image = [UIImage imageNamed:@"image.jpg"]; } </code></pre> <p>And I synthesize myUIImageView above this. I have also created it...
iphone
[8]
1,928,493
1,928,494
What is the best tips to improve the Application Performance in Asp.Net?
<p>Can any help regarding the performance improvement in Asp.Net?The best practise tips for asp.net performance improvement?</p>
asp.net
[9]
2,878,632
2,878,633
Load HTML data into WebView, referencing local images?
<p>If I'm loading a WebView with an HTML document directly (no web server) using WebView.loadData() is there a way for that document to reference local images? If so where do I place them, and how do I reference them?</p> <p>Or alternatively is there a way to easily encode and embed bitmaps into the HTML document?</p>...
android
[4]
5,033,434
5,033,435
The Difference Between a DataGrid and a GridView in ASP.NET?
<p>I've been doing ASP.NET development for a little while now, and I've used both the GridView and the DataGrid controls before for various things, but I never could find a really good reason to use one or the other. I'd like to know:</p> <p>What is the difference between these 2 ASP.NET controls? What are the advanta...
asp.net
[9]
2,359,282
2,359,283
How to retrun match element ID using jquery
<p>I want to return matched element ID using jquery filter method but it is returning 'object object' <a href="http://jsfiddle.net/xTF8f/10/" rel="nofollow">fiddle</a></p> <p>//css</p> <pre><code>.none{display:none} </code></pre> <p>//html</p> <pre><code>&lt;div class="none"&gt; &lt;span style="display:none"&gt;fi...
jquery
[5]
691,540
691,541
java: default number-formatting
<p>I have a program that does algorithmic calculations with some number-output. I want this output to look nice and the program still being fast. I used the DecumalFormat but this makes it so slow, but works. Is there a way to set the default number output so I wouldnt need DecimalFormat???</p> <pre><code>Locale deLoc...
java
[1]
5,780,868
5,780,869
Copy input from one place and use it as a variable or in another area using onclick
<p>I'm trying to figure out how to take values from one of these input boxes and duplicate them in another input box. This action would be very useful in another project I'm working on but, I can seem to get it to work. What am I doing wrong?</p> <p><a href="http://jsfiddle.net/qBFAe/" rel="nofollow">http://jsfiddle....
javascript
[3]
4,226,827
4,226,828
int24 - 24 bit integral datatype
<p><br> is there a 24Bit primitive integral datatype in C++?</p> <p>If there is none, would it be possible to create a class int24 (, uint24 ) ?</p> <p>it's purpose could be:<br> * manipulating soundfiles in 24 bit format<br> * manipulating bitmapdata without alphachannel </p> <p>many thanks in advance</p> <p>Oops...
c++
[6]