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 |
|---|---|---|---|---|---|
2,345,020 | 2,345,021 | $.post not working in firefox | <p>Here's my code it works fine in IE and Chrome, but not in FF</p>
<pre><code><script type="text/javascript">
function get() {
$.post(
'regAuth.php',
{usrName: login.usrName.value, password: login.password.value},
function (output) {
$('#error').h... | jquery | [5] |
5,391,001 | 5,391,002 | Dynamic Array Java program converted to C# | <p>The folowing program was orignally in java. But i still get 1 error with the program in C#.<br>
(the eror is listed in comment in the 2nd block of code).</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.Collections.Generic;
using System... | c# | [0] |
351,129 | 351,130 | A way to override the constructor on HTMLElement so I can add custom code | <p>I'm trying to somehow override the constructor of HTMLElement (specifically HTMLDivElement), so that whenever any are created by whatever means, I can run some custom logic.</p>
<p>Obviously this doesn't work:</p>
<p><code><pre>
HTMLDivElement.prototype.constructor = function()
{
alert('div created!');
}
</pre><... | javascript | [3] |
2,998,221 | 2,998,222 | Call Show windows side by side in C# | <p>Dumb question is there an easy way to clear to the desktop and then open two explorer windows and call the "Show windows side by side" task bar call ? Just wondering if there is an api in an MS library way to do this.</p>
| c# | [0] |
4,056,913 | 4,056,914 | Jaxb2marshaller - using contextPath and classesToBeBound | <p>Is this possible? I have a service that may need to marshal objects from a significant number of projects, each with several object factories. I currently only specify a few specific classes that need to be marshalled on a regular basis. Can I add a list of contexts for the other projects, as well as keep my curr... | java | [1] |
4,400,149 | 4,400,150 | C# Accessing object properties indexer style | <p>Is there any tool,library that would allow me to access my objects properties indexer style ?</p>
<pre><code>public class User
{
public string Name {get;set;}
}
User user = new User();
user.Name = "John";
string name = user["Name"];
</code></pre>
<p>Maybe the dynamic key word could help me here ?</p>
| c# | [0] |
906,354 | 906,355 | Is it a reference to a function or what? | <p>What does the following declaration mean?</p>
<pre><code>typedef int (&rifii) (int,int);
</code></pre>
<p>Is it a reference to a function? If yes, shouldn't it be initialized?</p>
| c++ | [6] |
1,029,498 | 1,029,499 | Finding multiple words and print next line using Python | <p>I have huge text file. It looks as follows</p>
<pre><code>> <Enzymologic: Ki nM 1>
257000
> <Enzymologic: IC50 nM 1>
n/a
> <ITC: Delta_G0 kJ/mole 1>
n/a
> <Enzymologic: Ki nM 1>
5000
> <Enzymologic: EC50/IC50 nM 1>
1000
.....
</code></pre>
<p>Now i want to create... | python | [7] |
2,290,440 | 2,290,441 | C++, fastest method of getting angle into a specified range? | <p>what's the fastest way of getting a variable into a given range? For example, make sure that an angle "double alpha" is always within (0.0, 2*Pi).</p>
<p>I found two solutions myself, one of them is much slower and the other looks way to complicated for such an easy task. There must be a better way, or not?</p>
<p... | c++ | [6] |
3,063,215 | 3,063,216 | Basic Authentication | <p>I have one VS application named Dotnetpanel, which provides a lot of webservices.</p>
<p>I created another another VS application say TestModule in which I need to create the webservice client. But when I try to create a client and call the webservice in TestModule, an error occured"The request failed with HTTP sta... | asp.net | [9] |
1,449,142 | 1,449,143 | ASP.NET username/password security | <p>I'm using VS2010,C#,SQL Server to develop my ASP.NET web app, although this is not my first ASP.NET experience, but this time my project is more attack-prone and I should consider better security polices. I have a login screen as my first page, users enter their user name and password and a page specific to them is ... | asp.net | [9] |
4,338,898 | 4,338,899 | Is it possible to add instance methods to all "classes" in JavaScript? | <p>This is more of an exploratory question, seeing how the core JavaScript stuff works. I realize the convention is to not override any core JavaScript classes, but I just can't seem to wrap my head around this one.</p>
<p>You can create what acts like "class methods" in JavaScript by adding to the core <code>Functio... | javascript | [3] |
3,204,882 | 3,204,883 | convert image sequence using ffmpeg | <p>I have been using ffmpeg to convert a sequence of jpegs to a video using the following syntax</p>
<pre><code>ffmpeg -f image2 -i frame%d.jpg -vcodec mpeg4 -b 800k video.avi
</code></pre>
<p>it works a treat, however if the filenames dont start at 0 and then pursue in accending order I get weird results. for exampl... | c# | [0] |
175,954 | 175,955 | How to select the first item in an array | <p>I am having an array for example a <code>['global','flexible','testing']</code> in a JSON response. But on the HTML page i might be having 50 global terms, 20 flexible terms and 100 testing terms. But how to highlight only the first global, first flexible and first testing. I tried with each loop, but getting script... | jquery | [5] |
5,936,124 | 5,936,125 | "is" not working in python IDE but working in command line | <p>I couldn't understand why this is happening actually..</p>
<p>Take a look at this python code :</p>
<pre><code> word = raw_input("Enter Word")
length = len(word)
if word[length-1:] is "e" :
print word + "d"
</code></pre>
<p>If I give input "love", its output must be "loved". So, when I wrote ... | python | [7] |
2,517,962 | 2,517,963 | Using reflection to update embedded resource in an assembly? | <p>I have an exe file that has embedded resource inside. I'd need to write another application that would open the exe, update it's resource and save it back as a valid executable. (I can't recompile it because machine where it'll be run may not have it's source available).</p>
<p>Is that possible and how (I need an i... | c# | [0] |
1,550,514 | 1,550,515 | I'm creating a page that uses Linqfor data access and I'm using DataList to display data. How can I use Linq to do data paging in asp.net using C#? | <p>I'm creating a page that uses Linqfor data access and I'm using DataList to display data.How can I use Linq to do data paging in asp.net?can anyone plz show both the aspx part aspx.cs part?can anyone plz show both the aspx part aspx.cs part?</p>
| c# | [0] |
4,816,216 | 4,816,217 | Jquery - Get the latest element in a div | <pre><code><div class="content">
<div class="tlcontent">
<div class="sideon" id="sideline0">
somethings
</div>
<div class="trackon" id="trackline0">
somethings
</div>
<div class="sideon" id="sideline1"&... | jquery | [5] |
3,569,820 | 3,569,821 | How to post Imageview image to server? | <p>Hi all I have an imageview where I am setting image and on click that image send to server please suggest me how I can do it</p>
| android | [4] |
4,099,642 | 4,099,643 | C++ Templated Virtual Function | <p>Templated virtual member functions are not supported in C++ but I have a scenario where it would be ideal. Im wondering if someone has ideas for ways to accomplish this.</p>
<pre><code>#include <iostream>
class Foo {
public:
virtual void bar(int ){}
// make a clone of my existing data, but with a di... | c++ | [6] |
4,519,891 | 4,519,892 | WebView Failed error in iPhone | <p>I am trying to load website in webview.But i am getting error. Please correct me where i am wrong </p>
<p>URL : <a href="http://www.facebook.com/pages/Fresh-Caesar/144860502248864" rel="nofollow">http://www.facebook.com/pages/Fresh-Caesar/144860502248864</a>
Error : The operation couldn’t be completed. (WebKitE... | iphone | [8] |
2,670,493 | 2,670,494 | jQuery toggle functions only assign a css to an element for a second (then removes it)? | <p>I have this HTML:</p>
<pre><code> <div class="user-contribution">
<p class="user-review"> Review</p> 2. Animate this
<a class="user-review-toggle" href="#">Read more...</a> // 1. Clicking this
</code></pre>
<p>this CSS:</p>
<pre><code> .user-contribution {
... | jquery | [5] |
2,894,652 | 2,894,653 | How to add effects on bitmap in android? | <p>I am creating an android Application that will add effect on Bitmap.
Is there any library for generating effects on bitmap?</p>
<p>Please provide me a sample or a link .I search on google and also on stackOverflow but i
couldn't find any thing helpfull.</p>
<p>thankx in advance</p>
| android | [4] |
1,135,917 | 1,135,918 | Please explain this e-mail validation regular expression: | <p>I have this script uses regular expressions to check that a form field contains a valid email address.Please explain me from declare</p>
<pre><code>var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i;
</code></pre>
<p>Thank you</p>
<p>Source:</p>
<pre><code><script type="text/javascript"... | javascript | [3] |
898,371 | 898,372 | how do i change this code for videos? | <p>This is my code below which takes a picture from gallery to save in database. How do I change this piece of code for videos? What I write instead of bitmap? Please help me how do I change??? I want change this code to take video from gallery safe in internal memory and safe is path in database is work fine for pho... | android | [4] |
3,432,499 | 3,432,500 | Use MakeCert to Authenticate | <p>I am doing a project on Verifying/Authenticating School Certificates to make sure that its real. Anyone has any ideas how to do it using MakeCert.exe in C#</p>
| c# | [0] |
3,012,079 | 3,012,080 | Is there any way to convert plain text into HTML with line breaks? | <p>I have a PHP script which retrieves the contents of a raw / plain-text file and I'd like to output this raw text in HTML, however when it's outputted in HTML all the line breaks don't exist anymore. Is there some sort of PHP function or some other workaround that will make this possible?</p>
<p>For example, if the ... | php | [2] |
4,324,489 | 4,324,490 | Python text search question | <p>I wonder, if you open a text file in Python. And then you'd like to search of words containing a number of letters. </p>
<p>Say you type in 6 different letters (a,b,c,d,e,f) you want to search.
You'd like to find words matching at least 3 letters.
Each letter can only appear once in a word.
And the letter 'a' alway... | python | [7] |
1,848,489 | 1,848,490 | Brackets around 0 in "return (0);" statement in 'main' function - what are they for? | <p>Usually auto-generated c++ "main" function has at the end</p>
<pre><code>return (0);
</code></pre>
<p>or</p>
<pre><code>return (EXIT_SUCCESS);
</code></pre>
<p>But why there are parentheses in above statements? Is it related to C language or something?</p>
<p>// EDIT</p>
<p>I know this is correct, but someone ... | c++ | [6] |
2,422,901 | 2,422,902 | NSUSERDefaults class HAVE PROBLEM OR NOT? | <pre><code>NSString *string = @"Hardwork";
NSUserDefaults* defs111 = [NSUserDefaults standardUserDefaults];
[defs111 setObject:string forKey:@"first_name_textfield"];
</code></pre>
<p>Hi,
In my code I'm unable to set this value string for key first_name_textfield.
Why is it,so?</p>
| iphone | [8] |
3,856,521 | 3,856,522 | How can i display stringBuilder objects as well as Arraystring in alert box in asp.net | <p>when we store more than one string in arraystring or in stringbuilder class objects.then how can we print it on alert box in asp.net</p>
| asp.net | [9] |
3,797,537 | 3,797,538 | Android how to create activity only if it wasn't created yet | <p>I have a problem cause when I go to different activities using startActivity function,
they always get created from scratch. Even if activity A was visited before, when I go to activity B and then A again, activity A is created again.</p>
<p>The problem is with back button, cause if I go to Activity A then B then A... | android | [4] |
1,022,507 | 1,022,508 | Root Path Problem in asp.net? | <p>in my application a link button is there when i click on it it redirect to another page. But when i click on that page it is giving error like this...</p>
<p>Cannot use a leading .. to exit above the top directory.
Description: An unhandled exception occurred during the execution of the current web request. Please... | asp.net | [9] |
2,592,699 | 2,592,700 | If all input fields are dirty return true, How? | <p>If <strong>all</strong> fields in the form are dirty return true if not then return false.
Here is my code.</p>
<pre><code>function getHasChanges() {
var hasChanges = false;
$(":input:not(:button):not([type=hidden])").each(function () {
if ((this.type == "text" || this.type == "textarea" || this.ty... | jquery | [5] |
3,878,569 | 3,878,570 | Form Submission in Pop Up Window using Javascript | <p>I have a requirement that i have to submit a form with values in javascript.
That method is "POST" type.</p>
<p>The form submission should be in new pop up window.
The current window will have to remains the same.....</p>
| javascript | [3] |
3,044,546 | 3,044,547 | Sending Data in Aeroplane Mode | <p>I am developing a chronometer app for iPhone which will used by the drivers in races. There will be a countdown. If user receives any call, in that case, the countdown will be paused. so I thought if user run his iPhone in Aeroplane mode, then he will not receive any call. But my problem is that, User will also have... | iphone | [8] |
1,369,045 | 1,369,046 | Access denied error | <p>i created a web application on (Machine 1) and published it in IIS 7 (this machine running windows server 2008),from another machine (machine 2) running windows 2008 i send url string to create local windows account on the other machine (i.e machine1) but i always get access denied error.</p>
<p>here th code snippe... | asp.net | [9] |
5,947,940 | 5,947,941 | Access instance variable name within class | <p>A little background - I am playing around with pygame, and want to create a dictionary of all Mob class instances' positions.</p>
<p>The way I see it:</p>
<pre><code>human = Mob(pos)
mob_positions = {human : pos}
</code></pre>
<p>So every time I call <code>Mob.__init__()</code> I wanted to add a <code>pos</code> ... | python | [7] |
388,825 | 388,826 | Code equivalent for android:password="false" | <p>I'd like to ask a simple question, what is the equivalent <strong>android code</strong> for <strong>android:password="false"</strong> on the xml layout file. (I googled it but can't find the result:) )</p>
<p>Thank you</p>
| android | [4] |
84,577 | 84,578 | Download specific file from FTP using python | <p>quick and simple:</p>
<p>I have the following function, works well if i specify the file name.</p>
<pre><code>import os
import ftplib
def ftpcon(self, host, port, login, pwd, path):
ftp = ftplib.FTP()
ftp.connect(host, port, 20)
try:
ftp.login(login, pwd)
ftp.cwd(path)
for f... | python | [7] |
2,657,189 | 2,657,190 | Have any Professional course (certification program) for iPhone developer? | <p>Have any Professional course (certification program) for iPhone developer? Like MCAD for Microsoft .NET developer and Zend for PHP developer.</p>
| iphone | [8] |
3,221,356 | 3,221,357 | Populating a TextBox from a text file | <p>Im trying to get specific lines from a file and put them in a another string or maybe if we can put it in anothe textbox it wont be a prob :P</p>
<pre><code>string[] msglines;
msglines = System.IO.File.ReadAllLines(@"C:\\Users\xA\Desktop\MESSAGES.txt");
for (int x = 0; x < msglines.Length; x++)
{
this.text... | c# | [0] |
4,952,800 | 4,952,801 | Sort by two values prioritizing on one of them | <p>How would I sort this data by <code>count</code> and <code>year</code> values in ascending order prioritizing on the <code>count</code> value? </p>
<pre><code>//sort this
var data = [
{ count: '12', year: '1956' },
{ count: '1', year: '1971' },
{ count: '33', year: '1989' },
{ count: '33', year: '19... | javascript | [3] |
5,262,941 | 5,262,942 | Setting only a setter property | <p>I have an object model that has a property like this:</p>
<pre><code>public class SomeModel
{
public string SomeString { get; set; }
public void DoSomeWork()
{
....
}
}
</code></pre>
<p>I want the <code>DoSomeWork</code> function to execute automatically after the <code>SomeString</code> propert... | c# | [0] |
2,245,911 | 2,245,912 | Mastering C++ to prepare for my second year: How? | <p>I'm going to my second year of Computer Science at a local University, in which C++ is a large part of the education, but as they only give an introductory course in the first year (basics, pointers, creating a linked list and an implementation of a game like Mastermind), I'd like to program a bit in my free time to... | c++ | [6] |
932,252 | 932,253 | opening a pcap file in python | <p>I'm trying to open a .pcap file in python. can anyone help with this? each time I try this, it gives an error message that <code>"IOError: [Errno 2] No such file or directory: 'test.pcap'"</code></p>
<pre><code>import dpkt
f = open('test.pcap')
pcap = dpkt.pcap.Reader(f)
</code></pre>
| python | [7] |
1,171,663 | 1,171,664 | Repetitive sequence constructor | <p>Can I build a </p>
<pre><code>vector<vector<int> >
</code></pre>
<p>using Repetitive sequence constructor?</p>
<p>I know I can build one like </p>
<pre><code>vector<int> v(10, 0);
</code></pre>
<p>but I dont know how to build a vector of vector using this same method. Thank you!</p>
| c++ | [6] |
1,493,041 | 1,493,042 | using datatype in php is possible? | <p>i have seen this in php (symfony):</p>
<pre><code> public function executeShow(sfWebRequest $request)
{
// logic
}
</code></pre>
<p>i didnt know that you could declare a datatype in php?</p>
<p>have i missed something?</p>
<p>could someone explain this.</p>
<p>thanks</p>
| php | [2] |
2,983,864 | 2,983,865 | jQuery: find multiple element types having a certain attribute | <p>I currently have the following code:</p>
<pre><code>$('input[data-geo], select[data-geo]').doSomething()
</code></pre>
<p>Ideally I'd like to only declare the <code>[data-geo]</code> attribute once. Not sure if this is possible, but something along the lines of:</p>
<pre><code>$('(input, select)[data-geo]')
</cod... | jquery | [5] |
5,899,975 | 5,899,976 | PHP exec Failing with Status = 3 | <p>I have the following code snippet:</p>
<pre><code>$app = '"' . getcwd() . "\\prog.exe" . '"';
exec("$app param1 param2", $output, $status);
</code></pre>
<p>It runs fine locally on EasyPHP-12.1, but when I uploaded it to the deployment server, it failed with $status==3. I tried leaving out the path like so:</p>
... | php | [2] |
3,633,406 | 3,633,407 | Android,CustomListView | <p>How could i decide size of each line in a ListView?</p>
<p>My problem is that i have a list of text and now each text (each line) is different in length but the size of the text is the same, so the problem is if the text is big my ListView will not be adjust for the text and will cut part of it.</p>
<p>I use this... | android | [4] |
3,140,632 | 3,140,633 | Application has stopped unexpectedly. Please try again | <p>My android app gives the following when I try to run it....</p>
<p>The application OxfordApp has stopped unexpectedly. Please try again.</p>
<p>My code is as follows:</p>
<pre><code>package oxfordlife.com.android;
public class OxfordApp extends Activity {
@Override
public void onCreate(Bundle savedInsta... | android | [4] |
220,160 | 220,161 | Various Ways Of Declaring Functions In JavaScript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/336859/javascript-var-functionname-function-vs-function-functionname">JavaScript: var functionName = function() {} vs function functionName() {}</a> </p>
</blockquote>
<p>I was doing some reading up in JavaScrip... | javascript | [3] |
5,861,902 | 5,861,903 | map view is struck in android | <p>i am developing android applicaiton disply user overlays on map.user values getting from webservices for disply overlays.when i tap on map and move it is calling draw method and connecting to webservices while connecting webservice and getting data my apps is struck</p>
<p>show force close error .how can i resolve ... | android | [4] |
4,867,320 | 4,867,321 | A Python gotcha: Stray comma at end of simple assignment | <p>I just spent the better part of a day finding a bug caused by a stray comma at the end of an assignment statement. The difficulty in finding my bug was exacerbated by a third-party callback library that was trapping exceptions but it made me wonder why Python (2.x) doesn't raise a syntax error instead of creating a ... | python | [7] |
1,697,359 | 1,697,360 | php shows code only sometimes | <p>I'm studying PHP (so I'm a rookie). I'm working on a PC (windows 7) with XAMPP, Apache.</p>
<p>I have two files exampleform.html:</p>
<pre><code><html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<... | php | [2] |
4,170,128 | 4,170,129 | Why import when you need to use the full name? | <p>In python, if you need a module from a different package you have to import it. Coming from a Java background, that makes sense.</p>
<pre><code>import foo.bar
</code></pre>
<p>What doesn't make sense though, is why do I need to use the full name whenever I want to use bar? If I wanted to use the full name, why do ... | python | [7] |
5,082,995 | 5,082,996 | Should jQuery .on() work on mobile (iPhone Safari)? | <p>I'm using the following:</p>
<pre><code>$('#container').on('click', 'a', function() {
//bla
});
</code></pre>
<p>and what happens is that the whole <code>#container</code> gets highlighted by the click and not the <code>a</code> and the event doesn't work.<br> Any ideas why?</p>
| jquery | [5] |
965,595 | 965,596 | Run a method thats name was passed as a string | <p>I have a C# method that takes a string as an argument, that string contains the name of a static method e.g</p>
<pre><code>"MyClass.GetData"
</code></pre>
<p>Is it possible to run that method from the value passed in the string?</p>
| c# | [0] |
2,339,608 | 2,339,609 | Navigation Bar at Bottom | <p>Can we have NavigationBar at the bottom of the screen.As i have to display a image at the top of the screen.</p>
| iphone | [8] |
5,146,875 | 5,146,876 | An expression that's equivalent to the return keyword | <pre><code>void Foo()
{
var xMaybeNull = GetX();
if (xMabyeNull == null) return; // Some way to get rid of this extra
// sentence without loosing the check
// do stuff
}
</code></pre>
<p>The easy way would be this, but the compiler expects an expression.</p>
<pre><code>... | c# | [0] |
4,739,017 | 4,739,018 | 32 Bit Com Server on 64 Bit System | <p>i developed a Com Server and on windows XP 32 bit. To Test the Com Server i created a Client with C# to call the Functions via Interop.
Everything works fine, but now i need to get the ComServer run on a Windows 7 64 bit System.
I took the ComServer DLL and the C# EXE to the 64 bit Computer, registered the ComServer... | c++ | [6] |
3,750,084 | 3,750,085 | How to eliminate unused arguments in an opacity fade? | <p><code>element</code> is called but never used, they are just passed back to a another function call. This seems like a waste is there a better way to do this?</p>
<p><strong>Initial Call</strong></p>
<pre><code>fadeUp( document.getElementById( 'test' ), 3000 );
</code></pre>
<p><strong>Fades the opacity of an el... | javascript | [3] |
825,915 | 825,916 | Rounding a number off to certain number of places Java | <p>Good afternoon</p>
<p>Would just like to know what the easiest way would be of rounding a value of to a certain number of decimal places in Java.</p>
<p>With C#.</p>
<pre><code>double answer;
double numberOne;
double numberTwo;
Console.WriteLine("Enter the numbers for your calculation");
numberOne = Double.Parse... | java | [1] |
3,220,204 | 3,220,205 | Remove all styles from dynamic label in asp.net | <p>I have a label and I got some text from database.
text format like: Windows Server 2008 ...etc
But sometimes there are different fonts or something like style. How can I remove all of them quickly?</p>
<p>I know I can make it with replace command. But is there any quick way for it?</p>
| asp.net | [9] |
1,400,045 | 1,400,046 | Retrieve values from a pop up window to the parent window | <p>I have a pop up window that contains some selections. Once the user selects options, the selected options need to be displayed in the main window. The main window doesn't need to be refreshed when options are selected from the pop up window. I'm using javascript for this, but I cannot figure out how to access the <c... | javascript | [3] |
5,802,988 | 5,802,989 | error: expected primary-expression before X token | <p>Can you explain what the title error usually means?</p>
<p>I get it sometimes and I always eventually manage to fix it by accident, but I still don't have a clue what it means.</p>
<p>Here's an example from my current error:</p>
<pre><code>Lca<RankVec, VertexVec> lca(graphList[0], dset, ss&);
</code></p... | c++ | [6] |
2,183,747 | 2,183,748 | Passing a variable through next and previous pages | <p>I start the page with the: </p>
<pre><code>$selectedMenu = $_GET['selectedMenu'];
</code></pre>
<p>Then I have next and previous functions </p>
<pre><code><?php if ($prev) { ?>
<a href='?AID=<?=$prev?>&selectedMenu=$selectedMenu' style='background-image:url(/images/navDivider.png); backgr... | php | [2] |
3,585,063 | 3,585,064 | Compare unsigned char = 0x00 and signed char = '00' | <p>How do i compare the following:</p>
<pre><code>unsigned char a = 0x00;
char b = '0'; // signed char
</code></pre>
<p>how do i write a comparison/conversion that matches a and b?</p>
<p>thanks!</p>
| c++ | [6] |
4,741,086 | 4,741,087 | Display Content div onclick of nav item | <p>Question : Beginner Level
Code: Pure Javascript</p>
<p>I had created a web page in which i am rendering the main nav items via a for loop in javascript. Below the main nav i had created some content assigned each main content div with different ids. </p>
<p>Now i want onclick of any nav item, respective content di... | javascript | [3] |
5,831,071 | 5,831,072 | Executing a script | <p>I need to execute a script within php, i tried almost everything..</p>
<pre><code>http://bulksms.mysmsmantra.com:8080/WebSMS/SMSAPI.jsp?username=user&password=******&sendername=Vfup&mobileno= '.$f.' &message='.$message1.''
</code></pre>
<p>I tried java script, but i $f and $message1 are variables, ... | php | [2] |
4,033,092 | 4,033,093 | Validate Boolean Query - java | <p>I need the java code snippet for the below logic:</p>
<p>Following is a string and I need to validate the string based on the below condition :</p>
<p>"<strong>100</strong> or <strong>200</strong> and <strong>345</strong> not <strong>550</strong> " - Valid string </p>
<p>"<strong>abc</strong> or <strong>200</stro... | java | [1] |
6,012,748 | 6,012,749 | jQuery event.target and is(":checked") not working | <p>Just a simple question.</p>
<p>I'm using</p>
<pre><code>console.log(jQuery(event.target).is(":checked"));
</code></pre>
<p>and it returns false everytime.</p>
<p>If I do a <code>console.log(jQuery(event.target))</code> is prints out the input box, so I know event.target is correct.</p>
<p>I can't use <code>this... | jquery | [5] |
3,548,321 | 3,548,322 | not understanding this javascript equation | <p>Em. I'm looking at the easing equation here:</p>
<pre><code>var easing = function( t, b, c, d ) {
return c * ( t /= d ) * t * t * t + b;
}
</code></pre>
<p>So presumably one can write it like this:</p>
<pre><code>var easing = function( t, b, c, d ) {
return c * ( t = (t/d) ) * t * t * t + b;
}
</code></pre>... | javascript | [3] |
606,262 | 606,263 | fixing many of headers and cookies problems | <p>i am still beginner in PHP but i found that one of the good things when you want to Avoid scripting headache is to turn output buffering on, specially that the script may work well in localhost but you face some troubles when you upload it to your site</p>
<p>simply at the top of your code before any HTML code you ... | php | [2] |
5,154,439 | 5,154,440 | Using Javac in C#? | <p>Okay, so I've been working on this a while (and I've gone through multiple questions to get this far in the project).</p>
<p>Here's the C# code I'm using:</p>
<pre><code> Process p = new Process();
p.StartInfo.RedirectStandardError = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "javac";
Di... | c# | [0] |
2,348,710 | 2,348,711 | Why is StringBuilder final - versus having all final methods? | <p>The motivation for this was my answer ("Wishful thinking") to an <a href="http://stackoverflow.com/questions/7446994/what-are-the-pros-and-cons-of-having-private-methods-return-string-instead-of-pas/7447512#7447512">earlier question on StringBuilder best-practices</a>. If StringBuilder was extensible, then domain-s... | java | [1] |
5,041,388 | 5,041,389 | Gzip and Cache PHP Code | <p>Here is my PHP Code</p>
<pre><code>$phpver = phpversion();
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
$do_gzip_compress = FALSE;
if ($phpver >= '4.0.4pl1' && (strstr($useragent,'compatible') || strstr($useragent,'Gecko'))) {
if (extension_lo... | php | [2] |
1,656,788 | 1,656,789 | PHP loop position | <p>Can someone help me on this. I'm made an image uploader and i want the image to make another tr if it reach to 5 pics so it will not overflow. Here is my code:</p>
<pre><code>$dbc = mysql_connect("localhost" , "root" , "") or die (mysql_error());
mysql_select_db('blog_data') or die (mysql_error());
$sql = "SELECT ... | php | [2] |
454,442 | 454,443 | Closing a sub form using MDI parent/child forms? | <p>I'm trying to close a MDI child form inside a parent form with a button click..</p>
<p>I'm using Visual C++</p>
<p>ive try the following</p>
<pre><code> newMDIChild->Close();
newMDIChild->Cancel = true;
newMDIChild->Hide();
newMDIChild->Visible = false;
</code></... | c++ | [6] |
864,786 | 864,787 | Retrieving selected text from textarea when span is clicked in IE | <p>I want to get the selected text within the text area when 'span' is clicked. When I click button the selection works but not when I click on span.<br>
Maybe because the selection is lost when span is clicked, but it's not happening when button is clicked?
How to fix it?</p>
<pre><code>function Copy() {
var theSe... | javascript | [3] |
1,147,370 | 1,147,371 | How do I configure PHP to have permission to create directories and make files? | <p>I have a PHP script that receives uploads and it works fine in mamp, creating directories and receiving files as necessary, but when I move it to the server it errors out saying it can't do either.</p>
<p>[EDIT]
To be clear, the script will received a file and before storing it, it may need to create a directory fo... | php | [2] |
5,231,468 | 5,231,469 | Introduce per-customer personalization in java application | <p>I've searched on internet and here on SO, but couldn't wrap my mind around the various options.</p>
<p>What I need is a way to be able to introduce customer specific customization in any point of my app, in an "external" way, external as in "add drop-in jar and get the customized behavior".</p>
<p>I know that I sh... | java | [1] |
18,241 | 18,242 | I want to develop a android app based on fbreader, but I don't know how to use it | <p>For example, a obvious question is,
How to launch the mainview by a filePath="/mmt/sdcard/ebook/aaa.txt"?
Where is the function?
Thank you!
If there are some blog or bbs where I can learn many things about fbreader, please tell me. ^_^</p>
| android | [4] |
685,200 | 685,201 | Help split the string | <p>I have the string array:</p>
<pre><code>string[] data = new string[] {"1B", "2C", "01", "11", "3F", "5F", "02", "01", "06","12", "1C"};
</code></pre>
<p>Need to find a "01" and then find the next element of the "01". Copying what is between them, including the first "01", and etc. I need to get a new array(or Lis... | c# | [0] |
2,682,644 | 2,682,645 | How to access object prototype in javascript? | <p>In all the articles it is written that JavaScript is a prototype-based language, meaning that every object has a prototype (or, more precisely, prototype chain).</p>
<p>So far, I've tried the following code snippet:</p>
<pre><code>var F = function();
F.prototype.member1 = 1;
var object1 = new F();
console.log(obje... | javascript | [3] |
2,085,631 | 2,085,632 | How to get values from unaligned memory in a standard way? | <p>I know C++11 has some standard facilities which would allow to get integral values from unaligned memory. How could something like this be written in a more standard way?</p>
<pre><code>template <class R>
inline R get_unaligned_le(const unsigned char p[], const std::size_t s) {
R r = 0;
for (std::size... | c++ | [6] |
2,153,107 | 2,153,108 | What does '@' at beginning of a variable mean? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/429529/what-does-the-symbol-before-a-variable-name-mean-in-c">What does the @ symbol before a variable name mean in C#?</a> </p>
</blockquote>
<p>I've seen this a couple of times in code that has been passed ont... | c# | [0] |
4,678,465 | 4,678,466 | Android In-App-Billing RESTORE_TRANSACTIONS with empty JSON! | <p>Hey folks,
I am slightly modified the dungeons example for the Android In-App-Billing SDK article. I am having trouble with the RESTORE_TRANSACTIONS request. I first make a legitimate purchase and that goes fine, I get a call to onPurchaseStateChange with no issue. However, when I try to use RESTORE_TRANSACTIONS ... | android | [4] |
5,366,138 | 5,366,139 | HTML treat code within brackets as PHP code | <p>I am building my website completely in PHP. I am trying to make it as much flexible as possible.</p>
<p>I have seen there are some softwares made in PHP that are able to get a HTML page, and before showing it, the PHP code recognizes the code inside brackets <code>{PHP Code}</code> as PHP code, runs it and only the... | php | [2] |
3,182,330 | 3,182,331 | How to Add/Show Leading "00" instead of "0" in NumericUpdown in C#? | <p>How to Add/Show Leading "00" instead of "0" in NumericUpdown in C# ?</p>
<p>Any help/ideas are appreciated.
Thanks.</p>
| c# | [0] |
1,899,938 | 1,899,939 | CheckBox Style in Android? | <p>I want to do make my check box small than the actual size. How to do it? Any Idea?</p>
<p>for Example we can set the button as small size using the attribute </p>
<pre><code>style="?android:attr/buttonStyleSmall"
</code></pre>
<p>ThanX</p>
| android | [4] |
4,120,530 | 4,120,531 | How to change the value of a 'public static string | <p>Here is my code:</p>
<pre><code>public static String currentStudent = "";
public void login() {
boolean studentLoggedOn = false;
Student student = new Student();
PC_Dialog dialog = new PC_Dialog("Enter Login Information", "Student ID, Password-", "OK");
dialog.choice();
String studentID = dialog.getFie... | java | [1] |
4,357,819 | 4,357,820 | Android big concern for me "force close" | <p>my app is getting "force close" randomly. And every time error can not be same. Is there a way to pop up "error message" with that "force close" to determine what is the cause of it. How to I handle "force close" properly?</p>
<p>Appreciate your help.</p>
| android | [4] |
5,961,164 | 5,961,165 | Representing 2d space of indeterminate size with JS arrays - negative indexes? | <p>I'd like to represent 2d cartesian cordinates in a 2d JS array. The 2d space is of indeterminate size (can extend into -x and -y space too). This is fine for positive x and y values, but with a minimum index of 0 in JS arrays I can't extend into negative x and y space.</p>
<p>I have read some short information ab... | javascript | [3] |
287,840 | 287,841 | Search the text inside a variable for a certain term, php | <ol>
<li><p>I am pulling profiles which mention the word "fitness" from a database like so:</p>
<pre><code>$result = mysql_query("SELECT profile FROM ".$table." WHERE profile LIKE ('fitness')");
</code></pre></li>
<li><p>I am doing a basic retrieval of the <code>$profile</code> variable and echo it.</p>
<pre><code>wh... | php | [2] |
5,978,618 | 5,978,619 | Removing duplicates from a list collection | <p>Hope someone can help me. I am using c# and I am somewhat new to it.
I am loading a text file into my app and splitting the data on "," I am reading part of string into a <code><list></code> when the data is read there is a lot of duplicates that vary depending on the txt file that I load. Can someone tell me... | c# | [0] |
4,926,438 | 4,926,439 | Is there any way to open .doc file in Android? | <p>I have created a app that displays all the content from res/raw folder.</p>
<p>I need that when i click on .doc file it should open and I can view its content.</p>
<p>please help me.</p>
<p>I have ThinkFree.</p>
<pre><code>enter code here
public class FileList extends ListActivity {
public static final Field[] ... | android | [4] |
483,282 | 483,283 | javascript getElementById() for loop (empty textbox validation) | <p>i have the following <a href="http://jsfiddle.net/pmv7W/" rel="nofollow">code</a> that validate against empty textboxes. If there are empty ones, the form will not be able to submit successfully.</p>
<p>However,I cannot seem to get the alert to popup after clicking submit looping through the elements to find if the... | javascript | [3] |
4,817,085 | 4,817,086 | Disable JavaScript input in address bar - Firefox only | <p>I am looking for a way of doing this because my PC is used by more people. Just in case they need to see my saved passwords, they can just type some JavaScript in the address bar and voila..they can see the values of some of my login forms..</p>
<p>I googled and googled but found nothing that can help me customize ... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.