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
5,030,395
5,030,396
Little help with some (simple) Javascript code
<p>I'm a newb when it comes to javascript. Perhaps somebody could help me with this. I assume it is not very complicated. This is what I would like:</p> <pre><code>&lt;SCRIPT type=text/javascript&gt; var StandardURL = "http://site/Lists/test/AllItems.aspx"; &lt;/script&gt; &lt;SCRIPT type=text/javascript&gt; ...
javascript
[3]
2,830,817
2,830,818
During the publishing of a .Net web application, what's the best way to make the application unavailable to users?
<p>When you publish a .Net application - what's the easiest way to put something up for users that says 'this application is currently being upgraded, please try later'</p>
asp.net
[9]
2,864,855
2,864,856
What source code process statusbar animation?
<p>I use status bar notify. </p> <p>For a short time, status bar display notify animation. Maybe 1 sec.</p> <p>This animation show cropped icon. What source code process this animation?</p> <pre><code>Notification notification = new Notification(icon, ... notification.setLatestEventInfo(context ... notification....
android
[4]
2,809,916
2,809,917
Loading images in gridview [universal image loader]
<p>I'm trying to use the universal image loader to load images into a gridview but my app seems to be crashing right when the activity loads and I cant identify the problem. I'm loading the images from an array then calling the image adapter to populate them. </p> <p>I debugged through the application but didn't see a...
android
[4]
1,721,136
1,721,137
patterns/patterns for designer-webdeveloper communication
<p>as the title implies i am searching for a good pattern / schema collection that makes designer &lt;-> webdeveloper communication less ambiguous when it comes to javascript effects and dynamic content loading.</p> <p>google just provided me with the shorthand markup by ryan singer, but this seems to be restricted to...
javascript
[3]
1,356,688
1,356,689
ASP.NET: Static Class in App_Code
<p>If a static class is put in App_Code, does that imply only <strong>one instance</strong> will be created, shared by different http requests?</p> <p>Or each request still brings one request?</p> <p>Thanks.</p>
asp.net
[9]
3,834,010
3,834,011
JavaScript: How to find out when images are turned off in browser?
<p>Would like cross-browser solution.</p>
javascript
[3]
953,761
953,762
Jquery traversing images
<p>I'm trying to write a way of handling a button press so that a div can expand &amp; collapse and a button updates from reading 'open' to 'hide' (along with updating ALT tags). The toggling part is fine. I just can't get my head around the traversing aspects. </p> <p>Two buttons are presented but CSS is applied so o...
jquery
[5]
394,401
394,402
Python global variable is not working as expected
<p>I'm just starting out with Python and experimenting with different solutions. I was working with global variables and I ran into something but don't know why it's doing what it's doing.</p> <p>To start, I have two modules: test1 and test2. test1 is as follows:</p> <pre><code>import test2 num = 0 def start(): g...
python
[7]
1,755,329
1,755,330
php code analysis
<pre><code>$test = 'aaaaaa'; $abc = &amp; $test; unset($test); echo $abc; </code></pre> <p>It outputs 'aaaaaa',which is already unset,can you explain this?</p>
php
[2]
4,038
4,039
Write ASP.NET aspx page output to server-side disk
<p>I am writing an application which produces reports. I want to save the generated html server side to the disk for another application to use.</p> <p>The response objects only expose streams for writing data. I need to read the data from the response and write it to disk.</p> <p>Is there a more graceful way of do...
asp.net
[9]
609,711
609,712
How to reload the same page on a button click , with the data from database and ignoring the changes
<p>I have an aspx page with repeater control on it used for showing the data.The user can modify the data inside the repeater but the data will not get saved until the SAVE button is hit. I also have an UNDO button on the page. If the user clicks this button, I want to reload the page and discard the changes made by us...
asp.net
[9]
2,786,109
2,786,110
Using foreign keys and ContactsContract
<p>I'm building an app where I need the user to select some "favorite" contacts and a phone number. I'm able to select a contact using </p> <pre><code> startActivityForResult(new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI), PICK_CONTACT_REQUEST); </code></pre> <p>and I'm able to extract all the information I ...
android
[4]
3,125,146
3,125,147
How can I check whether the current account has reviewed my Android application in Google Play?
<p>Currently in my Android application I have a popup that brings the user to my application in the Google Play store so they can review my application. I would like to display the popup only if the current user account has not reviewed my application yet. Is it possible to check if the account has already written a re...
android
[4]
2,083,995
2,083,996
PHP : Can I compile/build my site like .NET?
<p>I am new to PHP, and working on a class based web site. So my question is simple. Can I compile the site like I can in .NET?</p> <p>This would be helpful to me because I changed my IsAAction interface to accept an error callback function as a parameter of the Execute function, and I would like all of my implementat...
php
[2]
2,570,296
2,570,297
I want to share my data to social sites available in my android device. How can I write android code for that in my app?
<pre><code>SocAdapter = new SocialAuthAdapter(new ResponseListener()); // Add providers SocAdapter.addProvider(Provider.FACEBOOK, R.drawable.facebook); SocAdapter.addProvider(Provider.TWITTER, R.drawable.twitter); SocAdapter.addProvider(Provider.LINKEDIN, R.drawable.linkedin); SocAdapter.addProvider(Provider.MYSPACE, ...
android
[4]
2,897,366
2,897,367
PHP5 mysql examples
<p>where will I find PHP5, mysql OOP examples? Whta I mean is common class library with examples. </p>
php
[2]
5,055,675
5,055,676
How to remove label from MapView?
<p>I am trying to make only satellite view without label. </p> <p>How to do it ?</p> <p>Thanks.</p>
android
[4]
5,838,749
5,838,750
Sending the same form with 1 different field n number of times
<p>Right now, I have 3 part of my code working:</p> <ul> <li>I have a form that I wish to add n number of names.</li> <li>The names are put into an array.</li> <li>A loop iterates through the array with a delay</li> </ul> <p>But I want to submit the form on every iteration with the new name attached.</p> <p>The form...
javascript
[3]
5,818,125
5,818,126
Jquery event does not work on dynamically created html
<pre><code>&lt;li&gt; &lt;label&gt;Chapter Title&lt;/label&gt; &lt;input type="text" name="chapter[1][title]" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label&gt;Text&lt;/label&gt; &lt;textarea name="chapter[1][text]" &gt;&lt;/textarea&gt; &lt;/li&gt; &lt;li&gt; &lt;in...
jquery
[5]
3,396,135
3,396,136
verify URL is live and running or not
<p>I will be taking URL from user. Now I need to verify whether address is live or not.</p> <p>For example:</p> <p>If user enters "google.com", then I will pass "google.com" as argument to some function, and function will return me TRUE if URL is live, upload and running, otherwise FALSE.</p> <p>Any in-built functio...
php
[2]
4,384,138
4,384,139
How do I reference a specific class type in C#?
<p>Is it possible to obtain a reference/pointer to a class type and enforce that it derives from a particular base class?</p> <p>I'm writing a client library that needs to negotiate with a server to pick an algorithm to use for communication. I want the user of the library to be able to select a subset of algorithms t...
c#
[0]
4,192,664
4,192,665
Code not reaching "finally" block
<p>The given java code is not going to the <code>finally</code> block, I thought these blocks were supposed to execute no matter what:</p> <pre><code>public static void main(String[] args) { try { System.out.println("Hello world"); System.exit(0); } finally { System.out.println("Goodbye...
java
[1]
4,112,518
4,112,519
Can i reference an exe in a class library?
<p>Can i reference an exe in the class library which in turn is used by excel. I have referenced the project reference in class library(dll). My exe will run whenever i open excel or if it is running it will point to it as it is singleton. while exe is running some of the global values will change.but whenever i am usi...
c#
[0]
2,196,500
2,196,501
Concept of Benchmarking in C#?
<p>Please tell me something about Benchmarking in C#..What the different code benchmarking techniques are?? How to benchmark our own code based on speed and memory usage?? Please help me guys..Thanks </p>
c#
[0]
4,427,902
4,427,903
C# - Array Copying using CopyTo( )-Help
<p>I have to copy the following int array in to Array :</p> <pre><code>int[] intArray=new int[] {10,34,67,11}; </code></pre> <p>i tried as</p> <pre><code>Array copyArray=Array.CreateInstance(typeof(int),intArray.Length,intArray); intArray.CopyTo(copyArray,0); </code></pre> <p>But ,it seems i have made a mistake,so ...
c#
[0]
2,722,141
2,722,142
Onclick Reload page
<p>Hi currently i have a problem with my Onclick because it wont reload on my page This is what i have. </p> <pre><code> &lt;div id="vpanel"&gt; &lt;div&gt; &lt;form method="post" action="enrollalpha.php"&gt; &lt;label&gt;View Panel&lt;/label&gt; &lt;select name="Vpanel" onclick="...
php
[2]
1,226,234
1,226,235
i th order statistic in Python
<p>Given a list of <code>n</code> comparable elements (say numbers or string), the optimal algorithm to find the <code>i</code>th ordered element takes <code>O(n)</code> time.</p> <p>Does Python implement natively <code>O(n)</code> time order statistics for lists, dicts, sets, ...?</p>
python
[7]
5,332,506
5,332,507
is there any simple way to find out unused strings in android project?
<p>I have a huge android project with many strings declared in strings.xml. I wanted to remove un-used strings in strings.xml. Is there any easy way to do so?</p> <p>Thanks</p>
android
[4]
1,193,991
1,193,992
how to import a sql file into mysql database dynamically?
<p>I have a sql file exported from mysql database. I want to import that database into another mysql database dynamically. How can i do this ?</p>
php
[2]
1,801,733
1,801,734
disable android bluetooth
<p>I have the code that enables the blueooth on a device. </p> <pre><code>Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE); startActivityForResult(enableBtIntent, 1); </code></pre> <p>I am wondering how can I disable it?</p>
android
[4]
4,806,407
4,806,408
single character arithmetics?
<p>I need to invent my own conversion function because of some encoding issue. I decided that for now I will create a conversion table for my characters.</p> <p>I want to know how I can possibly do an operation like the following C code to print out characters 'a' to 'z':</p> <pre><code>char a='a'; for(i=0;i&lt;26;i+...
php
[2]
980,372
980,373
how to keep text on imageview in android?
<p>i want to display text on image view.</p>
android
[4]
499,922
499,923
basic php question
<p>Sorry for the poor title, but as im not a experinced programmer i could think of a better one</p> <p>Instead of storing errors in arrays, then show a list of errors in some of my forms i would like to show them next to the input field. Its so sexy!</p> <p>How would you suggest I do this?</p> <p>Set a variable lik...
php
[2]
3,402,256
3,402,257
Toiling with HTMLEditorKit
<p>Im a novice Java programmer trying to use the HTMLEditorKit library to travers a HTML document and alter it to my linking (mostly for the fun of it, what im doing could be done in hand without a problem)</p> <p>But my problem is: After i have modifed my HTML file i am left with a HTMLDocument that i have no clue ho...
java
[1]
1,273,631
1,273,632
how to let user know that name already exists
<p>New programmer- I have created a function to add a user to a database. This function is found in class USER. I have set up mysql to have user_name as a unique key. If a user tries to enter a name that already exists it is not entered into the mysql database but my form says ok its been submitted and just moves to th...
php
[2]
2,382,025
2,382,026
How to find Windows Taskbar location and size?
<p>I have created an application that runs in the system tray. When the user single- clicks the try icon, a small form comes up in the bottom right corner of the screen, i.e. right above the system tray. The form is basically "sticky" to the tray.</p> <p>Here is my question: How do I accomplish the same thing, even i...
c#
[0]
1,762,813
1,762,814
Un-named parameter in function definition
<p>I understand that function prototypes don't need to have a name associated with the parameters. For example:</p> <pre><code>void foo(int, std::string); </code></pre> <p>I was interested to find out recently that you could do the same thing in a function definition though:</p> <pre><code>void* foo(void*) { std::c...
c++
[6]
4,470,155
4,470,156
uieditfield validation to allow specific character and match some specifc character
<p>How to check to this string</p> <pre><code>for example: 1=https://wwww.example.com or may be .net 2=https://example.com 3=https://example.com/ similar with http: </code></pre> <p>if user enter only example.system give error if above format will come.android allow to access our resources.if format is correct and...
android
[4]
1,463,173
1,463,174
how to assign variable value to jquery?
<pre><code>var s="attr" var i=$(s) // jQuery(elem).attr(attr,eval("elm"+attr)); jQuery(elem).$(s)(attr,eval("elm"+attr));//i tried this. </code></pre> <p>how to assign a variable name in the above code(in place of s) so that i need to add an attribute to the element "elem".</p>
jquery
[5]
853,214
853,215
How to use Contains(Of T)(T) method?
<p>I have a byte list variable which I store byte array information here:</p> <pre><code>internal List&lt;Byte&gt; portBuffer = new List&lt;Byte&gt;(); </code></pre> <p>And I have another byte array variable:</p> <pre><code>byte[] ret_bytes = { 0x4F, 0x4B }; </code></pre> <p>How can I find out if ret_bytes is insid...
c#
[0]
857,480
857,481
New File() - The operation is insecure
<p>I've a problem with javascript. I'm making a AJAX based upload and have an array of all files uploaded. If the site is reloaded I want to restore all files to the array.</p> <p>I do like this:</p> <pre><code>var file = new File({the url to the file on my server}); </code></pre> <p>And I get:</p> <pre><code>Secur...
javascript
[3]
40,041
40,042
How to treat the last element in list differently in Python?
<p>I need to do some special operation for the last element in a list. Is there any better way than this?</p> <pre> array = [1,2,3,4,5] for i, val in enumerate(array): if (i+1) == len(array): // Process for the last element else: // Process for the other element </pre>
python
[7]
800,774
800,775
Return single string from database
<p>I have this query in my database helper requesting a <code>Google map</code> <code>URL</code>string,</p> <pre><code>public String getBeachMap(String id) { String[] args = {id}; String strMap = getReadableDatabase().rawQuery("SELECT _id, BeachMap FROM Beach WHERE _id=?", args).toString(); return(strMap);...
android
[4]
3,398,300
3,398,301
Adding numbers read from a file to a totalAmount initialized to 0 giving an unexpected result
<p>I have a small homework application that writes random numbers from 5 to 77 to a text file, and then a separate application that reads the file and totals the numbers.</p> <p>Here is my code for writing the numbers to the text file...</p> <pre><code>Random r = new Random(); int min = 5; int max = 77; i...
java
[1]
1,828,651
1,828,652
How can I add name and quantity in a single row in a table view?
<p>I am creating a simple shopping list application, and with it I am displaying an array of items.</p> <p><img src="http://i.stack.imgur.com/f94SG.jpg" alt="ArrayOfitems"> </p> <p>How can I display quantity of each item after its name?</p>
iphone
[8]
2,955,289
2,955,290
c# Error 2 Argument 1: cannot convert from 'string[]' to 'string' 40 37 emailsearch
<p>How can I show the EmailsList</p> <p>Error 1 The best overloaded method match for 'System.Windows.Forms.MessageBox.Show(string)' has some invalid arguments C:\Users\วิน7\documents\visual studio 2010\Projects\emailsearch\emailsearch\Form1.cs 40 21 emailsearch</p> <pre><code> if (!string.IsNullO...
c#
[0]
4,707,964
4,707,965
php trim function
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/7082295/replacing-excess-whitespaces">Replacing excess whitespaces</a> </p> </blockquote> <p>When I trim using PHP It just trim left and right side of PHP. Isn't their any function that remove more than 2 white ...
php
[2]
5,634,895
5,634,896
Storing Number in an integer from sql Database
<p>i am using database with table RESUME and column PageIndex in it which type is number in database but when i want to store this PageIndex value to an integer i get exception error</p> <p><strong>Specified cast is not valid.</strong></p> <p>here is the code</p> <pre><code>string sql; string conString = "Provider=M...
c#
[0]
3,326,098
3,326,099
Unexpected token error
<p>I have a small script and it throws Unexpected token error on line 2 and firebug says missing : after property id $('#hubmeter').click(function() {...}</p> <pre><code>$(document).ready({ $('#hmeter').click(function() { alert("Handler for .click() called."); }); }); </code></pre> <p>html</p> <pre><code>&lt;body...
jquery
[5]
4,931,753
4,931,754
generating subprocess.call arguments from a list
<p>I am using the subprocess module to execute a command line software with arguments but I am running into a bit of trouble when it comes to feeding it a list of arguments .</p> <p>Here is what I am doing :</p> <pre><code>subprocess.call([rv,"[",rv_args[0],rv_args[1],"]",]) </code></pre> <p>This works fine and <str...
python
[7]
5,505,044
5,505,045
How can I write C# Visual Studio F1 help that displays in a browser?
<p>I have an C# assembly with classes, methods and properties documented in the code, using the /// syntax before each member. I would like to generate html help files from the documentation and place them on my website. When a user implements the assembly and presses F1 on a class or property can it opened in a web ...
c#
[0]
2,290,855
2,290,856
non-static vs. static function and variable
<p>I have one question about static and non-static function and variable.</p> <p>1) non-static function access static variable. </p> <p>It's OK!</p> <pre><code>class Bar { public: static int i; void nonStaticFunction() { Bar::i = 10; } }; int Bar::i=0; </code></pre> <p>2) non-static fu...
c++
[6]
4,203,350
4,203,351
C++ What to put in a Class Declaration and what not
<p>I'm totally confused where to put e.g. the definition of a constructor. Sometimes you see something like this</p> <pre><code>// point.h class Point { Point(int x, int y) { x_ = x; y_ = y; } private: const int x_; const int y_; } </code></pre> <p>Then you sometimes see something like this:</p> <pre...
c++
[6]
5,266,551
5,266,552
edit span using jquery
<p>I have a div that has multiple children divs. inside of the children divs consist of a table. In that table are two span tables that i need edited using jquery. maybe a each selector or something.</p> <pre><code> &lt;div class="slides"&gt; &lt;div class="Slide1&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;span ...
jquery
[5]
5,576,833
5,576,834
show pixel value of .TIF image on the basis of X Y coordinates in c#
<p>i am in trouble. how to read 1MB .tif file with bitmap class in c# and have to show pixel value of this .tif image on the basis of X Y coordinates. I searched google lot but not find any answer yet.</p> <pre><code>string imgPath; imgPath = @"C:\Documents and Settings\shree\Desktop\2012.06.09.15.35.42.23...
c#
[0]
2,033,178
2,033,179
php code consolidation
<p>I was troubleshooting some code and ended up with this:</p> <pre><code>$url=$this-&gt;_protected_arr['f3b']; $title=$this-&gt;_protected_arr['f3a']; $email=$_SESSION['email']; database::query("INSERT INTO bo VALUES ('$title','$url','','$email')"); </code></pre> <p>I think that it should be abel to get rid of $url,...
php
[2]
5,396,581
5,396,582
JavaScript + Querystring + div
<p>How to load content in to a html page. please note IM not allowed to use php or C. Only javascript and html.</p> <p>for example</p> <p>load Page B in to Page A</p> <p>http:myweb.com/index.html?load=pageb</p> <p>thank you.</p>
javascript
[3]
5,514,754
5,514,755
show selection pointers and highlight text in textview with longclick
<p>I have a TextView that I want to implement LongClickListner on and select part of the text in it... However selection pointers don't appear and the text is not highlighted. I know the text is selected because when I use view.getselectionstart() and view.getselectionend() they return the right values...below the code...
android
[4]
4,189,501
4,189,502
Random time and date between 2 date values
<p>I'm trying to write a php script (or line of code) to echo a random time and date between 2 dates, eg</p> <p>2012-12-24 13:03</p> <p>which would be between my chosen dates of 1st October 2012 and 1st Jan 2013.</p> <p>Any ideas how best to do this? Thanks in advance.</p>
php
[2]
1,642,683
1,642,684
Android - how to display large text
<p>I have a txt file which is around 2MB. I need to display it in android. I have tried out WebView and it takes around 5 seconds to load and display the file. Is there any way I can get it rendered faster? Moreover, I dont want to load all the text at the start. Something like a scrollbar which displays elements effic...
android
[4]
790,930
790,931
Python not sorting Unicode correctly
<pre><code>data = [unicode('č', "cp1250"), unicode('d', "cp1250"), unicode('a', "cp1250")] data.sort(key=unicode.lower) for x in range(0,len(data)): print data[x].encode("cp1250") </code></pre> <p>and I get:</p> <pre> a d č </pre> <p>It should be:</p> <pre> a č d </pre> <p>Slovenia Alphabet ...
python
[7]
550,676
550,677
How to get called function name in __construct without debug_backtrace
<p>How to get a caller method name in an class constructor, get_called_class() gives me the name of an extended class which was instantiated but how can I get the name of a method which was called in that class? I need this for a production state so debug_backtrace() is not a good solution. </p>
php
[2]
83,505
83,506
Obscure the folder serving the files for the duration of a session
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/12963435/hide-a-folder-path-when-user-downloads-a-file">hide a folder path when user downloads a file</a> </p> </blockquote> <p>Is there a way I can serve a unique directory path to the same files every time a u...
php
[2]
4,271,481
4,271,482
Increasing Page Height With Javascript
<p>I dont know anything about javascript but I want to be able to click on an Image and increase the page size. </p> <p>Example. A 500px x 500px box with an image in it. When you click on an image the box will increase to 500px x 1000px with new content within the new area without it changing the page.</p> <p>How wou...
javascript
[3]
1,595,455
1,595,456
Invoking audio recorder and getting the resulting file
<p>I am trying to invoke the audio recorder on Android 2.2.1 (device Samsung Galaxy POP) using the following code:</p> <pre><code>private static final int ACTIVITY_RECORD_SOUND = 1; Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(intent, ACTIVITY_RECORD_SOUND); </code></p...
android
[4]
1,844,417
1,844,418
Context in Android Programming
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/3572463/what-is-context-in-android">What is Context in Android?</a> </p> </blockquote> <p>Can anybody please tell me about the "context" term used in android. I wonder what exactly this means because this is som...
android
[4]
1,403,882
1,403,883
Finding the index when using a vector<>::iterator
<p>I wonder if there is a way to get the index of random access iterator. For example:</p> <pre><code>int myIndex = -1; for(std::vector&lt;std::string&gt;::iterator iter = myStringVec.begin(); iter != myStringVec.end(); iter++) { if(someFunction(*iter)) //got a hit on this string myIndex = ... } </code>...
c++
[6]
938,339
938,340
Use of typedef on function
<p>In the following, how can i define my function with typedef syntax?</p> <pre><code>typedef void F(); //declare my function F f; //error F f { } </code></pre>
c++
[6]
1,161,077
1,161,078
Can anyone explain this simple Javascript behaviour?
<pre><code>function cat() { this.Execute = new function() { alert('meow'); } } var kitty = new cat(); </code></pre> <p><a href="http://jsfiddle.net/PaDxk/1/" rel="nofollow">http://jsfiddle.net/PaDxk/1/</a></p> <p>Why does it do that? I haven't told it to run the function.</p>
javascript
[3]
3,037,626
3,037,627
What is the best practice to make division return double in C#
<p>In c# when you want to divide the result of a method such as below, what is the best way to force it to return a double value rather than the default integer. </p> <pre><code>(int)Math.Ceiling((double)(System.DateTime.DaysInMonth(2009, 1) / 7)); </code></pre> <p>As you can see I need the division to return a doubl...
c#
[0]
1,531,199
1,531,200
how to convert binary number to double in java
<p>I want to convert binary numbers into double.I have binary string </p> <pre><code>1100000110011101010111011000101011011000011111111111111111111110 </code></pre> <p>I want to convert it into double value. I am expecting the Following output.</p> <pre><code>Output:-1.2316741412499997E8 </code></pre> <p>Please Help...
java
[1]
1,913,083
1,913,084
Calculate a specific number PHP
<p>I have a for loop, where $i is 0, and it will run until $i reaches 4. I am trying to make a code that would output numbers in an order like this: 01, 11, 02, 12, 03, 13... etc... Now, the thing is next: when $i is 1, the script should make an order of those number in the boundaries of 1 and 20. When $i is 2, it woul...
php
[2]
4,677,982
4,677,983
How to perform syncing in android?
<p>I am creating a networking website's Application in android.I want to know how can I perform syncing ie I want to store all user contacts on websites to my android phone. user's details will come in XML format.</p> <p>Please Guide me .. </p>
android
[4]
1,185,687
1,185,688
jquery image links turns into image tags
<p>Is there a jquery plugin that turns recognizes image urls and turns them into image links, much like how <a href="http://videojs.com/" rel="nofollow">http://videojs.com/</a> works for video or jquery media works <a href="http://jquery.malsup.com/media/#overview" rel="nofollow">http://jquery.malsup.com/media/#overvie...
jquery
[5]
2,222,743
2,222,744
Best approach for representing a simple electronic form editor/design app?
<p>I want to make an application that represents a document. The application would open, and the user would be presented with a blank page. The user could then drag controls to the page and design the document to their needs. (A text box, a drop down box, maybe a picture, or a table.). </p> <p>Then, I would like a sep...
c#
[0]
4,867,153
4,867,154
javascript prototype getting a div wid id and display='none'
<p>i am using protoype and i want to get the div wid id='div_3' and display='none' means in a single line i want to find the element wid these two attribs</p>
javascript
[3]
3,918,075
3,918,076
how could we obtain magnitude of frequency from a set of complex numbers obtained after performing FFT in python?
<p>Hi folks i don't know what to do after obtaining a set of complex numbers from FFT on a wav file.How could i obtain the corresponding frequencies.This is output i got after performing FFT which is shown below</p> <pre><code>[ 12535945.00000000 +0.j -30797.74496367 +6531.22295858j -26330.14948...
python
[7]
5,326,429
5,326,430
Python - IndentationError: expected an indented block on a if
<p>I am new to python, so here is my problem. I get the error "IndentationError: expected an indented block" on y_list in line 31 -> after the first if. The file I load includes alot of numbers, and the idea is to skip the negative ones in the socalled y_list.</p> <pre><code>filename = "data_5.dat" # this file can al...
python
[7]
2,833,163
2,833,164
jquery image scroller
<p>I'm making an image scroller with jQuery but I'm having a little trouble.</p> <p>I've almost got it, but for some strange reason the last slide scrolls past before the image slider starts. Take a look at this:</p> <p><a href="http://jsfiddle.net/BAEtV/" rel="nofollow">http://jsfiddle.net/BAEtV/</a></p> <p>and you...
jquery
[5]
5,854,753
5,854,754
How can I use a ttf file for a button's text?
<p>How can I use a ttf file for a button's text?</p>
android
[4]
4,027,806
4,027,807
HTML formatted email does not display correctly
<p>I'm still struggling with this mail script - I'm now getting all the marked up html through rather than seeing it as rendered html if that makes sense?</p> <pre><code>&lt;?php $mailheader .= "MIME-Version: 1.0\r\n"; $mailHeader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $formcontent .="&lt;table border='...
php
[2]
1,120,284
1,120,285
how to judge a page edited or not from server client
<p>a input asp.net page,you can image many input fields and a button named submit on it. before user submit the page ,I want to compare all the fields values with default values . if anyting didn't change ,i will give him a message. here it is the question: how to judge a page edited or not from server client(in but...
asp.net
[9]
69,606
69,607
clearTimeout() not working on Web Server
<p>I have a simple 'timer' script embedded in php page which takes the variable 'totalTime' value from php script and runs for the specified total no of minutes and need to clear the setTimeout and close the window through window.close() method</p> <p>this page is opened through window.open() method.</p> <pre><code>v...
javascript
[3]
2,115,991
2,115,992
Default Directory for packages
<p>I am a newbie in java I Want to know that what is the default directory for packages in java ? I Mean if i compile a java file which contains a package statement,and i compile it without using <code>-d</code> option in <code>javac</code> command,then where will be the package created ? eg.</p> <pre><code>package te...
java
[1]
5,481,752
5,481,753
what's the quickest way to simple-merge files and what's the quickest way to split an array?
<p>what's the quickest way to take a list of files and a name of an output file and merge them into a single file while removing duplicate lines? something like</p> <p>cat file1 file2 file3 | sort -u > out.file</p> <p>in python.</p> <p>prefer not to use system calls.</p> <p>AND:</p> <p>what's the quickest way to s...
python
[7]
2,169,942
2,169,943
jquery submit on change with a twist
<p>I have a form with a single select_field that gets submitted via jquery whenever the select field is changed.I use something like this:</p> <pre><code>$('#scope').change(function() { this.form.submit(); }); </code></pre> <p>Where scope is the ID of the select_field. This works as expected. </p> <p>We want to ...
jquery
[5]
1,399,985
1,399,986
uservoice for iphone, anything formatted directly for iphone screen?
<p>Does anyone know of a site similar to <a href="http://stackoverflow.uservoice.com/" rel="nofollow">uservoice</a> that provides a iphone specific web front end?</p> <p>The plan is that there will be a link in my iphone app for user feedback and this will open mobile safari at the uservoice or similar site?</p> <p>T...
iphone
[8]
4,486,058
4,486,059
Can we switch this SwigPyObject to a python file descriptor?
<p>I have a C function which returns FILE*, and is then swigged into Python as a SwigPyObject. I wonder is there any way we can switch this SwigPyObject to a python file descriptor so that I can check the open status of the file.</p>
python
[7]
4,118,665
4,118,666
What standards and practices should I use to develop an application that runs on both the iPhone and on iPads?
<p>What standards and practices should I use to develop an application that runs on both the iPhone and on iPads?</p>
iphone
[8]
1,660,482
1,660,483
android memory management (Heap Size)
<p>i am developing one application related to graphics, in this application i am using lots of images and drawing on it.and all activities are running until my flow does not get completed.so what should i do for assign large heap size to run smoothly my application. Or any other way to run application smoothly ...
android
[4]
4,089,818
4,089,819
jQuery hover with multiple items
<p>So I've got four circles next to each other, and when you move the mouse from one to the other, this code activates. But I only want it to activate when you move off/on any of the circles, not when you move from one .circle to another. Thanks folks!</p> <pre><code> $('.circle').hover( function () { $(th...
jquery
[5]
951,906
951,907
how to disable the email message link after first click
<p>I developed a php email activation code for activate user's account after registration, what I want is that if the user click the activation link again after first time, the link will be disabled, any one could help, thanks a lot! here is my php code:</p> <pre><code> $to = $email; $subject = " Your Registratio...
php
[2]
2,905,719
2,905,720
Minus value using php
<p>I have the value as <code>$title =10</code> and I want to minus it with <code>01</code>.So my code is:</p> <pre><code>echo $minus = round(($title - 01),2); </code></pre> <p>I want the result <code>$minus = 09</code> but this code not like this it still have the result <code>$minus=9</code>. Anyone help me please,...
php
[2]
3,309,198
3,309,199
Custom Font. Keeping the font width same
<p>I am trying to draw a string using quartz 2d.</p> <p>What i am doing is, i am drawing each letter of the string individually, because each letter has special attributes associated with it, by taking each letter into a new string. </p> <p>The string gets printed, but the space between the letters is not uniform. I...
iphone
[8]
2,742,162
2,742,163
How can implement search bar in android?
<p>I am working in android. i am trying to display name of university using listView.</p> <p>my list view is looking like this. <img src="http://i.stack.imgur.com/8wv0y.png" alt="enter image description here"></p> <p>Now i want to add a search bar on the top of this list view. if i press <strong>A</strong> in search ...
android
[4]
4,153,424
4,153,425
How to retrieve original @classmethod, @staticmethod or @property
<p>I understand that @decorator.decorator doesn't allow to decorate above @staticmethod, @classmethod (and perhaps also @property). I understand the usage:</p> <pre><code>class A(object): @classmethod @mydecorator def my_method(cls): pass </code></pre> <p>But, in a debugging module, I still want to try to...
python
[7]
1,725,321
1,725,322
Android - Issue with the Android's back button
<p>Hi<br /> I have written a little program that will open the default browser and direct to an URL. My problem is that when I click Android's back button, it will return to a blank page, how can I change it to exit the program instead of return to a blank page</p> <p>The code for reference:</p> <pre><code>package co...
android
[4]
1,756,444
1,756,445
PHP $_POST and id only, no name
<p>Can someone please explain this to me?</p> <p>I have the following code:</p> <pre><code>&lt;form action="&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;" method="post"&gt; &lt;input type="text" id="testField" /&gt; &lt;input type="submit"&gt; &lt;/form&gt; &lt;br /&gt;&lt;br /&gt; &lt;pre&gt; &lt;?php print_r($_POST)...
php
[2]
2,603,281
2,603,282
jquery - missing ; before statement
<pre><code>var splitIndexArray = (unformattedArray[0]).split('=') //alert(splitIndexArray[0]) //alerts correct value //alert(splitIndexArray[1]) //alerts correct value var serialNoArray[splitIndexArray[0]]=splitIndexArray[1] //(--&gt; this statement) </code></pre> <p>gives me an error saying "missing ; before state...
javascript
[3]