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,951,150
3,951,151
Hiding Action Bar Sherlock Overflow Menu with three dots
<p>To get a customized overflow menu, I've used sub menu as </p> <pre><code>@Override public boolean onCreateOptionsMenu(Menu menu) { //Create the search view SearchView searchView = new SearchView(getSupportActionBar().getThemedContext()); mListView = getListView(); mListView.setTextFilterEnabled(tr...
android
[4]
360,715
360,716
Why does EnumMap<T>.keySet() return a Set<T>() and not an EnumSet<T>()?
<p>I'm writing a program with a lot of enumerations, and I'm having to return the keyset of an EnumMap a lot. But <code>EnumMap.keySet()</code> returns a <code>Set()</code>, so in order to get the <code>EnumSet</code> I want, I have to use a cast:</p> <pre><code>EnumMap&lt;SomeEnum, Object&gt; myMap = getMap(); EnumSe...
java
[1]
4,677,476
4,677,477
Is there any opensource RSS reader?
<p>I own three blogs, and i want to display realtime RSS feeds same as digitalpoint forum spy feed.</p> <p>If any blog entry made on my listed RSS feeds, it must display on RSS Spy page without refreshing the RSS reader page.</p> <p>If there is any opensource RSS reader built in php,mysql,jquery or anything ? Please ...
php
[2]
3,210,227
3,210,228
How to change date format in JavaScript
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1056728/formatting-a-date-in-javascript">Formatting a date in javascript</a> </p> </blockquote> <p>I have this: </p> <h3>HTML</h3> <pre><code> Start Date: &lt;input type="date" id="startDate" name="sta...
javascript
[3]
417,826
417,827
PHP convert html width height attribute to inline style
<p><strong>How do i go from this</strong></p> <pre><code>width="200" height="300" </code></pre> <p><strong>to this with php</strong></p> <pre><code>width:200px; height:300px; </code></pre> <p>Basically i want to remove the quotes and equal signs and insert a semi colon after each attribute</p>
php
[2]
1,927,325
1,927,326
Android In app purchase , credit card issue
<p>I have integrated in app my Android app. The app is saved as draft in Android market. It has one product, which is published. When I trigger the purchase, a screen appears asking for credit card info. After entering the info, it says :</p> <p><strong>An error occurred while saving your credit card. Please try again...
android
[4]
1,205,983
1,205,984
Weird thing happening while using DataTable.Select()
<pre><code>DataTable dt = new DataTable(); DataRow[] dr; dt.Columns.Add(); dt.Columns.Add(); dt.Rows.Add(1, 1); dt.Rows.Add(2, 2); dt.Rows.Add(3, 3); dr = dt.Select(); dr[1].Delete(); foreach (DataRow x in dt.Rows) MessageBox.Show(x[0] + " " + x[1]); </code></pre> <p>The MessageBox shows me "1 1" and "3 3". Why ...
c#
[0]
2,120,722
2,120,723
Clone element with class
<p>How to clone content of the element with class and put it into itself?<br/> Here is example. We have this: </p> <pre><code>&lt;div class="cloneThis"&gt;one&lt;/div&gt; &lt;div class="cloneThis"&gt;two&lt;/div&gt; </code></pre> <p>The result must be like </p> <pre><code>&lt;div class="cloneThis"&gt;one&lt;span&gt;...
jquery
[5]
4,824,129
4,824,130
iPhone Apple Push Notification service
<p>When i log in to iPhone developer programmer portal as admin, if go to App Id section i can see list of app id's.I want to enable for push notification.But in Action column there is nothing i am not getting configurable button. So i am not able to proceed further to get SSL certificate for my app.</p>
iphone
[8]
1,310,628
1,310,629
Remove whitespace from a string in C#?
<p>Any one know how to remove <em>excessive</em> whitespace from a string?</p> <p>For example:</p> <pre><code>string myString = "I am going to work."; </code></pre> <p>Anyone know a good script for doing this kind of trimming?</p>
c#
[0]
1,432,965
1,432,966
Android SD Card Characteristics on Samsung Galaxy
<p>My app requires that the use manually copy a file from their PC to the SD card in a subdirectory that my app creates there (or I will look for it in the root directory). So far, so good (most people not having a problem except when they try to run my app while the phone is still connected and then ask why it tells t...
android
[4]
2,493,642
2,493,643
How to sort an array of items as numbers?
<p>I have a number of files I am loading into a slideshow, I have them numbered by the client in the order that they'd like to be displayed.</p> <p>I'm grabbing them with glob <code>$pics = glob("images/slideshow/*.jpg", GLOB_NOSORT);</code> but for some reason I'm getting the old Windows sorting bug, of 11 being sort...
php
[2]
1,265,884
1,265,885
Declaring and testing LOCAL variable in if statement
<p>I'm in need to declare a local variable and test for it inside of condition of if statement. I want to be able to do it as it is possible like this, however I need to do it without global scope; is this possible?</p> <pre><code>notWorkingSofar('#element'); function notWorkingSofar(a) { if(!(b=document.getElement...
javascript
[3]
4,521,328
4,521,329
Function for Factorial in Python
<p>How do I go about computing a factorial of an integer in Python?</p>
python
[7]
2,119,829
2,119,830
Set String with quotes to label in objective C programming?
<p>trackLbl2.text = @""Nonstop Bollywood Music"";</p> <p>I try this but not working. How to text with double quotes.</p>
iphone
[8]
4,724,235
4,724,236
For a shared resource accessed by two threads, how to arrange priority?
<p>Is there a way to give one thread priority over another when accessing the resource?</p>
java
[1]
5,751,655
5,751,656
event when adding element into document
<p>Adding new html string into the page:</p> <pre><code>document.getElementById('container').innerHTML = '&lt;div id="child"&gt;&lt;/div&gt;'; </code></pre> <p>Is there an event that let me know when <code>child</code> element is in the document?</p> <p>I have a function, which return some html codeas a string. And ...
javascript
[3]
4,614,493
4,614,494
Connect Multiple Buttons: Rewind & Play/pause button for one action
<p>I have multiple UIButtons in my app. Want to connect Rewind &amp; play/pause Button for one action. Not using interface builder at all for app. </p> <p>Right now rewind button has this method when it is pressed</p> <pre><code>-(void)rewind:(id)sender{ [timer invalidate]; audioPlayer.currentTime = 0; MainViewCo...
iphone
[8]
2,906,685
2,906,686
How can I format this variable to be convertable to unix timestamp?
<p>I have a variable that I am grabbing from an XML so I can store it in a database table, but the format given is not being accepted by the "date()" function. Specifically the error says: "date() expects parameter 2 to be long, object given". So how do I format the below example variable value to work in the date() fu...
php
[2]
2,704,447
2,704,448
How to validate that a regular expression is valid in Java using JavaScript
<p>I am using web forms to let the user specify a regular expression which is later matched in java. I want to check the regular expression provided by the user to see if it is valid. Of course I want to do it on both ends - the java part is easy.</p> <p>But what would be the best way to check that the regular express...
javascript
[3]
3,251,167
3,251,168
content for android:empty isn't shown in listview in tab layout
<p>I have a tab layout with 3 tab contents, in the first tab content I use the following listview to display:<br> <pre><code>android:layout_height="fill_parent"&gt; &lt;ListView android:id="@+id/listView01" android:layout_width="fill_parent" android:background="#009ACD" android:clickabl...
android
[4]
5,159,921
5,159,922
In Java I am struggling to load a webpage
<pre><code>private class OutputAction implements ActionListener { public void actionPerformed (ActionEvent e) { myModel.addSummaryAndDetailPagesWriter("./html/summary.html"); myModel.perform(); try { myPage.setPage("/html/summary.html"); } catch (IOE...
java
[1]
1,523,982
1,523,983
How to get the value of every select box of the same class in Jquery
<p>So I have several select boxes like this:</p> <pre><code>&lt;select class="designer"&gt; &lt;option&gt;300&lt;/option&gt; &lt;option&gt;3422&lt;/option&gt; &lt;/select&gt; &lt;select class="designer"&gt; &lt;option&gt;5645&lt;/option&gt; &lt;option&gt;8323&lt;/option&gt; &lt;option&gt;3920&lt;/option&gt; &lt;/sele...
jquery
[5]
4,882,137
4,882,138
why lazy copy when we have deep copy and shallow copy?
<p>We have <strong>shallow copy</strong> and <strong>deep copy</strong> who can do the job for us when we want to copy objects in C++. So,<br> What is <strong>Lazy copy</strong>?<br> Is this a thing that is taken care by a programmer or compiler does this on its own?<br> What are the programming scenarios where a lazy ...
c++
[6]
5,490,301
5,490,302
Why does asterisk (*) not pass as a normal character in String[] args?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2718873/problem-of-in-command-line-argument">Problem of * in Command line argument</a> </p> </blockquote> <p>I've written a simple attempt at a small calculator which does 4 operators (+,-,* and /).</p> <p>When...
java
[1]
3,295,520
3,295,521
How do i Turn OFF the Caps lock key
<p>How do i Turn OFF the Caps lock key in textbox. I am using WPF forms. </p> <p>When textbox is focused I want to turn off caps lock.</p> <p>Thanks</p>
c#
[0]
2,578,835
2,578,836
how to set ini set session maxlife to 10 minutes
<p>To make a session life go up to 10 minutes, is the below code correct because cannot tell:</p> <pre><code>ini_set('session.gc_maxlifetime',600); </code></pre> <p>OR </p> <pre><code>ini_set('session.gc_maxlifetime',1*10*60); </code></pre>
php
[2]
5,364,672
5,364,673
Getting corresponding module from function
<p>I want to modify a module xyz and its functions like that:</p> <pre><code>def modify(fun): modulename = fun.__module__ # this is string. ok, but not enough import xyz modify(xzy.test) </code></pre> <p>My problem is how to access the namespace of <code>xzy</code> inside <code>modify</code>. Sometimes</p> <pre...
python
[7]
3,677,924
3,677,925
Android App - what are biggest reasons for slow mp3 downloads
<p>For an Android app in development, mp3 download times from a 3rd party server are up to 200% slower than downloading the same mp3 (from same 3rd party server) using several other existing apps. There is no processing being done against the mp3 file during or post-download...rather, it's just a straightforward downlo...
android
[4]
526,221
526,222
Android app with street view image API
<p>I used the street view image API in my android app, and the following code is the way I retrieve images in my app :</p> <hr> <pre><code>URL url2 = new URL("http://maps.googleapis.com/maps/api/streetview?size=400x400" + "&amp;location="+x_str+","+y_str+"&amp;sensor=false"+"&amp;heading="...
android
[4]
3,131,634
3,131,635
How do I split text by "," and get rid of the "," in java?
<p>I want to split and get rid of the comma's in a string like this that are entered into a textfield:</p> <p>1,2,3,4,5,6</p> <p>and then display them in a different textfield like this:</p> <p>123456</p> <p>here is what i have tried.</p> <pre><code> String text = jTextField1.getText(); String[] tokens = te...
java
[1]
5,058,669
5,058,670
Working as an entry .Net Developer in the USA
<p>I just have a question about .net entry level jobs in VA. I am a master degree student in field of software engineering but I am graduated from department of physics.</p> <p>I decided to work on Java first, but I have changed my mind because I don't have any Java programming background except Java class in master...
c#
[0]
2,194,904
2,194,905
Fatal error: Class 'Products\Summary\Html\Section' not found
<pre><code>Fatal error: Class 'Products\Summary\Html\Section' not found </code></pre> <p>I get the above error on the following code. I've verified that Summary\Html\Section() is indeed the namespace of the class I'm trying to access. I'm not entirely sure why this isn't working... any thoughts?</p> <pre><code>&lt;...
php
[2]
3,491,117
3,491,118
Facing problem with serialization
<p>HI Here is my scenario where i have to serialize an object to a file.</p> <p>I am using binaryformatter to serialize an object as,</p> <pre><code> IFormatter formatter = new BinaryFormatter(); formatter.Serialize(stream1, object); </code></pre> <p>I am writting GetObjectData() as follows,<...
c#
[0]
1,141,935
1,141,936
how to populate dropdown box in gridview in edit mode?
<p>i have loaded input country dropdown at the time of data insertion. Select.. Afghanistan Aland Islands Albania Algeria </p> <p>now i m showing that data in gridview and want to edit that data to...
c#
[0]
3,379,179
3,379,180
Visual Studio 2012 new ASP.NET MVC 4 project deletes jQuery vsdoc file
<p>I'm new to Visual Studio 2012 and just experimenting with it. I noticed that whenever I create a new ASP.NET MVC 4 project, the Recycle Bin receives jet another deleted "jquery-1.7.1-vsdoc.js" file. Why is it doing that?</p> <p>I also see there is no more of this file in the /Scripts folder (compared to VS2010 proj...
asp.net
[9]
5,746,124
5,746,125
retaining session variable in php
<p>i want to retain the session variable while browsing from one page to the other could some one help me that i could i achieve that?? thanks</p>
php
[2]
3,260,741
3,260,742
Sliding jquery site search panel
<p>Can anybody help me in making a sliding down drop down search box in jquery using the google search plugin as shown on this page <a href="http://www.economist.com/node/324654" rel="nofollow">http://www.economist.com/node/324654</a></p>
jquery
[5]
517,429
517,430
dataGridView_CellContentClick: Invoke or BeginInvoke cannot be called on a control
<p>Can any one show me what did i do wrong this code, it produce msg </p> <p>“Invoke or BeginInvoke cannot be called on a control until the window handle has been created.”</p> <pre><code>private void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnInde...
c#
[0]
3,677,285
3,677,286
How to catch that volume was changed?
<p>I use <code>SeekBar</code> for setting volume. I do the following:</p> <ol> <li>I get current volume by <code>getStreamVolume()</code> and pass it to <code>SeekBar</code> element by <code>setProgress()</code>.</li> <li>I listen messages from the <code>SeekBar</code> element by <code>onStopTrackingTouch()</code> and...
android
[4]
90,397
90,398
How to create a directory with PHP?
<p>In my php web page I want to create a directory under the current directory ( <code>__DIR__</code> or <code>dirname(__FILE__)</code> ). How to achieve that ?</p>
php
[2]
682,031
682,032
android,not able to play some videos from urls?
<p>I have 5 videos(from server) . Here is the result for that.</p> <p>Motorola Milestone 2.1update: I am able to play only one video. In other three videos i am able to play only audio(video can't be seen). In one i am getting "sorry,this video cannot be played"</p> <p>Galaxy tab 10.1 3.1 honeycomb: Able to play 4 vi...
android
[4]
1,837,059
1,837,060
How to remove white space after a comma from user entered data using PHP
<p>How can I remove empty space after a comma <code>,</code> that has no words using PHP.</p> <p>Here is an entry.</p> <pre><code>apple pie, cherry , , pears, crumb cake , , </code></pre> <p>And Here is what I get so far.</p> <pre><code>apple pie, cherry, , pears, crumb cake...
php
[2]
3,031,982
3,031,983
Problems in posting value from Jquery UI Dialog
<p>I have submit button in side the jquery ui dialog and the dialog is inside a form. I am posting values to the same or different php page. But what I found that the values are not posted and actually submit button is not working at all. What is the fix? Please help with your opinions.</p> <p>thanks</p>
jquery
[5]
48,062
48,063
Using class methods as simple functions
<p>I have a class with many methods. How can I modify my methods so that they can also be accessed directly as a function without creating object of that class? Is it possible.</p>
python
[7]
2,180,417
2,180,418
Delegate behaviour while being passed as reference
<p>I am playing around with delegates and I came to the situation where I am not sure what is going on.</p> <p>In my logic, invocation list of "greetings" delegate should return 2, but it just returns 1. As you can see, I am passing the delegate reference to the object I created. I wanted to confirm that delegate can ...
c#
[0]
1,279,426
1,279,427
php: session_start() error
<p>I have a file, which starts <code>&lt;?php session_start();?&gt;</code>, and it returns an error</p> <pre><code>Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp2\htdocs\index.php:1) in C:\xampp2\htdocs\index.php on line 3 </code...
php
[2]
483,081
483,082
Add "<br><br>" after every 5 sentences?
<p>Imagine a very long article with no line breaks. It's just like</p> <pre><code>sentence 1. sentence 2. sentence 3. sentence 4. sentence 5. sentence 6. sentence 7. sentence 8. sentence 9. sentence 10. sentence 11. sentence 12. sentence 13. sentence 14. sentence 15. sentence 16. sentence 17. sentence 18. sentence 1...
php
[2]
1,971,699
1,971,700
javascript round problems
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/588004/is-javascripts-math-broken">Is JavaScript&#39;s Math broken?</a> </p> </blockquote> <p>I've some problems with javascript.</p> <p>If I do this: </p> <blockquote> <p>alert(6.000 * 1.050);</p> </blockqu...
javascript
[3]
3,964,451
3,964,452
How to write text, number on image in asp.net in browser at run time
<p>i have an image , on that image i want to write text ,number draw something just as in paint in window operating system. all this functionlity will be done by user who is visiting site .</p> <p>thanks in advance.</p>
asp.net
[9]
22,822
22,823
How to hide a form
<p>I want to hide my form when I press a button inside the form. When I do this, something must be shown in the taskbar, and if I click that thing form will again come into visible state.</p> <p>Edit: I am not supposed to minimize or resize the form.</p>
c#
[0]
6,010,635
6,010,636
How to convert Asp.net Web Project to Website...?
<p>i have code in <strong>asp.net web Project</strong> ... i want to convert that code to <strong>asp.net web site</strong> .. can any one help me for convertion of my code....</p>
asp.net
[9]
1,752,484
1,752,485
file_put_contents - remote file create
<p>Can I create/write on a file on another host &amp; domain with file_put_contents() OR fwrite()?</p> <p>If I can, what permissions and other property should set on that host?</p> <p>Thanks ..</p>
php
[2]
4,513,364
4,513,365
Change animation in runtime
<p>I want to achieve simple tasks - before dialog is dismissed, I want to set different close animation depending on my logic (getWindow().getAttributes().windowAnimations = ...). For examle, I have 2 buttons on dialog and i want to slide left if first is pressed, slide right if second is pressed. I have created style ...
android
[4]
1,501,585
1,501,586
how to make a <div> appear in slow motion
<p>I want the javascript code to show a div in slow motion. </p> <pre><code>function showDiv(divID) { if(document.getElementById(divID).style.display=='none') { document.getElementById(divID).style.display='block'; } } </code></pre> <p>Here div appears, but not in slow motion. Can an...
javascript
[3]
5,124,937
5,124,938
Profile provisioning error when deploying to device in release mode
<p>When I build and deploy to my device in debug mode, everything works fine. But when I switch to release mode I get an error:</p> <blockquote> <p>Code Sign error: Provisioning profile '' can't be found</p> </blockquote> <p>And indeed, I have no idea where or why xcode is looking for this profile. Based on what I ...
iphone
[8]
2,667,591
2,667,592
stateful drawable not finding other drawables
<p>When creating a stateful drawable, I cannot find the other drawables (9-patch images) that are there - i get no "suggestions" ("intelliSense").</p> <p>But if I try to find drawables in another XML-file there is no problem.</p> <p>this is my stateful drawable</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?...
android
[4]
4,874,635
4,874,636
how to change two labels one by one with one button
<p>how to change two labels one by one with one button </p> <pre><code>-(IBAction)see :(id) sender { labl1.text=[NSString stringWithFormat:@"hi"]; labl2.text=[NSString stringWithFormat:@"helo"]; } </code></pre>
iphone
[8]
4,151,658
4,151,659
Jquery Loop through list and replace
<p>I'm trying to find a way to loop through a list with Jquery, and if a certain class has text of "Not Complete", replace the words "Not Complete" with a animated gif.</p> <p>Here's the list:</p> <pre><code>&lt;ul&gt; &lt;li class="name"&gt;Name&lt;/li&gt; &lt;li class="job"&gt;This&lt;/li&gt; &lt;li class="status"&...
jquery
[5]
1,098,554
1,098,555
calling jquery from ajax page
<p>I'm having trouble using jQuery with child page</p> <p>parent.html loads child.html like so: ie user clicks </p> <pre><code>&lt;a href="#" id="n-email"&gt; </code></pre> <p>JQuery</p> <pre><code>$('a#n-email').click(function() { $.ajax({ type: "GET", url: "/scripts/contact.js", dataType: "script" ...
jquery
[5]
1,502,938
1,502,939
using the querystring parameter in my where clause to generate insert operation
<p>here,using request.Querystring i find the companyname and job title of particular Job.when user logsin using username in texbix.i want the Companyname,jobtitle and username in the same row of a table.But when i generate my query it inserts the (companyName &amp; jobtitle) in the first row and username in second row...
asp.net
[9]
861,727
861,728
shutil.copy failure when the destination already exists and is read-only
<p>I am using shutil.copy to copy files from one location to another. If a file with the same name already exists in the destination location, it is normally ok and overwrites. However, if the destination is read-only, it throws a permission denied error.</p> <p>What is the most elegant way to deal with this? Is th...
python
[7]
3,444,180
3,444,181
if statement syntax in Javascript jQuery .each function
<p>(very new to JavaScript jQuery)</p> <p>Can an if statement contain a collection of other functions, specifically .each functions? If yes, is there something wrong with my implementation? </p> <pre><code>var string2 = "domain"; var mainpath = (window.location.href); if (mainpath.indexOf(string2)) { $("#topna...
javascript
[3]
4,005,691
4,005,692
Jquery: Trying to use .before or .after on an HTML string before appending to DOM
<p>I'm trying to insert HTML strings before and after an HTML string before writing the finished string to the DOM. Here's what I have so far:</p> <pre><code>var Hello = '&lt;p id="1234"&gt;Hello&lt;/p&gt;'; var $Hello = $(Hello); var $HelloGoodbye = $Hello.after('&lt;p&gt;Goodbye&lt;/p&gt;'); $('#content').append($H...
jquery
[5]
3,310,507
3,310,508
Python method doesn't run in class
<p>I am new to Python and can't seem to figure out why the .getRow method doesn't run. I created a DBMain class in dbMain.py and I am using pyTest.py to create the DBMain object to run getRow. When I run the debugger in Eclipse and DBMain's constructor does run but but when the getRow method is call nothing happens.<...
python
[7]
263,406
263,407
C# Check for a WorkSheet name of an excel file and rename it
<p>I need help in writing a C# code which basically should take excel file as input and check if the excel file contains a specific worksheet or tab and if yes rename that tab with another name. The program should support .net 3.5 and excel 2007. Please provide me some examples. Thanks in advance.</p>
c#
[0]
300,300
300,301
ViewSwitcher reset spinner selected position
<p>I have an Activity that use a ViewSwitcher. the view switches between a list view(child #1) and another view that contains 2 spinners(child #2) <br/> In activity onCreate using spinner.setSelection i set a specific position for spinner. Later if next view is requested i execute viewSwitcher.showNext and spinner sele...
android
[4]
2,344,995
2,344,996
Low-level streaming multimedia api Android 4.0
<p>I'm quite new to Android, so please be patient with me!</p> <p>In the highlights section for Android 4.0 (http://developer.android.com/sdk/android-4.0-highlights.html#DeveloperApis) it says the mediaplayer has a new low-level streaming api. It also says:</p> <p>"To support this low-level streaming, the platform in...
android
[4]
4,272,932
4,272,933
multiple jquerry document.ready on a page trough ajax
<p>I have a page which uses jQuerry document.ready, to populate the content of a div when a button is clicked.</p> <p>the content inside the div also uses jquery to create some hover preview of an image(also inside this div). But I can not use document.ready again. How should this be implemented?</p>
jquery
[5]
3,853,873
3,853,874
Device gets stuck after terminating bluetooth app
<p>I'm trying to implement an app that reads data from a bluetooth device (a GlobalSat BT-338 GPS receiver). I have followed the instructions from the <a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html" rel="nofollow">guide</a>.</p> <p>The greatest problem is that after connecting and then ...
android
[4]
3,498,830
3,498,831
Question about the .html() function of jQuery?
<p>Right now when I replace content inside the "foo" div, the new content appears right away. Is there a way to have the new content fade in slowly. </p> <pre><code>&lt;div class="foo"&gt;Initial content to be replaced&lt;/div&gt; $('div.foo').html('New content'); </code></pre> <p>I know about the fadeIn() function...
jquery
[5]
970,219
970,220
info/information icon for apple iphone
<p>That little "i" with a circle around it on the iPhone, like on the bottom right hand side of the screen in the Weather application, is there a way we can use that icon in the SDK? Thanks.</p>
iphone
[8]
4,209,709
4,209,710
Subset sum recursion with c++
<p>This is one of the solution of getting true or false from given set and target value</p> <pre><code>bool subsetSumExists(Set&lt;int&gt; &amp; set, int target) { if (set.isEmpty()) { return target == 0; } else { int element = set.first(); Set&lt;int&gt; rest = set - element; r...
c++
[6]
2,696,666
2,696,667
Change text numbers based on user input
<p>I want to be able to change some text numbers based on what the user inputs into a text input.</p> <p>See mock up below:</p> <p><img src="http://i.stack.imgur.com/t7kxv.png" alt="enter image description here"></p> <p>So when the user types in the per hour box I want the per annum figure to change.</p> <p>Is this...
javascript
[3]
1,594,980
1,594,981
my output [menu1,menu2,menu3] arraylist store in database i want remove[,] in php
<p>i can send arraylist android to php throug url . that arraylist can store in database also.but it include [ at start ]at end. i want to remove brakets first and last </p> <pre><code> here my code is given &lt;?php $arr=explode(',',preg_replace('/^.*\[(.*)\].*$/','$1',$_POST['menuname'])); ...
php
[2]
2,910,592
2,910,593
Popup bar in Mail application
<p>In the Android Mail application, when you click the checkbox next to an inbox message, a little bar with buttons (mark unread, delete, star) appears at the bottom of the screen. I'd like to do something similar, but I don't think I'm going about it the right way.</p> <p>What I've done is add a LinearLayout below m...
android
[4]
1,220,019
1,220,020
Novoda ImageLoader - loaded same image
<p>I'm using Novoda ImageLoader (https://github.com/novoda/ImageLoader) and when I use this loader in CursorAdapter everything is fine. But when I want to use without any Adapter in Activity with one ImageView, I get same image for different URLs.</p> <pre><code>//onCreate in Activity imageManager = MyApplication.g...
android
[4]
2,582,193
2,582,194
Accessing code behind functions from WebMethod
<p>I have a code behind page that has several method; one of them is a page method.</p> <pre><code>[WebMethod] public static void ResetDate(DateTime TheNewDate) { LoadCallHistory(TheNewDate.Date); } protected void LoadCallHistory(DateTime TheDate) { bunch of stuff } </code></pre> <p>The method LoadCallHistory wo...
asp.net
[9]
4,750,342
4,750,343
Beginner, trying to setup Python
<p>I'm a PHP programmer, but I want to learn Python. I'm a bit confused with how to actually execute a script. I've created test.py in my web server root, in the file I've written:</p> <pre><code>#!/usr/bin/python import jon.cgi as cgi import jon.fcgi as fcgi print "Content-type: text/html" print "hello world" </code...
python
[7]
1,496,751
1,496,752
c++ makefile importance and cross platform
<p>I'm new to c++ and I wanted to know few questions regarding makefile.</p> <p>1) Is writing makefile really important ? I mean there are many IDE's which does this automatically. Also, do people in programming job write makefiles or do they use automation?</p> <p>2) Should I learn GNU make or something else like cm...
c++
[6]
869,259
869,260
How to call external js file from jQuery on page load
<p>I have partial view for rating. This view is repeated multiple time on a single page. I have written the functional code for rating in an external js file. Now I want to call that js file each time rating view is loaded. Also I want to pass parameter to the external js file. I have tried the following method to do t...
jquery
[5]
568,980
568,981
Tabhost + fragments
<p>I've seen applications that contain panel with tabs that don't lead user to another activities. I guess, this is where TabHost + Fragment elements are used.</p> <p>Could you give your assumptions/caveats/links on implementing this functionality ? </p>
android
[4]
48,879
48,880
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in your code PHP
<pre><code>$sSql = "INSERT INTO comments ( post_id,name, email, website,content) VALUES (".$_POST[postid]",'".$_POST[name]"', '".$_POST[email]"', '"$_POST[website]"', '"$_POST[content]"')"; </code></pre> <p>I am getting the following error. Can anyone help to fix this? Parse error: syntax error, unexpected ...
php
[2]
2,921,124
2,921,125
what is the difference between &c and *c declaration?
<p>I don't understand: What is the difference between:</p> <pre><code>string Str ("Str"); char &amp;C = Str [0]; </code></pre> <p>and this:</p> <pre><code>string Str ("Str"); char *C = Str; </code></pre> <p>I don't understand this declaration actually:</p> <pre><code>char &amp;C = Str [0]; </code></pre> <p>?</p>
c++
[6]
3,855,684
3,855,685
How to write a getter and setter for a Dictionary?
<p>How do you define a getter and setter for complex data types such as a dictionary?</p> <pre><code> public Dictionary&lt;string, string&gt; Users { get { return m_Users; } set { m_Users = value; } } </code></pre> <p>This returns the...
c#
[0]
3,264,287
3,264,288
how to rotate an image in clockwise and counterclockwise in android?
<p>I'd like to know how to rotate an image in clockwise and counterclockwise with onTouch() event in android. And how to find out through onTouchListener either it is clockwise or counterclockwise rotation? Thanks</p>
android
[4]
3,817,408
3,817,409
App not working normally on Nexus 10
<p>i am facing a strange problem(it may seem illogical, i am facing it!)</p> <p>The problem is this part of code working well for all device but not working on my client's device NEXUS 10. The Code is:</p> <pre><code> Chronometer Timer = (Chronometer) findViewById(R.id.practicePageTimer); Timer.setOnChronomete...
android
[4]
4,615,954
4,615,955
Generting random (alphanumeric) string in PHP
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/48124/generating-pseudorandom-alpha-numeric-strings">Generating (pseudo)random alpha-numeric strings</a> </p> </blockquote> <p>How to genearte random string in PHP? Numbers are not a problem, but how to deal wit...
php
[2]
2,152,341
2,152,342
Iterate through a foreach loop backwards in PHP
<p>I have here a foreach loop that displays images from a database onto a webpage. What I would like to do is iterate through the foreach loop backwards, so the latest content is shown first on the webpage. Here is my code:</p> <pre><code>$sql = "SELECT COUNT(*) FROM 'UPLOADPICS'"; if ($sth = $dbhandle-&gt;query(...
php
[2]
5,642,676
5,642,677
jQuery delegate for TR, ignoring links
<p>I use event delegation to display ,on click,a popup with detailed info on each TR of a table. However, the TR has some actual links, and I need to avoid showing the popup if a link is being clicked. (so show the popups only when the user clicks on a portion of the TR that is not a link. can anyone point me into the ...
jquery
[5]
1,719,710
1,719,711
Creating a new ABRecord
<p>HI all,</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I am developing an application which relates with ABAddressBook. The issue is I want to create a new record and add it to the AddressBook. But in api docs , I didnt find any thing related to creating a new record .</p> <p>Best Regards, Mohammed Sadiq.</p>
iphone
[8]
2,874,121
2,874,122
php date manipulation
<p>I am designing a software for leave management in php.I actually need a simple function in php which takes a given date as parameter(i.e any date) and no of days to be added to it as the parameter and returns the resultant date.</p> <p>The function should accept date in 'YYYY-MM-DD' format and also return resulting...
php
[2]
1,446,778
1,446,779
Roles gestion with asp:hyperlink menu
<p>I have a little problem, I just made a menu with some asp:hyperlink structured in list. I just wonder if it is possible to filter some of these asp:hyperlink in relation with "roles" defined in the web.sitemap?</p> <p>For example :</p> <pre><code> &lt;ul id="topnav"&gt; &lt;li&gt;Dep &lt;s...
asp.net
[9]
662,247
662,248
stl vectors add sequence
<p>Iam using borland 2006 c++ </p> <pre><code>class A { private: TObjectList* list; int myid; public: __fastcall A(int); __fastcall ~A(); }; __fastcall A::A(int num) { myid = num; list = new TObjectList(); } __fastcall A::~A() { } int main(int argc, char* argv[]) { myfunc(); return 0; } void m...
c++
[6]
572,005
572,006
Precompiled + JIT in the same WebApp
<p>I have a website that is <code>precompiled</code>. That leaves the aspx pages and the bin directory to upload to the server. At times I need to make minor changes directly to the files on the server. Such as a spelling correction. If the change is in the aspx files I am able to directly edit the file and change. (no...
asp.net
[9]
2,215,060
2,215,061
Send custom object and a string to other activity
<p>I need send a custom object and a string to other activity. custom object(User) implemented Parcelable interface. I do like this:</p> <pre><code>Intent intent = new Intent("action") ; Bundle data = new Bundle() ; data.putString("EDIT", "EDIT"); data.putParcelable("DATA", user ) ; //user is custom object intent.putE...
android
[4]
2,059,885
2,059,886
Android Manifest - how to specify the 4 diff image files and where to put them in the app?
<p>I am looking at these Android instructions: <a href="http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size" rel="nofollow">http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size</a></p> <p>and I made the 4 image sizes, but how do I specify them ...
android
[4]
2,295,926
2,295,927
Which Android phone models support getNeighboringCellInfo()?
<p>I want to find a phone that can call getNeighboringCellInfo() without returning null.</p> <p>I'm owning a LG-P990 and unfortunately it fails. I have read some articles and find that all Samgsung phones including Nexus S don't work.</p> <p>Nexus one works, but it's difficult to find one now. Could anybody tell me w...
android
[4]
2,153,002
2,153,003
JSON-P and a GET resource?
<p>If a website operating on a domain other than my own supports get requests, like:</p> <pre><code>http://api.someothersite.com/v1/farms </code></pre> <p>There's no way for me to access it using JSON-P right, they would have to have support for it as a query parameter? Something like:</p> <pre><code>http://api.some...
javascript
[3]
5,675,015
5,675,016
extracting webpage content through php
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3577641/how-to-parse-and-process-html-with-php">How to parse and process HTML with PHP?</a> </p> </blockquote> <pre><code>&lt;body&gt; &lt;table align="center"&gt; &lt;? $ip=$_SERVER['REMOTE_ADDR']; $url...
php
[2]