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 |
|---|---|---|---|---|---|
943,569 | 943,570 | variable increment doesn't work | <p>When I launch my web page, increment doesn't work correctly!</p>
<p>It should go like this: <code>$i = from 1 to x (0,1,2,3,4,5,6 etc..)</code>.<br>
But instead it jumps over every step giving result of <code>(1,3,5,7 etc..)</code>.</p>
<p>Why is this code doing this?</p>
<pre><code><ul class="about">
... | php | [2] |
733,803 | 733,804 | shopping cart: delete doesn't work as supposed to | <p>I'm having some problem with the "delete" of my shopping cart script (is a case of a switch)</p>
<pre><code>case 'delete':
if ($cart) {
$items = explode(',',$cart);
$newcart = '';
foreach ($items as $item) {
if ($_GET['id'] != $item) {
... | php | [2] |
1,669,824 | 1,669,825 | Will a handler invoke handleMessage after onSaveInstance and before onResume and onRestart? | <p>I have a handleMessage method which calls FragmentTransaction's commit method. This commit method can only be called before the Activity's onSaveInstance method is called. I usually leave it up to the Handler to decide when to call handleMessage, assuming it will do it when the activity is ready. From Handler class ... | android | [4] |
4,153,276 | 4,153,277 | ideas for android applications | <p>i am an android application developer. I have developed 10 applications so far. I want to develop a funny and weird android application. Could anyone suggest any ideas..?</p>
| android | [4] |
3,167,116 | 3,167,117 | Can setDisplayShowTitleEnabled be set in xml to theme an ActionBar? | <p>I am trying to theme an <code>ActionBar</code> in xml rather than code. So far I have this:</p>
<pre><code><style name="TestTheme" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/TestActionBar</item>
</style>
<style name="TestActionBar" parent="android:s... | android | [4] |
4,390,647 | 4,390,648 | what will happen when an array is initialized more than once in c++? | <p>What happens to the memory location when I initialize a variable in c++ more than once? For example:</p>
<pre><code>LPWSTR sampleString = new whcar_t[10];
//some operations here
sampleString = new wchar_t[2];
//some operations here
sampleString = new wchar_t[25];
//some operations here
</code></pre>
<p>If I delete... | c++ | [6] |
5,918,413 | 5,918,414 | ProgressDialog doesn't appear | <p>I have the following in my Activity that I use to download a users films in their LoveFilm queue, but the ProgressDialog never appears.</p>
<pre><code>public class MyListActivity extends Activity {
SharedPreferences prefs;
ProgressDialog m_progressDialog;
Thread listThread;
User user;
private R... | android | [4] |
1,617,414 | 1,617,415 | exporting sql query result to excel | <p>In my asp.net application i wanted to export the SQL query result to Excel and that excel should be avaliable to the user as a download.
Please help</p>
| asp.net | [9] |
5,600,687 | 5,600,688 | How to create Google blogger type Sub Domain URL for blog | <p>I have to create a BLOG section in my website. If my site is www.abc.com, then I have to create different blogs like google blogger service.</p>
<p><a href="http://author1.abc.com" rel="nofollow">http://author1.abc.com</a></p>
<p><a href="http://author2.abc.com" rel="nofollow">http://author2.abc.com</a></p>
<p>I... | asp.net | [9] |
3,771,854 | 3,771,855 | How to access the Array of dictionary values in iphone | <p>I have Array of dictionary contents but i am not able to get the dictionary values.
Below is the dictionary format and in dictionary "resdata" and timestamp is dictionary key values. So i need to know how to get the timestamp values.</p>
<pre><code> <__NSArrayM 0x89426d0>(
{
resData = (
... | iphone | [8] |
4,862,702 | 4,862,703 | setTimeout alternative | <p>I want to run a function after delay a second , setTimeout works on browser, but on ipad, it sometimes just completely skip this function, perhaps it can't run several setTimeout at the same time becuase I have many other timeout functions, what is the proper alternative for setTimeout?</p>
<pre><code>that.movepict... | javascript | [3] |
4,950,999 | 4,951,000 | Is there a way to get the name of the top level PHP file from inside an included one? | <p>Let's say I'm writing a global logData method that wants to write to a log file that has the same name as the php that's running it, but with a .log extension.</p>
<p>I'm including this logging in a parent php with the intention of having it always write to log files that are whatever the *parent file name is (not ... | php | [2] |
4,032,927 | 4,032,928 | Split screen and scrolling with one side frozen | <p>I have searched the posts here for a specific answer to this question, and although there are many responses to split screen problems, I have found none that relate to what I want to do. I am not a developer, but I have one who is working for me. He is having difficulty finding a solution to this problem.</p>
<p>... | android | [4] |
4,787,960 | 4,787,961 | TextUtil.concat not preserves hyperlinks | <p>For example code below works right</p>
<pre><code>CharSequence text = TextUtils.concat( "before ", Html.fromHtml( "<b>This works</b>"), " after " );
myTextView.setText(text, TextView.BufferType.SPANNABLE );
</code></pre>
<p>If i put an hyperlink in the html code, i.e</p>
<pre><code>CharSequence text =... | android | [4] |
2,805,798 | 2,805,799 | php stop execution in runtime | <p>I have a script to scrape a page. When the script runs, it takes 3 hours to complete.
I want to build a button en when pressing it, the script must stop running.</p>
<p>Someone an idea?</p>
| php | [2] |
4,777,139 | 4,777,140 | Master Page reloads every Time | <p>I uses a Master Page in website,In master Page I create a menu by accordian pane and repeater,this master page is base for all the other page,
,when user click on the items of Menu its sub items are open and when the userclicks on the subitem then the page navigate according to the url
My problem is that,when the t... | asp.net | [9] |
1,675,947 | 1,675,948 | Alarm Manager events not fired (registering for notifications per day) | <p>I am writing an application which needs a homewidget showing the current date. For that I have used the alarm manager registering as follows:-</p>
<pre><code>Intent intent = new Intent(HomeScreenWidgetProvider.ACTION_UPDATE_DATE);
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetId);
intent.se... | android | [4] |
3,159,024 | 3,159,025 | jquery animate onStart callback | <p>Does jquery animate method have a onStart callback. I know about the complete callback but don't see anywhere to use other callbacks like onStart or initialize .</p>
<p>I want onStart callback because when I am calling animate(), it may not start immediately but queued due to previous animation not finished.</p>
| jquery | [5] |
905,701 | 905,702 | Creating ListView with Two text in one line | <p>I am creating an application to find near by places from user's current location. I want to create a ListView which will list all the place's name with distance from current location. I am able to to show the place name but how to show the distance in the same list view.</p>
| android | [4] |
1,341,670 | 1,341,671 | how to start google latitude services in background | <p>i have a app in which i wish to <strong>start google latitude</strong> services in <strong>background</strong>
i do <strong>not</strong> intend to start the <strong>foreground application</strong> along with it.</p>
<p>also tell me the permissions required in manifest</p>
<pre><code> Intent intent = new Intent(... | android | [4] |
332,171 | 332,172 | PHP won't echo out the $_POST | <p>got a small problem, this code</p>
<pre><code><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<?php
...
echo '<input name="textfield" type="text" id="textfield" value="Roger" />';
echo 'Hello, '.$_POST['textfield'].'<br>';
...
?></p>
</form>
</code></pre>
... | php | [2] |
4,307,005 | 4,307,006 | Best way to represent a tooltip on a table | <p>I have a table with lot of information that needs to display on each cell. I currently have images to represent the presence of information and on hover of these images, I would like to display additional info. I was impressed with the meetup.com and facebook style tool tips divs which display more information on ho... | jquery | [5] |
5,061,524 | 5,061,525 | How to remove divider for one row in custom list view in android | <p>can anybody tell How to remove divider for one row in android.I want to remove third row divider in android.In Custom List view there is line below for each row.I want to remove third row line </p>
<p>Thanks</p>
| android | [4] |
2,190,532 | 2,190,533 | contact saving result is not showing in javscript | <p>I wrote a phone number saver in JavaScript. Everything is working, but when I search a name or a number in the search box no result is being shown:</p>
<pre><code>function contact() {
var nam1=prompt("Please enter the name");
var num1=prompt("please enter the phone number");
}
contact();
function search()... | javascript | [3] |
1,938,506 | 1,938,507 | Pointers in stl::map | <p>I have query regarding std::map.</p>
<p>if I have a std::map like:</p>
<pre><code>std::map <T1, T2*> my_map;
T1 t;
T2* tt = new T2;
my_map[t]=tt;
</code></pre>
<p>who is responsible to clean this container, Will destructor of T2 will take care of it (T2* tt). Also if I want to retain this container through... | c++ | [6] |
2,659,109 | 2,659,110 | Querying the MediaStore is coming up with results that don't appear to match | <p>I'm new to Android development and I've been working on a custom music player for my own use. After quite a bit of searching, I finally tracked down some code I could use to search the MediaStore for music files. This is the code I'm using.</p>
<pre><code>Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
St... | android | [4] |
5,244,676 | 5,244,677 | Reading lines from a file in PHP | <p>I'm having problems reading lines from a text file in PHP.</p>
<p>I have this code:</p>
<pre><code>$a_path = "./data/answers.txt";
$answers = fopen($a_path);
$line_num = 1;
while ($line = fgets($answers))
{
for ($i = 0; $i < count($common_q_line_nums); $i++)
{
if (... | php | [2] |
2,645,223 | 2,645,224 | PHP Associative Array Duplicate Key? | <p>I have an associative array, however when I add values to it using the below function it seems to overwrite the same keys. Is there a way to have multiple of the same keys with different values? Or is there another form of array that has the same format?</p>
<p>I want to have
42=>56
42=>86
42=>97
51=>64
51=>52
etc ... | php | [2] |
205,785 | 205,786 | how to pass javascript variables from one javaScript file to another javascript file? | <p>I have two javascript files in one folder.I want to pass a variable one javascript file to another.what procedure should I use?</p>
| javascript | [3] |
4,049,703 | 4,049,704 | php get cookie set by another server | <p>I know I am asking how to get the cross-domain cookies and that is traditionally not possible but we have a situation where we had two servers <code>site1.domain.com</code> and <code>site2.domain.com</code> and we had a cookie based SSO which was working fine until the company decided to move <code>site2.domain.com<... | php | [2] |
1,844,800 | 1,844,801 | Comment Starting with /*! | <p>My editor (geany) changes the comment colour when the comments starts with <code>/*!</code>
Whats the difference between <code>/* ... */</code> and <code>/*! ... */</code></p>
| javascript | [3] |
2,842,767 | 2,842,768 | EditText: SoftKeyboard in Custom AlertDialog | <p>I've implemented a popup dialog with a EditText element inside. I can't get Softkeyboard shown on the screen and due to it unable to fill the EditText element. The problem is pretty well known, but still I can't get it working. I've tried different options for solving this issue - see onCreate method. Thanks.</p>
<... | android | [4] |
3,764,597 | 3,764,598 | not able to get contentsize.height value in viewwillappear for uitableview | <p>i have created uitable(tblPartySizeSummary) view programmatically.i am calling contentsize.height in viewwillappear.i am getting 0 for content size.height.i am trying to fix scroll if content size is less or equal to table view height
i have called all delegates and datasource method properly.
my code is as below :<... | iphone | [8] |
384,292 | 384,293 | how to implement selective property-visibility in c#? | <p>Can we make a property of a class visible to public , but can only be modified by some specific classes?</p>
<p>for example, </p>
<pre><code>// this is the property holder
public class Child
{
public bool IsBeaten { get; set;}
}
// this is the modifier which can set the property of Child instance
public class... | c# | [0] |
395,713 | 395,714 | android exit application completely and go to main applications screen | <p>i know that this question is asked many times, but really i can't understand the answer, i want to set button, when user click it i want to exit the application (also the carbage collector should remove the objects), and after exiting i want to go to the screen where the user found the application icon on mobile.</p... | android | [4] |
532,609 | 532,610 | javascript source path problem | <p>i have a problem to access some file from different source.
for example i have html folder and xml folder in same directory.
then from html file i wanna access xml file in xml folder.
in html i have script to call file
xmlDoc=loadXMLDoc("../xml/note.xml");</p>
<p>why this path doesnt work as well?</p>
<p>this is m... | javascript | [3] |
5,727,443 | 5,727,444 | How does a C++ object access its member functions? | <p>How does a C++ object know where it's member function definitions are present? I am quite confused as the Object itself does not contain the function pointers.
<code>sizeof</code> on the Object proves this.
So how is the object to function mapping done by the Runtime environment? where is a class's member function-... | c++ | [6] |
2,399,629 | 2,399,630 | Why does it cause a run-time error, character to int without initializing? | <p>First of all, I apologize about poor english.</p>
<p>At next simple program,</p>
<pre><code>void fx(int *a){
for(int i=*a; i<='Z'; i++)
printf("%c", i);
}
int main(){
int a;
scanf("%c", &a);
fx(&a);
return 0;
}
</code></pre>
<p>I entered a capital letter at run-time, it caused F... | c++ | [6] |
556,716 | 556,717 | In a loop, should I reuse a single class instance, or create new ones? | <p>for example</p>
<pre><code> Aclass myAclass = new Aclass();
for(int i=0;i<n;i++)
{
myAclass.load(i);
myAclass.do();
myAclass.clear() // clear the state of myAclass, rdy for next iteration.
}
</code></pre>
<p>or what if I embed the `myAclass.load() into the class constructor, and do sth li... | c# | [0] |
508,559 | 508,560 | how to get the result from a sub activity | <p>When user presses a button from a webview, I open a scrollview activity with some buttons and edittext fields.</p>
<p>Once the user enters the fields and presses the 'create' button, from scrollview activity, I want the results from the called activity to be accessible.</p>
<p>How can I do thi?</p>
| android | [4] |
1,787,308 | 1,787,309 | Scenario - How to improve user experience using preload of pages and delayed save of web pages in ASP.NET | <p>I have a ASP.NET website and say it has 2 pages. I am displaying these 2 pages as 2 tabs. Both pages have some input fields like check boxes, radio buttons, dropdowns.</p>
<p>When I move from tab-1 to tab-2, I have to perform the following operations.</p>
<ol>
<li><p>I need to save the data entered on tab-1. This ... | asp.net | [9] |
4,517,392 | 4,517,393 | How to refer to the application context from a broadcast receiver | <p>I'm using the usual technique of extending Application in order to store global constants. </p>
<p>So within my activities, I can simply do (in oncreate()):</p>
<pre><code>W = (WcmApplication) getApplicationContext();
</code></pre>
<p>However, this doesn't work for broadcast receivers:</p>
<pre><code>The method ... | android | [4] |
5,603,633 | 5,603,634 | have a variable in the value of a class property? | <p>in my class i have some properties. i want some values of these to have another property. but i noticed it wasnt possible.</p>
<p>code:</p>
<pre><code>$property = "my name is: $this->name";
</code></pre>
<p>generated an error.</p>
<p>i set the $this->name with the constructor.</p>
<p>could you somehow accomp... | php | [2] |
2,995,970 | 2,995,971 | Make a general input screen | <p>I have a large table with all kinds of strings and numbers, and a number of them have to be editable. The table is loaded from an object with getters and setters of course. </p>
<p>I want to create a general input screen with an edit text and an ok button; and use that to edit the fields. However, i can't get this ... | android | [4] |
4,053,549 | 4,053,550 | File type is returning null in chrome browser | <p>I have used file uploader(used PHP) in my application.</p>
<p>In FireFox, and Internet Explorer8 working when I try below statement.</p>
<pre><code>print $_FILES['upladed']['type'];
</code></pre>
<p>But in chrome I am getting null value(not printing anything).</p>
<p>If I use <code>var_dump($_FILES['upladed']['t... | php | [2] |
1,302,172 | 1,302,173 | Problem accessing childNodes[] | <p>Javascript/HTML noob here...please be gentle.</p>
<p>I'm learning my way around the DOM and Javascript and am using the following page to explore accessing nodes via Javascript:</p>
<p><a href="http://franklyanything.com/test2.html" rel="nofollow">http://franklyanything.com/test2.html</a></p>
<p>As you can see in... | javascript | [3] |
1,678,846 | 1,678,847 | Filtering a line out of a string c# | <p>I want to read a .txt file in c# and filter a line out of the string and only show that line. If the match is on the first line, i get a good output using streamreader.ReadLine. But if it's on the second line, i need to get it filtered. (i tought by creating a ReadLine loop?)
Thanks in advance</p>
<pre><code> ... | c# | [0] |
3,671,762 | 3,671,763 | Replace "while" with "for" in given python script | <p>I have written following script in python which works fine:</p>
<pre><code>from sys import argv
script, filename = argv
def brokerage(cost):
vol = 100
tamt = cost*vol
br = (((cost*0.1)/100)*vol)*2
rc = (0.0074*tamt)/100
stt = (0.025*tamt)/100
std = (0.004*tamt)/100
stb = (11*br)/100
... | python | [7] |
4,572,119 | 4,572,120 | PHP: print success or error message on submit? | <p>hey guys,
i wonder how i can solve that:
i have a lot of forms on my website. whenever i submit a button i would like to print a message on the following page. when a form is submitted the page simply refreshes. what's the easiest way to do that or how is it normally done?</p>
<p>thanks for the help</p>
| php | [2] |
603,569 | 603,570 | Whats the point of having a conversion constructor | <p>After reading about the conversion constructor I came up with the conclusion that it is simply a class constructor that has one parameter. This <a href="https://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/cplr384.htm" rel="nofollow">page</a> explains it a lot h... | c++ | [6] |
5,727,684 | 5,727,685 | How to play a wmv file in my asp.net webpage? | <p>Is there a way to play a wmv file in my asp.net webpage? Thanks!
Will an end use need install some control when he access the webpage?</p>
| asp.net | [9] |
3,418,418 | 3,418,419 | How to find out that Facebook App is selected when using Intent to share in Android | <p>How to find out that Facebook App is selected when using Intent to share text message in Android? Is there any way to do that? Thanks.</p>
| android | [4] |
5,087,243 | 5,087,244 | How do i persist this change of layout in database using JQuery Portlet? | <p>I just saw this cool feature of JQuery which is JQuery Portlet</p>
<p><a href="http://jqueryui.com/demos/sortable/portlets.html" rel="nofollow">http://jqueryui.com/demos/sortable/portlets.html</a></p>
<p>I was just wondering how do i persist this to my database? so that it's available even for future sessions to a... | jquery | [5] |
4,628,267 | 4,628,268 | Learning Java, how to type text on canvas? | <p>I'm reading a book by Eric Roberts - Art and science of java and it got an excersise that I can't figure out - </p>
<p>You have to make calendar, with GRect's, 7 by 6, that goes ok, the code part is easy, but also you have to type the numbers of the date on those rectangles, and it's kinda hard for me, there is not... | java | [1] |
5,812,001 | 5,812,002 | import class defined in same module file? | <p>I have a module file called <code>mymodule.py</code>, which contains the following code:</p>
<pre><code>class foo:
def __init__(self):
self.foo = 1
class bar:
import foo
def __init__(self):
self.bar = foo().foo
</code></pre>
<p>The <code>__init__.py</code> file in the same directory ha... | python | [7] |
3,285,515 | 3,285,516 | C++: sorting struct based on one of each property | <p>I am a Java and C# programmer. Recently, I am working on C++ project. I am having a problem of how to write the sample code following in C++. The sample code following is to sort a property of a struct:</p>
<pre><code>public struct Person
{
public string name;
public int age;
}
</code></pre>
<p>Add some Pe... | c++ | [6] |
3,561,192 | 3,561,193 | Does this snippet cause an infinite loop? | <p>I'm not sure. I created this code that crashes only on device < 2.3.x. Is this code causes a loop? </p>
<pre><code>SharedPreferences prefs3 = PreferenceManager.getDefaultSharedPreferences(this);
listener = new SharedPreferences.OnSharedPreferenceChangeListener() {
public void onSharedPreferenceCh... | android | [4] |
695,004 | 695,005 | CallBack won't work, please help | <p>Somehow my callback doesn't work...</p>
<p>from a sending activity:</p>
<pre><code>Intent intent=new Intent();
intent.setAction("Constructor.rob.call");
sendBroadcast(intent);
</code></pre>
<p>receiving activity:</p>
<pre><code>public class popup extends Activity {
/** Called when the activity is first crea... | android | [4] |
5,711,988 | 5,711,989 | fancybox slider script not working in i7 and i8 | <p><a href="http://174.120.232.253/~priya/Parthvi/wordpress/NobelConcert/" rel="nofollow">http://174.120.232.253/~priya/Parthvi/wordpress/NobelConcert/</a></p>
<p>in this link we use Fancybox slider and it is not working in i7 and i8 and refrence link for this slider.
<a href="http://webdesignandsuch.com/fancymoves-j... | jquery | [5] |
5,654,001 | 5,654,002 | Header response "403 Forbidden" with cURL, file_get_contents() and fopen() | <p>I'm hoping you'll be able to help me.
The site is currently online and I can access it fine, I can't seem to understand why this isn't working.</p>
<p><code>file_get_contents()</code> and <code>fopen()</code> return an error saying the following:</p>
<pre class="lang-none prettyprint-override"><code>PHP Warning: ... | php | [2] |
5,851,761 | 5,851,762 | Append HTML and Text into a LI | <p>How can I append a blurb of text into my first <code>LI</code>s'</p>
<pre><code> <ul id="topnav">
<li class="mainNavFirst"><a href="/solutions">Solution</a>
<li class="mainNavLast"><a href="/contact">Contact Us</a></li>
</ul>
</code></pre>
<p>I want ... | jquery | [5] |
2,204,047 | 2,204,048 | Trigger event on return in C++ | <p>I want to execute some function right before the return of another function. The issue is that there are multiple returns and I don't want to copy-paste my call before each of them. Is there a more elegant way of doing this? </p>
<pre><code>void f()
{
//do something
if ( blabla )
return;
//do so... | c++ | [6] |
693,348 | 693,349 | Can I run Wine on an Android slate? | <p>I would like to run a small Windows program on an Android slate. It runs just fine under Wine in Ubuntu, but I am unsure how to install & run Wine on the Android slate. </p>
<p>Sorry if it's not strictly a programming question. If you want it to be so, I could rephrase it as "will I have to write my Delphi code... | android | [4] |
2,910,292 | 2,910,293 | Grab the content of a div,which is inside another div | <p>I am doing an application where I want to grab the content of div,which is inside a div.In my application I want to grab the content of <code><li></li>,</code>which is inside <code><ul class="snippet-list"></ul></code>.The ul class is inside <code><div data-analyticsid="related"></di... | php | [2] |
4,791,930 | 4,791,931 | How can i Access a control into a class? | <p>I Have a Gridview in page.aspx. this gridview i want to pass as a parameter to the constructor of a class1.cs.Can anybody tel me, How can this be done? </p>
| asp.net | [9] |
3,567,307 | 3,567,308 | exception in thread 'main' java.lang.NoClassDefFoundError: | <p>The following program is throwing error:</p>
<pre><code>public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
CLASSPATH C:\Program Files\Java\jdk1.6.0_18\bin\
Path C:\Program Files\Java\jdk1.6.0_18\bin\
JAVAHOME C:\Program Files\Java\jdk1.6.0_... | java | [1] |
2,970,269 | 2,970,270 | Android: where to find xhdpi menu icons? | <p>I use menu icons provided in the android sdk, like the the info icon below. All the platforms prior to version 14 provided these in ldpi, mdpi, and hdpi. Platforms 14 and 15 provide xhdpi icons, but they no longer include the menu icons (because they have been replaced with actionbar friendly icons). </p>
<p>So,... | android | [4] |
480,938 | 480,939 | c++ programming with linux | <p>i am receiving a buffer with float values like -157.571 91.223 -165.118 -59.975 0.953 0 0.474 0 0 0.953 0 0.474 0.474 0 5.361 0 0 0.474 0 5.361...but they are in characters...now i want to retrieve one by one value and put it in a variable...can any one help me please...i have used memcpy but no use..if i am copyi... | c++ | [6] |
3,781,025 | 3,781,026 | Ignoring first item of string Array | <p>How to ignore the first <code>item</code> of <code>string[]</code> in case of <code>if (item=="")</code> my code like</p>
<pre><code>string[] temp3 = clearstring.Split(new string[]{@",","\r\n","\n","]", "\"", "}"}, StringSplitOptions.None);
temp.Close();
StreamWriter sW = new StreamWriter(Npath);
foreach (string ... | c# | [0] |
1,111,640 | 1,111,641 | Removing default menu in Video Player | <p>I am using a video player in my app in which i dont want the default options like play, stop and progress seek bar when i click the video since i am going to stream a live video on that.Can anyone help me how to remove that.Thanks</p>
| android | [4] |
93,666 | 93,667 | Change in behaviour & generation of nullreference exception | <p>I made this program 2hr ago and it ran quit well when i confronted this to presaved .xls file. But when i closed that and started new instance,it started generating null refrence exception why??plz explain.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
usin... | c# | [0] |
2,720,723 | 2,720,724 | Def doesn't work | <p>Not sure why this code doesn't work.</p>
<pre><code>class convert_html(sublime_plugin.TextCommand):
def convert_syntax(self, html, preprocessor)
return "this is just a " + preprocessor + " test"
def convert_to_jade(self, html):
return self.convert_syntax(html, "jade")
def run(self, edit):
with o... | python | [7] |
3,365,311 | 3,365,312 | use php dom parser inside another class - ERROR: Call to a member function on a non-object | <p>I'm using PHP simple dom parser <a href="http://simplehtmldom.sourceforge.net/manual.htm" rel="nofollow">http://simplehtmldom.sourceforge.net/manual.htm</a>.
I'm able to successfully use it and remove an html tag with specific id by doing </p>
<pre><code>$html = str_get_html('<div><div class="two">two&... | php | [2] |
1,141,673 | 1,141,674 | How to go to the "root" directory of a website? | <p>There is a PHP website into a Linux computer webserver. In a particular PHP file , which is located in a deep subdirectory of this site , I want to go to the first directory of the site. How to write the PHP code to achieve that ?</p>
| php | [2] |
4,494,979 | 4,494,980 | Android Animate an Image View vertically | <p>Hi i have an image view position and the bottom of the page i'm wanting to animate so it moves down does anyone know how to do this? currently when i run it nothing happens</p>
<p>here is what i have tried so far</p>
<p>heres my animation</p>
<pre><code><set xmlns:android="http://schemas.android.com/apk/res/an... | android | [4] |
1,455,779 | 1,455,780 | scope issue inside jquery plugin | <p>How would I get to call the method showAlert() I have tried storing a reference to the plugin with this and $(this) inside the self variable but none seem to work. I'm calling the showAlert from inside the button click event.</p>
<pre><code> (function($){
//Add your default settings values here
var set... | jquery | [5] |
864,022 | 864,023 | invert filename order script | <p>I have a set of files which the names follow this pattern: xxx - 001, xxx - 002 ..... xxx - 700</p>
<p>What I would like to do it`s a python script which I can invert the order of the name of the files, doing the xxx - 700 to be the xxx - 0001!</p>
| python | [7] |
2,309,938 | 2,309,939 | How does Android application framework communicate with Libraries? | <p>From Android architecture, application framework (Content Providers,Resource manager. etc) are written in Java. But the libraries(Surface Manager, 3D libraries etc) are in C.</p>
<p>How do these layers communicate between to give the final output? </p>
| android | [4] |
4,055,953 | 4,055,954 | Android Save Canvas into Bitmap | <p>I have been struggling on converting a Canvas to a Bitmap. <br />
Here is my code on the onDraw function. I have tried many variations and I still didn't get an answer. <br /></p>
<pre><code> @Override
public void onDraw(Canvas canvas) {
super.onDraw(canvas);
Bitmap bitmap = Bitmap.createBitmap(canvas.g... | android | [4] |
2,493,195 | 2,493,196 | Splitting an string into a string array.? | <p>I am facing a problem while executing a sql query in C#.The sql query throws an error when the string contains more than 1000 enteries in the IN CLAUSE .The string has more than 1000 substrings each seperated by ','.</p>
<p>I want to split the string into string array each containing 999 strings seperated by ','.</... | c# | [0] |
2,216,127 | 2,216,128 | Best method views by date | <p>I got a little confused about this problem. I am trying to make a views system for my website.</p>
<p>I got a 770 rows of articles in my mySQL database and I'm trying to do a views system to know which article got the most views and when. (Today, 3 Days Ago, This week, This month)</p>
<p>I tried to do something li... | php | [2] |
3,192,838 | 3,192,839 | jQuery Code working in FF, doesnt in Chrome | <p>I have the following jQuery Code that works fine in FF and IE. It doesnt work in Chrome and I cant figure out why. :(</p>
<p>Im trying to change the background-image of an element with this.</p>
<p>Any help is appreciated!</p>
<pre><code> $(".category-nav").find("a").each(function(index){
if($(this).cs... | jquery | [5] |
2,898,845 | 2,898,846 | How to create marquee in Android using only java code without xml | <p>I need to create Marquee in Android using only java code without using xml? Please provide me with resources to program in Android using only Java code without using xml.</p>
| android | [4] |
4,399,313 | 4,399,314 | jQuery select the same OPTION on three SELECT drop downs with one action | <p>I have 3 SELECT drop down</p>
<p>SELECT 1</p>
<pre><code><select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</code></pre>
<p>SEL... | jquery | [5] |
4,908,654 | 4,908,655 | Is it true that Javascript, before ECMA-262 or ECMA 5.1, doesn't have pseudo-classical inheritance or prototypal inheritance support? | <p>The reason is that, although we can use pseudo classical inheritance in Javascript, we actually have to implement our own <code>extend</code> or <code>inherit</code>.</p>
<p>What about the prototypal inheritance -- I think it does have the feature that if <code>foo.bar</code> is used, if <code>bar</code> is not a p... | javascript | [3] |
1,100,371 | 1,100,372 | Is there a list of popular jars to avoid for Android dev? | <p>I'm experimenting with porting an open source tool to Android. I quickly discovered that there are some dependencies that are no-go for Android, particularly xml-apis.jar and xercesImpl.jar. That's OK, because with a modern Java I shouldn't really need those anyway because the built-in XML parser is good enough. But... | android | [4] |
5,408,076 | 5,408,077 | Manually getting the output instead of output redirection in cmd line | <p>I have a C++ program which has the prototype of the main function as follows:</p>
<p><code>int main(int argc, char * argv[])</code></p>
<p>The code hasn't been written by me, but this is a single C file available <a href="http://tartarus.org/~martin/PorterStemmer/c.txt" rel="nofollow">here</a>.
When I compile thi... | c++ | [6] |
4,080,014 | 4,080,015 | How to remove %0A from the url | <pre><code><code>
<form action="" method="get">
<table cellspacing="0">
<tbody>
<tr>
<th>Check</th>
<th>Country</th>
<th>Check</th>
</tr>
<?
while($row = mysql_fetch_array($result))
{ ?>
<tr>
<td>
<input type='checkbox' onclic... | php | [2] |
3,012,246 | 3,012,247 | How do I make a picture seem like a radiobutton? | <p>I am attempting to use my own buttons to make an overlay at the bottom of the screen. When a button is pressed it should light up (kind of how a radio button turns green when selected) and it should take you to a new activity while keeping the overlay intact. </p>
<p>There are five buttons that should be put on a b... | android | [4] |
1,669,842 | 1,669,843 | Need logic for summing numbers using Checkboxes in Android | <p>can any one suggest me the logic to sum the numbers using the checkboxes in Android. For instance if checkbox1 have number 100 assigned to it, checkbox2 is assigned with number 200, checkbox 3 is assigned with 300 and checkbox4 is assigned with number 400.</p>
<p>If I select checkbox1 and checkbox3 I should get a T... | android | [4] |
5,147,227 | 5,147,228 | How to remove decimal sign from number but preserve all digits? | <p>How to convert this <code>20,00</code> into <code>2000</code> in javascript ?
Basically how to remove decimal sign but keep all digits?</p>
| javascript | [3] |
5,123,803 | 5,123,804 | how to start voice record for specific period of time | <p>as new to android and had a requirement to start voice recording for specific period of time and the time will get by the button click by the user choice i had design the UI with several button with some second of time.so while clicking the button the time will set and recording will start.Is anything is there in an... | android | [4] |
4,098,547 | 4,098,548 | Android caching method | <p>In my application there is a set amount of images that need cached. It is about 12 - 15 images I will need cached tops. What I have done is store the image in a file in a directory on the device like this.</p>
<pre><code> FileOutputStream o = new FileOutputStream(getFilesDir().getAbsolutePath()
+... | android | [4] |
3,529,346 | 3,529,347 | Margins of a LinearLayout, programmatically with dp | <p>Is it possible to set the Margins of a LinearLayout, programmatically but not with pixels, but dp?</p>
| android | [4] |
3,677,188 | 3,677,189 | Make header permanently visible | <p>In my custom list activity, I have added header in my list activity, it works fine when the list is populated, when it is empty the header also gone, so is there any option to place a permanent header in the list activity.</p>
<p>My XML code is,</p>
<pre><code><LinearLayout
xmlns:android="http://schemas.android... | android | [4] |
480,951 | 480,952 | Take two string arguments and return a string with only the characters that are in both of the argument strings in python | <pre><code>def same_letters():
word1 = ''
word2 = ''
word1 = str(input("Please enter first word:"))
word2 = str(input("Please enter second word:"))
if word1 != word2:
for letter in word1:
for character in word2:
word1 = word1.replace(character, "")
print(word1)
</code></pre>
<p>This is wh... | python | [7] |
4,560,476 | 4,560,477 | add a new item to vector and shift it remaining part to right | <p>I am trying to put a new item to vector, and shift remaining items. How can I do that ?</p>
<p>Ex </p>
<pre><code>vector -------------------------------------------------------
| 1 | 2 | 3 | 4 | 5 | 9 | 10 | 15 | 21 | 34 | 56 | 99 |
-------------------------------------------------------
... | c++ | [6] |
2,966,292 | 2,966,293 | use get_declared_class() to only ouput that classes I declared not the ones PHP does automatically | <p>A little curious, but I want to make an array out of the classes that I have declared using something like this</p>
<pre><code>foreach(get_declared_classes() as $class)
$c[] = $class;
print_r($c);
</code></pre>
<p>the only problem with that is that I get something like on top of my loaded classes:</p>
<pre>... | php | [2] |
1,365,574 | 1,365,575 | Slow creating Select List with Ajax in ie 8 | <p>I'm creating a select List from a getJson call.</p>
<p>in firefox / chrome the select list is generated very quickly but in ie (tested in ie8) it takes some seconds to create the options.</p>
<p>There is approx 2000 options being added to the select list</p>
<p>My code is below</p>
<pre><code>function getPractit... | jquery | [5] |
3,495,926 | 3,495,927 | how can I drag a file to an exe I create (drag and drop over the Icon) and have it as an argument when the exe start running? | <p>how can I drag a file to an exe I create (drag and drop over the Icon) and have it as an argument when the exe start running ?</p>
| c# | [0] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.