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 |
|---|---|---|---|---|---|
4,358,405 | 4,358,406 | HttpRuntime.ProcessRequest and "ContentType" page directive | <p>I'm using the <code>HttpRuntime.ProcessRequest</code> method to render ASPX pages outside of IIS, which all works fine when my ASPX pages render HTML. </p>
<p>However, I also have ASPX pages that render XML and therefore set the <code>ContentType</code> Page directive to <code>text/xml</code>. The problem is that... | asp.net | [9] |
4,637,144 | 4,637,145 | How to allow user to enter only 0 or 1? | <p>How to allow user to enter only 0 or 1 in the textbox.I am using C#.net. Textbox has maxlength is 1.I am want to add validation expression in regular expression.I don't want use javascript.</p>
| asp.net | [9] |
1,808,475 | 1,808,476 | Is this possible to upgrade HTC Desire to 2.3? | <p>I have HTC Desire which runs on Android 2.1 (Eclair) platform now i want to upgrade this phone to 2.3(Gingerbread). I searched on Internet but not found any official release for this particular model for up-gradation to 2.3 but found some [articles (<a href="http://www.addictivetips.com/mobile/download-official-htc-... | android | [4] |
5,019,758 | 5,019,759 | Access Page variable from User Control | <p>I have a property on a page called </p>
<pre><code>public string productName { get; set; }
</code></pre>
<p>I want to access this in my usercontrol code behind. What's the right way to do it?</p>
<p>Currently I am doing</p>
<pre><code>((MyPage)Page).productName
</code></pre>
<p>But the user control is not comp... | asp.net | [9] |
5,155,408 | 5,155,409 | how to fix a bottom relative layout when soft keyboard comes? | <p>When i write something on the edit text in my app ,the soft keyboard comes in along with a bottom relative layout..I want to fix the bottom relative layout position fixed.Any help will be greatly appreciated..</p>
| android | [4] |
3,247,336 | 3,247,337 | Remove The Space in a String in c# | <p>I want to know how to remove space in a string.For Example take a string a= "Hello World". Once the whitespace is found then "Hello" and "World" Should be Separated and get stored in separate Strings.
Like b="Hello" and c="World". It is possible to do this.Can anyone help me.Thanks in advance.</p>
| c# | [0] |
1,131,839 | 1,131,840 | Jquery filter for nested objects | <p>My code is:</p>
<pre><code> colModel: [
{ display: 'Grade', name: 'Grade', width: 40, align: 'center' },
{ display: 'Grade ID', name: 'ID', width: 180, align: 'left' },
{ display: 'Organization ID', name: 'Organization_ID', width: 120, align: 'left' },
{ display: 'Organization Name', name: 'Organiz... | jquery | [5] |
5,650,573 | 5,650,574 | Handle Button click Generically | <p>I have 6 buttons on the page. On every button click, I do the following:</p>
<pre><code>$('#btn1').click(function(){
$('#txt').val("+");
}
)
$('#btn2').click(function(){
$('#txt').val("-");
}
)
$('#btn3').click(function(){
$('#txt').val("*");
}
)
</code></pre>
<p>If you observ... | jquery | [5] |
5,901,722 | 5,901,723 | JAVA.. How to sort array containing time | <p>Can anyone please tell me how to sort this array:</p>
<pre><code>String[] time = {"3:40 PM - 5:50 PM", "4:40 PM - 5:50 PM", "2:00 PM - 3:00 PM",
"10:30 PM - 11:00 PM","1:00 PM - 2:30 PM", "6:30 PM - 7:00 PM",
"3:40 PM - 5:50 PM"};
</code></pre>
| java | [1] |
5,448,789 | 5,448,790 | How to bind event with Grid view check box event add using jquery | <p>Will you please help me out</p>
<p>Thanks............ </p>
<p>I have following table I just needed functionality. When user click Full (Permission) then the corresponding row having following permission Read, Add, Edit, Delete all are checked. </p>
<p>When user have click on the edit, delete, add check box the ... | jquery | [5] |
1,625,696 | 1,625,697 | Not Able to get the return value | <p>i am using this function to read from a notepad file and fill the data in <code>char str[255]</code> but after I execute the function <code>str</code> is still empty.</p>
<pre><code>char str[255];
char* data_pull()
{
std::ifstream in("C:/myfile.txt");
if(!in){
printf("\nCannot open the file");
... | c++ | [6] |
451,742 | 451,743 | Getting the value of the selected option tag in a select box | <p>I have an select box</p>
<pre><code><select name="type1">
<option value="1">Laser Printer</option>
<option value="2">Line Printer</option>
</select>
</code></pre>
<p>Now I have a button with id <code>#New1</code> when this button gets clicked I need to display the value b... | jquery | [5] |
5,865,393 | 5,865,394 | C++, Removing an element from a pair, inside a function | <p>I am using C++, I have a vector of paired variables, for which the first element is a vector and the second element is an integer. My problem is that I am trying to remove certain elements from this vector, and can't seem to get it to work!</p>
<p>The code is shown below, and everything is working as I'd expect up... | c++ | [6] |
5,351,433 | 5,351,434 | What is the best javascript barcode generator? | <p>I need to generate a I25 barcode using javascript only. Looking for a good, reliable, cross-browser javascript component.</p>
| javascript | [3] |
5,047,997 | 5,047,998 | Convert date formate in .xls file, while exporting the file using c# | <p>I am exporting data to .xls file(Excel doc) by using C#.net.
here I have a one <strong>date</strong> field. Now i want to change the date format. Diff-Diff date formats in the Excel document.</p>
<pre><code>protected void ExportToExcel(DataSet ds, string FilePath)
{
StreamWriter sw;
... | c# | [0] |
3,176,403 | 3,176,404 | ASP.NET textbox right align-Cursor not displaying | <p>I have a normal textbox in a asp.net application.
Textbox's text align is 'right' but i can not see cursor..
Once i added any numbers(Values) then it comes to visible..
Any suggestion..?</p>
| asp.net | [9] |
2,365,676 | 2,365,677 | Get link tag returns error | <p>Why does this return an error?</p>
<pre><code><link rel="shortcut icon" type="image/x-icon" href="gfx/favicon.ico" />
var link = $('link[rel=shortcut icon]');
</code></pre>
<p>error:</p>
<pre><code>uncaught exception: Syntax error, unrecognized expression: [rel=shortcut icon]
</code></pre>
| jquery | [5] |
5,924,343 | 5,924,344 | How to add tabbar items dynamically ipad | <p>I am developing an application for iPad as a splitview template based with uitabbarcontroller in my application. I have 10 tabbar items and the first time, I only want to show 4 tabbar items. After I navigate another view I want to remove the 4 original tabbar items and add new 4 tabbar items with new viewcontroller... | iphone | [8] |
3,619,068 | 3,619,069 | Run a php file for a particular time interval | <p>I develop a webpage where I need to send an email to a particular user [depend upon the database value] at a particular time automatically [without human interference]. </p>
<p>For example I have a file named Send_mail.php. It will execute once per day by script [Not by Cron or other way]. Please guide us in this. ... | php | [2] |
3,830,979 | 3,830,980 | Why might the following hang the program? | <p>Now that I've got SmartPointers, I decided to try DumbPointers, which do the terribly difficult job of calling "delete" in a destructor. Deciding to continue my tests of storing arrays in SmartPointer, using a DumbPointer, I recalled a previous error and tried this: </p>
<pre><code>DumbPointer<char> dumbPoin... | c++ | [6] |
5,287,698 | 5,287,699 | Extract elements from list based on object property type | <p>Often, I have a list of objects. Each object has properties. I want to extract a subset of the list where a specific property has a predefined value.</p>
<p>Example:</p>
<p>I have a list of User objects. A User has a homeTown. I want to extract all users from my list with "Springfield" as their homeTown.</p>
... | java | [1] |
4,272,897 | 4,272,898 | fetching data from database in randomly generated button | <p>hi
i found it difficult,,,, fetching data from database while a buttons are randomly generated in for each how can i fetch</p>
| php | [2] |
4,344,997 | 4,344,998 | Ongoing notification disappears on ics | <p>In ICS,after installation ongoing notification disappears after some time, and when any other notification is called, the previous notification also appears and everything works fine. It only happens with ICS, previous versions are running perfectly. Is there anything new regarding notification in ICS?</p>
| android | [4] |
1,288,828 | 1,288,829 | How to make Main VC's Toolbar global for all view controller | <pre><code>- (void)viewDidLoad{
UIView *baseView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[self.view addSubview:baseView];
// Displays UIImageView
UIImageView *myImage = [[UIImageView alloc]
initWithImage:[UIImage imageNamed:@"ka1_046.png"]];
myImage.frame = CGRectMake(0, 0, 3... | iphone | [8] |
1,836,032 | 1,836,033 | What does && mean at the end of a function signature (after the closing parenthesis)? | <p>In <a href="http://stackoverflow.com/questions/14562984/workarounds-for-no-rvalue-references-to-this-feature">Workarounds for no 'rvalue references to *this' feature</a>, I see the following member function (a conversion operator):</p>
<pre><code>template< class T >
struct A
{
operator T&&... | c++ | [6] |
57,967 | 57,968 | Comparing two arrays and getting the non duplicate(not unique) values | <p>I have two sets of arrays. I need to get the letters that are not in both arrays. First it should check if index 0 'a' is on both arrays. If it is in both than it should delete 'a' from both(just the first 'a' in first array not the one at the end(index 3). And go the the second item 'b' using same logic. </p>
<p>... | jquery | [5] |
1,974,952 | 1,974,953 | Javascript: Replacing text in HTML object | <p>I've got a HTML object <code>obj</code> and I'm attempting to replace a string in it's inner HTML with another..</p>
<pre><code>obj.innerHTML.replace('<a>theoldstring</a><span></span>','thenewstring');
</code></pre>
<p>However, the string isn't replacing and is printing the same before and ... | javascript | [3] |
5,302,333 | 5,302,334 | Changing values of all similar sub arrays in PHP | <p>I've got the following 2D array, stored inside the array variable $my_array</p>
<pre><code>Array
(
[0] => Array
(
[0] => 3
[1] => 6
[2] => 3
)
[1] => Array
(
[0] => 3
[1] => 6
[2] => 3
)
[2] =>... | php | [2] |
4,801,240 | 4,801,241 | How can I call the 'base implementation' of an overridden virtual method? | <p>Given the following code, is there a way I can call class A's version of method X?</p>
<pre><code>class A
{
virtual void X() { Console.WriteLine("x"); }
}
class B : A
{
override void X() { Console.WriteLine("y"); }
}
class Program
{
static void Main()
{
A b = new B();
// Call A.X somehow, not B.X.... | c# | [0] |
3,648,978 | 3,648,979 | using Buttons to Retreive data from database | <p>I have connected a database in my Android Application. Now i have created a button and when it is clicked, that should get the next data from the table of database. i have cursor and he moveToFirst() and moveToNext() methods in my code. also i have set onclick listener to my button. but in output when i click the bu... | android | [4] |
701,835 | 701,836 | Lifetime of temporaries | <p>Below code shows lifetime of object created in function <code>create()</code> is extended to the life time of <code>const ref</code> created in <code>main</code>, <em>is this correct in all cases</em>? I mean we can extend the life time of temporary in certain cases by creating a reference to it? Or in this specific... | c++ | [6] |
2,068,845 | 2,068,846 | Handling styles in javascript | <p>I have json which returns in the format as shown below</p>
<pre><code><p>jellp</p>
</code></pre>
<p>how can i apply styles using javascript? right now i'm using</p>
<pre><code>cell.appendChild(document.createTextNode(data['data']['timeline'][i]['content'][j]['title'] ));
</code></pre>
| javascript | [3] |
3,057,827 | 3,057,828 | How to i refer the method from two difference interface | <p>How can refer the method definition for the interfaces which are providing same method and i want to define that function in a class.
For example I have two interfaces </p>
<pre><code> public interface i1
{
void show();
}
public interface i2
{
void show();
}
</code></pre>
<p>Suppose a class ClassA implem... | c# | [0] |
1,483,415 | 1,483,416 | Weird behavior of linkbutton within updatepanel | <p>This problem is relevent apperantly to IE6 and maybe to newer versions im not sure. when you put a linkbutton inside an updatepanel like so: </p>
<pre><code><asp:ScriptManager runat="server"></asp:ScriptManager>
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp... | asp.net | [9] |
4,951,261 | 4,951,262 | What does Asset Allocations mean in adb shell dumpsys meminfo | <p>Can anybody tell me what does Asset Allocations mean in adb shell dumpsys meminfo Android?
I see this at start up my android device and I see my application's resources.arsc is consuming 516K even though my app is not running.</p>
<p>Thanks.</p>
| android | [4] |
3,266,606 | 3,266,607 | How to use self.method() in class creation time? | <p>In some cases, I want to use instance method in class creation time.</p>
<p><strong>I just want to use self in permissions list..This is my question</strong></p>
<p>But it does not work. Is it some ways to solve the problem?</p>
<pre><code>class PermissionChecker(object):
# how to use self in class create tim... | python | [7] |
2,588,111 | 2,588,112 | javascript popup window help | <p>This is what I want to accomplish..I created a pop up window from my original document. this is the code..</p>
<pre><code><script type="text/javascript">
function subscribe() {
window.open("cover.htm", "popWin", "width=125, height=240, left=10, screenX=10, top=10, screenY=10");
}
... | javascript | [3] |
485,595 | 485,596 | algorithm to compare two lists and get same elements in python | <p>I have to lists, which has some common elements in them:</p>
<pre><code>p = [('link1/d/b/c', 'target1/d/b/c'), ('link2/a/g/c', 'target2/a/g/c'), ..., ('linkn/b/b/f', 'targetn/b/b/f')]
q = [['target1/d/b/c', 'target1', 123, 334], ['targetn/b/b/f', 'targetn', 23, 64], ... ,['targetx/f/f/f', 'targetx', 999, 888]]
</c... | python | [7] |
3,743,671 | 3,743,672 | How to hide and show all the content of a div with JavaScript? | <p>For example, the div contains:</p>
<pre><code> <div id="choices">
<ul>
<li><button onclick="Correct('incorrect, try again!')">simple, easy</button></li>
<li><button onclick="Correct('Correct! Congratulations!')">influence... | javascript | [3] |
5,344,995 | 5,344,996 | I want to delay the dropdown hide and animation for the same time | <p>Here is the code, when hovering on the <code>li</code> items the tabs animate and grow to <code>270px</code> simultaneously opening a dropdown <code>div</code> of same width containing input fields, but when I move the mouse out of the <code>dropdown</code> div or try to select something from option lists the dropdo... | jquery | [5] |
2,526,837 | 2,526,838 | android back up files stored in data/data/myapp directory if app crashes | <p>I store a bunch of downloaded files in data/data/myapp/files and data/data/myapp directory. if a user force closes or app crashes, how can I make sure I back the files in data folder to restore when app resumes from crash?</p>
| android | [4] |
1,234,174 | 1,234,175 | Cast a base class issues | <pre><code>class YourInterface {
public:
YourInterface(){
}
virtual ~YourInterface(){
}
virtual void saveData(Data data) = 0; //Pure virtual = Childs are forced to implement those functions to become non abstract
virtual Data loadData() = 0;
};
//One implementation to load and save data to/fr... | c++ | [6] |
5,117,490 | 5,117,491 | sizeof member computation error | <p>I have such a structure (for some reason I cant just use an array):</p>
<pre><code> struct OperatorData
{
char m_record_0[RIX_OPERATOR_CONFIG_SIZE];
char m_record_1[RIX_OPERATOR_CONFIG_SIZE];
//....
char m_record_9[RIX_OPERATOR_CONFIG_SIZE];
};
</code></pre>
<p>And I am trying to calculate am... | c++ | [6] |
793,699 | 793,700 | Image proportional to screen resolution - think JS is knocking it out | <p>I'm sure one of you lot there can help with this. I'm new to the web game and have been stumped on a particular part of my own website design, currently found at build.tombritton.me</p>
<p>I would like the image on div #one and the image slider to display at full size of the viewer's browser - no matter what resolu... | javascript | [3] |
5,298,121 | 5,298,122 | How to add external API in corona SDk, but no need to require network connectivity? | <p>I am new to corona. I want to add dictionary for word meaning but I don't want to add network connectivity so that user can get the meaning without internet connectivity. SO can you please tell me how to add that external API or any other method so that I can add this feature?</p>
<p>Thanks,</p>
| iphone | [8] |
5,804,053 | 5,804,054 | how to skip lines in txt file | <p>Hey guys I've been having some trouble skipping some unnecessary lines from the txt file that I am reading into my program. The data has the following format:</p>
<pre><code>Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
</code></pre>
<p>I want to read line 1, trim lines 3, 4 and the white space and then... | c# | [0] |
331,684 | 331,685 | Allowing a class function to easily be replaced | <p>I often have a class where I want to allow a functionality to be selected. For example I have a class that has a <code>GetNextNode()</code> function which is used like <code>MyClass::DoIteration(){GetNextNode(); }</code> . I want to allow the user to select from one of many possible implementations of GetNextNode to... | c++ | [6] |
4,363,391 | 4,363,392 | Javascript clearing a frame | <p>I am using a frameset with 3 frames, using parent.error.document.write("hi") I wrote to one of the frames but I want to clear it from another frame. Is it possible to do the same?</p>
| javascript | [3] |
2,670,710 | 2,670,711 | When are do loops useful? | <p>As you all probably know, <code>do loops</code> execute at least once, even if the statement is false — while the <code>while loop</code> would never execute even once if the statement is false.</p>
<p>When are do loops useful? Could someone give me a real life example?</p>
| php | [2] |
609,394 | 609,395 | How to display a jpg file in Python? | <pre><code>def show():
file = raw_input("What is the name of the image file? ")
picture = Image(file)
width, height = picture.size()
pix = picture.getPixels()
</code></pre>
<p>I am trying to write a code to display this image but this code does not provide the image.
How to change my code in order to display this ... | python | [7] |
3,795,179 | 3,795,180 | Does IPhone development device require an AT&T plan | <p>Just trying to getting things straight before signing up in the development program and paying my $99. I have an older iPhone that we'd like to use for development so I don't have to do anything to my current iPhone. Does the device used for iPhone development require an AT&T plan of any kind. We need data ac... | iphone | [8] |
4,268,900 | 4,268,901 | Handwriting Recognition Application in Android | <p>I'm working on a application for handwriting recognition,ie, the user draws their character into the screen,and then that particular alphabet is generated automatically.</p>
<p>The approach I'm taking(after a reading from <a href="http://drdobbs.com/security/184408923?pgno=2" rel="nofollow">here</a>),is to first tr... | android | [4] |
3,588,875 | 3,588,876 | Extract key from array | <p>I just wonder if i can get the keys from below code</p>
<pre><code>$keys = array_keys($_POST); //this will return all key
$key = array_key($_POS['username']) //i dont know this this is possible, im trying to get the 'username'
</code></pre>
<p>is it possible?</p>
| php | [2] |
2,254,202 | 2,254,203 | Does a for loop add another object to the scope chain in Javascript? | <p>I watched this: <a href="http://www.youtube.com/watch?v=mHtdZgou0qU" rel="nofollow">http://www.youtube.com/watch?v=mHtdZgou0qU</a> yesterday, and I've been thinking about how to improve my javascript. I'm trying to keep everything he said in mind when re-writing an animation that looked really choppy in firefox. </p... | javascript | [3] |
3,350,273 | 3,350,274 | Java reverse/back reference | <p>I'm trying to pass a class instance into a constructor of another class and vise versa. I would like to do this:</p>
<pre><code>static Map map = new Map(hero);
static Hero hero = new Hero(map);
</code></pre>
<p>I'm running this code inside my Game class. How do I go about correctly implementing the above code? Is ... | java | [1] |
5,577,721 | 5,577,722 | How to clear a textbox onfocus? | <p>I've tried this but it doesn't work:</p>
<pre><code>$(function() {
$('input[type=text]').focus(function() {
$(this).val() == '';
});
});
</code></pre>
| jquery | [5] |
2,499,922 | 2,499,923 | Create External Jar Files | <p>I have created a library project which can be used as reference project in any application.
Now i want to create jar file of that library project so that instead of referencing the library project,i can add that created external jar file to build path and can use the library project component.Is there any way in ecl... | android | [4] |
3,935,199 | 3,935,200 | Error while defining String constant | <p>Given: </p>
<pre><code>public static final String XML_POLICY =
"<?xml version="1.0"?>"
+"<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">"
+ "<cross-domain-policy>"
+ "<allow-access-from domain="*" to-ports="*" />"
... | java | [1] |
866,972 | 866,973 | How can two instances of an application communicate in Java? | <p>I am developing a new Java Desktop app. Something like a media player. I want to load most of the resources in the background when the computer starts up. But the users can turn this option off form within the app or using some other utility. So, what I want to do is if a ban instance of the app is already running a... | java | [1] |
1,248,515 | 1,248,516 | Bringing back an "overridden" window method | <p>If I reset window.alert to be some other function, is there any way for me to restore it w/o first "saving" it? </p>
<p>For example:</p>
<pre><code>window.alert = function() { };
</code></pre>
<p>After doing that, is there a way of restoring window.alert() to what it used to be? (btw: asking this only for "predef... | javascript | [3] |
3,720,358 | 3,720,359 | set a function equal to a variable so i can do this($var) | <p>hey..newbie here..quick php questions</p>
<p>ihave a function <code><?php the_search(); ?></code> that just echoes what people searched for</p>
<p>i want to put that in to another function <code>get_data($var)</code> to get some data..</p>
<p>how can i set <code><?php the_search(); ?> equal to some $... | php | [2] |
872,777 | 872,778 | Horizontal slideshow like Firefox 4's tech demo | <p>I want to create a content slider that works similarly to Firefox 4's showcase site:
<a href="http://demos.mozilla.org/" rel="nofollow">http://demos.mozilla.org/</a></p>
<p>I'd like the inactive slider-items to actually be outside the browser, and to slide across to the centre when called. If I call an item that is... | jquery | [5] |
2,974,489 | 2,974,490 | Android dynamic linking. Thinking about forced updates | <p>I was wondering if it's even possible. Let's say I separated my app into "Library loader" and "Library" where library piece can be downloaded by "Library loader" from my server.</p>
<p>This way I don't need to rely on users to install updates to my app. </p>
<p>I understand it's probably not possible, but stillw w... | android | [4] |
5,184,448 | 5,184,449 | PHP regex in simple_html_dom library | <p>I was trying to scrape imdb by following code. </p>
<pre><code>$url = "http://www.imdb.com/search/title?languages=en|1&explore=year";
$html = new simple_html_dom();
$html->load(str_replace('&nbsp;','',$data = get_data($url)));
foreach($html->find('#left') as $total_movies)
{
$content = $total_movies-... | php | [2] |
2,230,916 | 2,230,917 | Processing multiple drag and dropped files fails when using regular expressions | <p>In my application the user can drag and drop multiple text files onto a GUI control to convert them to another format. Here is the relevant code: </p>
<pre><code> private void panelConverter_DragDrop(object sender, DragEventArgs e)
{
string[] filenames = (string[])e.Data.GetData(DataFormats.FileDrop)... | c# | [0] |
3,481,506 | 3,481,507 | Cannot redeclare sanitize() error | <p>I have the following error in the nginx logs:</p>
<pre><code>2011/12/16 13:52:30 [error] 7490#0: *1000 FastCGI sent in stderr: "PHP Fatal error: Cannot redeclare sanitize() (previously declared in /usr/share/www/includes/class_downloads.php:4) in
/usr/share/www/includes/class_downloads.php on line 17" while r... | php | [2] |
1,001,232 | 1,001,233 | Animated card stack | <p>I'm trying to create a stack of cards that if you click will open out to reveal the individual cards. I created the stack and the behavior that reveals the cards but now want to add some animation of the cards moving into their new locations(as they are revealed). </p>
<p><a href="http://jsfiddle.net/psivadasan/zbk... | jquery | [5] |
3,150,778 | 3,150,779 | Invalid access error when trying to access a pointer to an object in a vector | <p>I've a method in a class that get's a pointer to another object (of a different class)and adds an object (of another different class) to a vector that is a member variable of the first object (the one that is passed as a parameter). This is the code:</p>
<pre><code>ObstacleManager::ObstacleManager(Application *lApp... | c++ | [6] |
3,217,897 | 3,217,898 | Explicitly instantiating a class template with a list of paramters | <p>I am trying to instantiate a class template with a whole bunch of different combinations of template parameters which will be decided by some runtime information: <a href="https://github.com/ITKTools/ITKTools/blob/newpixeltypeselector/src/binarythinning/binarythinning.cxx" rel="nofollow">https://github.com/ITKTools/... | c++ | [6] |
5,990,091 | 5,990,092 | android,not able to play some videos from urls? | <p>I have 5 videos(from server) .
Here is the result for that.</p>
<p>Motorola Milestone 2.1update:
I am able to play only one video.
In other three videos i am able to play only audio(video can't be seen).
In one i am getting "sorry,this video cannot be played"</p>
<p>Galaxy tab 10.1 3.1 honeycomb:
Able to play 4 vi... | android | [4] |
5,538,150 | 5,538,151 | Program not running from expected directory? | <p>I am working on a web-based program, using Java. I am not sure exactly how to phrase this, but I expect the program to be running from within the c:/Resin/webapps/apps directory. However, when I reference a file in the program like this: "../files/randomfile.pdf", it cannot find that file. It works when I referen... | java | [1] |
4,853,096 | 4,853,097 | Display string item in windows - C# | <p>I have a string with dots and carriage returns etc... totally its a big string!
I want to show it in a windows form, so i wanted to know which one will be the good control to show it upon.</p>
<p>Thanks in advance,
Ravi Naik.</p>
| c# | [0] |
4,022,912 | 4,022,913 | HTTP stack in Gingerbread and Honeycomb | <p>What HTTP stack we are using in Gingerbread and Honeycomb version of Android?</p>
| android | [4] |
621,225 | 621,226 | Getting random value from an array | <pre><code>var myArray = ['January', 'February', 'March'];
</code></pre>
<p>How to select random one from this array?</p>
| javascript | [3] |
5,201,959 | 5,201,960 | How to fix error font UTF8 in file csv when export file csv in php | <p>I export csv in php as:</p>
<pre><code>$fp = fopen($filename, 'w');
foreach ($list as $fields) {
if(!empty($fields))
fputcsv($fp, $fields);
else
fputcsv($fp, ' ');
}
$fp = chr(255).chr(254).mb_convert_encoding($fp,... | php | [2] |
5,083,292 | 5,083,293 | Trying to run Program in Ecplise as a class × 259989 | <p>I am a newbie in the Java world and this is among my first programs (Hello World, obviously!). The problem is when I try to run this program as a class from the menu with a play icon on it, a blank window shows up with no "Hello World" on it (just white colour filling the window). At the bottom border of this window... | java | [1] |
1,689,439 | 1,689,440 | Convert non VS .net web app to Vs project | <p>I have this legacy web application using .net developed not in VS. I need to convert it to 4.0 and build on VS solution. The problem is the application is quite large and a big mess, there are 100s of compilation errors if not 1000s. What's the fastest way to go about this? </p>
| asp.net | [9] |
3,693,575 | 3,693,576 | preventing duplicate data using JQuery | <p>I have a moronic customer that does not seem to understand the English text in an alert that instructs him that his data was saved successfully. He continually presses the submit button and inserts a new row of data into the database. Can anyone suggest a solution to prevent this please? I am using jQuery to submit ... | jquery | [5] |
88,127 | 88,128 | UIWebView underside | <p>Is there a way to change the color of the gray underside of the UIWebView that's seen when the page is overscrolled? </p>
| iphone | [8] |
1,440,716 | 1,440,717 | Encrypting XML Element | <p>I have created XML file called users.xml
Looks like this:</p>
<pre><code><Users>
<user>
<uin>"0012345"</uin>
<name>black</name>
<email>"bk@hotemail.com"</email>
<created>"3/02/2010"</created>
</user>
<user>
<uin>... | asp.net | [9] |
49,328 | 49,329 | calling to function in function | <p>I need to build 3 funcs.
the 1st is insertion sort, 2nd is generate list of random nums between 0-1 and the 3rd need to create list of randon numbers (using 2nd func.) and sort them (using 1st func.).
I can't change the tests in the end and not the arguments of the funcs.
I have a problem with func 3, it says <code>... | python | [7] |
5,406,147 | 5,406,148 | jQuery if/else if statement doesn't work after the first "if" | <p>I have a simple jQuery if/else if condition but only the "if" part works, the "else if" do not, I can't figure out why. The code represents three listboxes (<strong>ajax-populated</strong>) and when any of them clicked, a jQuery function collects the ID of the clicked item and assigns it to a variable. The first on... | jquery | [5] |
1,893,048 | 1,893,049 | Windows doesn't detect nexus s | <p>I recently switched from linux to Windows 8 consumer preview. I have installed the latest android SDK including the Google USB driver. I connect my nexus s to the laptop, the phone goes into USB debugging mode. But eclipse doesn't detect it. if I do >adb devices, the phone doesn't show up. Please help!</p>
| android | [4] |
4,362,259 | 4,362,260 | Is there an equivalent for toPrecision() in Java? | <p>In porting an algorithm from JavaScript to Java, I've run into the problem that I need a replacement for JavaScript's toPrecision(). The problem is that I don't have a clue how small or large the numbers will be, so I can't use a simple NumberFormat with the right format.</p>
<p>Is there a standard class that offer... | java | [1] |
3,030,916 | 3,030,917 | Parse error: syntax error, unexpected T_VARIABLE on line 1 | <pre><code><?php
$msg = $_POST['message'];
echo $msg;
?>
</code></pre>
<p>If i run this page without submitting post data then I am getting Parse error: syntax error, unexpected T_VARIABLE on line 1 error. Please help me to resolve the error.</p>
| php | [2] |
491,541 | 491,542 | No Stack Information - V(Unknown Source) | <p>I am having a problem with my app, and wondering why I am not getting any stack information just;</p>
<pre>
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at com.x.y.z.()V(Unknown Source)
</pre>
<p>I am building using an Ant script - do I need to fiddle with some sort of comp... | java | [1] |
3,110,993 | 3,110,994 | select box append with js variable | <pre><code>function trig(){
var a=$('#rolAdd option:selected').text();
var b=$('#rolAdd option:selected').attr("value");
$("#rolRemove").html("<option value='b'> a </option>");
}
</code></pre>
<p>how can i use a & b variables from rolAdd select box in rolRemove select box... | javascript | [3] |
5,575,319 | 5,575,320 | php search array key and get value | <p>I was wondering what is the best way to search keys in an array and return it's value. Something like array_search but for keys. Would a loop be the best way?</p>
<p>Array: </p>
<pre><code>Array([20120425] => 409 [20120426] => 610 [20120427] => 277
[20120428] => 114 [20120429] => 32 [20120430... | php | [2] |
2,895,519 | 2,895,520 | Inconsistent accessibility strange error | <p>I have this below piece of code which makes me puzzling about internals of a private class. I could see many search results for this error, still the below sounds wierd</p>
<pre><code>namespace X
{
public class Program
{
public static XYZ sample1;
public static void Main(string[] args)
... | c# | [0] |
3,406,678 | 3,406,679 | Uncaught TypeError: Object [object Object] has no method 'overlay' | <p>Why do I get this error from my overlay jquery code?</p>
<p>This is the code:</p>
<pre><code>jQuery(document).ready(function($) {
// if the function argument is given to overlay,
// it is assumed to be the onBeforeLoad event listener
$("a[rel]").overlay({
mask: 'darkred',
effect: 'app... | javascript | [3] |
981,901 | 981,902 | Detect if a PHP script is being run interactively or not | <p>I have a script that is designed to be run both as a web page, and via the console.</p>
<p>Detecting which method was used to invoke the script seems pretty straight forward, but when the script is being run from the console, I need to know if the script is being run interactively or not (user typing commands, or i... | php | [2] |
2,161,130 | 2,161,131 | Setting month and year values for the next 6 months in Javascript | <p>I am using a rather nice iPhone date control for a iPhone only website I am developing: <a href="http://cubiq.org/spinning-wheel-on-webkit-for-iphone-ipod-touch" rel="nofollow">http://cubiq.org/spinning-wheel-on-webkit-for-iphone-ipod-touch</a></p>
<p>One of the wheels I want to create is basically the next 6 month... | javascript | [3] |
766,519 | 766,520 | request.querystring | <p>how can i use request.querystring in asp.net.i have a linkbutton and this is in a repeater control.i want to play video for the corresponding link _click.i want to pass a fileID of the corresponding link to a function,how can i do this ?</p>
<pre><code><asp:Repeater ID="Repeater2" runat="server">
<Item... | asp.net | [9] |
2,287,377 | 2,287,378 | XPathEvaluator Not working in IE 9 | <p>XPathEvaluator is not working in IE 9.
Can you please tell me the new method to replace this.</p>
<p>Thanks,
Hemant</p>
| javascript | [3] |
1,712,462 | 1,712,463 | What is the most effective programming language for creating a Final Fantasy 6-style RPG? | <p>I am an extremely amateur programmer aspiring to create an RPG reminiscent of Final Fantasy 6. I have a small amount of experience in Python (3.3.0), but due to limitations on my computer I have been unable to install add-ons such as Pygame (I run a Mac OS 10.6.8, and there's no compiler for the Mac version of Pygam... | python | [7] |
5,345,007 | 5,345,008 | How to have clicking the phone's search button do nothing? | <p>I'm trying to set up a screen so that when you click on the magnifying glass at the bottom of the phone it doesn't show the standard search area at the top of the screen: essentially, have it ignore (or catch it so I can do nothing) when the magnifying class is clicked on? </p>
| android | [4] |
2,171,237 | 2,171,238 | how to reload page using javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5294842/how-to-refresh-a-page-using-javascript">how to refresh a page using javascript?</a> </p>
</blockquote>
<p>how to reload (refresh) the web-page through java script only once not repeatedly. I want to refr... | javascript | [3] |
2,920,004 | 2,920,005 | Pass variable to a class which extends another one | <p>I'm using tFPDF class.</p>
<p>I'm extending this class using this code to get custom Header and Footer</p>
<pre><code>class PDF extends tFPDF{
function Header(){
$this->Image('../../images/logo-admin.png',10,6,30);
$this->SetFont('DejaVu','',13);
$this->Cell(247,10,$produto,0,... | php | [2] |
2,233,718 | 2,233,719 | c# what is the point of using SET? | <p>why do we do this:</p>
<pre><code> private string StatusText
{
set { toolStripStatusLabel1.Text = value; }
}
</code></pre>
<p>instead of just this?</p>
<pre><code>private string StatusText
{
toolStripStatusLabel1.Text = value;
}
</code></pre>
<p>i do not understand the point of using set?</p>
| c# | [0] |
1,394,207 | 1,394,208 | PHP: Variable changes value without seemingly any reason | <pre><code>$subjectDirectory = '../blogtext/';
$subjectHandle = opendir( $subjectDirectory );
$fileName = $_SERVER['PHP_SELF'];
$tempArray = explode( '-', $fileName );
$finalNum = '-'.$tempArray[1].'-';
$subjectFile;
if( $subjectHandle = opendir( '../blogtext/' ) )
{
/* If you echo $finalNum here, you get '-0-' on ... | php | [2] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.