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 |
|---|---|---|---|---|---|
52,505 | 52,506 | how to delete element created with jquery? | <p>i have write this block of code in jquery to create three element after some events </p>
<pre><code>$('body').append(
tmp= $('<div id="tmp"></div>')
);
$('<div id="close" />').appendTo("#tmp");
$('<div id="box-results" />').appendTo('#tmp');
</code></pre>
<p>this three elements are crea... | jquery | [5] |
3,573,109 | 3,573,110 | Python - How to extract the last x elements from a list | <p>If the length of a python list is greater than a given value (say 10), then I want to extract the last 10 elements in that list into a new list.
How can I do this?
I tried getting the difference between len(my_list) - 10 and use it as: new_list = [(len(my_list) - 10):] which does not work</p>
<p>Any suggestions?
T... | python | [7] |
5,807,909 | 5,807,910 | How to get information about the satellites from android? | <p><br>
I am trying to get the satellite information from the android and wrote this following code which is not giving any results, could any one point out why is it so? <br></p>
<pre><code>public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.gps);
... | android | [4] |
1,193,357 | 1,193,358 | What is meaning of new int[25,2]? | <p>What is meaning of using the second parameter with a comma in the below code?</p>
<pre><code>int *num = new int[25,2];
</code></pre>
| c++ | [6] |
4,862,642 | 4,862,643 | Changing between multiple views with a spinner | <p>I have an activity that has a spinner with a selection of multiple custom view objects that are defined in xml layout</p>
<p>Each view object has wall coordinates for a map that is drawn on the screen</p>
<p>The problem I am facing is when I try to view other maps(view objects).The only view drawn on the screen is... | android | [4] |
2,320,666 | 2,320,667 | How to keep a Div Opened after its clicked while navigating between pages | <p>I was thinking if there is anyway to implement cookies using jquery rather than any server-side languages. Do you think jquery would be an appropriate way for that or the second option ? </p>
<p>I appreciate if you could show me a proper reference or tutorial for that.
Thank you anyway !</p>
| jquery | [5] |
1,614,756 | 1,614,757 | Gridview Column Width in ASP.net | <p>I'm looking to set the width of several columns to 0px initially and then controlling the width with jQuery when the table is rendered based on some user interaction on the front-end. </p>
<p>So far, I have</p>
<pre><code><asp:BoundField DataField="Col1" HeaderText="col1" >
<HeaderStyle HorizontalAlign="C... | asp.net | [9] |
5,817,772 | 5,817,773 | Can i write an object of class in text file in C# | <p>how can i write an object of a class in a text file not in binary and how can i delete an object from a file. Please help me.</p>
| c# | [0] |
5,111,676 | 5,111,677 | Save Uploaded Text File to Web Server | <p>I have my users uploading a text file which then gets processed by my application. Once the processing is done, I would like to save a copy of this text file somewhere on my server for future reference. Currently, the uploaded text file stays in the PHP temp folder until it is closed by my app.</p>
<p>What's a simp... | php | [2] |
3,950,814 | 3,950,815 | is there anyway i could put this javascript code in head tag? | <p>i have few div's in my form which needs to be hidden at first i.e onLoad. the problem is when i put that into <code><head></code> tag it will try and execute first giving out the error that div has value null, and when i include it below the form it works perfectly. for example</p>
<p>this code works fine giv... | javascript | [3] |
222,147 | 222,148 | Getting Values from DatePicker and TimePicker | <p>I have 2 datepickers and 2 timepickers on a screen and also a submit button. The user selects the start date, start time, end date, and end time. The program then takes these values and stores them into variables, however the variables only return the default values for these controls. Is there anyway to get the upd... | android | [4] |
592,803 | 592,804 | Passing data from an Activity to its View | <p>This is a newbie question. What is the best way to pass an object from an Activity to its View? I know the View has access to its context. Are Intents still the way to go? Or is there something else?</p>
<p>EDIT: Did not know the details about the data mattered :)</p>
<p>The data is user information obtained from ... | android | [4] |
1,298,427 | 1,298,428 | How to get latitude and longitude of a location which user clicked on it | <p>I'm going to get latitude and longitude of a location on map which user has clicked on and do some calculation on them.
BTW I shall say that I'm working with emulator and I don't have access to mobile phone and I have to run it in emulator.
Please help me what to do!</p>
| android | [4] |
1,286,366 | 1,286,367 | get array of sentences | <p>I've got a textarea with several senteces.(. is a divider). How to get array of sentences?
I mean for example. <code>hello world. it's hello world.hello.</code> and the result array is - <code>[hello world], [it's hello world], [hello]</code></p>
| javascript | [3] |
1,664,678 | 1,664,679 | os.walk without hidden folders | <p>I need to list all files with the containing directory path inside a folder. I tried to use <code>os.walk</code>, which obviously would be the perfect solution.</p>
<p>However, it also lists hidden folders and files. I'd like my application not to list any hidden folders or files. Is there any flag you can use to m... | python | [7] |
1,756,328 | 1,756,329 | How to know which file is initializing the object? | <p>Is it possible to know in which file the object is being initialized? </p>
<p>For example, I want to prevent the class from running if it's in X file. I know it defeats the purpose of being re-usable, etc etc. I don't know if it's possible in PHP or possible at all. </p>
| php | [2] |
151,166 | 151,167 | How to decrease the UINavigation Bar size and how to separate the back button from navigation bar | <p>I am developing one application.In that I need to decrease the UINavigationBar size, For that I use the below code.</p>
<pre><code>CGFloat navBarHeight = 10.0f;
CGRect frame = CGRectMake(50.0f, 0.0f, 320.0f, navBarHeight);
[self.navigationController.navigationBar setFrame:frame];
</code></pre>
<p>But when I go... | iphone | [8] |
5,399,796 | 5,399,797 | How to pass the username and password for accessing a webservice from an iPhone application? | <p>How to pass the username and password for accessing a webservice from an iPhone application?</p>
| iphone | [8] |
345,893 | 345,894 | How can I find out my Java version? | <p>I am downloading and installing grails, and I need to set up some java system variables. How can I find out what my Java version is?</p>
| java | [1] |
955,859 | 955,860 | Key event not firing | <p>My Javascript: </p>
<pre><code>$("#test").keypress(function(e){
if (document.all){ var evt = event.keyCode; }
else if(e.which) { var evt = e.which; }
else { var evt = e.charCode; }
if (evt == 13){ // with any other key, the alert dos not fire
... | jquery | [5] |
545,158 | 545,159 | Find every Sunday between two dates | <p>I have <code>$fromdate</code> and <code>$todate</code> variables. I want a function that can calculate the dates of each Sunday existing in between <code>$fromdate</code> and <code>$todate</code> in PHP.</p>
| php | [2] |
4,416,194 | 4,416,195 | handling broadcast reciver | <p>I have an app which has MainActivity(without gui.. please just flow with it:) )</p>
<p>now this MainActivity running a service, this service using sendBroadcast() in order to comunnicate with the MainActivity..
now ofcourse i need to <strong>registerReceiver</strong> in the <strong>onResume</strong>() of the MainAc... | android | [4] |
4,011,615 | 4,011,616 | If I need serializable should i use concrete List (e.g. ArrayList) or (Serializable)List? | <p>We have a discussion in office and cannot understand which approach is better</p>
<p>I have a class (SomeClass) with some method which receives Serializable object. The signature is following:</p>
<pre><code>public void someMethod(Serializable serializableObject){
...
}
</code></pre>
<p>And I need to call thi... | java | [1] |
680,969 | 680,970 | Python Unicode Conversions | <p>How to do the following conversions in Python?</p>
<pre><code>"杭州" to "%BA%BC%D6%DD"
"大连" to "%B4%F3%C1%AC"
</code></pre>
<p>Thanks.</p>
| python | [7] |
2,181,503 | 2,181,504 | how to display images in thumbnile form in a view using elc image picker controller | <p>hi i am using elc image picker controller to select multiple images and the code is as follows</p>
<pre><code>- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info {
[self dismissModalViewControllerAnimated:YES];
CGRect workingFrame = scrollview.frame;
w... | iphone | [8] |
5,406,538 | 5,406,539 | How do I track recursion depth? | <p>I have a recursive function that I am troubleshooting. I want to output the recursion depth...i.e. how many times the function calls itself.</p>
<p>If I use a static variable that increments at the top of the function and decrements at the bottom.</p>
<p>Will this accurately give me the depth level?</p>
<pre><co... | c++ | [6] |
5,683,119 | 5,683,120 | Is the JavaScript Stack Overflow comment character "limiter" avaliable somewhere? | <p>Is the JavaScript code that Stack Overflow uses to display how many characters you can add to your comment available somewhere or is it "private", as it is not available for download legally? I'm looking to do something quite similar.</p>
<p>The reason I ask is mostly because I don't want to rewrite something ... | javascript | [3] |
2,075,946 | 2,075,947 | Calling methods in the JWinAPI | <p>In Java, what is a call to an API? How to call a method of an API?</p>
<p>I like to call methods in the <a href="http://sourceforge.net/projects/jwinapi" rel="nofollow">JWinAPI</a>.</p>
| java | [1] |
1,801,438 | 1,801,439 | Is 'bool' a basic datatype in C++? | <p>I got this doubt while writing some code. Is 'bool' a basic datatype defined in the C++ standard or is it some sort of extension provided by the compiler ? I got this doubt because Win32 has 'BOOL' which is nothing but a typedef of long. Also what happens if I do something like this:</p>
<pre><code>int i = true;
</... | c++ | [6] |
1,367,122 | 1,367,123 | javascript to add source URL | <p>I am using the following code in CEWP (content editor webpart) so after taking a survey user will be redirected to thank you page. the redirecting is not working. Am I missing something? (user able to take survey and newform.aspx never closes)</p>
<pre><code><script type="text/javascript" src="https://ajax.googl... | javascript | [3] |
5,515,993 | 5,515,994 | UITableView clear data | <p>How to clear whole tableview data and reload with new one?</p>
| iphone | [8] |
388,573 | 388,574 | how to skip(do not allow) image and video tag from string using php | <p>i have use following code to skip image tag from string ,
how do i skip image and video both ??</p>
<p>The following code skip image tag.</p>
<p>use code:</p>
<pre><code>$content = $row['Description'] ;// comes from database table
$content = preg_replace("/<img[^>]+\>/i", " ", $content);
echo $content... | php | [2] |
4,557,032 | 4,557,033 | Second alert not working | <p>I have this function which calls values from document id's and some variables are defined.</p>
<p>It all seems to work fine besindes the variables already defined and the second alert box isnt appearing, any idea why?</p>
<pre><code>function Calculate() {
var ContentMinutes = document.getElementById ("ContentMinut... | javascript | [3] |
5,099,138 | 5,099,139 | Can we have a part of a scrollable Listview (implemented using hashmap) non-scrollable? | <p>Im using textview and edittexts to make a listview and using a hashmap to copy paste the layout. Now how do i get the values from the edit texts ? I tried it but it doesn't work because everytime we're using a new hashmap variable to create a copy and i didn't find anything like an array of hashmap variables.. Help ... | android | [4] |
4,599,594 | 4,599,595 | How do I randomly generate HTML hex color codes using JavaScript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1484506/random-color-generator-in-javascript">Random Color generator in Javascript</a> </p>
</blockquote>
<p>I have some data I'd like to display in different colors and I want to generate the colors randomly if... | javascript | [3] |
74,637 | 74,638 | How to check the Sub Dir's | <p>Am using M.Babcock code get the file list based on the "pattern" of the file name but the code below does the job but its not lookin the files in sub directories. Any help how to look the file patterns in Sub Dir's also</p>
<p>I know if use the below code will do the job</p>
<pre><code>DirectoryInfo[] DI = new Dir... | c# | [0] |
2,038,988 | 2,038,989 | How to pass Value from UIViewController to UIView? | <p>i have creted a UIView Subclass:</p>
<pre><code>@interface GraphClass : UIView
{
NSString *str;
}
</code></pre>
<p>And i have assigned GraphClass: to a View of an UIViewController Class named:</p>
<pre><code>@interface GraphViewController : UIViewController
{
}
</code></pre>
<p>Now i want to pass NSString... | iphone | [8] |
158,776 | 158,777 | Surely this jQuery shouldn't work | <p>I have written a piece of code by mistake that works. Now i need it explained to me because its confusing me how its working:</p>
<pre><code>$(altsValue[i].css('border', '5px solid red'));
</code></pre>
<p>'altsValue' is an array of Objects, constructed like this: <code>altsValue.push($(this));</code></p>
<p>'i' ... | jquery | [5] |
1,776,824 | 1,776,825 | Need of optimized code for hide and show div in jQuery | <pre><code><div id="p1" class="img-projects" style="margin-left:0;">
<a href="project1.php"> <img src="image1.png"/></a>
<div id="p1" class="project-title">Bar Crawler</div>
</div>
</code></pre>
<p>On mouse-over I want to add an image with opacity and make the project-titl... | jquery | [5] |
5,699,171 | 5,699,172 | Flashing Screen in Android | <p>I made a android project, now my project has a need to set up a alarm type, like blinking screen for which user can see that screen is blinking,</p>
<p>Flashing screen means, screen back light is turn off/on regularly.</p>
<p>Like we make a thread and after every 500 milliseconds we toggle the screen light.</p>
<... | android | [4] |
375,456 | 375,457 | Probability of getting a duplicate value when calling GetHashCode() on strings | <p>I want to know what is the probability of getting duplicate values when calling the GetHashCode() method on string instances. For instance, according to: </p>
<p><a href="http://ashishkhandelwal.arkutil.com/index.php/csharp/gethashcode-method-hashcode-and-hashtable-behavior-deep-level/" rel="nofollow">http://ashish... | c# | [0] |
2,923,649 | 2,923,650 | What does PHP's underscore function do? | <p>Quick question.</p>
<p>What does this function do? _()</p>
<p>Can you link me to the relevant documentation as searching for "_" is nigh on impossible.</p>
<p>Thanks.</p>
| php | [2] |
693,860 | 693,861 | C#.Net setup project globalization issue | <p>I have a c#.net project where I have implemented the globalization for Arabic,English, and French. It works fine as far as I run its exe or run it through VS 2010. But when I add the same project output to a .Net (VS 2010) setup project and I install it, the globalization doesn't work at all. I have tried it in both... | c# | [0] |
4,979,799 | 4,979,800 | Show loading image while PHP work | <p>I want to show an loading GIF while my PHP-script is working, small ex:</p>
<p>HTML CODE WITH LOADING.GIF</p>
<p>PHP CODE </p>
<pre><code>sleep(5)
echo("<script>location.href = 'http://www.google.com';</script>");
</code></pre>
<p>If i run this example the page will load in 5 seconds, then show me th... | php | [2] |
3,398,295 | 3,398,296 | Whe webViewDidStartLoad was hit several times when loading one website? | <p>I just found that when the WebView is loading www.abc.com, and webViewDidStartLoad were hit for several times. Why not only one?</p>
| iphone | [8] |
4,328,135 | 4,328,136 | What's the easiest way to iterate on a file's lines, keeping a counter? | <p>What's the cleanest code that iterates on the lines of a text file, while simultaniously increamenting a counter?</p>
<p>I understand that with multiple assignment, there's a cleaner syntax than</p>
<pre><code>i = 0
for line in f:
...
++i
</code></pre>
| python | [7] |
5,606,822 | 5,606,823 | android activity crashing in | <p>i have an activity that crashes randomly after the device resume from
a long period of sleep, the activity is forced to be landscape mode
only. When the device resumes from sleep, the activity seems to be
redrawing itself in portrait mode, occupying half the horizontal view,
then have to force close it.
any idea?</... | android | [4] |
5,721,980 | 5,721,981 | Change background image when app rotates | <p>I am making an universal app, but only support rotation on iPad so here it goes:</p>
<p>I have a view that has a image as background. When the user rotates the iPad I fade this portrait image out in the <code>willRotateToInterfaceOrientation</code> and replaces the image with a landscape image in <code>didRotateFro... | iphone | [8] |
3,192,126 | 3,192,127 | I don't want $_SESSION to stop after a long period of time | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/514155/extending-session-timeout-in-php">Extending Session Timeout in PHP</a> </p>
</blockquote>
<p>I have php sessions where the problem I could have is that if for a long time I do not use the application, if ... | php | [2] |
246,218 | 246,219 | Android style background shape | <p>can anyone tell me how to achieve this actionbar background on the bottom? im dawing for hours but dont get it.</p>
<p>look here:</p>
<p><img src="http://i.stack.imgur.com/jXGKh.png" alt="screenshots"></p>
| android | [4] |
1,138,570 | 1,138,571 | How to convert PHP class file to unreadable form | <p>it is on the server. The file was hacked by someone.. </p>
<p>So I think it will convert to unreadable form.</p>
<p>Is it possible or any alternate solution for this?</p>
<p>Please help</p>
| php | [2] |
1,420,443 | 1,420,444 | Sending BigDecimal using intent get and put on android | <p>I am trying to send a bigdecimal number from my main app to the widget.
Currently, it is set up as a float and works like this:</p>
<pre><code>float Current = intent.getFloatExtra("Current", 0);
</code></pre>
<p>Is there a way to do it for BigDecimal for example?</p>
<pre><code>BigDecimal current = intent.getBigD... | android | [4] |
4,734,769 | 4,734,770 | Making text change colors with jquery (non-stop flashing) | <p>What's the easiest way to make text toggle between two colors/classes <strong>continuously</strong> with jquery?</p>
| jquery | [5] |
3,134,624 | 3,134,625 | Assigning default argument values | <p>Using this script:</p>
<pre><code>color = 'blue'
def say_color(color):
print 'The color is: ' + color
say_color()
</code></pre>
<p>Here, I am trying to allow <code>say_color</code> to be processed without passing an argument, and the result being the default color (blue). However, if a color is specified, it... | python | [7] |
648,422 | 648,423 | iphone memory allocations and leaks | <p>How to solve memory allocation in ios ?give me the right way to solve memory issues and memory leaks.</p>
| iphone | [8] |
244,946 | 244,947 | difference between len() and .__len__()? | <p>Just curious,</p>
<p>Is there any difference between calling <code>len([1,2,3])</code> or <code>[1,2,3].__len__()</code> ? If there is no apparent difference, what is done differently behind the scenes?</p>
<p>Thanks</p>
| python | [7] |
4,704,834 | 4,704,835 | Having Android Problems with Sun javax jars | <p>I have been working on a Android Web Services program that uses a number of classes from Sun's javax libraries. The eclipse IDE is barking "Attempt to include a core class (java.* or javax.* ) in something other than a core library." My application is an Android application and I am not creating a core library. I... | android | [4] |
604,171 | 604,172 | How to create an overlay view in Android which toggles on button click | <p>I want to create and overlay view when a button is clicked. Something like clicking smileys button in Whatsapp.</p>
<blockquote>
<p>I have created a framelayout with default visibility as GONE and added an onclick listener on smiley button to toggle its visibility.</p>
</blockquote>
<p>My layout XML:</p>
<pre>... | android | [4] |
3,607,955 | 3,607,956 | Determine File Exists using getFileStreamPath--sorta working | <p>I am trying to determine if a file exists in my app folder on the sdcard. I check for the folder existence first and handle that just fine. Next I want to see if the file exists so I tried the following but got the "contains a path seperator"</p>
<pre><code>File file = getBaseContext().getFileStreamPath(ChildFolder... | android | [4] |
74,593 | 74,594 | Is there any way to get current directory using only javascript and without regular expressions? | <p>Is there any way to get only the current directory (the directory containing the webpage in use), without using regular expressions to breakdown the url? </p>
| javascript | [3] |
4,640,360 | 4,640,361 | Get Data For Java Script Code | <p>I have a piece of code in javascript which calculates something , </p>
<p>There is a label in asp.net application , How can I get the value of it from javascript ? </p>
<p>here is i have tried :</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.... | asp.net | [9] |
4,094,510 | 4,094,511 | How does density value calculate in android | <p>Can anybody explain me what formula android use to calculate screen density? Waiting for your responds)))</p>
| android | [4] |
5,968,938 | 5,968,939 | Class method loses private modifier after cast | <p>I need to set callback, but I dont want to make it global function, I dont need it public aswell, so I've made it private. Wondering, is it the right way to go.</p>
<pre><code>class A // button object from window library. I wont change this class
{
public:
typedef void (*fptr)();
void set(fptr p)
{
... | c++ | [6] |
732,311 | 732,312 | Exact usage of Response.RedirectPermanent | <p>I read many blogs, but I cannot understand the exact usage of <code>Response.RedirectPermanent</code>. Is it relevant to SEO only, or it is useful for site performance as well?</p>
| asp.net | [9] |
3,880,844 | 3,880,845 | what does "var" mean in C#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/41479/use-of-var-keyword-in-c">Use of var keyword in C#</a> </p>
</blockquote>
<p>what does "var" mean in C#?</p>
| c# | [0] |
5,263,441 | 5,263,442 | Problem with std::multimap | <p>I've got the following :</p>
<pre><code>enum Type
{ One = 0, Two};
class MySubClass
{
private:
MySubClass(); // prohibited
MySubClass(const MySubClass&); // prohibited
MySubClass & operator (const MySubClass&); // prohibited
public :
MySubClass(int x);
};
class MyClass
{
MyClass(int x) : m_x(new Sub... | c++ | [6] |
1,128,126 | 1,128,127 | NZEC in spoj FACKT | <p>I was trying to solve this problem <a href="http://www.spoj.pl/problems/FACKT/" rel="nofollow">http://www.spoj.pl/problems/FACKT/</a>, and I keep getting a Non-Zero Exit Code (NZEC). How exactly do I figure out what to change in the code to overcome this?</p>
<p>Here is the code</p>
<pre><code>import math
import s... | python | [7] |
3,624,777 | 3,624,778 | PubSub.js multiple subscriptions, or a different way to handle awaiting on multiple callbacks | <p>I am trying to figure out the best way to handle this scenario. Basically I want the flow to work like this:</p>
<p>1.) Get configuration data from server (async)</p>
<p>2.) Run doStuff() after configuration data is received (async)</p>
<p>3.) Run postResults after doStuff() completes</p>
<p>Currently I seem to ... | javascript | [3] |
3,545,005 | 3,545,006 | Close div, jump back to top | <p>I have a JS script that shows and hides a div when clicked. What I am trying to do is when the close link at the bottom is clicked it jumps back up to the open link. Can't figure it out and everything I searched wants to remove this from happening.</p>
<p>Open link:</p>
<pre><code>Click <a href="javascript:Show... | javascript | [3] |
626,617 | 626,618 | can not import util | <p>while reading the code for django/forms/widgets.py i saw </p>
<pre><code>from util import flatatt
</code></pre>
<p>to dig deeper i tried to import util module in python shell in my terminal but i got a </p>
<pre><code> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
Impor... | python | [7] |
5,819,542 | 5,819,543 | Click function no longer working | <p>I have the following page that works as I want it to, all the JS is in the tags and no inline JS : <a href="http://www.ninjatrader-support.com/leins/SS/index.html" rel="nofollow">http://www.ninjatrader-support.com/leins/SS/index.html</a>
When I put this in production, and switched from the table to a div layout the... | jquery | [5] |
1,357,302 | 1,357,303 | How to notify controller that download finished? | <p>I have a class that downloads an image with NSURLConnection. I'm new to ios so i was wondering how I can "notify" my ViewController that download has finished ? What "tool's" should I use ? </p>
<p>Clarification:</p>
<p>I have implemented all the callbacks of NsUrlConnection, my problem is how to notify ViewContro... | iphone | [8] |
3,068,072 | 3,068,073 | Directory indicator on windows and on Linux. | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3548775/platform-independent-paths-in-java">Platform independent paths in Java</a> </p>
</blockquote>
<p>I make a program but it save some files in a directory that the user selects.</p>
<p>I need to make this ... | java | [1] |
4,402,210 | 4,402,211 | Video inside android app | <p>I would like to add one video to the main screen of my application but I want to user to be able to do other things in the app meanwhile. Think about some video animation or flash movie for some website that you can watch the video and look on other things in the website.</p>
<p>lets say I have buttons and more thi... | android | [4] |
1,396,715 | 1,396,716 | Call a particular function (function pointer) on an object | <p>If I have a function pointer</p>
<pre><code>MyFunctionPointer myFunctionPointer;
</code></pre>
<p>I can pass it parameters like:</p>
<pre><code>myFunctionPointer(1,2);
</code></pre>
<p>I am looking to do something similar, but call a particular function on an object. I currently have something like this:</p>
<p... | c++ | [6] |
88,144 | 88,145 | insert null value when no selected value from ddl | <p>I had ddl which determine gender and user can donot choose any value from ddl so i tried to check if user didnot select any value from ddl inser null value or any value in database i made that but error apear(Procedure or Function 'InsertRegisteration' expects parameter '@Gender_Id', which was not supplied).any one ... | c# | [0] |
2,093,502 | 2,093,503 | How to copy String array | <p>Hey Guys I have some difficulties which is I want to copy string array value into new string array
for example :</p>
<pre><code> String[][] array = new String[3][2];
array[0][0] = "hello";
array[0][1] = "1";
array[1][0] = "guys";
array[1][1] = "2";
array[2][0] = "good ";
array[2][1] = "3"... | java | [1] |
3,372,066 | 3,372,067 | Videos not showing in webview (Android) | <p>I am implementing a web application for Android. In this application, I open a HTML page on webview. This HTML page contains videos, images and text. When I call this page, all stuff are showing except for videos. What can I do? Please help me.</p>
<p>I am using this code for this problem:</p>
<pre><code>WebView w... | android | [4] |
2,379,354 | 2,379,355 | Connecting application to a google store | <p>Now I have my application which reads magazines, books and articles. Now I want to be able to connect to the store from my app and get this items. </p>
<blockquote>
<p>How do I do this?</p>
</blockquote>
<p>I am pretty certain people may have already posted this but I just can't seem to write the correct phrase ... | android | [4] |
121,067 | 121,068 | Possible to declare function of enumerated type? | <p>Just wondering if it is possible to declare a function of an enumerated type in C++</p>
<p>For example:</p>
<pre><code>class myclass{
//....
enum myenum{ a, b, c, d};
myenum function();
//....
};
myenum function()
{
//....
}
</code></pre>
| c++ | [6] |
3,367,054 | 3,367,055 | Decrypt Cookie using JavaScript | <p>I have a site where the cookies are written in Classic ASP and it uses some algorithm to encrypt the customer id into a Cookie. The cookie customer_id value looks something like:</p>
<blockquote>
<p>4194A58C93B8455179B6C5B4CB0CF6E9A21CB09F71C6306BCCB735B59553A48A</p>
</blockquote>
<p>Is there any way to decrypt ... | javascript | [3] |
5,316,950 | 5,316,951 | Is it worth it to code different functionality for users with javascript disabled? | <p>I'm currently building a project and I would like to make use of some simple javascript - I know some people have it disabled to prevent XSS and other things. Should I...</p>
<p>a) Use the simple javascript, those users with it disabled are missing out</p>
<p>b) Don't use the simple javascript, users with it enabl... | javascript | [3] |
5,209,935 | 5,209,936 | How to stop a full screen default activity on android? | <p>I have made my android application as the default application.</p>
<p>Now i rebooted my tablet while the application was running. </p>
<p>So when the tablet restarts, my application starts and there is no way to stop the application. So i cant get to the home screen.</p>
<p>How can i clear the default activity as... | android | [4] |
3,614,066 | 3,614,067 | How to install my android application on my friend's mobile without using eclipse | <p>I have developed an application in Android 2.3.3. I want to install it in my friend's android mobile and test it. </p>
<p>one way is to take my computer and plug his device and run the application and it will be installed automatically. </p>
<p>If i send him the .apk file, and if he launches the .apk file, will it... | android | [4] |
4,089,433 | 4,089,434 | How do I change directory back to my original working directory with Python? | <p>I have a function that resembles the one below. I'm not sure how to use the os module to get back to my original working directory at the conclusion of the jar's execution. </p>
<pre><code>def run():
owd = os.getcwd()
#first change dir to build_dir path
os.chdir(testDir)
#run jar from test director... | python | [7] |
3,464,685 | 3,464,686 | Offering the user a custom selection of databases to download/use | <p>I have a simple app with a database file (created with sql lite db browser) which is then copied into the /data/ folder on execution of the app.</p>
<p>Now, I have another app which requires up to 10 databases. Instead of including the whole App with the 10 DBs, I want to allow the user to select which of the datab... | android | [4] |
3,640,214 | 3,640,215 | Web app running on Android: how to prevent text selection? | <p>I have a mobile app (HTML, Javascript) that is supposed to run on iPhone and Android smartphones.
To make it look more like a real app and prevent accidential text selection, I'm cathing the <code>touchStart</code> end <code>touchEnd</code> events and handle them. This prevents text selection just fine.
On Android h... | android | [4] |
3,665,262 | 3,665,263 | Keep a toggled div open via anchor in url | <p>I have the following code which works well to open / close / toggle a series of divs.</p>
<pre><code>$("a").click(function(){
var myelement = $(this).attr("href")
$(myelement).slideToggle("slow");
$(".toggle:visible").not(myelement).hide();
});
</code></pre>
<p>What I would like is for the div to remain open... | jquery | [5] |
276,113 | 276,114 | page load from javascript | <p>i m building a website in asp.net using c#..
can nyone tell me ..is it possible to either call a pageload function or load a page from javascript</p>
| javascript | [3] |
367,588 | 367,589 | Create variable names dynamically | <p>I'm creating some variable names dynamically in a while loop:</p>
<pre><code>while($count < $agendaItemsCount) {
$tr_mcs_agendaitem_[$count]_1 = get_post_meta( $post->ID, '_tr_mcs_agendaitem_' . $count . '_1', true );
++ $count
}
</code></pre>
<p>But this code is causing an unexpected string parse ... | php | [2] |
814,607 | 814,608 | Expanding my ASP.NET solution to multiple sites ensuring maintainability | <p>I have a web site written in ASP.NET WebForms. I need to distribute the web site platform i have developet to another website - and this looks like i may have to do this a couple of times more. </p>
<p>Each website is running on its own SQL Server database and have a different layout. But each website shares codeba... | asp.net | [9] |
5,609,185 | 5,609,186 | How to cut a dynamic string | <p>I have a string like this <code>one two three four</code>. I want to cut this string and make four strings like <code>one</code>, <code>two</code>, <code>three</code> and <code>four</code>. How can I do this? </p>
<p>The string is a dynamic string. The four words of this string change, therefor I want to do somethi... | android | [4] |
1,864,747 | 1,864,748 | ASP.net server side ListBox controls - get value when a control is disabled | <p>In our project we use ASP.net server-side controls (not my idea).<br>
We have some client-side code that might disable some of those controls.<br>
However, I'm unable to retrieve the <code>SelectedValue</code> of listboxes which have been disabled: </p>
<p>If <code>ListboxA</code> is disabled on the client side, t... | asp.net | [9] |
1,297,119 | 1,297,120 | How to group a list of commands to time them as a unit? | <p>I have a long command saved in a file.<br>
I also have a list of input files, which I want to pass to this same command,<br>
so I have a <code>%s</code> specifier at two places.</p>
<pre><code>$ cat https-tcp-session.txt
rm -f /tmp/A.raw /tmp/B.raw /tmp/result.raw; \
rwfilter --sport=443 --proto=6 --pass=stdout %s... | python | [7] |
3,276,773 | 3,276,774 | PHP file upload and passing diectory | <p>Hi am sorry but I have difficulties solving the problem. What i want to do is to upload file and then pass the directory but its nbot working the way I expect. The upload goes to a server to a file called 'uploads' but I cannot pass the directory , cuz its what I need, in later decode function:
Here's the code for u... | php | [2] |
2,220,931 | 2,220,932 | is it possible to show GUI (pannel + TextBox) through Class? | <p>is it possible to show GUI (pannel + TextBox) through Class ?</p>
<p>i need that from my class i can show pannel and textbox on the main Form</p>
<p>thank's in advance</p>
| c# | [0] |
4,703,367 | 4,703,368 | Interesting subjects for very experienced developers (Java) | <p>I was asked to mail a weekly "interesting subject" to my fellow developers (all very experienced) - a short summary (2-3 paragraphs), some "how is this relevant to us" information, and a link or two for further reading.</p>
<p>Now, as I've said before, these are very experienced people - some more than me. I was th... | java | [1] |
4,324,354 | 4,324,355 | How to get only <li> tag's innnerHTML from the content having html code | <p>I am new to javascript. Can anyone provide idea how to get li tag innerHTML in array. for example:</p>
<pre><code>var content = '<li>Item 1</li>
<li>Item 2
<ol>
<li>Item 3</li>
<li>Item 4</li>
</ol>
</li>
<li>Item 5</li>'
</code></pre>
<... | javascript | [3] |
3,938,866 | 3,938,867 | jQuery bind on form submit is not working | <p>I have a form like this:</p>
<pre><code><form class="category_form" id="category_form" method="post">
<p class="ui-widget">
<label for="birds">Birds: </label>
<input id="birds" /> <a id="add_category" href="#">Add Category</a>
</p>
<p class="ui-widget" st... | jquery | [5] |
872,177 | 872,178 | Copying an image from url using java | <p>I am trying to download an image from URL. I use the <em>Apache Commons</em> library: </p>
<pre><code>org.apache.commons.io.FileUtils
.copyURLToFile(
new URL(
"https://lh3.ggpht.com/AXYMUV5cpne2vE9U3X8x87HgrbwijwiG50_yOnehU2MUPKDoJky-BKFOPZzZ07... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.