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 |
|---|---|---|---|---|---|
1,777,320 | 1,777,321 | when we use JavaScriptSerializer deserializer? | <p>can u explain this with example.</p>
| c# | [0] |
3,078,853 | 3,078,854 | Windows application Suddenly terminated | <p>Hi my windows application suddenly stops working and gives the error on Windows 7 OS.</p>
<p>"A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."</p>
<p>Even the Error log is not written in My Error Log File.</p>
<p>I have try and Catc... | c# | [0] |
3,790,291 | 3,790,292 | Too many timeouts in android? | <p>i have an Http client in my android app that changes messages with a server.<br>
lately 2 out of every 3 ( approx) messages i send to the server get timed out<br>
is that normal?<br>
Thanks in advance!<br>
Omri</p>
| android | [4] |
5,821,389 | 5,821,390 | Switching a Repeater's ItemTemplate at runtime | <p>Is it possible to define multiple templates for a Repeater's ItemTemplate and switch between them according to some condition?</p>
<p>I use a repeater to view a list of posts but want to have a different view for rows that belong to the current user (e.g. contains a LinkButton for deleting the post)</p>
<p>If this... | asp.net | [9] |
1,469,068 | 1,469,069 | Reference One App_Code Class from Another | <p>Can I access one class in an App_Code sub folder from another (one being C# and the other VB) in an ASP .NET Web Site Project? I am not having any luck.</p>
| asp.net | [9] |
5,859,900 | 5,859,901 | Gallery swipe in android | <p>I have a Horizontal Gallery in the bottom of the activity , My problem is that gallery detect swipe action from the whole layout not just when you on it , from any point in the screen you can drag it, how can i stop that ??</p>
| android | [4] |
4,678,993 | 4,678,994 | jquery get value from input when get value from slider | <p>I have a input text </p>
<pre><code><span id="slider-result-dist"></span>
<div class="slider_dist slider"></div>
<input type="text" name="filter_dist_sea" id="dist-sea" value="<?php echo $states['filter_dist_sea'] ?>" />
</div>
</code></pre>
<p>I have create a slider ... | jquery | [5] |
1,179,711 | 1,179,712 | Change color of navigation buttons of default mail composer | <p>I have used navigation bar category to color my navigation bar. All works fine.
But when I add mail composer picker, navigation bar gets coloured but buttons are default blue.
How can I change those?</p>
<p>I have used image in navigation bar in category. </p>
| iphone | [8] |
5,420,909 | 5,420,910 | jQuery size() method vs length attribute | <p>Is there any difference between <code>$(".selector").size()</code> and <code>$(".selector").length</code> ?</p>
| jquery | [5] |
4,915,313 | 4,915,314 | dynamically set control ID | <p>i have few texboxt and dropdownlist, which their id would be something like "txtName1, txtName2, txtName3..." and "ddlAction1, ddlAction2, ddlAction3...."! I would to to dynamically set the textboxt and dropdownlist id into something like this:</p>
<pre><code>for i as integer = 0 to 6
a = txtName+i.text
b = d... | asp.net | [9] |
6,003,544 | 6,003,545 | saving image from a webpage + saving its name too using PHP | <p>how can i save an image from a web page , for example:</p>
<pre><code>http://othersdomain.com/image/colorful.jpg
</code></pre>
<p>How can i save the image and save it to my directory "image" inside FTP.
and also get the "colorful" name from the link. </p>
<p>As a conclusion , it will get colorful.jpg and save in ... | php | [2] |
3,528,269 | 3,528,270 | How to add an event listener with a callback function that accepts attributes? | <p>And also, how to remove it then?</p>
| javascript | [3] |
1,226,485 | 1,226,486 | c++ variable visibility | <p>PLEASE READ THE SECOND EDIT FIRST.</p>
<p>I am looking for books or websites that explain in detailed the c/c++ memory management models. One of the things I am trying to understand is:</p>
<pre><code>namespace A {
SomeClass A;
}
</code></pre>
<p>vs</p>
<pre><code>namespace A {
static SomeClass A;
}
</c... | c++ | [6] |
508,825 | 508,826 | php - regular expression - PCRE does not support \L, \l, \N, \P, | <p>I need to use the following regular expression to validate some Asian characters</p>
<pre><code> $regexp = "/^[\-'\u2e80-\u9fff\sa-zA-Z.]+$/"; // with warning
$regexp = "/^[\-'\sa-zA-Z.]+$/"; // without warning
</code></pre>
<p>preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \... | php | [2] |
2,788,090 | 2,788,091 | AP Computer Science Logical Operators | <p>Which of the following will evaluate to true only if boolean expressions <code>A</code>, <code>B</code>, and <code>C</code> are all <code>false</code>?</p>
<blockquote>
<p><em>Answer:</em> <code>!(A || B || C)</code><br>
<em>My answer:</em> <code>!(A && B && C)</code></p>
</blockquote>
<p>Why i... | java | [1] |
4,074,906 | 4,074,907 | Is there a default default constructor? | <p>If you don't provide a copy constructor, one is created automatically. This is called the default copy constructor.
A default constructor is a constructor that doesn't take any parameters.
If you don't provide any constructors, a default constructor is created automatically.
Is this called the default default constr... | c++ | [6] |
41,713 | 41,714 | Encrypting hypelinkfields in gridview | <p>I need to encrypt the Url's in my web application. I followed Mads Kristensen's (http://madskristensen.net/post/HttpModule-for-query-string-encryption.aspx) article for encrypting Urls. It is working perfectly. However, I have hyperlinkfield in a gridview for which I am using datanavigateurlformatstring and datanav... | asp.net | [9] |
2,594,620 | 2,594,621 | How to change the divider color in the listview? | <p>I need to change the divider color in the listview. The code I am using to accomplish this is quoted below:</p>
<pre><code> <ListView
android:id="@+id/restaurant_list_widget"
android:layout_width="1px"
android:layout_height="1px"
android:layout_weight="1" android:background="@draw... | android | [4] |
1,936,504 | 1,936,505 | How come some people append f to the end of variables? | <p>In the tutorial I'm reading for OGRE3d <a href="http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Intermediate+Tutorial+1" rel="nofollow">here</a> the programmer is constantly adding <code>f</code> at the end of any variable he initializes, like <code>200.00f</code> or <code>0.00f</code> so I decided to erase <code... | c++ | [6] |
3,334,458 | 3,334,459 | Get string value from a byte string | <p>I have to get the value from byte string this is the byte string </p>
<p>4W3CfJ//nw1CpeA5NfXx9Ia32JyVmgpRrQCzUabFUvv0fqXYLVeNBT6XKjBehFNGtQ3Sng3Zucqu+RcXUzJ3KA==</p>
<p>now how can I get the value from it</p>
| c# | [0] |
3,648,004 | 3,648,005 | Cannot retrieve Selected option value | <p>I can able to get the selected option value in onchange event. But, when clicking the ok button in the same page , I can't get the value selected. Please help me.. </p>
<p>Code is as follows: </p>
<pre><code><select id ="userstoassign">
<option value="s1">S1</option>
<option value="s2" select... | jquery | [5] |
3,331,332 | 3,331,333 | Javascript: how to return own function? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6959426/can-a-javascript-function-return-itself">Can a JavaScript function return itself?</a> </p>
</blockquote>
<p>Consider the following javascript function:</p>
<pre><code>var x = function(msg) {
alert(m... | javascript | [3] |
3,543,486 | 3,543,487 | jquery click without being attached to the DOM | <pre><code>var html = '<div><a href="#" id="test">Btn</a></div>';
$(html).find("#test").click(function(){
console.log("clicked");
});
//later
$(htmlNode).html(html);
</code></pre>
<p>Why don't I receive the "clicked" log?</p>
| jquery | [5] |
3,235,080 | 3,235,081 | Transcript from audio files | <p>i want to extract text from a recorded audio file. i would appreciate if someone can help me.I tried using trancribe and sphinx but none of them fulfilled my purpose.</p>
<p>thanks.</p>
| java | [1] |
1,751,441 | 1,751,442 | Using a std::vector<char> as a variant | <p>I want a simple variant with </p>
<ul>
<li>minimal overhead</li>
<li>that can be passed to functions written in the C language</li>
</ul>
<p>so I decided to use a std::vector like this<br></p>
<pre><code>typedef std::vector<char> SimpleVariant;
SimpleVariant data;
</code></pre>
<p>(1) store a std::string<b... | c++ | [6] |
2,123,662 | 2,123,663 | Enable button in JQuery dialog | <p>I can disable it fine using this:</p>
<pre><code>button.attr('disabled', 'disabled' ).addClass( 'ui-state-disabled' );
</code></pre>
<p>But how do I re-enable it? When I use this:</p>
<pre><code>button.attr('enabled', 'enabled' ).addClass( 'ui-state-enabled' );
</code></pre>
<p>It doesn't work.</p>
| jquery | [5] |
3,988,407 | 3,988,408 | Bindingsource error value does not fall within the expected range | <p><img src="http://i.stack.imgur.com/IKR3S.jpg" alt="enter image description here">I am trying to add BindingSource to my default.aspx. In properties window, when I click on triangle for datasource, a message box appears saying </p>
<p>Value does not fall within the expected range</p>
<p>Why is that? How can I set... | asp.net | [9] |
1,069,153 | 1,069,154 | Access entire urls for a particular keyword | <p>My project need to compare output(only urls) of google and yahoo for a particular keyword.</p>
<p>Can i access entire urls for a particular keyword from google and yahoo? Do they provide any library or any other thing for that?how can i do that?..</p>
| c# | [0] |
1,621,416 | 1,621,417 | open file with fill and sign on drive, android | <p>How can I configure drive on android to open my pdf files with Fill and sign application?
NB: Fill and sign doesn't appear among the options.
Thanks.</p>
| android | [4] |
515,461 | 515,462 | How to replace whitespaces with dashes | <p>My idea is to remove special characters and html codes and replace the whitespaces to dashes
let us doing it step by step</p>
<pre><code>$text = "Hello world)<b> (*&^%$#@! it's me: and; love you.<p>";
</code></pre>
<p>now i'm want the output become <code>Hello-world-its-me-and-love-you</code>
I've ... | php | [2] |
1,930,794 | 1,930,795 | How can I track the reason why an ASP.NET Session times out? | <p>I'm trying to track down an issue on an ASP.NET v3.5 application where the <code>HttpSession</code> times out before its (default) 20 minutes. We're seeing behaviour where the session is lost only a few minutes into a session, at random and with no discernible cause such as unhandled exceptions. As far as I can tell... | asp.net | [9] |
4,030,204 | 4,030,205 | building framework-res.apk, system crashes after replace | <p>I am trying to add two buttons .xml file which is in /frameworks/base/core/res/res/.
I can add buttons without any "android:id" attribute for button view and that works properly on device too. But if try to give id to the buttons added to access them from .java files, the systems is not able to bootup ( all system s... | android | [4] |
1,417,412 | 1,417,413 | Implement the selection sort algorithm using stack or queues? | <p>Implement the selection sort algorithm using stack or queues?</p>
| c++ | [6] |
1,000,344 | 1,000,345 | Using getElementsByTagName to select all divs | <p>I am working on a project where I can only use JS to manipulate an HTML file. I am wanting to change the background color of all divs within the HTML and I currently have the following. </p>
<pre><code>//Highlight Function
function highlight(e) {
e.target.style.backgroundColor = "orange";
}
function unhighlight... | javascript | [3] |
5,140,135 | 5,140,136 | How to make Tk() function from Tkinter module work | <p>I am using Tkinter module in Python console .But the Tk() function is not working and is showing errors like module needs arguments.</p>
| python | [7] |
1,805,524 | 1,805,525 | get contents of url in python | <pre><code>import urllib2
response = urllib2.urlopen('http://api.xyz.com')
html = response.read()
</code></pre>
<p>IN <a href="http://api.xyz.com" rel="nofollow">http://api.xyz.com</a> </p>
<pre><code>{
"responseHeader":{
"status":0,
"QTime":18,
"params":{
"indent":"on",
"q":"",
"wt":"... | python | [7] |
3,446,529 | 3,446,530 | Java : how do I get the precision part in the decimal? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8890472/java-how-do-i-get-the-part-after-the-decimal-point">Java : how do I get the part after the decimal point?</a> </p>
</blockquote>
<p>In my <a href="http://stackoverflow.com/questions/8890472/java-how-do-i... | java | [1] |
4,063,985 | 4,063,986 | PHP zip_open what temporary directory is it using for the temp files | <p>How can I find out the temporary directory that zip_open is using to temporary hold the
extracted files.
Is there a way to extract this from a resource handler getrieved from this:</p>
<pre><code> $zip = zip_open($src_file)
while ($zip_entry = zip_read($zip))
</code></pre>
<p>$zip_entry - being the zip resource ... | php | [2] |
1,183,338 | 1,183,339 | How To Make A Rounded Segmented Button Group On The iPhone | <p>So I'm looking how to make a similar button group for an application on the iPhone that looks like the buttons in the Yelp About Me page or Twitter for Mobile application on the profile pages. Are these just a segmented controller? Or possibly images? I can't really find any resources for this online, so I figured I... | iphone | [8] |
5,250,799 | 5,250,800 | Android onBackPressed/onUserLeaveHint | <p>Just a bit of advice needed really. I have an Activity running with my game in it and when the user presses the Back button it will exit back to the Main Menu using the onBackPressed() method, but I am also overriding the onUserLeaveHint() to do the same action if the Home Button is pressed or a phone call is receiv... | android | [4] |
3,023,358 | 3,023,359 | How to make user input in java be of the type double? | <p>This line:</p>
<pre><code>arr[i] = sc.nextDouble();
</code></pre>
<p>from this code:</p>
<pre><code>public class z01 {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
System.out.println("Enter array size: ");
int n = sc.nextInt(); ... | java | [1] |
1,508,518 | 1,508,519 | PHP get the calling object on a method | <p>Is there a way to get the actual calling object from a method?</p>
<p>For example, I have a scenario where I do something like this:</p>
<pre><code>$user = new User;
$user->setName('name');
$user->save($user);
</code></pre>
<p>Instead of passing the $user to the save method, it would be nice to just have it... | php | [2] |
677,599 | 677,600 | Alert message onfocus | <p>I don't get it. Why does this alert on page load? How to make it alert only "onfocus"?</p>
<pre><code><input id="mail" name="E-post" value="E-post">
<script>
window.onload = function () {
function onfocusFunction() {
alert('Why!?');
}
var myMail = document.getElementById('mail');
... | javascript | [3] |
5,338,188 | 5,338,189 | unable to download all songs from server | <p>in my app i am having a button called download all clicking on which i have to download all songs present on my server. i am able to download one song at a time.
Below is my code:</p>
<p>NetworkManager *manager = [[NetworkManager alloc] init];</p>
<pre><code>NSString *Mp3filePath = [manager GetFile:SongUrl];
NS... | iphone | [8] |
3,711,513 | 3,711,514 | Call to a member function prepare() on a non-object with PDO | <p>I have a function which uses:</p>
<pre><code>require_once("connect.php");
function get_username($uid){
$stmt = $pdo->prepare("SELECT username FROM users WHERE uid= ?");
try {
$stmt->execute(array($uid));
} catch (PDOException $e) {
echo $e -> getMessage(); exit;
}
$row = $stmt->fetch(... | php | [2] |
534,962 | 534,963 | modifying a cloned element and reinserting in dom - jquery | <pre><code> //dom
<div id='toBeCloned'><span>Some name</span></div>
<div id='targetElm'></div>
//js
$(function () {
//creating a clone
var _clone = $('#toBeCloned').clone(true);
// target element
var _target = $('#t... | jquery | [5] |
2,561,920 | 2,561,921 | Android Softkeyboard not showing up when form field is focused via JS | <p>So I'm using the jQuery plugin, RSV(real simple validation) because the client would like to use alert boxes as opposed to inline alerts for the form validation.
This site is for mobile browsers.
The problem I'm running into is that when there's an error, an alert dialogue comes up to tell the user about their offen... | android | [4] |
3,732,763 | 3,732,764 | How to unlock android phone through code remotely | <p>I have written an application that locks android phone remotely. That is when a special code is sent from server then application locks the phone based on the special code. This is the code I am using.</p>
<pre><code>if (!mDPM.isAdminActive(mDeviceAdminSample)) {
// try to become active – must happen here i... | android | [4] |
3,144,007 | 3,144,008 | Php division by 0, help needed? | <p>I keep getting division by 0 error in php.</p>
<p>I am currently using the following: </p>
<pre><code>$ratio = 1/$rate["rate"];
</code></pre>
<p>the value $rate["rate"] is 0.827 (a value returned from a feed)</p>
<p>Please can anyone help with this.</p>
<p>Thanks</p>
| php | [2] |
1,039,262 | 1,039,263 | How to delete a Row from the DB in android | <p>I'm new to android ... i have developed a Database application , were i'm able to insert the textfield details , but i want to delete the specific row , i need to search by name and delete the user.</p>
<p>can someone help me on this :</p>
<p>My DB code is:</p>
<pre><code>public void deleteRow(String firstname)
{... | android | [4] |
1,821,142 | 1,821,143 | java assertion botch negative time | <p>I am getting this error "java assertion botch: negative time" in this environment
java 1.5 update 22
websphere 6.1.013
oracle 11.1.07
kodo</p>
<p>Do you know what it could be
It happens when a select statement is send to the Oracle server, but it just happens in websphere , everithing works fine in webl... | java | [1] |
5,681,653 | 5,681,654 | Best practices for web application workflow? | <p>Note: By workflow i'm not referring to workflow technology, such as Workflow foundation. </p>
<p>All too often I find myself being required to design pages that flow through a series of steps. </p>
<p>1) Select from a set of options. Submit.
2) Populate a page with results. Make changes. Submit.
3) Do somethi... | asp.net | [9] |
2,959,024 | 2,959,025 | simple constructor issue | <p>Lets say I have this class called class1, class1 contains one default constructor and one that takes one parameter (say a string for example). Inside that constructor I set up a variable, lets call it "string var". I want var to get the value from the string that I passed to the constructor while creating that objec... | c# | [0] |
2,293,259 | 2,293,260 | Binary "[" error on structure while using for function | <p>I'm trying to make a Q3BSP map information debugger.</p>
<p>I'm stuck at texture debugger part, this is the code used in that part:</p>
<pre><code>for( i = 0; i < nTextures; i++ ) {
printf( "Texture id %d\n", i );
printf( "\tTexture name %s\n", Texture[i].name );
printf( "\tTexture flags %d\n", Text... | c++ | [6] |
2,631,902 | 2,631,903 | Account balance incorrectly calculated | <p>The result of running the below code is:</p>
<pre class="lang-none prettyprint-override"><code>Final account balance is: -97.0
</code></pre>
<p>But the answer should be 150.0, right? Where have I gone wrong?</p>
<pre><code>class Account
{
double initBalance;
Account(double initBalance)
{
initBalance=th... | java | [1] |
4,814,470 | 4,814,471 | C++ file read fails after 685 successes | <p>I'm working on a piece of C++ through which I read a file. Currently there are only two places (inside a function) where the file is being read from using the .get() method.</p>
<p><strong>1)</strong> The first place is rarely used (in all about six times)</p>
<p><strong>2)</strong> The second place is heavily us... | c++ | [6] |
2,944,433 | 2,944,434 | What does the function then() mean in JavaScript | <p>I've been seeing code that looks like:</p>
<pre><code>myObj.doSome("task").then(function(env) {
// logic
});
</code></pre>
<p>Where does then() come from?</p>
| javascript | [3] |
938,722 | 938,723 | jQuery selection by pattern | <p>I have a table of form elements where each row represents a record and column represents a field. I need to select all form elements in a given column.</p>
<p>Form elements in the same column have the same name format. For example, form elements that represent a location would have a name in the format <code>record... | jquery | [5] |
1,106,191 | 1,106,192 | receive notification when current task ends | <p>I'm writing an android app where I'd like to maintain the current location for the user while my app is open. I'm trying to figure out how to know when to stop listening for updates from my LocationManager, but can't seem to figure out a good way to know when the current task is paused.</p>
<p>Is there an easy way ... | android | [4] |
4,665,700 | 4,665,701 | Get name and values of a form post | <p>How can I print the name and values of a submitted form.</p>
<p>Thanks for any help.</p>
| php | [2] |
1,729,530 | 1,729,531 | Local network php gallery - need to grab images off drive? | <p>Ok, I'm building a simple php gallery that'll act as a photo browser for several pcs and tablets across the house. I have a NAS which has a single drive containing all our photos and I'd like my php app to randomly select 50 every day and display them as a slideshow.</p>
<p>Can anyone tell me if this is possible wi... | php | [2] |
1,626,278 | 1,626,279 | Running PHP files in cloud 9 | <p>Just installed cloud 9 on my computer and I can't run PHP files on it (but JS works fine), any idea of what the reason for that?</p>
| php | [2] |
2,803,045 | 2,803,046 | android how to control shutter time | <p>I develop a camera app ,I want to control camera's shutter time ,is that possible to realize?and what I want to realize final is prolong the exposure function,thank for your answer.</p>
| android | [4] |
2,821,807 | 2,821,808 | Android INSTALL_FAILED_UID_CHANGED | <p>I have been doing debugging on Android using my Nexus 4, however I recently encountered this error here. After doing some research on this error, it seems to be an issue with the app not being deleted properly. The app I am debugging runs fine on my other Android devices as well as the emulators, this error is only ... | android | [4] |
1,063,487 | 1,063,488 | How to convert char to an array of bits in c++? | <p>I need to get each Character of a string as a sequence of bits either in an array or just traverse over it in a loop, either way works. This is something I used to do in ASM way back, and am not sure how that can be done in c++.</p>
<p>EDIT: I am trying to replicate what I did sometime back with asm, reading a file... | c++ | [6] |
706,813 | 706,814 | Generate random word ( from two known words ) | <p>SO I can do this with numbers:</p>
<pre><code><?=number_format(mt_rand(0,1));?>
</code></pre>
<p>What I want to do is echo instead of 0 or 1</p>
<p>the words <strong>firstclass</strong> or <strong>secondclass</strong></p>
<p>Because I cannot use numbers as class identifiers ( css ) So essetinally, this is ... | php | [2] |
6,005,082 | 6,005,083 | Capturing the image from android activity and return to the same activity from where the call to capture image was called | <p>I am new to android.I am developing a survey app in android which will help in taking the survey.In this app i have a field where the picture can be taken of those who is giving the survey.The problem i am facing is as soon as i click the button to capture the image,the image is captured and saved successfully but i... | android | [4] |
521,038 | 521,039 | Message user for being idle | <p>I already have auto logout snippet and now I want the user to know that they are being idle for about minutes. </p>
<p>What is the easiest way to message user for being idle in 1 hour? Can this be done in javascript?</p>
| javascript | [3] |
245,943 | 245,944 | jquery to check for empty field | <p>How can i use jquery to check for the empty input field / to check if the field contains a specified string? </p>
<p>I understand that valid8(); does something similar. Any working example?</p>
| jquery | [5] |
2,172,353 | 2,172,354 | calendar api to set many dates | <pre><code> import java.util.Calendar;
import java.util.Date;
public class Employee {
private Calendar doj;
public Employee(Calendar date) {
// TODO Auto-generated constructor stub
this.doj=date;
}
public Date getDoj()
{
Date cal=... | java | [1] |
3,464,044 | 3,464,045 | Set the current directory when running a SimpleHTTPServer | <p>Is there any way to set the directory where you want to start a SimpleHTTPServer or BaseHTTPServer?</p>
<p>Thanks</p>
| python | [7] |
2,538,386 | 2,538,387 | What is the best .NET type for collections where each key can have multiple values? | <p>I have one key but different values for that key, I tried HashTable but i dont think that is the rite way of doing it. </p>
<p>I'll explain in detail what is is requirment is: </p>
<p>I have a Key - "Asp.net"
for that i have n no of values - 61, 67, 100</p>
<p>So i have to store this somewhere like Dictionary or ... | c# | [0] |
1,715,533 | 1,715,534 | What is the difference between DateTime.UtcNow and DateTime.Now.ToUniversalTime() | <p>To me they're both the same. Is UtcNow simply a shortcut?</p>
| c# | [0] |
5,973,647 | 5,973,648 | cannot set a variable to base on user input post method | <p>Hello i´m trying to set info from a post method into a variable that sets a session named name the value that the user input. I get the following error:</p>
<blockquote>
<p>Notice: Undefined index: name in F:\xampp\htdocs\Impossible game\index.php on line 18</p>
<p>This is line 18: $session = $_POST['name'];... | php | [2] |
726,778 | 726,779 | How to distinguish Click event from touch event in onTouchEvent method when app is running in device? | <p>I override the onTouchEvent method of Activty. In this method i would like to listen to actions: touch and click and give them two different reactions. The problem is when i test my app in emulator, everything works fine. But not in device. As in device, when i just click a button, i don't just get ACTION_DOWN and A... | android | [4] |
2,068,107 | 2,068,108 | Is it possible to access UIBarButtonItem using tag? | <p>I hope to access UIBarButtonItem on an UIToolbar using tag.
The codes show below</p>
<pre><code>UIBarButtonItem *myBarButtonItem=(UIBarButtonItem*)myUIToolBar.items[i];
</code></pre>
<p>but myBarButtonItem returns no object(0x0)</p>
| iphone | [8] |
3,427,156 | 3,427,157 | hiding the tr tags and showing them after the uncheck | <p>I posted <a href="http://stackoverflow.com/questions/3714242/how-do-i-fade-out-all-the-other-tr-tags-with-jquery">this question</a> about 15 minutes ago and I got some good responses. But one thing i forgot is if the user unchecks the checkbox all the others that were hidden need to reappear again.... any ideas</p>
... | jquery | [5] |
2,035,896 | 2,035,897 | How to compare two Dates without the time portion? | <p>I would like to have a compareTo method that ignores the time portion of a java.util.Date. I guess there are a number of ways to solve this. What's the simplest way?</p>
| java | [1] |
5,411,118 | 5,411,119 | Javascript - Online CSS Editor | <p>I'm searching for an online JavaScript CSS editor like this:</p>
<p><img src="http://i.stack.imgur.com/rwPNu.jpg" alt="alt text"></p>
<p>Did somebody know of one?</p>
| javascript | [3] |
4,860,876 | 4,860,877 | Insert element after several characters | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7068653/jquery-or-javascript-to-add-one-line-break-br-after-x-amount-of-characters-i">Jquery or javascript to add one line break <br /> after x amount of characters in a <div></a> </p>
</blockquote>
... | jquery | [5] |
2,257,276 | 2,257,277 | this property is not supported by object? | <pre><code>$(document).ready(function(){
('#mainField').click(function(){
$("#editor").animate({width: 985, height: 200}, 1500);
$("#closeEditor").css("display", "inline");
});
});
</code></pre>
<p>This piece of code doesn't work, what... | jquery | [5] |
3,305,942 | 3,305,943 | Asp.net "allowDefinition=MachineToApplication" error | <p>I have edited the relevant .cs files in my web service. But after editing I end up with the following error: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS." ... | asp.net | [9] |
3,375,350 | 3,375,351 | jquery animating dynamic height div | <p>quick question. im trying to animate a few things with jquery and although its working, this is the problem im having.</p>
<p>well first heres the code:</p>
<pre><code>$(document).ready( function(e){
// vars
var question = $('#faqQues');
var answer = $('#faqAns');
var ansCont = $('#faqAnsCont');
question.clic... | jquery | [5] |
1,248,150 | 1,248,151 | How to attach EventArgs/custom params when you assign a delegate to the event? | <p>I have this code:</p>
<pre><code>this.form.Resize += new EventHandler(form_Resize);
</code></pre>
<p>But I want to assign some objects for later access in the <code>form_Resize</code> event, how can I do that?</p>
<p>and do I access the data in the EventArgs?</p>
| c# | [0] |
5,269,387 | 5,269,388 | C++ Programming Creative Issue Solving | <p>I must be an idiot, but I just cannot find a way to solve this issue:</p>
<p>I want to make a program that takes a jumbled set of chars. and find all possible English words. My issue is that for the life of me I can't figure out how to make all possible combinations of words. I'm fine with the dictionary cross-chec... | c++ | [6] |
289,503 | 289,504 | automatically downloading and installing an exe file | <p>I need to automate the process of downloading and installing an exe file abc.exe from say 'http://10.34.45.21:8080/cruisecontrol/artifacts/xxx_trunk_nightly_build/xxx/test/'</p>
<p>I mean now i have to manually goto ''http://10.34.45.21:8080/cruisecontrol' then click on each folder before i finally click on the abc... | php | [2] |
622,846 | 622,847 | java : Inside Enhanced for loop cannot Object to String | <p>I have taken this example from net .
But when i tried it is not compiling saying cannot convert Object to String </p>
<pre><code>import java.util.ArrayList;
public class Test {
public static void main(String[] args) {
ArrayList names = new ArrayList();
names.add("Amy");
names.add("Bob... | java | [1] |
953,295 | 953,296 | How to extend this jQuery function | <p>I want to extend this function and make my own, this new function should have same functions as the old one but additionalOkClicked should be overwritten with my own function.</p>
<p>How do I do this?</p>
<pre><code> (function ($) {
$.LocationDialog = {
mainInit: function()
{
//so... | jquery | [5] |
490,690 | 490,691 | jQuery - What's the most efficient way to filter out first and second elements found? | <p>I am using the latest and greatest jQuery.</p>
<p>I will have a ten divs with content. On page load, I need to close all divs except the first and second. Only the first two divs I want visible. </p>
<p>Under those visible two divs are "show more" and "show less" buttons. When the user clicks the show more button... | jquery | [5] |
5,691,119 | 5,691,120 | jQuery - can't get dialog popups to pop up, they appear on the page instead | <p>I have a couple small divs that I am trying to pop up when something happens, but they are not popping up, but instead appearing within the content of the page.</p>
<p>Would anyone know why that happens? Also, the jQuery is supposed to show a spinner gif to indicate you should wait, but it doesn't render that eith... | jquery | [5] |
1,550,581 | 1,550,582 | Using a List in another class | <p>I have a list in a class and now I want to update its properties in another class. I am doing this by first the user is asked to enter index of list for the record s/he wants to update but when I do so I am getting an outofrange exception error. Can someone tell me what am I doing wrong. Here is what I did to get th... | c# | [0] |
2,330,219 | 2,330,220 | When to use Structs in C# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/521298/when-to-use-struct-in-c">When to use struct in C#?</a> </p>
</blockquote>
<p>I'm reading a C# tutorial in the net <a href="http://www.csharp-station.com/Tutorials/Lesson12.aspx" rel="nofollow">http://www.... | c# | [0] |
5,985,803 | 5,985,804 | Unsorted List inside a unsorted list created with DOM | <p>So I have creted an UL list with Javascript, but the hierarchy wont get right... And I really dont know how to embeed dem with each other...</p>
<p>This is the look Im strungling for.</p>
<pre><code><div class="dice-toolbar-wrapper">
<ul>
<li class="add"></li>
<li class="remove"></... | javascript | [3] |
3,911,019 | 3,911,020 | JavaScript Encapsulation | <p>So I've been looking into full development object oriented JavaScript practices, and wonder about the following examples.</p>
<p>As I understand it, (and it makes sense to me) that the following 'secret' field is 'private' :</p>
<pre><code>var MyObject = function() {
var secret = 'sshhh';
this.getSecret(... | javascript | [3] |
5,547,125 | 5,547,126 | Java: how to write formatted output to plain text file | <p>I am developing a small java application. At some point i am writing some data in a plain text file. Using the following code:</p>
<pre><code>Writer Candidateoutput = null;
File Candidatefile = new File("Candidates.txt"),
Candidateoutput = new BufferedWriter(new FileWriter(Candidatefile));
Candidateoutput.write("\n... | java | [1] |
4,467,174 | 4,467,175 | List<T> to IEnumerable<T> problem in interface | <pre><code>namespace WpfApplication3
{
public class Hex
{
public String terr;
}
public class HexC : Hex
{
int Cfield;
}
public interface IHexGrid
{
IEnumerable<Hex> hexs { get; }
}
public class hexGrid : IHexGrid //error CS0738: 'WpfApplication3.hexGrid' does not
{
public Lis... | c# | [0] |
1,291,541 | 1,291,542 | Change "HUE" of an image with PHP GD Library? | <p>I'd like to change the "hue" of an image using the PHP image processing functions. Which is the correct filter to apply?</p>
<p>Note: I'm from a photoshop background, so in the event my interpretation of "hue" is different from others, here's what I mean...</p>
<p>In photoshop, you can use the "Hue" filter to chan... | php | [2] |
402,961 | 402,962 | if statement not working with database | <p>Why isn't this code working?</p>
<pre><code>$welcome = mysql_query("SELECT welcome FROM users WHERE id = '" . $_SESSION['user']['id'] . "'");
if($welcome == '0')
{
echo 'register is 0';
}
else
{
echo 'register is 1';
}
</code></pre>
<p><code>$_SESSION['user']['id']</code> returns as 1, by the way.</p>
| php | [2] |
3,033,913 | 3,033,914 | JavaScript functions not defined? | <p>For some reason, Firefox is throwing "function not defined" errors at this piece of JS:</p>
<pre><code> $(function() { // on document ready
function updateAlerts() {
$.ajax({
url : "/check.php",
type : "POST",
data : {
method : 'checkAlerts'
},
success : function(data, ... | javascript | [3] |
2,121,588 | 2,121,589 | iphone/android vpn | <p>I have a question about the native application and vpn on iphone and android. If I setup a vpn for only certain urls and not route all the traffic through vpn. In this setup, would a native application that is accessing the url, gets it traffic routed too? I would assume so but thought if there are gotchas. </p>
<p... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.