Unnamed: 0
int64
65
6.03M
Id
int64
66
6.03M
Title
stringlengths
10
191
input
stringlengths
23
4.18k
output
stringclasses
10 values
Tag_Number
stringclasses
10 values
4,768,145
4,768,146
windows application can not write to log.txt
<p>This is main program.cs</p> <pre><code>LogError.WriteError("Application started: " + DateTime.Now + Environment.NewLine); try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new CrawlerA...
c#
[0]
1,488,557
1,488,558
breaking down multidimentional arrays in php
<p>i have the following multidimensional array:</p> <pre><code>Array ( [0] =&gt; stdClass Object ( [array] =&gt; Array ( [0] =&gt; 6112010651088 [1] =&gt; Bill [2] =&gt; Choice ) ) [1] =&gt; stdClass Object ( [array] =&gt; Array ( [0] =&gt; 6702015707081 [1] =&gt; test [2] =&gt; data2 ) ) ) </code></pre> <p>If you b...
php
[2]
5,005,472
5,005,473
How to insert text into a file using web input forms?
<p>I have a simple text file that needs to be updated on a regular basis. Instead of cutting and pasting the new data, I'd like to have a web input form where I can just enter the new info, and it will update the text file. For example, I may enter a new "Headline", or "URL", and I'd want that string to be inserted i...
javascript
[3]
5,696,008
5,696,009
what is the point of using ternary operators instead of IF THEN?
<p>why make things more complex? why do this:</p> <pre><code>txtNumerator.Text = txtNumerator.Text == "" ? "0" : txtNumerator.Text; </code></pre> <p>instead of this:</p> <pre><code>if txtNumerator.Text="" {txtNumerator.Text="0";} </code></pre>
c#
[0]
5,986,393
5,986,394
Javascript onChange event equivalence for non-form-fields?
<p>We know the onChange event only works for form fields. Is there any way to monitor the change of innerHTML of a specific DOM element other than form fields?</p>
javascript
[3]
3,967,522
3,967,523
BarCode detection in iPhone
<p>I want to implement read/scan bar code in my iphone application i would like to know how to implement it into our iphone app and also some links and example code and apps to check out how it works..</p> <p>Regards</p> <p>Hemant</p>
iphone
[8]
3,483,981
3,483,982
java add function,all become one last set of data when added
<p>there are only 3 sets of data in turn1.length,when temp added,there should have three different sets of data.But,after i add,even there is 3 group objects,the date in it upexpectedly is the last group of date,all. I see three different data in debug mode,current attribute will cover the prev data in temp each cycle....
java
[1]
3,753,244
3,753,245
Logging out a user from the site
<p>I was adding login and logout functionality to my ASP.NET website. While I am able to make the user log in by checking the username and password but on some pages should be available only if he is logged in. I am doing this by storing the user's value in a session</p> <p>Secondly, I am using a <code>Link button</co...
asp.net
[9]
3,004,164
3,004,165
Namespacing (static) member variables
<p>I would like to be able to achieve something like this:</p> <pre><code>class Zot { namespace A { static int x; static int y; } } </code></pre> <p>I am working with a legacy system that uses code generation heavily off a DB schema, and certain fields are exposed as methods/variables in the...
c++
[6]
248,671
248,672
Java, easiest way to store mixed-data types in a multidimensional array?
<p>Ive got a file with some String and ints I wish to store in a 2D 'array'. What is the best way of doing this? I havent done Java for a while and i've been using VBA (where you have no datatypes), so i'm a little bit rusty.</p>
java
[1]
1,338,034
1,338,035
Unable to use shared preference values in class A extends BroadcastReceiver , Android
<p>I am Unable to use shared preference values in a class-say Class A that extends BroadcastReceiver. I do a commit in another class- an activity class, now I want to retrieve those set of values inside Class A that extends BroadcastReceiver.</p>
android
[4]
4,490,018
4,490,019
Selecting a class in the same div but not others
<p>I have an app that has red-wines and wines. If something is selected as a red-wine, the corresponding wine in that and only that div, should be set to checked and set to disabled. Here's a fiddle: <a href="http://jsfiddle.net/z5FYR/" rel="nofollow">http://jsfiddle.net/z5FYR/</a></p> <p>Basically, is there a way for...
jquery
[5]
5,725,618
5,725,619
How to test if two objects are the same with JavaScript?
<p>I need a function: </p> <pre><code>function isSame(a, b){ } </code></pre> <p>In which, if a and b are the same, it returns true.<br> , I tried <code>return a === b</code>, but I found that <code>[] === []</code> will return false.<br> Some results that I expect this function can gave: </p> <pre><code>isSame(3....
javascript
[3]
750,547
750,548
process Dialog not Showing immediately in List View
<p>Hi I am new to Android and trying to put process dialog on List View like this way.</p> <pre><code> lv1.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView&lt;?&gt; a, View v,int position, long id) { Log.v("data1","Before Dialog"); pd = ProgressD...
android
[4]
1,798,681
1,798,682
Can I set up a page that gets its links clicked automatically every 8 hours?
<p>I have a page on one of my sites that generates 10 time and date-stamped links every time the page is loaded for me to click. </p> <p>What I would like to do, is set this page up so these generated links get clicked AUTOMATICALLY every 8 hours, is this possible? </p> <p>This is the code I use at the moment:</p> <...
javascript
[3]
3,352,087
3,352,088
How to find out that given String is already in Java String pool?
<p>Is there any method or technique how to know that given <code>String s</code> is already in the String pool? How and when is <code>Java String</code> pool creating? What does initial members it contain?</p>
java
[1]
1,362,973
1,362,974
Most Instructive Open Source Android Projects?
<p>I'm looking to compile a list of instructive open-source Android projects.</p> <p>My criteria for instructiveness:</p> <ul> <li>High code quality</li> <li>Good API coverage, demonstrating how various parts of the API interact</li> <li>Continually improved, showing that the designs are in fact maintainable</li> <li...
android
[4]
4,114,654
4,114,655
DNS of the server where ASP.NET application is run
<p>How to get to know DNS name of the server where ASP.NET application is run?</p> <p>I want to get string "www.somehost.com" if my application URL is <a href="http://www.somehost.com/somepath/application.aspx" rel="nofollow">http://www.somehost.com/somepath/application.aspx</a></p> <p>Is there some property of Serve...
asp.net
[9]
4,591,168
4,591,169
Grabbing specific months first date and lastdate in PHP
<pre><code>function firstOfMonth() { return date("m/d/Y", strtotime(date('m').'/01/'.date('Y').' 00:00:00')); } function lastOfMonth() { return date("m/d/Y", strtotime('-1 second',strtotime('+1 month',strtotime(date('m').'/01/'.date('Y').' 00:00:00')))); } </code></pre> <p>is what i have to get the current month's fi...
php
[2]
2,249,163
2,249,164
Converting PixelFormat from RGB565 to RGB888 C#
<p>I am working on a device that is using an image sensor and a USB microcontroller that will continuously stream frames from the sensor to be drawn on a GUI using C#. </p> <p>My image sensor is outputing data in RGB565, and I am converting this array of bytes to an image using the following function:</p> <pre><code...
c#
[0]
527,151
527,152
Reference types live on the heap, value types live on the stack
<p>while reading "C# in Depth" I was going through the section "Reference types live on the heap, value types live on the stack."</p> <p>Now what I could understand is (mainly for ref type) :</p> <pre><code>class Program { int a = 5; // stored in heap public void Add(int x, int y) // x,y stored in stack ...
c#
[0]
5,460,578
5,460,579
I am having problem with jquery function
<p>I am trying to make small calculator in jquery but don't know where to start, pls help</p> <pre><code>&lt;body&gt; &lt;script&gt; $(document).ready(function(){ function show_total(){ document.write('something'); } $("#form1").submit(function(){ $("#total").append('&lt;p&gt;show total&...
jquery
[5]
5,006,846
5,006,847
I have to search for a file with extension .txt, but the path is changing every day
<p>I have a problem with file management. I have to search for a file with extension .txt, but the path is changing every day.</p> <p>I have an another file which contain the actual path, I can store it in a string, but when I give the searching algorithm the windows drop an error message.</p> <p>Here my script: </p>...
python
[7]
2,523,888
2,523,889
How to append html only if the div is empty in jQuery?
<p>I have this code for displaying content for login and registration in my PHP file:</p> <pre><code>&lt;?php // LOGIN PART ?&gt; &lt;div class="login-part"&gt;&lt;/div&gt; &lt;?php // REGISTRATION PART ?&gt; &lt;div class="registration-part"&gt;&lt;/div&gt; </code></pre> <p>And this in my js file:</p> <pre><code>$...
jquery
[5]
5,030,892
5,030,893
how to import two same android app in eclipse .. ? either rename package name or what?
<p>Me and my friend started building our first app on android. We started on one laptop and then copied project to another laptop too. Now we started doing our part on android separately. Now i have to combine the work in one app, So when I tried to import the other project to my workspace, it says "Some projects cann...
android
[4]
2,915,595
2,915,596
Having multiple identical IDs in a loop and using jQuery with them
<p>I have a loop that generates a bunch of these:</p> <p><code>&lt;textarea id="uar"&gt;&lt;/textarea&gt;</code></p> <p>The same loop generates a submit link next to each textarea.</p> <p>That link will post this form:</p> <pre><code>&lt;form action="php/unApprovePost.php" method="POST" id="unApprovePost"&gt; &l...
jquery
[5]
3,326,479
3,326,480
android not picking up spinners, strings, layout
<p>I've been working on a android project and imported it at home, yet when I try and compile it on my home laptop I get loads of errors which seem to be related to spinners, listviews etc not picking up the relevant layout files under my android project for example I have a spinner named SpinnerDay and in my layout XM...
android
[4]
4,358,721
4,358,722
Server Error in Application "SMS1" HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
<h1>Detailed Error Information</h1> <p>Module DirectoryListingModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x00000000 Requested URL <a href="http://localhost:4049/" rel="nofollow">http://localhost:4049/</a> Physical Path C:\inetpub\wwwroot\web\webmob Logon Method Anonymous Logon ...
asp.net
[9]
2,563,602
2,563,603
syntax error, unexpected '{' php
<p>My php code gives the following error:</p> <pre><code>syntax error, unexpected '{' on line 8 </code></pre> <p>PHP Code:</p> <pre><code>$data = '&lt;?php # 1 = ON; 0 = OFF. $str = '{ //line 8 "name": "10.000000,106.000000", "Status": { "code": 200, "request": "geocode" ...
php
[2]
1,229,593
1,229,594
JS: Remove everything after nth interation of chacter
<p>Trying to convert RGBA to HEX, discarding the transparency. There are a number of ways to convert RGB to HEX, and it seems the simplest way to get HEX out of RGBA is to simply discard the content of the alpha.</p> <p>Hoping to turn this:</p> <p><code>rgba(255,255,255,0.95)</code></p> <p>Into this:</p> <p><code>r...
javascript
[3]
4,471,809
4,471,810
java concatenate two strings error
<p>I have one function that returns me String :</p> <pre><code>public String getString(String password){ ...... try { ....... encodedPassword = Base64.encodeToString(msgDigest,1 ); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printSta...
java
[1]
3,669,162
3,669,163
showing only the filtered column in the datagridview
<p>i am a newbie and a student i have a windows form in which is have a datadrid view. i have table in sql server, i have binded with the datagrid, in the table there is a 3 column and in which one column named date of small-date-time datatype, i just binded the datagrid view to the table and it is showing all the ro...
c#
[0]
1,569,046
1,569,047
How To Use "dmtracedump tool " in Android Application
<p>How to use the <strong>dmtracedump</strong> tool with the Android Application.<br> Could you please let me know the steps or procedure for running the tool?</p>
android
[4]
1,817,897
1,817,898
How to make a upload script in one page only?
<p>Can anyone give a sample of an upload script that will process the upload and the validations in one page? Or the concept/idea on how to make it. Thanks a lot!</p>
php
[2]
4,053,782
4,053,783
Putting a closure to JS Closures
<blockquote> <p>a closure is the local variables for a function - kept alive after the function has returned.</p> </blockquote> <p>I'm wrapping my head around JS &amp; jQuery Closures. From the definition above my understanding is a closure allows access to variables outside a function without the need for creat...
javascript
[3]
4,171,602
4,171,603
Class for calculating arbitrarily large numbers?
<p>I was wondering if there might not be a class that would allow as much accuracy as there is memory. With overloaded operators in order to do arithmetic on it as if it was a normal number.</p> <p>Ex:</p> <pre><code>BigNumber num; num = 8; for(int i = 0; i &lt; 5000000; ++i) { num *= num; } </code></pre> <p>Tha...
c++
[6]
3,886,975
3,886,976
Multiple Update panel : How to know which one triggered the postback
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4851694/how-to-know-which-updatepanel-causes-the-partial-postback">How to know which UpdatePanel causes the partial PostBack?</a> </p> </blockquote> <p>In case of multiple update panels on page how to know which...
asp.net
[9]
1,107,264
1,107,265
How to Delete group name from group fields in crystal reports
<p>How do you delete a group name in Crystal Reports 2010 with Visual Studio 2010?</p>
asp.net
[9]
2,130,067
2,130,068
Call JSONArray items in ListView in android
<p>Hi need to call JSONArray <code>{"questions":{"poll_id":"1","user_id":"110","questions":"Captial of USA?"},"answers":[{"poll_id":"1","answer_id":"1","answer":"New York"},{"poll_id":"1","answer_id":"2","answer":"New Jersy"}]}</code> in to the listview, im new to the android plz.... help me in this.</p> <p>I got que...
android
[4]
3,988,222
3,988,223
Browse through the files in android
<p>I want to develop a code to browse the all folders and files in android emulator including sd card and internal memory storage. In Java there is JFileChooser available, in android how can i implement this functionality...?</p>
android
[4]
5,167,499
5,167,500
Replace a link with it's text with jQuery
<pre><code>&lt;a href="#"&gt;TEST&lt;/a&gt; </code></pre> <p>I want to remove the anchors and keep the Text i.e TEST</p>
jquery
[5]
2,843,169
2,843,170
C# - Events Question
<p>Can any C# object be set up such that an event can be tied to it to fire when it's value changes? If so, how is this done? For example, let's take a very simple example. Say I have a variable declared as follows:</p> <pre><code>int i; </code></pre> <p>Is it possible to create an event that fires any time the value...
c#
[0]
3,663,235
3,663,236
How can I open a Visual Web Developer 2010 Express in Visual Studio 2005
<p>Can anybody tell me how to open a VWD 2010 Express project in Visual Studio 2005?</p>
asp.net
[9]
5,355,698
5,355,699
Is it possible to use Obsolete attribute on only a getter or a setter of a property
<p>Is it possible to use Obsolete attribute on only a getter or a setter of a property?</p> <p>I would like to be able to do something like this:</p> <pre><code>public int Id { get { return _id;} [Obsolete("Going forward, this property is readonly",true)] set { _id = value;} } </code></pre> <p>but obviou...
c#
[0]
366,384
366,385
Unable to cast object of type 'ASP.masterpage_mpname_master' to type 'ITest'
<p>I am developing a web application. I have created an interface ITest</p> <pre><code>public interface ITest { void Add(); } </code></pre> <p>&amp; a usercontrol which implements ITest</p> <pre><code> public partial class WebUserControl1 : System.Web.UI.UserControl, ITest { public void Add() ...
asp.net
[9]
3,257,442
3,257,443
Cast to pointer from integer of different size in performSelectorOnMainThread:withObject:waitUntilDone
<p>I have:</p> <pre><code> BOOL someBoolValue = ... //some code returning BOOL </code></pre> <p>when I try to invoke:</p> <pre><code>[self performSelectorOnMainThread:@selector(refreshView:) withObject:someBoolValue waitUntilDone:NO]; </code></pre> <p>I'm getting a warning:</p> <blockquote> <p>cast to pointer fr...
iphone
[8]
429,049
429,050
How can I add a C++ DLL file in my .NET application?
<p>How can I add a C++ DLL file in my .NET application?</p>
c#
[0]
4,056,589
4,056,590
How to iterate the installed fonts using javascript?
<p>How to iterate the installed fonts using javascript?</p>
javascript
[3]
5,438,347
5,438,348
Why does string equality compares characters?
<p>I am just a bit confused with strings, and their comparison. What I understand is that doing this :</p> <pre><code>string one = "stackoverflow"; string two = "stackoverflow"; bool equal = one == two; </code></pre> <p>This will compare character by character right?</p> <p>Why is this the case? if string are immut...
c#
[0]
4,158,158
4,158,159
How do I read one number at a time and store it in an array, skipping duplicates?
<p>I'm trying to read numbers from a file into an array, discarding duplicates. For instance, say the following numbers are in a file:</p> <pre><code>41 254 14 145 244 220 254 34 135 14 34 25 </code></pre> <p>Though the number 34 occurs twice in the file, I would only like to store it once in the array. How would I d...
c++
[6]
3,587,127
3,587,128
line of code converting char to string --> foobar(string("text")+anotherString)
<p>I have a line of code that seems to convert a char array to a string</p> <pre><code>foobar(string("text")+anotherString); </code></pre> <p>foobar expects a std::string as an argument</p> <p>I've never seen a conversion done this way... what function is being called on "text". or is it some tricky way of casting?...
c++
[6]
398,080
398,081
Folder filtering in File Explorer
<p>I make an app in which file explorer are used.I want to filter the all files and folders(Global Filtering)...In simple word i want to apply search to file explorer.please help me ...thanx</p>
android
[4]
516,478
516,479
Resetting textbox text via javascript
<pre><code>function clickButton(e, buttonid) var evt = e ? e : window.event; var bt = document.getElementById(buttonid); if (bt) { if (evt.keyCode == 13) { bt.click(); r...
asp.net
[9]
4,328,997
4,328,998
how to retrieve the value from text field?
<p>How to retrieve the value from text field? And how to concanate the value in jquery?</p>
jquery
[5]
4,572,665
4,572,666
android multithreading and network on main thread exception;
<p>Consider the scenario where I have get data from server and post it to UI in say list view , but this is an going activity ,it never stops.</p> <pre><code>taskA{ //fetches data over network if(!update) fetch();//network operation } taskB{//using this data UI is updated at runtime just like feed. if(update) ...
android
[4]
4,132,118
4,132,119
How is exponentiation implemented in Python?
<p>I am able to compute any normally computable fibonnaci number (unless the result becomes to large) in a constant time using Binet's formula ie closed solution formula to compute fibonnaci numbers. Here is my code:</p> <p>for the non-recursive implementation of fibonnaci:</p> <pre><code>gr = (1 + 5**0.5) / 2 def g...
python
[7]
4,690,984
4,690,985
Android ListPrefrence changes if other ListPrefrence has a different value
<p>I dont know how to implement this this is what i want:</p> <p>This is a string array in the prefrences menu Black Eagles Theme NBB Theme</p> <pre><code>&lt;/string-array&gt; &lt;string-array name="themeValues"&gt; &lt;item c="BlackEagles Theme"&gt;1&lt;/item&gt; &lt;item c="nbb th...
android
[4]
785,304
785,305
how can we download a file from a server to our document directory in iphone?
<p>i want to download a file from a server using API as i send a request the content on that link comes to my document directory in iphone/ipod touch, and after downloading is it possible to remove them from the document directory. is there any way to do the things like that .</p> <p>Thanks Balraj</p>
iphone
[8]
1,800,150
1,800,151
C# -Default Keyword
<p>1) What is the use of "Default" keyword in C# ?(Please give me a simple example).<br> 2) Is it introduced in C# 3.0 ?</p>
c#
[0]
2,652,999
2,653,000
Mono android : how to call a number with "#" at the end of it by the application?
<p>When i was trying to make a recharge command using this code : </p> <pre><code>var callIntent = new Intent(Intent.ActionCall); callIntent.SetData(Android.Net.Uri.Parse("tel:*1400*123456789#")); StartActivity(callIntent); </code></pre> <p>The "#" latter is not dialed , just the *1400*123456789 part is dialed withou...
android
[4]
5,697,404
5,697,405
How to pull string from bundle in onResume()?
<p>I have an activity that is resumed after a user picks a contact. Now before the user picks a contact onSavedInstanceState is called and i put a string in the Bundle. Now, After the user selects the contact and the results are returned. onRestoreInstanceState doesnt get called. only onResume() gets called. So how wou...
android
[4]
5,924,629
5,924,630
Accessing implemented class methods through interface reference without constructor initialization
<p>I have a class <code>CommonDaoImpl</code> that implements an interface <code>CommonDao</code>. Now i am trying to access the <code>getRegisterData()</code> of <code>CommonDaoImpl</code> through interface <code>CommonDao</code> reference like this</p> <pre><code>public class CommonServiceImpl implements CommonServic...
java
[1]
2,310,328
2,310,329
C++ prime number generator is not working
<pre><code>#include &lt;iostream&gt; using namespace std; int checkIfPrime(int num) { for (int i = 1; i &lt; num; i++) { int result = num / i; if (num == result * i) { return 0; } } } int main() { int i = 3; while(1) { int c = checkIfPrime(i); ...
c++
[6]
1,960,508
1,960,509
jquery, wait for completed
<p>how to run the second function only when the first will be completed in?</p> <pre><code>$(document).ready(function() { $("#first").load("first.php?id="+ Math.random()); $("#second").load("second.php?id="+ Math.random()); }); </code></pre>
jquery
[5]
3,624,680
3,624,681
Run Function After Delay
<p>I have the below global jQuery function stored, but on page load, I want to execute it after a 1000 delay. Is there something wrong with my syntax? I know the delay always goes before the function. I it is not responding.</p> <p>Thank you stack gods.</p> <p>Global function:</p> <pre><code>function showpanel() { ...
jquery
[5]
3,567,459
3,567,460
object quantity from same class
<pre><code>class a { } $obj1 = new a(); $obj2 = new a(); $obj3 = new a(); </code></pre> <p>May be very trite, but... how many object creates this code?</p> <p>I think, may be this code greates only 1 object in this line <code>$obj1 = new a();</code> and <code>$obj2</code> and <code>$obj3</code> just indicate on an...
php
[2]
800,106
800,107
Convert a datetime to string
<p>Howsit! </p> <p>I encounter an error when i get a null value in my datareader. </p> <pre><code>public List&lt;Complaint&gt; View_all_complaints() { csDAL objdal= new csDAL(); List&lt;Complaint&gt; oblcomplist=new List&lt;Complaint&gt;(); using( IDataReader dr=objdal.executespreturndr("View_all_complai...
c#
[0]
150,974
150,975
I'm trying to add percentages to the scrollBar but why is it blinking while progress?
<p>This is the code I'm using:</p> <pre><code>private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e) { progressBar1.Value = e.ProgressPercentage; progressBar1.Refresh(); int percent = (int)(((double)(progressBar1.Value - progressBar1.Minimum) / (do...
c#
[0]
2,550,430
2,550,431
Java - Send Email using Default Email Provider
<p>I have written a Java Code so that if a button is pressed the default email provider would open up automatically to be able to send an email. is there a possibility that i can attach a file to the email automatically and set a subject for the emails?</p> <p>this is the code so far:</p> <pre><code> if(role.g...
java
[1]
3,885,015
3,885,016
Java initialization
<p>I've been coming across this code several times and I would like to know what it means or what it is equivalent to:</p> <pre><code>A a = new A() { // declare some methods and whatever }; </code></pre> <p>What does the above mean? What is it equivalent to (if it is equivalent to anything)?</p>
java
[1]
3,992,424
3,992,425
hours range and resetting the hours on the new day
<p>I have the following code </p> <pre><code>$date = new DateTime($json-&gt;date); $hour = $date-&gt;format( 'H' ); $range = range($hour, 23, 3); // get the range for the data to be provided; foreach($json-&gt;hourly as $hourlyData){ if(in_array($hourlyData-&gt;hour, $range)){ ...
php
[2]
1,645,941
1,645,942
Swapping element class using jQuery
<p>I have an element :</p> <pre><code>... &lt;li class="products active"&gt;&lt;a href="" title="Title"&gt;test&lt;/a&gt;&lt;/li&gt; ... </code></pre> <p>I want to access this "li" tag and swap the "active" class to "past" class so the final result would be :</p> <pre><code>... &lt;li class="products past"&gt;&lt;a ...
jquery
[5]
2,890,498
2,890,499
How to get from php file the value of a label in asp project
<p>I have a php file with the following code:</p> <pre><code>&lt;form action=""&gt; &lt;label for="Exists"&gt;&lt;?php echo $Var; ?&gt;&lt;/label&gt; &lt;/form&gt; </code></pre> <p>How can I get from asp.net webpage in a textbox the value of the lable called Exists ?</p>
asp.net
[9]
3,496,032
3,496,033
Strange behaviour with incrementing int when using Action<> delegate
<p>Given the code below:</p> <pre><code>class Sample { public static void Run() { int i = 1; Action&lt;int&gt; change = Increment(); for (int x = 0; x &lt; 5; x++ ) { change(i); Console.WriteLine("value=" + i.ToString()); } } public static Action&lt;int&gt; Increment() ...
c#
[0]
4,561,230
4,561,231
Developing call/vocie recording app (iphone)?
<p>I want to make an iphone application to record the incoming and outgoing calls. If I can't develop such app , What are the technology and hardware hindrance in doing so ? BTW i was thinking to run my app in background while call, Hence recording the input and output voice through my app .</p>
iphone
[8]
5,823,689
5,823,690
Unable to hide TabBar on sub view in iphone
<p>My app flow requires Navigation and TabBar controller. So I decided to use TabBar template. Since my first page is login which do not require TabBar, I used <em>presentModelViewController</em> to show Login screen which have Navigation bar if user Navigate to Forgot password.</p> <pre><code>LoginView *rootView = [[...
iphone
[8]
832,643
832,644
Multiple values in array
<p>Is it possible to use PHP in_array to check for multiple values? For example I can do this to see if 7 is in array. What if I have 7 and 8? </p> <pre><code>if (in_array(7, $_SESSION[myvalues]) ) { } </code></pre> <p>UPDATE:</p> <p>I ran the code above. I know it works but it only looks for a single value in an a...
php
[2]
1,691,790
1,691,791
Image to a Web server
<p>I want to send an Image to web server in Http Post Method.</p> <p>The request is looking for URL of that image.How can i get the URL of an image in mobile?</p>
android
[4]
4,082,686
4,082,687
jquery, attaching objects (instead of string attribute) to an element
<p>I'm trying to build DOM with jQuery and fill it with data that is received with AJAX (data type = json). I'd like to also store this data as an object, attached to a specific DOM element. Does jQuery provide any method for this? The reason I want to do it is because only part of data is initially displayed; other da...
jquery
[5]
286,522
286,523
superscript in asp label
<p>i wish to display a single label as "18th january 2011"... where 'th' hs to be in superscript.. how to do in asp.net with label?? </p>
asp.net
[9]
2,715,467
2,715,468
How to make jQuery functions sequential
<p>I have the following code:</p> <pre><code>$(document).ready(function() { loadStuff(someURL, someID); showStuff('foo'); }); </code></pre> <p>showStuff() relies on content generated by loadStuff() but it seems as if showStuff() is jumping the gun before said content is available. How can I force them to run seq...
jquery
[5]
3,219,028
3,219,029
How to call onDraw after setContentView(R.layout.main)?
<p>I have something to draw at runtime. I did drawing in onDraw in MyView class. Because, I already used setContentView(R.layout.main) in onCreate, I cannot use it again.<br> How to call onDraw after setContentView(R.layout.main)?</p> <pre><code>public class MyActivity extends Activity { public void onCreate(Bund...
android
[4]
5,115,833
5,115,834
jquery - how to make a dialog box when user clicks a link?
<p>I am new to JQuery. I want to know that how to make a dialog box that popsup when user clicks a link like if i click send then a dialog box popsup to tell that your information has been sent!</p> <p>Any help would be appreciated!</p>
jquery
[5]
2,688,219
2,688,220
Why was I always told "This post does not meet our quality standards."?
<p>I was trying to post a question just now, but I was always told "This post does not meet our quality standards" when I clicked the "Post Your Question" button. Why? The screenshot of my question is here: <a href="http://i41.tinypic.com/ws5lj7.png" rel="nofollow">http://i41.tinypic.com/ws5lj7.png</a></p>
java
[1]
1,372,430
1,372,431
Convert paths that start with "content//:" or "/data/.." to URI
<p>I have two types of file paths, one I get from my sqlite db and one I derive locally. </p> <p>The one that comes from db has the following format "content://mnt/sdcard/data/download/image1" And the one locally is "/data/data/com.mytestapp/files/image1.png"</p> <p>I need to convert both to URI without knowing which...
android
[4]
2,567,974
2,567,975
Problem in creating adHoc build
<p>"The app "App Name" was not installed on iphone "iphone name" because it is not signed."</p> <p>I m getting this error when I try to create an adhoc build. I founds some solutions and tried those but none of them are working for me. I have created a distribution certificate again and .mobileprovison certificates fo...
iphone
[8]
1,460,642
1,460,643
Best method for generating html content to a single web page
<p>Good day everyone!</p> <p>I have a single page, this page has no dynamic content.</p> <p>I have a set of links. What I need is to have content placed on the page based on the link the user clicks.</p> <p>Example: I have pictures of animals. When the user click a Zebra, the Zebra info is placed on the page.</p> <...
php
[2]
4,753,151
4,753,152
Implementing a Priority Stack with two stacks
<p>This is how I think it's probably intended to work: You have Stack 1 that's sorted based on the priority and every time a new element comes along that should be in the middle of the stack, you pop out all the elements from Stack 1 onto Stack 2, add the element into place, and then pop all the elements from Stack 2 b...
java
[1]
4,038,058
4,038,059
Given a window of an iframe, is there easy access to the owning iframe?
<p>I've been playing around with <em>postMessage</em> just to have a better understanding of how it works, with the following example:</p> <p><a href="http://hashcollision.org/tmp/hello-iframe.html" rel="nofollow">http://hashcollision.org/tmp/hello-iframe.html</a></p> <p>It's slightly elaborate: for each character in...
javascript
[3]
539,851
539,852
How to determine what is the super class or an interface of an object
<p>say one of my object implements X interface but is returning false when checking with 'instanceof'. How to determine what is the super class or an interface of an object. I am looking for something like </p> <p>for example:</p> <pre><code>object.getSuperClassORInterface(); </code></pre>
java
[1]
665,714
665,715
jquery function is not working as event handler
<p>Can anyone tell me why this function is not working ?</p> <pre><code>for(var i=1;i&lt;=12;i++) { var btn=$('&lt;div&gt;Button&lt;/div&gt;').attr('id', 'id_'+i).button(); btn.css('margin','10px').on('click', showId()); btn.appendTo($('#buttons')); } function showId(){ alert($(this).attr('id')) } </code...
jquery
[5]
5,528,824
5,528,825
How to manage more than one UIImageView in iPhone
<p>I wanna to create dynamically <code>UIImageView</code> on every tap on main view and also wanna to move all the created <code>UIImageView</code> by finger movement.I've got success to dynamic creation on every touch my code is below :</p> <pre><code>-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {...
iphone
[8]
3,638,560
3,638,561
How to Sort an Unordered List inside an Anchor Tag
<p>I have the following DOM structure (unordered list), that I would like to sort on the <code>a href</code> tag name using jQuery.</p> <p>Structure is as follows:</p> <pre><code>&lt;div id="refmenu"&gt; &lt;ul id="list"&gt; &lt;li&gt;&lt;a href="...."&gt;Google&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="...."&gt;App...
jquery
[5]
844,737
844,738
How to make a good profile view
<p>I've created a vue called profile in wich I put labels that I've named (frist name, family name,adress,etc etc) and for each label there is a textield, so my idea is to display on the textfield by default for example : enter your first name, enter your family name etc etc, so that once we click on the textfield , th...
iphone
[8]
3,235,582
3,235,583
getting rid of redundant type parameters
<p>I have a generic class A, and another class B that handles instances of A and contains some additional data. I need to have two separate classes. B can't inherit from A, because A has other derivatives, B needs to contain a reference to an A.</p> <p>As a simple example, what I would like to write is this (dictionar...
c#
[0]
4,418,702
4,418,703
String Literals
<p>I have few doubts about string literals in c++.</p> <pre><code>char *strPtr ="Hello" ; char strArray[] ="Hello"; </code></pre> <p>Now strPtr and strArray are considered to be string literals.</p> <p>As per my understanding string literals are stored in read only memory so we cannot modify their values.</p> <p>We...
c++
[6]
4,065,163
4,065,164
Should I use .eq(0) when using the $("body") selector?
<p>Is there any benefit (performance or otherwise) for me to use the .eq(0) filter when I reference the body tag in a jQuery object? For instance: <strong>$("body").eq(0)</strong> as opposed to just <strong>$("body")</strong>.</p>
jquery
[5]
5,908,168
5,908,169
what are the core/basic functions in javascript
<p>Does javascript have a set of core functionality. If so where can I find it?</p> <p>Java for instance has all the java.lang packages which implement basic language functionality like String. Where is the equivalent of such functions (like window.alert()) implemented in javascript? Is there a set of core/basic funct...
javascript
[3]
753,392
753,393
How to retrieve the substring with in the string
<p>I am new to iphone.I have small doubt that is I have a path of my audiofile which is placed in the directory in resources folder that path is </p> <pre><code>/Users/Chary/Library/Application Support/iPhone Simulator/5.0/Applications/B02404E5-52DC-49B6-8DBB-C9946E4331AF/BiblePlayer.app/raj/1.mp3 </code></pre> <p>My...
iphone
[8]
3,859,881
3,859,882
kSOAP 2 Android
<p>I don't know why am i not able to get this?....maybe i am missing something or am plain dumb</p> <p>I want trying to call webservice from a Android App</p> <p>Now to do this came across that kSOAP 2 for Android is the library that would be needed</p> <p>However, i see many guys in many posts pointing that one wou...
android
[4]