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,681,086 | 2,681,087 | Fatal error: Can't use function return value in write context | <p>the page code is all html and it wont load bec. of this error:
Fatal error: Can't use function return value in write context line 142
code:</p>
<pre><code><div>
<div class="">
<input type="text" id="select_shelves" name="select_shelves" class="shelves_select_and_buttons" />
<... | php | [2] |
2,644,967 | 2,644,968 | slideToggle executing twice in one call | <p>I can't show a live example at this point, but i don't see how the slideToggle is being called twice. it is called on click of a link.</p>
<p>here:</p>
<pre><code>// initialize the jquery code
$(function(){
$('div.slideToggle a').click(function(){
$(this).parent().siblings('div.remaining-comments').slideTogg... | jquery | [5] |
2,196,750 | 2,196,751 | It appears some parts of an expression may be evaluated at compile-time, while other parts at run-time | <p>Probably a silly question, since I may have already answered my question, but I just want to be sure that I'm not missing something </p>
<p>Constant expressions are evaluated at compile time within checked context. I thought the following expression shouldn't be evaluated at compile time, since I assumed C# conside... | c# | [0] |
543,294 | 543,295 | Android: How to link sms draft with information about the receiver (like the name)? | <p>if I write a new text message in the Android standard sms app and fill in a receiver and some body text and press the back button Android will save this as a draft. If the receiver is currently in my address book Android tells me also in the draft overview the name or, if the receiver is not in the address book, the... | android | [4] |
5,911,172 | 5,911,173 | javascript getting index of nested function within function | <p>I have a function that sorts an array and within it, I have custom sort functions. Something like this:</p>
<pre><code>function SortTheArray() {
function SortCriteria1Asc(a, b) { ... }
function SortCriteria1Dsc(a, b) { ... }
function SortCriteria2Asc(a, b) { ... }
function SortCriteria1Asc(a, b) { ... }
... | javascript | [3] |
1,084,865 | 1,084,866 | Set drag & drop in graphiti.js | <p>I have created set on Between node in that I push label, Line object. It's working fine, but the problem is that if I drag that between node it only drags that node, not a whole set of that node. I want to drag whole set inside that between node. </p>
<p>Can I do this in graphiti.js?</p>
| javascript | [3] |
4,079,512 | 4,079,513 | Confused on how php objects handle arrays | <p>The output of this is "24", when I'd expect "44".<br>
<pre><code>class some_class {
public $array = array();
public function construct() {
$this->array[5] = 4;
}
public function something() {
// $this->array at this point is empty, why?
echo (isset($this->array[5... | php | [2] |
5,867,674 | 5,867,675 | Using setTimeout() for large values | <p>I'm trying to get an event to fire after five minutes. I'm using the following code:</p>
<pre><code>setTimeout(tweet(name, type), 5 * 60 * 1000);
</code></pre>
<p>It <em>is</em> firing after a while, but not nearly five minutes (Usually two minutes or so, but sometimes it's instant.). What am I doing wrong? (I'... | javascript | [3] |
5,255,541 | 5,255,542 | Joining tuples within a list | <p>I want to join a set of tuples that are within a list.</p>
<p>For example,</p>
<pre><code>[(1, 2, 3), (1, 2, 4), (1, 2, 5)]
</code></pre>
<p>would become</p>
<pre><code>[123, 124, 125]
(or ['123', '124', '125'] if it must become a string)
</code></pre>
<p>I have no idea how to do this, and searching returns l... | python | [7] |
1,110,548 | 1,110,549 | android app has to be created through camera interface | <p>how can i write sample app that takes a photo with camera or selects from gallery, puts photo into a TableLayout and allows for adding subsequent photos pre-pending to the TableLayout .</p>
| android | [4] |
3,425,026 | 3,425,027 | How to clear the search result when clearing the edit text in Android? | <p>I have a search in my app. How to clear the searched result when I clear the edit text? Even after I remove the word from the edit text, the searched result remains the same. How to implement this? Thanks for the help in advance.</p>
| android | [4] |
467,414 | 467,415 | Position images exactly using javascript | <p>I need to create dozens of small images and position them absolutely on the screen relative to the top and left of the screen. I have a page with one div on it and, at the moment, I am experimenting with creating each element using javascript. How can I position each element precisely?</p>
<pre><code>var divo = doc... | javascript | [3] |
1,370,918 | 1,370,919 | Detecting whether a PHP variable is a reference / referenced | <p>Is there a way in PHP to determine whether a given variable is a reference to another variable and / or referenced by another variable? I appreciate that it might not be possible to separate detecting "reference to" and "reference from" given the <a href="http://www.php.net/manual/en/language.references.whatdo.php"... | php | [2] |
2,481,045 | 2,481,046 | how does this ie check work? | <p>I've seen this method of detecting IE in several online examples:</p>
<pre><code>if (/*@cc_on!@*/false) { // check for Internet Explorer
</code></pre>
<p>Is this similar to the conditional comments IE recognizes in HTML?</p>
| javascript | [3] |
3,643,571 | 3,643,572 | Explain a statement in C# | <p>I am working my way through a book called Head First C#. It doesnt explain what the loop is saying in detail. It would be great if someone can explain the part I dont understand.
The way I am reading this is as long as c is less than 254 and visible c will increase by 1 each time the loop is gone through. What I don... | c# | [0] |
2,697,033 | 2,697,034 | Can a private variable be accessed through it's pointer? | <p>Would it be possible for a public function to return a pointer to a private variable in the class. If so / if not, what would happen? would it crash or is there anything highly unsafe about this? Can the pointed data be read or written to?
Thanks</p>
| c++ | [6] |
2,425,975 | 2,425,976 | Background loading javascript into iframe without using jQuery/Ajax? | <p>I'm working on an offline only help system which requires loading a large amount of search-related data into an iframe before the search functionality can be used. Due to the folder structure of the project, I am unable to use Ajax-related background load methods, since the files I need are loaded a few directorie... | javascript | [3] |
5,953,039 | 5,953,040 | Android - Read settings of Google play services application from another application | <p>I've got one android application and want to enable application updates only via Wi-Fi. How can I automatically turn on checkbox into Google play market application after application installation</p>
| android | [4] |
4,545,184 | 4,545,185 | Android layout using tables | <p>I'm making an application in android that has a table; which seemed to be a good idea at first but I've now ran into a couple of problems.</p>
<p>I want all columns to be of equal width dispite how much content I have put in it (text view). I thought stretch /shrink column may have handled that issue but it doesnt... | android | [4] |
3,468,543 | 3,468,544 | any way to tackle float Counter values in python | <p>I was writing a program for averaging some values. Details: I was having a folder and within which I got many <code>.txt</code> files with <code>float</code> numbers.<br>
All I was doing is summing up the float values and storing them in a <code>Counter</code> for each files.<br>
After that I want to add up all valu... | python | [7] |
1,311,833 | 1,311,834 | new line in console when I use cin | <p>I have problem with an C++ exercise.</p>
<p>In the exercise I am supposed to make the user enter a date. </p>
<p>The problem is when I use <code>cin</code> the console jumps one line down when I push enter, so that it becomes something like this:</p>
<pre><code>Enter date please: 12
/23
/2001
</code></pre>
<p>... | c++ | [6] |
3,076,525 | 3,076,526 | inject code into masterpage / html head from a user control | <p>I am struggling with something that I guess should be standard practice really. I have a number of user controls that use some JQuery plugins. I do not really want to link to the extra CSS and JS files from my main masterpage as this would cause extra load to the user the first time they hit the site, (admittedly ... | asp.net | [9] |
4,061,013 | 4,061,014 | Displaying default UITab Bar manager from code | <p>I have a iPhone app which uses TabBar in Navigation controller. I have a requirement like give a option to user to customize the tab order from settings panel from my app.
Save and reloading of tabs is done perfectly.Can we invoke default tab manager from code.
Please advice on how can we use default tabs manager t... | iphone | [8] |
1,034,299 | 1,034,300 | Simple PHP program | <p>I am new to php and am trying to develop a program to access this page:</p>
<p><a href="http://comtrade.un.org/db/dqBasicQueryResults.aspx?y=2003&cc=00&px=S1&rg=1&so=9999&rpage=dqBasicQuery" rel="nofollow">http://comtrade.un.org/db/dqBasicQueryResults.aspx?y=2003&cc=00&px=S1&rg=1&... | php | [2] |
1,239,729 | 1,239,730 | How to Use JavaScript code in PHP code | <p>I want to know the present location of the user in my application.For that i have to use the </p>
<p>Geolocation code in my PHP code.But i don't know how to use JavaScript code in the PHP code.</p>
<p>The JavaScript code for Geolocation is as follows.</p>
<pre><code> function displayLocation(loc){
var ... | javascript | [3] |
1,304,879 | 1,304,880 | Block apk Install (Using Root Privileges) | <p>I am trying to write a program to check certain properties of .apks before allowing them to be installed (using root privileges).</p>
<p>The problem that I am encountering is that I am having difficulty determining when an install event is going to occur - I know that there exists an intent for when an apk has been... | android | [4] |
2,971,581 | 2,971,582 | passing command line arguments to a PHP script | <p>I am calling a PHP script whenever a webpage loads. However, there is a parameter that the PHP script needs to run (which I normally pass through the command line when I am testing the script). How can I pass this argument every time the script is run when the page loads ?</p>
| php | [2] |
5,638,389 | 5,638,390 | Jquery. Order a list of names alphabetically | <p>I got a list of names (firstname and lastname) on a page. I want the user to be able to sort this list on either firstname or lastname using jQuery (or normal javascript). How can this be done?</p>
<pre><code><ul>
<li>Michael Scott</li>
<li>Jonathan Torry</li>
</ul>
</code></pre>... | jquery | [5] |
106,409 | 106,410 | Why does this Javascript code inside a non-Javascript browser have extra commenting? | <p>On the <a href="http://www.w3schools.com/js/js_howto.asp" rel="nofollow">W3 tutorial</a>, it shows htis code:</p>
<pre><code><html>
<body>
<script type="text/javascript">
<!--
document.getElementById("demo").innerHTML=Date();
//-->
</script>
</body>
</html>
</code></pre>
<... | javascript | [3] |
4,298,361 | 4,298,362 | Simple text imput , then results on label | <p>I want to make my first android application , it would be a very basic utility. It would be like a text input where the users time the date they want , and on a label it would say how many days its been since that date. </p>
<p>EG: User type date ---> label shows how many days as past ---> user can save their enter... | android | [4] |
4,509,641 | 4,509,642 | Whats the difference between these two lines in PHP....Are they both variables? | <p>There's:</p>
<pre><code>$myvar="somthing";
</code></pre>
<p>and:</p>
<pre><code>define('myvar', 'something');
</code></pre>
<p>I know the first one is defining a variable and I thought the second one was too, until someone told me its not...</p>
<p>Whats the difference between the two? They both do the same thi... | php | [2] |
5,569,332 | 5,569,333 | Handle the session expired in ASP.NET | <p>How many ways we can extend the session expired time in ASP.net ?</p>
| asp.net | [9] |
1,618,320 | 1,618,321 | Real time audio between android devices | <p>I am trying to build an Android application where I can transmit real time audio between two android devices, most likely the easiest way of doing this is going to be with a sever in the middle. Any help/direction/guidance is very much appreciated.</p>
<p>Been searching for a library to aid the process and haven't ... | android | [4] |
1,640,482 | 1,640,483 | Add and remove data to a list PHP | <p>I'm working on an application that uses some saved data to work with it later.
I can't use database so this have to be file based. </p>
<p>The thing works like this:</p>
<ul>
<li>A file name called hosts.txt that contains host:service on every line (diff hosts and services).</li>
<li>My PHP file reads the txt line... | php | [2] |
2,078,220 | 2,078,221 | PHP array_shift() not working for me. What am I doing wrong? | <p>I am creating an array and want to delete the first element of the array and re-index it. From what I can tell, array_shift() is the right solution. However, it is not working in my implementation. </p>
<p>I have a member variable of my class that is defined as an array called $waypoint_city. Here is the variab... | php | [2] |
1,032,165 | 1,032,166 | Is it OK to use a static member in an IntentService to facilitate passing received data to an Activity? | <p>I have class that extends 'IntentService' - this class occasionally receives data from a server, and when it does I need to pass this data to the current running Activity.</p>
<p>To achieve this, I've added a static instance of my Activity to the IntentService, along with a <code>registerRecipient</code> method tha... | android | [4] |
3,232,201 | 3,232,202 | How to split the tweets into indivisual columns, like Teehanlax.com? | <p>I'm trying to figure out how teehanlax.com got to display their individual tweets in a separate columns. I've been looking at the website and it seems as if they are using a modified version of <a href="http://tweet.seaofclouds.com/" rel="nofollow">http://tweet.seaofclouds.com/</a> which I was able to find their scr... | jquery | [5] |
1,233,217 | 1,233,218 | Is there any attribute or option available in weblogic to restrict number of servlets? | <p>I'm working on java project, which is using weblogic 10 as an application server. In this project there are around 11 servlets added in web.xml descriptor with url mapping. Whenever i'm adding new servlet, its not getting mapped to the url as wel as not getting invoked. What may be the problem. As, if I add the same... | java | [1] |
1,744,925 | 1,744,926 | how to get selector from jquery object? | <p>codes:</p>
<pre><code> var jqueryObj=$("#readme");
alert(jqueryObj.length); // result == 0
</code></pre>
<p>can i get "#readme" from jqueryObj ?
like:</p>
<pre><code> alert(jqueryObj.selector); //i want get "#readme"
</code></pre>
<p>BTW: i want to get selector,not element ID, and jqueryObj.length == 0.... | jquery | [5] |
3,008,047 | 3,008,048 | How to istall Repo on my Ubuntu system? | <p>I want to install Repo for working with the Android source files. so , how to install repo.</p>
| android | [4] |
4,104,736 | 4,104,737 | AdMob banner above Tabs in TabsActivity | <p>I am trying to set the AdMob banner ABOVE the Tabs in a TabsActivity:</p>
<pre><code>public class FundsReportTabsActivity extends TabsActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AdView adView = new AdView(activity, AdSize.BANNER, AD_UN... | android | [4] |
5,925,392 | 5,925,393 | Call webpage from another server into your website using php | <p>I am sorry if this is a duplicate.</p>
<p>I am creating an application in PHP and Codeigniter for my client and he has a strange request. There is a link on the website which shows diamond report from IGI website. The IGI website is made in ASP.net and uses query strings to show a report. My application opens that ... | php | [2] |
816,192 | 816,193 | reading images from a .cbz archive | <p>I want to read images inside a .CBZ archive and store them inside an ArrayList. I have tried the following solution but it has, at least, 2 problems. </p>
<ol>
<li>I get an OutOfMemory error after adding 10-15 images to the ArrayList</li>
<li>There must be a better way of getting the images inside the ArrayList ins... | java | [1] |
5,061,624 | 5,061,625 | C++ Static Array Initialization - Memory Issue | <p>I have a header file which contains a member variable declaration of a static char array:</p>
<pre><code>class ABC
{
public:
static char newArray[4];
// other variables / functions
private:
void setArray(int i, char * ptr);
}
</code></pre>
<p>In the CPP file, I have the array initialized to NULL:</p>
<pre><code... | c++ | [6] |
5,582,898 | 5,582,899 | Displaying & Correctly | <p>I have url links in a database like</p>
<pre><code>( 50712&gift=pi )
</code></pre>
<p>but when I call the link it displays as</p>
<pre><code>( 50712&amp;gift=pi )
</code></pre>
<p>now as there are hundreds of links how to I get it to display correctly</p>
<p>thanks in advance</p>
| php | [2] |
2,894,027 | 2,894,028 | infinite loop for a slideshow | <p>This is my code but i would like an infinite loop. Please help and be gentle. Explain where to put the code in full as i dont know html.
if you have a better code for me to use i would appreciate this but i found this on the web and it works except for infinite loop.
this is a 2 image slidehow.</p>
<pre><code><s... | javascript | [3] |
5,874,164 | 5,874,165 | Java - Failed to Load the JNI shared Library (JDK) | <p>I am trying to launch an application (not Eclipse) that was written in Java. When I do, I get an error that says "Failed to Load the JNI shared Library (JDK)" along with a path that points to the location of the file.</p>
<p>From searching Google and StackOverflow, all I can find are people saying that the Java ver... | java | [1] |
79,417 | 79,418 | Should I use"$_server document root" or" ..\ "when going b/t folders to access other files? | <p>I was wondering if there's any difference in using:</p>
<p><code>$_SERVER['DOCUMENT_ROOT] . '/path/to/document.html';</code> </p>
<p>Instead of:</p>
<p><code>'../path/to/document.html';</code></p>
<p>...assuming they both lead to the same place.</p>
<p>Is there any "best practice" for it or does it not really ... | php | [2] |
859,641 | 859,642 | from phoneBook how can i get contact number and photo in android application | <p>i am going to make a phone book for that i access the contact form the android </p>
| android | [4] |
4,025,657 | 4,025,658 | Asp.net filebase syste to local host in window7 | <p>I have a problem while I'm trying to convert my file base web application into local host. I use VS 2008, Win 7 Ultimate. Fist create site with IIS Manager. Then when I'm trying to open that site from VS, it show "Unable to open the Website '<a href="http://www.example.com" rel="nofollow">http://www.example.com</a>'... | asp.net | [9] |
3,373,705 | 3,373,706 | Compiler in Java surprisingly hangs up while attempting to parse a string value, 2.2250738585072012e-308 to double | <p>I have tried the following code in NetBeans 6.9.1, it should display the value on the console but the compiler surprisingly hangs up. The code snippet is as follows.</p>
<pre><code>package demo;
public class Main
{
public static void main(String[] args)
{
System.out.println("Test Demo:");
... | java | [1] |
3,959,268 | 3,959,269 | Python online tutorial | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/4274032/python-tutorial">python tutorial</a><br>
<a href="http://stackoverflow.com/questions/207701/python-tutorial-for-total-beginners">Python tutorial for total beginners?</a> </p>
</blockquote>
<p>Hello al... | python | [7] |
206,879 | 206,880 | how to measure the page time load? | <p>I want to know how much time a specific code in my App takes ?!!!
Thank you </p>
| c# | [0] |
5,118,834 | 5,118,835 | Calling functions when parameter is value or reference type in C#? | <pre><code>public class A
{
void methodA(int a){}
void methodA(ref int a){}
}
static void Main()
{
int a=1;
new classA().methodA(a);
}
</code></pre>
<p>In Main class, which method is called? Are methods in class A are overloaded? can overriding is possible on the bases of value or reference parameters? P... | c# | [0] |
164,189 | 164,190 | Add text watermark to image watermark code | <p>I am using an image watermark code that works great but I also need to add a text watermark to it.</p>
<p>Here is the code in full:</p>
<pre><code><?php
$main_img = "Porsche_911_996_Carrera_4S.jpg"; // main big photo / picture
$watermark_img = "watermark.gif"; // use GIF or PNG, JPEG has no tranparenc... | php | [2] |
4,648,546 | 4,648,547 | How can I extract the hours, min, sec from the below mentioned format | <p>I am making an iphone application in which I want to implement the alarm concept. I am using time picker for time but I am getting the time <strong>2011-08-17 17:00:45 +0530</strong> in this format. Now I want to get the hours, min and seconds different by using range concept or any other concept. How can I do it. P... | iphone | [8] |
2,390,771 | 2,390,772 | Determine File Exists using getFileStreamPath--sorta working | <p>I am trying to determine if a file exists in my app folder on the sdcard. I check for the folder existence first and handle that just fine. Next I want to see if the file exists so I tried the following but got the "contains a path seperator"</p>
<pre><code>File file = getBaseContext().getFileStreamPath(ChildFolder... | android | [4] |
2,759,619 | 2,759,620 | How can i display this alert box after checking if my array of checkbox is all not checked | <p>Hi guys i am creating a validation for checking if the user has selected at least one stand by checking it, if no stands are selected then an alert box should display telling the user to select at least one stand. my javascript function is triggered onsubmit.</p>
<p>my code is</p>
<blockquote>
<pre><code>function ... | javascript | [3] |
3,584,210 | 3,584,211 | how to "extend" a .keydown() function? | <p>How can you "extend" or add more functionality to a .keydown()?</p>
<p>Lets say you already got this:</p>
<pre><code>input.keydown(function(){
alert('key pressed');
});
</code></pre>
<p>How can you then later on add one more alert()?</p>
<pre><code>alert('extra functionality');
</code></pre>
| jquery | [5] |
2,382,627 | 2,382,628 | Sort datagridview rows in alphabetical order | <p>Please how can I sort/ arrange datagridview rows in alphabetical order?</p>
| c# | [0] |
4,727,840 | 4,727,841 | C++ Collections Class | <p>I'm self studying C++.
If you're making a <code>Class</code> which only has a member variable that is a collection of "X" objects, (whatever X may be) would having just a default constructor and a deconstructor be enough seems its purely dealing with a collection of objects? Thanks. </p>
<p>EDIT: Sorry should have ... | c++ | [6] |
4,079,697 | 4,079,698 | "chaining the calls to append() in your jquery" What is it, what is the risk of not doing it? | <p>The comments section of this article: <a href="http://ayende.com/Blog/archive/2010/09/18/resolving-cross-site-scripting-issues.aspx" rel="nofollow">http://ayende.com/Blog/archive/2010/09/18/resolving-cross-site-scripting-issues.aspx</a> has a very interesting comment.</p>
<p>In it, Mark mentions that I need to jain... | jquery | [5] |
2,353,491 | 2,353,492 | Android device vendor system signature key uniqueness | <p>I'm sure this is a dumb question but Googling got me nowhere.</p>
<p>Does each device vendor do its own Android build? More to the point, does each device vendor sign its build with its (the vendor's) own system signature key, such that we should not expect any two Android devices (at least, devices from different ... | android | [4] |
23,929 | 23,930 | Object attribute exists but returns undefined? | <p>I have a custom class/object in a script. In one of the object methods, when I run the following commands:</p>
<pre><code>MapLabel.prototype.show = function()
{
console.log(this); // Here are the
console.log(this.canvas); // lines in question
if (!this.canvas) // this is not giving the expecte... | javascript | [3] |
66,632 | 66,633 | ASP.NET How To make the content container of an accordion pane invisible? | <p>is there any way to make the content container of an Ajax accordion invisible ?</p>
<p>thanks</p>
| asp.net | [9] |
5,871,924 | 5,871,925 | How to post values to webservice in android | <p>I want to get some clues about posting the values to the webservice...</p>
<p>When i post the values, i get the response in xml that has to be parsed. Any tutorials of posting the values to webservice will be of great help... </p>
| android | [4] |
3,719,735 | 3,719,736 | Spinner: How to reduce size of spinner | <p>When I am reducing layout_width and layout_height of spinner the item name gets cut. I want to decrease the size of the spinner without affecting the item names.How to do it?</p>
| android | [4] |
5,824,696 | 5,824,697 | Validating div in body with jQuery | <p>Using <a href="http://en.wikipedia.org/wiki/JQuery" rel="nofollow">jQuery</a>, how can I validate if a div exists in body of a HTML page or not?</p>
| jquery | [5] |
5,702,498 | 5,702,499 | Unable to run compiled .classes from the command line | <p>I am having some issues running my compiled java code from the command line. I have written it and compiled it using the IntelliJ IDE (where everything runs fine if done within the IDE), but wish to now run it from the command line.</p>
<p>Compiling from the command like (using javac) also works fine, but running (... | java | [1] |
4,332,692 | 4,332,693 | c++ delete object referenced by two pointers | <p>I am just curious if there is an elegant way to solve following problem in c++:</p>
<p>I have a simulator app which contains several components connected by channels. The channels may be either network channels (two instances of the app are needed) or dummy local channel. There are two interfaces: <code>IChannelIn<... | c++ | [6] |
862,825 | 862,826 | How to get aroung setting a unique id for alarm manager? | <p>I am using this code to launch an Alarm. </p>
<p>The alarm is set in an a activity that the user can launch.</p>
<pre><code>//Setting alarm to fire off NEW_GAME intent every 24 hours.
String alarm = Context.ALARM_SERVICE;
Calendar calendar = Calendar.getInstance();
calendar.set... | android | [4] |
5,824,784 | 5,824,785 | Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in php on line 6 | <pre><code><?php
$conn = odbc_connect("Driver={SQL Server Native Client 10.0}; Server=212.100.247.136; Database=kinley;", 'kinleyuser', 'kinley123@');
if (!$conn)
{
echo ('No');
}
else
{
echo ('yes');
}
?>
</code></pre>
<p>Kindly help with this. Problem in mssql and php connection for the first time</p>
| php | [2] |
56,090 | 56,091 | How to convert 31/03/2011 00:00:00 date format to 31 Mar 2011 in C# | <p>I have got below date format in my result,I am using C# 2.0</p>
<pre><code>ExpiryDate = "31/03/2011 00:00:00";
spnExpiryDate.InnerHtml = ExpiryDate;
</code></pre>
<p>Now when I am going to show this in HTML it should be converted to <code>31 Mar 2011</code> format.</p>
<p>Please suggest!</p>
| c# | [0] |
2,367,626 | 2,367,627 | javascript basic syntax | <p>could you tell me how to pass variables using javascript? I receive two args (tid,uid), I then need to concatenate them into variables (turl, turl2) so that they become "http://www.site.com/t/t.php?testid=5" and "http://www.site.com/t/t.php?testid=5&uid=12". Window.open needs to open these two variables (turl, t... | javascript | [3] |
3,484,366 | 3,484,367 | Making a Certain Color on a BufferedImage Become Transparent | <p>A very similar question that has been answered: <a href="http://stackoverflow.com/questions/665406/how-to-make-a-color-transparent-in-a-bufferedimage-and-save-as-png">How to make a color transparent in a BufferedImage and save as PNG</a></p>
<p>Unfortunately I couldn't formulate an answer for myself out of that sou... | java | [1] |
4,237,724 | 4,237,725 | Detecting utf8 encoding errors | <p>While working with Froogle, the datafeed is constantly bugging me with encoding problems in some article-descriptions.</p>
<p>The script, string and output is utf8 encoded, but I can't find the characters that cause the problem.</p>
<p>is there a way to detect troublesome characters?</p>
| php | [2] |
75,604 | 75,605 | How can I get a reference to the Window that calls a method, and use that to assign the Owner? | <p>How can I get the calling object inside a called method?</p>
<p>I've had to create a custom MessageBox, which is created as follows:</p>
<pre><code>public static class MsgBox
{
public static MessageBoxResult Show(string messageBoxText)
{
var msg = new CustomMessageBoxWindow(messageBoxText);
... | c# | [0] |
3,835,228 | 3,835,229 | Web Service not working | <p>I am new to PHP, and don't know much about the web services, but I have written a code snippet in PHP, but it is not showing the output, can any body help please?</p>
<p>Here is the code:</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Cont... | php | [2] |
4,219,604 | 4,219,605 | Read txt file data into javascript array | <p>I got a script that puts urls into one iframe by order:</p>
<pre><code> <script type="text/javascript">
$(document).ready(function(){
var array = ['http://www.example1.come', 'http://www.example2.com', 'http://www.example3.com'];
var beforeLoad = (new Date()).getTime();
var loadTimes = [];
... | javascript | [3] |
4,213,890 | 4,213,891 | in-App purchase:what all information need to send to android market in order to purchase an item? | <p>I am implementing in-App purchase in my app.For purchasing an item in my product list what all data i need to sent to android market? Also should i send product_id for achieving this ? need help...</p>
| android | [4] |
4,938,621 | 4,938,622 | how to display the name of wifi AP using reachability wifi example on iphone | <p>i want to display the infomation of my WIFI AP to which i am connected , how to do that ???</p>
<pre><code>+ (Reachability*) reachabilityForLocalWiFi;
{//NSLog(@"cheking all addresss ");
struct sockaddr_in localWifiAddress;
bzero(&localWifiAddress, sizeof(localWifiAddress));
localWifiAddress.sin_le... | iphone | [8] |
3,316,370 | 3,316,371 | How do i Get Classes name of classes in entire solution in c# | <pre><code>ProcessStartInfo info = new ProcessStartInfo(@"D:\\ss\\Class1.cs");
</code></pre>
<p>i have a this type of code but i want to get "class name" like how many classes in my solution code will count the no of class and get the name by code in c#.</p>
| c# | [0] |
834,613 | 834,614 | Call Blocking in android with Use IT Telephoney Class | <p>I use this code to block a incomming Calls in android Application..</p>
<pre><code>AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
audioManager.setStreamMute(AudioManager.STREAM_RING, true);
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemServic... | android | [4] |
4,308,865 | 4,308,866 | Fill out javascript with python? | <p>I am trying to parse an html page but I need to filter the results before I parse the page.</p>
<p>For instance, 'http://www.ksl.com/index.php?nid=443' is a classified listing of cars in Utah. Instead of parsing ALL the cars, I'd like to filter it first (ie find all BMWs) and then only parse those pages. Is it poss... | python | [7] |
5,757,132 | 5,757,133 | Using JQuery to find the next table row | <p>Using JQuery, how do you bind a click event to a table cell (below, class="expand") that will change the image src (which is in the clicked cell - original will be plus.gif, alternating with minus.gif) and hide/show the row immediately below it based on whether that row has a class of "hide". (show it if it has a cl... | jquery | [5] |
3,771,134 | 3,771,135 | Regarding random function in asp.net c# | <p>Hi
i want random no. of questions. For that i used random function in asp.net but questions gets repeating.
How i can get non repeated questions.
C#.
Thank you.</p>
| asp.net | [9] |
1,640,260 | 1,640,261 | 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] |
2,377,143 | 2,377,144 | converting -1 to unsigned types | <p>Consider the following code to set all bits of <strong>x</strong></p>
<pre><code>unsigned int x = -1;
</code></pre>
<p>Is this portable ? It seems to work on at least Visual Studio 2005-2010 </p>
| c++ | [6] |
3,486,146 | 3,486,147 | JQuery addClass not working properly | <pre><code>$("div#pay-by-this-method ul li a").click(function(){
$("div#pay-by-this-method ul li").removeClass("selected");
$(this).parent("li").addClass("selected");
});
<div id="pay-by-this-method" class="append-bottom">
<ul id="payment-method-chooser">
<li id="" class=""><a href="#" rel... | jquery | [5] |
3,995,488 | 3,995,489 | how to write asp in js? | <p>hope sm1 wil ans my query...</p>
<p>suppose i hav a combo box in wich values r cmng from d database.. now i hav 2nd combo box whose values depend on d selection of the 1st combo box n dis 2nd combo box shud also be flooded wid d values taken from db.. how do i acheive it?? can it b done using a button?? on clickin ... | asp.net | [9] |
2,805,927 | 2,805,928 | How to avoid scientific notation for large numbers in javascript? | <p>Javascript converts a large INT to scientific notation when the number becomes large.
How can I prevent this from happening?</p>
<p>Thanks!</p>
| javascript | [3] |
126,954 | 126,955 | What is the meaning of NULL != value in C++? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5854317/what-is-the-difference-between-these-bcondition-null-and-null-bcondition">What is the difference between these (bCondition == NULL) and (NULL==bCondition)?</a> </p>
</blockquote>
<p>I was going through a... | c++ | [6] |
5,916,072 | 5,916,073 | How do i set a visible property of a div element to true or false in jq? | <p>I would like to be able to do this:</p>
<pre><code>$(".panel").visible = true;
</code></pre>
<p>but this doesnt work</p>
| jquery | [5] |
4,777,680 | 4,777,681 | problem with onclick android | <p>i've been searching the web but i find no answer to my question. I have a button, when you press it, it will play a sound. The problem is that when you touch a button on the screen it goes to the <code>onClickListener()</code> only after the button have been released. I need it to run the listener when the button is... | android | [4] |
1,258,885 | 1,258,886 | Catch when Android application went on background | <p>I need help with Android.
Here is problem I need to catch event when application went to background.
(ex. home is pressed or any other action that push my app in backgound)
Currently I'm able to catch onPause for activity</p>
<pre><code>@Override
protected void onPause() {
// TODO Auto-generated method stub
... | android | [4] |
3,970,517 | 3,970,518 | Data encrypted with the private key can be decrypted only with the public key. | <p>I was reading <a href="http://developer.apple.com/library/ios/#DOCUMENTATION/Security/Conceptual/CertKeyTrustProgGuide/02concepts/concepts.html#//apple_ref/doc/uid/TP40001358-CH204-TP9" rel="nofollow">Certificate, Key, and Trust Services Concepts</a></p>
<p>from ios developer library. In this article when i read th... | iphone | [8] |
359,404 | 359,405 | jquery trigger blur not working quite right? | <p>I'm confused as to what's going on here...it should be basic, but I can't quite figure it out.</p>
<p>I'm prepoulating a form with some information that needs to be checked against the database. When the form loads I want javascript to run the "blur" events for the two input boxes I need to verify against.</p>
<p... | jquery | [5] |
1,825,507 | 1,825,508 | c++ BST and file handling | <p>i am interested in creating a car register program:</p>
<p>menu for user to add, delete, find, edit(change a particular detail about the car) a car and view all the cars. this is then stored in memory using a binary search tree. all the cars are to be written out from memory into a csv file. also when loading the s... | c++ | [6] |
3,142,594 | 3,142,595 | Not getting unique timestamp | <p>I am generating unique ID for objects to be stored </p>
<p>i am including the timestamp in it </p>
<p>but i ran the for loop </p>
<pre><code> for (int i = 0; i < 100; i++) {
long time = Calendar.getInstance().getTimeInMillis();
st = Integer.toHexString((int) time);
System.out.print... | java | [1] |
3,902,102 | 3,902,103 | Must -read articles for C++ memory mangement | <p>After reading "<a href="http://linuxdevcenter.com/lpt/a/3658" rel="nofollow">C++ Memory Management: From Fear to Triumph</a>" series, I think they are must-read articles for memory management. I'd like to know what else must-read articles I shouldn't miss.</p>
<p>Thanks!</p>
| c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.