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 |
|---|---|---|---|---|---|
5,804,318 | 5,804,319 | delete a pointer getting AccessViolationException | <p>I have a class pointer declaration:</p>
<pre><code>MyClass* a;
</code></pre>
<p>In destruction method I have:</p>
<pre><code> if (a)
{
delete a;
a= NULL;
}
</code></pre>
<p>I got a problem when delete the pointer a:</p>
<pre><code>Attempted to read or write protected memory. This is o... | c++ | [6] |
3,552,721 | 3,552,722 | Jquery: syntax for inserting a function | <p>I'm trying to integrate an animation by using the bezier path plug-in and I can't seem to implement it right.</p>
<p>Stripped down, here's what I have:</p>
<pre><code> $('#next2btn').live('click', function(){
$(this).attr('id','next3btn');
$('#content2').show(300, function() {
$('#acc... | jquery | [5] |
1,331,054 | 1,331,055 | Confused by Use of ~ in ASP.NET | <p>I am programming for the first time in ASP.NET. It's proven to be very easy and I'm really enjoying it. One feature I like is that, within a web page, I can reference files from root by using the tilde (~) character and then the rest of the path. However, this does not seem to be consistent. For example, it work... | asp.net | [9] |
441,139 | 441,140 | Why is it that an overridden method can't throw a new checked Exception | <p>I have two questions :</p>
<ol>
<li>What is the purpose of the constraint that an overridden method can't throw a new checked exception?</li>
<li>Why it is allowed that an overridden method can only throw all or none, or a subset of the checked exceptions that are specified in the throws clause of the overridden me... | java | [1] |
4,418,718 | 4,418,719 | opening a link in <body onload="" | <p>I guess this is possible, but I don't know how.</p>
<pre><code><a rel="width[640];height[480];autostart[true];loop[true];title[Google]" class="jcepopup" href="http://www.google.nl">Aanbieding</a>
</code></pre>
<p><strong>Can it be done linke this?</strong></p>
<pre><code><body onload="javascript: l... | javascript | [3] |
701,365 | 701,366 | HIde word with JavaScript | <p>I am not developer so I need help from you guys.</p>
<p>My Problem is simple.</p>
<p>I just want javascript to hide word before "<strong>.</strong>"</p>
<p><strong>Example :</strong> </p>
<p>say for <strong>google.com</strong></p>
<p>I just want word "<strong>.com</strong>" tobe print.</p>
<p>Please note that... | javascript | [3] |
1,687,193 | 1,687,194 | setTimeout function isn't called? | <p>To put a delay on a menu onmouseover effect, setTimeout is one of the options. But when I try it, the function isn't called.</p>
<p>HTML:</p>
<pre><code> <li><a href="#"
onmouseover="mopendelay('menu_proj')"
<li>
</code></pre>
<p>JavaScript:</p>
<pre><code>// open hidden layer
func... | javascript | [3] |
3,691,943 | 3,691,944 | JQuery - Get value out of an input field inside hidden div | <p>Will <code>$('#some-field').val()</code> return "something" or empty string? I assume it would return the value regardless if the div is visible or not. But I have been getting empty string. Any idea?</p>
<pre><code><div style="display:none;">
<form>
<input id="some-field" type="text" val... | jquery | [5] |
4,203,469 | 4,203,470 | Find and element by ID and redirect after specific time | <p>I am using the following JS to target an element with an ID of "someID" then redirect after 6 seconds. I only want this to work on a page where this element ID is present, but right now it redirects all pages it is applied to. What am I doing wrong here?</p>
<pre><code>if (!document.getElementById("someID")) {
... | javascript | [3] |
1,793,503 | 1,793,504 | Starting other Applications with Java | <p>Is it possible to start other application that are installed on the system with my java app and pass a file as a parameter to them? I have a client which receives videos from a server and I want my client program to start, lets say the VLC player with the file that I received. How do I manage to do that?</p>
| java | [1] |
3,436,165 | 3,436,166 | Nested exceptions? | <p>Will this work?</p>
<pre><code>try:
try:
field.value = filter(field.value, fields=self.fields, form=self, field=field)
except TypeError:
field.value = filter(field.value)
except ValidationError, e:
field.errors += e.args
field.value = revert
valid = False
break
... | python | [7] |
5,519,315 | 5,519,316 | When should I use the syntax "(function() {...})();"? | <p>My query is used in cases that "(function() {...})();" Given that I am not a plugin.
For example "http://piecesofrakesh.blogspot.com/2009/03/downloading-javascript-files-in.html" </p>
<pre><code>(function() {
var s = [
"/javascripts/script1.js",
"/javascripts/script2.js"
];
var sc = "script"... | javascript | [3] |
2,434,194 | 2,434,195 | Where to search for checkstyle rules xml, PMD rules xml (ready to use) | <p>Where to search for checkstyle rules xml, PMD rules xml (ready to use) suitable for web application code review</p>
| java | [1] |
5,392,915 | 5,392,916 | store form values in URL params | <p>I have a d3 chart with some <code><input></code> elements for configuration. I'd like these configuration options to update URL params as they're changed, and obviously when the page is loaded these URL params should be used as default values.</p>
<p>This seems like a basic piece of functionality on a lot of ... | jquery | [5] |
3,819,395 | 3,819,396 | What does s.strip() do exactly? | <p>I was told it deletes whitespace but </p>
<pre><code>s = "ss asdas vsadsafas asfasasgas"
print(s.strip())
</code></pre>
<p>prints out</p>
<pre><code>ss asdas vsadsafas asfasasgas
</code></pre>
<p>shouldn't it be <code>ssasdasvsadsafasasfasasgas</code>?</p>
| python | [7] |
1,930,416 | 1,930,417 | Change the Color of Highlighted text in Android | <p>I'm not sure that this is possible, perhaps someone can set me straight. I have an EditText View in an android application that has white text on a blue background. When the text is selected (via a long press and the edit dialog), I'd like have the highlight be white and change the text color to be black. Annoyingly... | android | [4] |
1,457,062 | 1,457,063 | Determine if process com.android.browser is running | <p>How can I determine if the process <code>com.android.browser</code> is running?</p>
| android | [4] |
5,040,657 | 5,040,658 | java add hours to system date and in yyyyMMddHHmmss format | <p>I am getting input as some date/time in hours(integer) eg: 2 hrs
I want to add this input hours to system date in yyyyMMddHHmmss format. How can i do this?</p>
| java | [1] |
1,052,470 | 1,052,471 | PHP and mysql multiple select dropdown | <p>I am trying to populate drop down from mysql table. I am able to populate it successfully. But when I try to retrieve the data after submitting the form, I am not able to retrieve selected values. Can anyone help me on this?</p>
<pre><code>$authorDB=new AuthorDB();
$myArr =$authorDB->retrieveAuthors();
echo '<... | php | [2] |
748,938 | 748,939 | jQuery wrapping of a tr td with jQuery | <p>I'm trying to wrap my table with a new tr and then all the td's inside the wrapping tr.</p>
<p>My code is as follows:</p>
<pre><code>$('.ccbnBgTblTxt td').wrap('<tr class="new"/>');
</code></pre>
<p>What I'm trying to do is.. this</p>
<pre><code><tr class="new"><td></td><td></td&... | jquery | [5] |
200,758 | 200,759 | How to parse file with system characters? | <p>I have file like below:</p>
<blockquote>
<p>’”ЪNUL$13adc1e6-465e-11e1-a8f8-047d7b47de33“®188.254.116.66®188.254.116.67®188.254.116.68ЁРЈСЂРЅР°ЪNUL
ed4bac9f1f1bf6812e76ef21a78fe9c0”ЪNUL$13b2fd14-465e-11e1-a8f8-047d7b47de33“®188.254.116.66®188.254.116.67®188.254.116.68°РљРѕРјРёСЃСЃРёСЏЪNUL
194bb53b6970bcc08ca74... | python | [7] |
5,623,604 | 5,623,605 | list with non-unique index | <p>I've always thought the any index should be unique, but I think it's not true at least for SQL Server as shown in the following post:</p>
<p><a href="http://stackoverflow.com/questions/4332982/do-clustered-indexes-have-to-be-unique">Do clustered indexes have to be unique?</a></p>
<p>Recently I had to store a very ... | c# | [0] |
1,505,801 | 1,505,802 | PHP Background Process Still Affecting Page Load | <p>So I have found a number of tutorials/guides for running a php script as a background process, but no matter which code I use, the process still appears visible in the browser.</p>
<p>What I am doing is triggering a script that may take 5-10 seconds to run (relies on a third party API). I put the trigger at the ver... | php | [2] |
5,097,265 | 5,097,266 | save state of TextViews in a Listview embedded inside another Listview from an Sqlite Database | <p>Good day,this might be difficult to explain so please bear with me. </p>
<p>1) i have a Listview A</p>
<p>2) and a nested Listview B(from an ArrayList) in Listview A which gets called via a menu button in A</p>
<p>3) An sqlite database is used to store and retrieve values in A.</p>
<p>4) The nested Listview B is... | android | [4] |
2,201,475 | 2,201,476 | PHP shuffle not working like expected on my nested array | <p>I have a nested array of arrays, and I want to shuffle the inner arrays. My code looks like this (simplified):</p>
<pre><code>$a = array(array('banana', 'peach'), array('ding', 'dong'), array('oh snow'));
foreach ($a as &$arr) {
shuffle($arr);
}
var_dump($a);
</code></pre>
<p>The var_dump outputs this:</p>... | php | [2] |
3,325,249 | 3,325,250 | placeholder-not-working-for-internet-explorer if input type is password, still its showing the ********* | <p>I got 1 answer at <a href="http://stackoverflow.com/questions/8628522/placeholder-not-working-for-internet-explorer">Placeholder not working for Internet Explorer</a></p>
<p>and i am using this code,</p>
<pre><code>window.onload = function() {
var arrInputs = document.getElementsByTagName("input");
for (... | javascript | [3] |
938,453 | 938,454 | What does least significant byte mean? | <p>I have to implement a method that writes a byte to an <code>ostream</code> object. Let's just called this <code>ostream</code> object <code>strobj</code>. I also have a bit buffer used to store a byte of data, let's call it:</p>
<pre><code>char &bitter;
</code></pre>
<p>In my header file, I have this:</p>
<pr... | c++ | [6] |
5,437,863 | 5,437,864 | How to ensure video is played from website, not a cached version | <p>I have used the below code(read a video from a website and play it on a panel) its working, but this video is stored on my computer.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System... | c# | [0] |
5,860,137 | 5,860,138 | Epi Twitter Api Question | <p>The Epi Twitter API files <a href="http://www.jaisenmathai.com/files/jaisenmathai_com_oauth_test.zip" rel="nofollow">here</a> do all but allow for the oauth_callback URL to be set. Does anyone know the code to add this?</p>
| php | [2] |
5,279,368 | 5,279,369 | How to achieve the role played by "public static variables of Java" in JavaScript or a webpage? | <p>On my homepage I have to set a cookie using the name of the logged in user. The cookie <code>set</code> and <code>get</code> part has to be done in JS. On the subsequent sub pages I have to retrieve the <code>cookie(username)</code> using the <code>set</code> variable name. </p>
<p>How can I store the username/cook... | javascript | [3] |
3,089,775 | 3,089,776 | How to access a method of an Activity inside TabActivity | <p>I would like to access the public method of an Activity run by a TabActivity using:</p>
<pre><code>TabHost tabHost = getTabHost();
Intent intentMsgsView = new Intent().setClass(this, TeamHuddleScreenMsgsView.class);
tabHost.addTab(tabHost.newTabSpec("msgs").setIndicator("Messages").setContent(intentMsgsView));
</co... | android | [4] |
4,570,990 | 4,570,991 | Try to locate php bin in Red hat | <p>I am connecting through SSH to a Red Hat machine. I am not root. I try to localize the PHP interpreter (in Debian, that would be /usr/bin/php for example) but I don't find it. <code>which</code> is not installed and since I'm not root I cannot install rpm packages. I know php is installed because I can type php in t... | php | [2] |
5,091,318 | 5,091,319 | Can't delete file (process cannot access the file because it is being used by another process) | <p>I try to delete files from a directory I specify. The first time it works great, but the second time it gives the next exception:</p>
<blockquote>
<p>The process cannot access the file 'C:\Users\DAAGEU\AppData\Local\Temp\Manual_Avatar\AdamBody_1K_Pants_Black_Blended.jpg' because it is being used by another proces... | c# | [0] |
1,260,873 | 1,260,874 | integrating buy.com in my ecommerce project | <p>i want to integrate buy.com in my ecommerce project in c#.means when i add product in my project,that product should get added on buy.com.
can you give me the links which can help me in do this.or the basic requirements for doing this.</p>
| asp.net | [9] |
3,636,478 | 3,636,479 | so in java you can't have duplicate method names with different return and params? | <p>Is it possible to have two methods with the same name but different parameters and return types in Java? Seems like it would be a good way to generalize a simple getter and setter.. You can do that with constructors why not with regular methods ? for example</p>
<p>why not be able to do .. </p>
<pre><code>int get... | java | [1] |
5,155,757 | 5,155,758 | Inheritance, any suggestions how I should improve this program? | <pre><code>public class Person{
private String name;
private String surname;
private int age;
private String address;
Person(String n, String s, int a, String i){
name = n;
surname = s;
age = a;
address = i;
this.name = name; this.surname= surname;
this.age = age; this.address = address;
... | java | [1] |
3,686,072 | 3,686,073 | Minimize browser window | <p>Thanks for your replies.
First I am explaining my requirement :-</p>
<p>I created my own minimize and maximize button in my Application.
When I click on minimize button, my application should minimize like
our application
(If we minimize any application in our PC, that application is
displaying in our taskbar)
I w... | javascript | [3] |
4,564,959 | 4,564,960 | sorting by first group element in python | <p>I was wondering how can I make python order my collection of tuples so that first similar items would appear grouped and groups ordered by first item.</p>
<pre><code>order group
3 1
4 2
2 2
1 1
</code></pre>
<p>After sort</p>
<pre><code>order group
1 1
3 1
2 2
4 2
</code></pre>
<p... | python | [7] |
614,569 | 614,570 | What is the best update mechanism for a software cataloguing application? | <p>I'm developing an Android application very much like the the Android Market (now Google Play) in which I offer various softwares to user for installation. The difference is here that I want the user to be able to browse the applications even when there is no internet connectivity. That means I have to store the data... | android | [4] |
4,591,984 | 4,591,985 | About unsynchronized & synchronized access in Java Collections Framework? | <p>Can anyone explain what is unsynchronized & synchronized access in Java Collections Framework? Thanks in advance.</p>
| java | [1] |
624,938 | 624,939 | Loading bundled python framework dependencies using only python | <p>I've come across <a href="http://stackoverflow.com/questions/331377/">this question</a> but I don't like the solution that is presented. Shell scripting is operating system dependent. </p>
<p>Is there a python solution to this problem?</p>
<p>I'm not looking for python to machine code compilers, just a way to modi... | python | [7] |
2,148,872 | 2,148,873 | Image in Linkbutton | <blockquote>
<p><strong>Possible Duplicate:</strong><br />
<a href="http://stackoverflow.com/questions/1394346/how-to-display-image-on-linkbutton-to-look-attractive-in-asp-net">How to Display image on Linkbutton to look attractive in asp.net</a> </p>
</blockquote>
<p>hi i am using this code</p>
<p>
</p>
... | asp.net | [9] |
1,756,508 | 1,756,509 | Android animate background image | <p>I have one Relative Layout and i have set it's background as drawable, which is a selector. </p>
<p>There are total tow background to this Relative Layout and one is in state as selected and one is in non selected mode, both the states are handled in the drawable selector xml file. </p>
<p>What i want to implem... | android | [4] |
3,898,670 | 3,898,671 | Using JQuery .load() with .hide() and .show() on page startup | <p>I'm using the following code to show a <code>div</code> on page startup:</p>
<pre><code>$("#mydiv").hide().show("slow");
</code></pre>
<p>This will make the <code>div</code> appear with a slow animation on page startup (page load / refresh)</p>
<p>However, if, on page startup (page load / refresh), I want to inse... | jquery | [5] |
4,345,667 | 4,345,668 | Python: Check an index against multiple other indexes | <p>I am using Python and I would like to check the location of a value in a list of lists against other indexes.</p>
<p>Like if I had 1 at (1, 1) I would want to be able to check if 1 were at the other indexes so I could make something happen based on which index it matched. </p>
<p>For example:</p>
<pre><code>list_... | python | [7] |
1,766,724 | 1,766,725 | Split up words but not if it contains HTML | <p>I need a function or some regex to split up spaces in a string but to treat an HTML tag as a word.</p>
<pre><code>$str = 'one two <a href="">three</a> four';
$x = explode(" ", $str);
print_r($x);
/* Returns:
Array
(
[0] => one
[1] => two
[2] => <a
[3] => href="">thre... | php | [2] |
4,926,935 | 4,926,936 | Do reactive extensions and ETL go together? | <p>I don't fully understand reactive extensions, but my inital reading caused me think about the ETL code I have.</p>
<p>Right now its basically a workflow to to perform various operations in a certain sequence based on conditions it find as it progresses.</p>
<p>I can also imagine an event driven way such that only ... | c# | [0] |
2,518,779 | 2,518,780 | Read HTML file from Website and convert into App | <p>I am looking into developing an App that will convert a website into more readable data for an android app. I am at university and have an online notice board which can be viewed on the web but if possible I would like to transfer this into an app on android to make it more easy to read on mobile devices.</p>
<p>Wh... | android | [4] |
4,114,212 | 4,114,213 | what happens when you declare the same object/variable more than once (newbie) | <p>what does something like this do?</p>
<pre><code>static int i;
// wrapped in a big loop
void update_text()
{
std::stringstream ss; // this gets called again and again
++i;
ss << i;
text = new_text(ss.str()); // text and new_text are defined elsewhere
show_text(text); // so is this
}
</cod... | c++ | [6] |
3,432,102 | 3,432,103 | Javascript: explain this one line of code to me please | <p>I have this simple array:</p>
<pre><code>var RedirUrl = new Array(4);
RedirUrl[0] = 'http://mafi.se/mf_redir/new_install_'+this_version+'.html';
RedirUrl[1] = 'http://ifurls.com/mf_redir/new_install_'+this_version+'.html';
RedirUrl[2] = 'http://ez.se/xml-update/mf_redir/new_install_'+this_version+'.html';
RedirUrl[... | javascript | [3] |
4,177,489 | 4,177,490 | An example where start and stop GPS is implemented | <p>I am working on an app that involves starting and stopping the GPS in code. I have not tried this before. Completely clueless. Would anyone be willing to provide a page with some implementation of these principles? Thanks</p>
| android | [4] |
4,972,675 | 4,972,676 | Fancybox Ajax not loading in IE | <p>I have an issue the Fancybox Ajax.</p>
<p>It works fine in FF, but not in IE7. The popup layout breaks and content didn't load.</p>
<p>You can see it here: <a href="http://www.sumsy.com/temp/templatesys/config.php?template=1" rel="nofollow">http://www.sumsy.com/temp/templatesys/config.php?template=1</a></p>
<p>Ba... | jquery | [5] |
1,600,467 | 1,600,468 | where to download JAXP samples? | <p>I went to the <a href="http://jaxp.java.net/downloads.html" rel="nofollow">JAXP site</a> and tried to get the samples. I have downloaded the <strong>JAXP 1.4.5</strong> and <strong>JAXP 1.4.4 source bundle</strong> from there but none contains the samples. I checked my JDK7 folder and seemed there was no JAXP sample... | java | [1] |
4,575,989 | 4,575,990 | how to make an anchor url via foreach using grabbed URL n TITLE | <p>I use preg_match_all to grab urls and titles from another page and grabbing is ok but i cant get them in to one using foreach! or is there another way instead of foreach?</p>
<pre><code>//gets URLs of href='xxxx'
preg_match_all('/a href="([^"]+)" class=l.+?>.+?<\/a>/',$sear,$results);
//gets titles of... | php | [2] |
3,314,211 | 3,314,212 | How do I find out what user owns what process programmatically? | <p>Okay, so what I'm attempting to do is find out the name of the user for which a given process belongs to.</p>
<pre><code> Process[] processList = Process.GetProcesses();
foreach (Process p in processList)
{
Console.WriteLine(p.Id);
}
Console.ReadLine();
</code></p... | c# | [0] |
567,533 | 567,534 | wifi connection is getting closed when device is going in sleep/locked state | <p>I developed one application which is having set of activities and one background service , this application will talk to the server over WiFi, so when device is in active state my application is able to communicate with the server over Wifi but when device goes to sleep/locked state, after some time connection is ge... | android | [4] |
4,886,047 | 4,886,048 | document.all["" + object.getAttribute("EndDate", true) + ""].value; do not work in firefox | <p><code>document.all["" + object.getAttribute("EndDate", true) + ""].value;</code> </p>
<p>does work in firefox but work in IE.</p>
<p>what is the alternative way other than the code above to work in multiple browsers?</p>
| javascript | [3] |
1,374,568 | 1,374,569 | IndexOutOfBoundsException in Edit Text for android | <p>i have an edit text in my activity.i am entering numbers in it manually but </p>
<pre><code> int mystart = destinationNumber.getSelectionStart();
int myend = destinationNumber.getSelectionEnd();
numberText.getText().replace(Math.min(mystart, myend), Math.max(mystart, myend),
"1", 0, ... | android | [4] |
3,342,876 | 3,342,877 | Bad practice to put = inside javascript if statement? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2576571/javascript-assign-variable-in-if-condition-statement-good-practice-or-not">Javascript : assign variable in if condition statement, good practice or not?</a> </p>
</blockquote>
<p>Is it bad practice to as... | javascript | [3] |
1,489,962 | 1,489,963 | Setting a title for every page PHP | <p>I am trying to use the constructor to put a title on every page unless I specify what the title should be for the specific page...</p>
<p>For the How it Works page.. the title should be "TeamPlayer - How it works!" (Which currently works)
For the FAQ page the title should be "TeamPlayer" (Which currently doesn't wo... | php | [2] |
1,511,038 | 1,511,039 | Scope of a variable declared in a method | <p>Is a variable inside the main, a public variable? </p>
<pre><code> public static void main(String[] args) {
.........
for(int i=0;i<threads.length;i++)
try {
threads[i].join();
} catch (InterruptedException e) {
e.printStackTrace();
}
long time=0;
... | java | [1] |
328,924 | 328,925 | How to add multiple TextView s for a LinearLayout by Java Code ( in Android ) | <p>Here is my code. In the resulting screen it shows only the first TextView. Not the second one. Im kind of new to Android and please give a help.</p>
<pre><code>public class Details extends Activity {
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
TextVie... | android | [4] |
5,585,368 | 5,585,369 | How configure phonegap with eclipse | <p>i am android developer. i am using eclipse platform to develop Application.
Now onward i want to use phonegap to develop Application in android.
i had done lots of effort to cofigure phonegap with eclips but yet that is not perfect.
so kindly request to help me if you have good solution for that problem.</p>
<p>Tha... | android | [4] |
3,132,184 | 3,132,185 | Notice: Uninitialized string offset: 62 in /.../libraries/functions.php on line 316 | <p>Man oh man I cannot figure this out... Please help.
What a missing here?</p>
<p>here are the errors:</p>
<pre><code>Notice: Uninitialized string offset: 62 in /..../libraries/functions.php on line 316
Notice: Undefined variable: stilldo in /..../libraries/functions.php on line 322
</code></pre>
<p>Here is the cod... | php | [2] |
4,561,288 | 4,561,289 | c++ - relearning | <p>I haven't done C++ for about three years and looking to get back and ready. What is the best way? any open source projects that I might want to look at to recall all the details and be ready for interviews?
I started reading (again) C++ Primer 5th edition but was wondering whether there's more efficient way since I ... | c++ | [6] |
2,242,466 | 2,242,467 | Find id of last inserted row | <p>I have to simple tables in SQLite in my app and I need to insert into my tables values, but when I insert into the first I need to find value id ( primary key first column ) and that to be foreign key in second table. I know to find this with select last but is there better way to find this, id of last inserted row ... | android | [4] |
3,863,234 | 3,863,235 | possible to extract functions from a javascript file? | <p>Not sure if this is the right approach of if this even a "good" question, but I'm loading a javscript as part of a plugin style architecture and I have the following problem:</p>
<p>If a particular node has a reference to a plugin, I want to load that plugin per the url provided via the json description of that plu... | javascript | [3] |
2,544,365 | 2,544,366 | Want the Latitude and longitude as soon my device is restart | <p>I am making a app which is fully depend on latitude and longitude , I am getting the current latitude and longitude when i start the App at 1ts but now I want that when i off my device and restart the device and lunch the app I am getting my current latitude and longitude 0.0,0,0 Show any one can help me please wher... | android | [4] |
4,758,741 | 4,758,742 | Python counting file extensions | <p>I am trying to print the file extension in a certain directory and the count of each extension.</p>
<p>This is what I have so far...</p>
<pre><code>import os
import glob
os.chdir(r"C:\Python32\test")
x = glob.glob("*.*")
for i x:
print(i)
>>> file1.py
file2.py
file3.py
file4.docx
fi... | python | [7] |
1,450,354 | 1,450,355 | Using foreach loop to print all results | <p>I'm new to jQuery and I have got stuck on an each loop. </p>
<p>I'm trying to get the values from a variable with objects and when I print it using <code>alert()</code>, I get all the results.</p>
<p>But when I'm trying to print it to the HTML I only get the last result printed to the HTML instead of 3, in this ca... | jquery | [5] |
679,966 | 679,967 | Stop scroll on click on anchor in a tab navigation in jquery | <p>How to stop the window from scrolling when an anchor is clicked or opened?
<a href="http://domainsoutlook.com/s/site/stackoverflow.com.html#meta_info" rel="nofollow">http://domainsoutlook.com/s/site/stackoverflow.com.html#meta_info</a>
Try some other tabs and the window scrolls down.</p>
<p>Also, could it be possib... | jquery | [5] |
1,726,378 | 1,726,379 | problem in scrolling jtable | <p>I'm putting the table in JScrollPane, but my table is not supporting vertical scrollable...if anyone can tell me where I'm going wrong.
Here is my code..</p>
<pre><code>PreparedStatement pst=c1.prepareStatement("select * from entry where visit_to_person=?");
pst.setString(1,visit_combo.getSelectedItem(... | java | [1] |
2,093,037 | 2,093,038 | why java language forbid program update a collection when program iterate it? | <p>I know there is a InnerClass named"Itr" in java.util.AbstractList. and there is a field named "expectedModCount", a method named "checkForComodification". when iterator a collection but update the collection, this method will throw the ConcurrentModificationException
I want to know why java language designed like th... | java | [1] |
132,457 | 132,458 | Avoiding a NullReferenceException | <p>I have used this code for extracting urls from web page.But in the line of 'foreach' it is showing </p>
<blockquote>
<p>Object reference not set to an instance of an object</p>
</blockquote>
<p>exception. What is the problem? how can i correct that?</p>
<pre><code>WebClient client = new WebClient();
string url... | asp.net | [9] |
124,041 | 124,042 | Is this workflow acceptable UI for iPhone? | <p>I have an arrow that points to the bottom for each table cell. When you click on a table cell, the screen doesn't move to another screen. Rather, the bottom picker changes depending on which cell you selected.</p>
<p>Is this workflow acceptable according to Apple, or does it break guidelines?
<img src="http://i.sta... | iphone | [8] |
2,474,933 | 2,474,934 | To know the logic behind it | <p>is there anybody who explain me this coding</p>
<pre>
public class FunctionCall {
public static void funct1 () {
System.out.println ("Inside funct1");
}
public static void main (String[] args) {
int val;
System.out.println ("Inside main");
funct1();
System.out.println ("About to call fun... | java | [1] |
2,572,883 | 2,572,884 | Jquery IF maybe? | <p>I use the following code to find a particular table, hide it then show it on click:</p>
<pre><code>$(function() {
$('.Nav table .navitem').hide();
$('.Nav table.navheader').click(function() {
$(this).parent().parent().next().find(".navitem").slideToggle('100');
});
});
</code></pre>
<p>Here is the HTML O... | jquery | [5] |
5,162,896 | 5,162,897 | ASP.NET Page does't show code behind code when clicking on Design code | <p>Page does't show code behind code when clicking on Design code and also code behind code display error as control not found</p>
<p>Below code display error : System Error </p>
<pre><code><%@Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" %>
</code></pre>
<p>I don't... | asp.net | [9] |
1,313,299 | 1,313,300 | Android - How to simply make a scrolling text from left to right | <p>how do i make a scrollable very long text that scrolls from left to right</p>
<p>-I managed to make a scrolling textview by setting ellipsize="marquee" and making it always focusable but i need the text to be scrolling to the right not to the left</p>
<p>if you have any suggestions your help will be very appreciat... | android | [4] |
5,036,304 | 5,036,305 | Android export give a "Conversion to Dalvik format failed error1" | <p>When i try to export my android project i'm getting the following eclipse error message "Conversion to Dalvik format failed error1""</p>
<p>i try the following steps but no luck..</p>
<p>01.Project » Clean
02.add the following to eclipse.ini -Xms128m /-Xmx512m
03.Restarting Eclipse with the -clean option</p>
<p>... | android | [4] |
3,400,614 | 3,400,615 | Is it possible to authenticate claims-aware wcf using ASP.NET Security Token Service as STS Server or do i have to user wcf token service only | <p>I have a STS server created using ASP.NET Security Token </p>
<p>Service Web Site. I have a claims aware WCF service to which I add </p>
<p>the sts reference of the above STS server. but when i create and try to access a method of clamis aware service i get "incoming policy not validated". </p>
<p>My question is... | c# | [0] |
5,536,690 | 5,536,691 | Add the last entry object into an arraylist using for-each loop java | <p>I am trying to get the last element of an Entry object and add into an arraylist of Entry objects(so it will only store one Entry object in the arraylist).The reason I am doing this is that I need that ArrayList to be used in another class.</p>
<p>Source code:</p>
<pre><code>ArrayList<Entry<String,Integer>... | java | [1] |
5,697,942 | 5,697,943 | Hide a string using jQuery? | <p>I want to hide strings inside a div. Consider the following example where I want to hide "some".</p>
<pre><code><div id="Disappear">Here is some text.</div>
</code></pre>
<p>After calling the function it should be</p>
<pre><code><div id="Disappear">Here is text.</div>
</code></pre>
<... | jquery | [5] |
2,976,225 | 2,976,226 | Show hide elements on anchor click in a different container | <p>I need to show a bunch of different flash banners. best I can figure is to hide them all, then show when the title is clicked</p>
<pre><code><!-- list that holds links -->
<ul id="bannerList" class="list">
<li>Type
<ul>
<li><a href="#">Flash banner1 120x60... | jquery | [5] |
251,498 | 251,499 | How to keep selected item in dropdown list in php? | <p>I am using this code to switch language in my website. Everything works fine but when I change language always first item is selected. I want to keep selected which language is website language. Here is my code.</p>
<pre><code><td width="85%" align=right class=top_section>
<form method='POST'>... | php | [2] |
2,373,782 | 2,373,783 | Camera.Preview Callback not generating Camera Frames | <p>I have created a customized System Service, and i want my service to capture Camera frames in the background without Preview. I have followed the steps in developer.android website and implemented the following code, but it is not generating any frames. Here is the code:</p>
<pre><code> public void startCapture() {... | android | [4] |
173,604 | 173,605 | append html to <head> with JQuery | <p>My situation is that, I have page contains a button and some links. Whenever user click on the button, it tries to append tag <code><base></code> to <code><head></code></p>
<pre><code>function avoidRediect(){
$('head').append('<base target="_blank" />');
}
</code></pre>
<p>But the page does n... | jquery | [5] |
1,546,984 | 1,546,985 | Why in_array() is not working in this case? (array from file()) | <p>Why is this code not working?</p>
<p>I have test.txt it contains:</p>
<pre><code>A
B
C
</code></pre>
<p>My PHP code is:</p>
<pre><code>$arr = file('test.txt');
if (in_array('A', $arr)) {
echo 'A is found';
}
</code></pre>
<p>Result. nothing. But this following code works fine:</p>
<pre><code>if (in_array('... | php | [2] |
1,891,911 | 1,891,912 | wifi connection is getting closed when device is going in sleep/locked state | <p>I developed one application which is having set of activities and one background service , this application will talk to the server over WiFi, so when device is in active state my application is able to communicate with the server over Wifi but when device goes to sleep/locked state, after some time connection is ge... | android | [4] |
3,840,240 | 3,840,241 | I'm not a programmer. Just need to know if DART is an alternative to JAVA | <p>I am not a programmer and really did not know how much of the work I do online, relies on JAVA.
Now that everyone has been asked to disable it- I have not been able to find any info, on potential alternatives. None of the articles sharing the information mention any alternative. Did Google just not market this th... | javascript | [3] |
1,743,063 | 1,743,064 | C# XmlWriter.Create() - Access to path denied | <p>I want to write a new xml file to disk but the following code gives an error.</p>
<pre><code>static void Main(string[] args)
{
using (XmlWriter writer = XmlWriter.Create(@"C:\abc.xml"))
{
writer.WriteStartDocument();
writer.WriteStartElement("Employees... | c# | [0] |
4,650,154 | 4,650,155 | Merging Values into an Array | <p>I have a situation where i have to manually merge a label with value and then store in array. For instance <code>aaa 10 , bbb 20, ccc 30</code> </p>
<p>The values are coming from text field and finally i have to bring this in such format... with comma seperated and label's are hardcoded.</p>
<p>How to create an Ar... | javascript | [3] |
5,893,773 | 5,893,774 | Replace all " and ' from a string | <p>I want to replace all the " and ' from a string</p>
<p>eg strings </p>
<pre><code>"23423dfd
"'43535fdgd
""'4353fg
""'''3453ere
</code></pre>
<p>the result should be</p>
<pre><code>23423dfd
43535fdgd
4353fg
3453ere
</code></pre>
<p>I tried this <code>myString.Replace("'",string.Empty).Replace('"',string.Empty);<... | c# | [0] |
980,660 | 980,661 | Java Project architecture | <p>Can anybody please explain the basic architecture of the project folder of a java project? I know it contains subfolders such as bin for binaries, src for source files, lib for external libraries but I would like to know the specific functions performed by files such as build.xml, project.xml, .project, build.proper... | java | [1] |
5,056,473 | 5,056,474 | List<> and Contains scenario, compare get excluded and included using asp.net 2.0 | <p>I have two List's that contain a object of Tag like List i need to find excluded and included to do an update operation how do find the difference in them both since they contain a Tag object. Can you use Contains function with a Tag object inside the list need some help. </p>
<p>Im using asp.net 2.0 so please if y... | c# | [0] |
4,304,632 | 4,304,633 | How do I pipe the output of file to a variable in Python? | <p>How do I pipe the output of file to a variable in Python?</p>
<p>Is it possible? Say to pipe the output of <code>netstat</code> to a variable x in Python?</p>
| python | [7] |
4,887,388 | 4,887,389 | Recognise user without using IP | <p>I need to grant access to user with or without credentials.<br>
I have tried the <code>SERVER[remote_addr]</code> but it didn't work due to dynamic IP used in the company.<br>
Any suggestions? </p>
| php | [2] |
3,304,351 | 3,304,352 | Battery usage by running application in Android | <p>i am looking for battery usage by application in android.How can i achieve it programmatically? i want for wifi GPS.</p>
<p>Your help will be appreciated..</p>
<p>thank you.</p>
| android | [4] |
2,080,017 | 2,080,018 | Help - use PHP-broswer, or proxy or get_page_contents or include page, or something else? | <p>I am trying to develop a web application for which I need to capture a specific user-driven event (such as mouse dblclick) occurring on a different-website page loaded through my website.</p>
<p>What I want to do is :</p>
<ol>
<li>User visits my website - hosted by me.</li>
<li>There, user types in any website URL... | php | [2] |
4,849,087 | 4,849,088 | Provision to convert mp3 to wav file in python and tutorial for audio processing using python [pymedia] | <p>I am a new to python and matlab. I wanted to know whether is there any provision for converting a mp3 file to wav using any pymedia functions or the function like'MP3WRITE' and 'MP3READ'in matlab? any good tutorial for audio processing tutorial using python?</p>
| python | [7] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.