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
774,952
774,953
i have made a download manager . how can i add feature BHO(Browser Help Object)?
<p>i have made a download manager . how can i add feature BHO(Browser Help Object) ?</p>
java
[1]
990,464
990,465
Select Keyword as a Spinner's Item in android
<p>I have question that I have two spinners in which data comes after JSON Parsing, I want to show the first selected element in spinner is "Select" and When we click on that Spinner it shows me all the data after parsing in a list. I don't know How it will achieved?</p> <p>Please suggest me the right result.</p> <p>...
android
[4]
1,097,193
1,097,194
SharedPreferences, PreferenceActivity problem
<p>I have in my settings.xml two CheckBoxes. Each checkboxes has same keys "ShowContactPhotosCheckBoxPref":</p> <pre><code>&lt;PreferenceScreen android:title="Appearence" android:key="AppearencePref" &gt; ...... &lt;PreferenceCategory android:title="Show...
android
[4]
3,480,896
3,480,897
How to stop Jquery load function
<p>The Jquery load function don't stop if there is multiple click on the links in the menu.</p> <p>The jquery code looks like:</p> <pre><code>$(document).ready(function(){ $(".menu_rfr").unbind("click").click(function() { $("#main").html('&lt;img src="img/spin.gif" class="spin"&gt;'); location.replace($(this).attr('...
jquery
[5]
571,301
571,302
jQuery .click function not working
<p>I have a snippet of HTML that when a link is clicked, the div content becomes the linked div content. The first function works fine. It is the second click on #hidelink that jQuery doesn't seem to respond. What am I missing here?</p> <pre><code>&lt;div id="right"&gt; &lt;div id='titletext'&gt;&lt;p&gt;||||||...
jquery
[5]
206,782
206,783
Proper way to know whether an Activity has been destroyed
<p>May I know what is the proper way to know whether an Activity has been destroyed? Currently, I am using the following way.</p> <pre><code>private volatile boolean isOnDestroyCalled = false; @Override protected void onDestroy() { super.onDestroy(); isOnDestroyCalled = true; } public boolean isOnDestroyCall...
android
[4]
1,283,965
1,283,966
PHP sort mutlidim array usort not working
<p>Hi I need to sort an array by date:</p> <p>This is my array $get:</p> <pre><code>Array ( [0] =&gt; Array ( [Date] =&gt; 02.06.2012 [Theme] =&gt; test ) [1] =&gt; Array ( [Date] =&gt; 03.07.2012 [Theme] =&gt; lol ) [2] =&gt; Array ( [Date] =&gt; ...
php
[2]
2,159,440
2,159,441
convert ds.Tables[1].Rows[0].ToString() to int
<p>I can't convert <code>ds.Tables[1].Rows[0].ToString()</code> to an int.</p> <pre><code>ds.Tables[1].Rows[0] = 100; </code></pre> <p>Gives an error can't convert.</p>
c#
[0]
5,785,059
5,785,060
How to convert an ipa file to a deb file
<p>How do I convert a .ipa file to a .deb file?</p>
iphone
[8]
4,713,432
4,713,433
Adding a function to a JavaScript object
<p>In my JavaScript I have an object instance called "View". I want to add a function to this object. The function looks something like </p> <pre><code>function csiSelectValueRestriction (columnName) { //... &lt;a rather long and involved function&gt; } </code></pre> <p>Ultimately I want to be able to use the fun...
javascript
[3]
1,666
1,667
Is there any differents between $GLOBALS["test"] and global $test?
<p>can any one please let me know the basic differences between </p> <pre><code>$GLOBALS["test"] and global $test </code></pre> <p>and, will it make sense that, if i use <code>$GLOBALS["test"]</code> instead of <code>$_SESSION['test']</code>?</p>
php
[2]
5,292,487
5,292,488
str_replace or which other function to detect a word and delete everything after it?
<p>What function should I use to search for a string in a paragraph and then delete everything including and after that string?</p> <p>So if I had a paragraph "Marry had a little lamb and the wolf ate them all. Then marry went to Walmart for more lambs."</p> <p>And I used a function to search "lamb" everything includ...
php
[2]
5,887,634
5,887,635
jquery - how to select for this, get a count, and get the current position within the selected group
<p>I have a set of img boxes that are marked up like this</p> <p>I want to get a count and have this:</p> <pre><code>&lt;div data-location-id="6" class="img-box-set"&gt;my img&lt;/div&gt; </code></pre> <p>I have:</p> <pre><code>var location_id = $(this).data('location-id'); // fixed per comment #1 below var count_o...
jquery
[5]
2,242,278
2,242,279
Jquery check if input .val() contains certain characters
<p>I need to check if an input field on my page contains characters.</p> <p>This is for very basic email address validation so I only want to check if the text is not empty, and contains <code>@</code> and <code>.</code> characters.</p> <p>I've been trying this way:</p> <pre><code>if (($("." + parentname.attr("class...
jquery
[5]
3,850,037
3,850,038
Using visibility to layer screens - is there any potential impact on triggering event on the visible elements
<p>I have a general question - no code this time. I accept that if visibility is set to hidden on say a form, no events can be fired on that form until it is set visible. </p> <p>I have used this approach to set up a series of screens and menus using jQuery to make them visible or hidden as appropriate in response to ...
jquery
[5]
2,002,340
2,002,341
Python 3.2.3 ValueError: could not convert string to float
<pre><code>import math pi = 3.1415 r = float(input("Enter the radius: ")) angle = float(input("Enter the angle: ")) x = r * math.cos(angle) y = r * math.sin(angle) print ('x =', x, 'y =', y) </code></pre> <p>When I enter pi, or anything with pi, as answer for angle prompt, I get this error:</p> <pre><code>ValueErro...
python
[7]
3,430,466
3,430,467
Failed adding to JNI local ref table (has 512 entries)
<p>I am working in an android application and I am getting an error "dalvikvm(11625): Failed adding to JNI local ref table (has 512 entries)" when I try to run my application on certain devices. Please help me to rectify the error. </p> <p>Thanks in advance</p>
android
[4]
394,380
394,381
is there any way by which we can edit a html file in the iphone at the runtime?
<p>HI all,</p> <p>Is there any way by which we can edit a html file that is in our resource directory and we want to edit some tags in that html first and want to show that html in web view.</p> <p>Is it possible ??</p> <p>Thanks ...</p>
iphone
[8]
1,322,896
1,322,897
Are iPhone 'standard' sounds (e.g. shutter, email sent) available for use?
<p>I was hoping to make use of the sounds that Apple has created for its applications, like the sound that is played when the camera's shutter is fired.</p> <p>It appears that these sounds aren't available for usage from within the SDK. Is this accurate?</p> <p>Thanks.</p>
iphone
[8]
5,480,437
5,480,438
How would I loop my program 5 seconds after the answer is given
<pre><code>import java.io.*; public class Printer { public static void main (String[] args) throws Exception { while(true){ System.out.println("Enter a number:"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); double number = Double...
java
[1]
5,724,544
5,724,545
Get List of weeks by giving year and month as parameter C#
<p>I need list of weeks with starting and ending dates by giving int year and int month,</p> <p>Example Result,</p> <p>Week1 = 7/1/2012 to 7/1/2012</p> <p>Week2 = 7/2/2012 to 7/8/2012</p> <p>Week3 = 7/9/2012 to 7/15/2012</p> <p>Week4 = 7/16/2012 to 7/22/2012</p> <p>Week5 = 7/23/2012 to 7/29/2012</p> <p>Week6 = ...
c#
[0]
2,346,839
2,346,840
Android Key Hash
<p>Hi friends i wanna to generate Key hash to incorporate FaceBook Application in my Apps.. I am having Open SSL Zip. pl guide me how to generate key.. </p>
android
[4]
1,068,380
1,068,381
Touch coordinates in iPhone landscape mode app
<p>I am trying to make this <strong>landscape only</strong> iphone app.</p> <p>I only use this code for this purpose:</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } </code></pre> <p>...
iphone
[8]
2,264,787
2,264,788
What's the meaning of this syntax ?> <?php
<pre><code>&lt;?php for($i=0;$i&lt;=100;$i++) { ?&gt; // why this &lt;tr&gt; &lt;td&gt; &lt;?php echo $i; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo "tên sách $i"; ?&gt;&lt;/td&gt; &lt;td&gt;&lt;?php echo "noi dung sach $i";?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; </code></pre> <p>So that is the scenario I'...
php
[2]
754,084
754,085
Android: How to get image files from directory into view.setBackgroundDrawable()
<p>I'm trying to make an app that can take images from a directory on the android phone and display them in a layout. I seem to be working my way towards a solution in a backwards manner. I know to use <code>view.setBackgroundDrawable(Drawable.createFromPath(String pathName));</code> to display the image, but I don't k...
android
[4]
4,381,940
4,381,941
'list::list' names the constructor, not the type
<p>I get this error while compiling my class linked list with constructors. I wanted to do a copy assignment operator, but i get this error 'list::list' names the constructor, not the type. the line is:</p> <pre><code>list::list&amp; operator= (const list &amp;l) </code></pre> <p>list is my the name of my class</p>
c++
[6]
1,754,539
1,754,540
Smart way to end a subroutine if file doesnt exist in cwd
<p>I am trying to open file "data.txt" in the cwd and readthe lines,is there a oneliner(or close ) to exit the subroutine if the file doesnt exist..i know there are ways like using os.path.exists and try/except IO error but am interested in one-liner or the smartest way</p> <pre><code>def readfile (): f = open('da...
python
[7]
5,673,045
5,673,046
Trying to override onbeforeunload in first step of form wizard
<p>This pertains to a form wizard with 5 steps, I don't want the user to hit back and lose form data in any step 2-4. I have added a flag for the submit function and need to add this one for the first step. If they get there by accident and try and leave I dont want the cofirm dialog popping up.</p> <pre><code>&lt;scr...
jquery
[5]
3,210,529
3,210,530
Android, running an app in the background
<p>I have an app which consists of a simple GUI and a few Broadcast receivers. I found somewhere on here how to start an app on boot of the device but cant seem to locate it atm. However i need more i need it to start in the background and just listen using the broadcast receivers and then return to this state after th...
android
[4]
2,495,396
2,495,397
Get values from arraylist inside object inside arraylist in Java?
<p>This is complicated, but I will do my best to explain my question. Object customer from the Customer class has a arraylist inside the object that store different account numbers. And all of the customer objects are stored in a arraylist. So my problem and question is how to get the account numbers from the arraylist...
java
[1]
577,722
577,723
sending email to users contact list?
<p>i have an application to retrieve an users contact list in a gridview...how do i send email to all the users from the users contact list??</p> <p>Steps:-</p> <p>1.User enters hi/her email id and password. 2.Clicks on send invites. 3.The button click event should send invitation email to all the contacts in users c...
asp.net
[9]
2,551,903
2,551,904
How can i stop a thread in oncheckedchanged?
<p>Well i can start the thread when i press togglebutton to ON and it works fine, that thread is to start audiorecord and audiotrack. But i cannot stop the thread when i put togglebutton OFF... cuz cannot do thread.stop... What i want to do is just stop audiorecord and audiotrack... If there is any way to start/stop th...
android
[4]
3,889,837
3,889,838
Is it possible to change the type of an array in Java?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/11437203/byte-array-to-int-array">byte array to Int Array</a> </p> </blockquote> <p>I have a large array of bytes, can I somehow interpret it as an array of ints, such that each entry is just four of the origina...
java
[1]
2,717,291
2,717,292
How can I clear the buffer so this works?
<p>It works in the IF statement, but in the ELSE statement, I have to type 4 responses before it prints out. Any ideas? I know I need to clear the buffer somehow I think.</p> <pre><code>System.out.println("Would you like to play a game? (Y/N)"); if(scanInput.next().equalsIgnoreCase("y")||scanInput.next().equal...
java
[1]
2,972,320
2,972,321
How do I trigger a form submission on page load using Jquery
<p>This doesn't seem like it should be too difficult to accomplish, but I'm in a rush and I have been looking for a simple answer. I need to submit a form on page load. This is my AJAX submit function which works fine. I just need to figure out how to trigger it on page load.</p> <p>Any help is much appreciated!</p> ...
jquery
[5]
3,823,777
3,823,778
Deleting files in folder with python
<p>I have one folder with one geodatabase and two other files (txt). I used zip and zipped them. So now in this folder i have gdb, txt,txt, and new zip file. Now I need to delete those files that were zipped, so that will be only zip file in the folder. I wrote the following code:</p> <pre><code>def remove_files(): ...
python
[7]
5,791,710
5,791,711
Disable Back Button (showing cached version) without JavaScript
<p>I want to disable the broswer back button without using javascript. So far i have used this coding:</p> <pre><code>Response.CacheControl = "no-cache" Response.CacheControl = "private" Response.CacheControl = "public" </code></pre> <p>It's working fine in the internet explorer 8 but in case of mozilla fire fox it ...
asp.net
[9]
246,783
246,784
android apk file size gets doubled on market
<p>I have recently uploaded an application on the android market, and i have noticed that the application size is appearing 2X on the market.</p> <p>Could someone please help in figuring out the reason and solution to bring it back to original size .</p> <p>will appreciate the help.</p>
android
[4]
6,005,657
6,005,658
How to add an android project as a JAR file in another android project
<p>I have an android project containing only login module. I want to integrate this into another android project. I searched and got the answer that make JAR file of login module project or make that as a library project. At login button click i have to call activity of other project. How can i do this? Please provide ...
android
[4]
3,481,329
3,481,330
How to use extract and merge together in python
<p>Currently, I have two tools, Merge and Extract. Is there a way that I can extract what I want, and have it do the merge prior to my command? It would be great if I can find some sort of routine that will handle the defaulting for merge. How can I do this?</p> <p>Any help will be much appreciated!</p> <p>Thanks!</p...
python
[7]
709,667
709,668
c# and IIS programming
<p>I created a small c# console application in which my app.config file will look like below.</p> <pre><code>&lt;appSettings&gt; &lt;add key="WebRoot" value="webroot" /&gt; &lt;add key="TempDir" value="temp" /&gt; &lt;add key="ServerPort" value="8086" /&gt; &lt;/appSettings&gt; &lt;system.web&gt; ...
c#
[0]
4,067,839
4,067,840
C++ reading from a file
<p>I have a file that is organized into columns, with data that needs to be stored in a vector of a type of class to store each of the data columns, I would suppose.</p> <p>The data looks like:</p> <pre><code>ATOM 1 N PRO 1 -38.396 -1.525 2.011 -0.18 14.01 ATOM 2 CA PRO 1 -36.931 -1...
c++
[6]
2,021,789
2,021,790
Learning Android Programming Tips (Not asking for books or other common reposts)
<p>I am not asking for book suggestions, but rather a plan of attack for learning Android. I have three books on Android, and even the beginners version is a little confusing. The good part however, is when the book explains the code, I can see the logic in the code, and understand why they are writing what they do; bu...
android
[4]
297,275
297,276
How do I get TimeSpan in minutes given two Dates?
<p>To get TimeSpan in minutes from given two Dates I am doing the following</p> <pre><code>int totalMinutes = 0; TimeSpan outresult = end.Subtract(start); totalMinutes = totalMinutes + ((end.Subtract(start).Days) * 24 * 60) + ((end.Subtract(start).Hours) * 60) +(end.Subtract(start).Minutes); return totalMinutes; </cod...
c#
[0]
5,547,863
5,547,864
expand the hit area of a view
<p>I have a small button on a view that I cannot make larger (movers and shakers don't want it larger). It's very hard to click on the button because of other views around it. At androiddevcon III Dave someone or another gave a talk on expanding the hit area of a view but he didn't include the code in his example. N...
android
[4]
1,948,912
1,948,913
Converting from byte to int in java
<p>I have generated a secure random number and put its value into a byte. Here is my code.<br></p> <pre><code>SecureRandom ranGen = new SecureRandom(); byte[] rno = new byte[4]; ranGen.nextBytes(rno); int i=rno[0].intValue(); </code></pre> <p>But I am getting an error :</p> <pre><code> byte cannot...
java
[1]
2,609,032
2,609,033
Supporting Android 1.5, features from Android 2.1 and no Reflection?
<p>I currently have an app on the market that supports Android 1.5 (SDK level 3) and up. It also takes advantage of several features that are only present in Android 2.0 (SDK level 5) and up. I do this using Reflection.</p> <p>I read a post on the Android Developer Blog that talks about how to support these new feat...
android
[4]
2,267,415
2,267,416
In Java void method calling
<p>In java is there a way to call a void method from a constructor.I try something like this but get an error message that the compiler can not find symbol method printThis(java.lang.String):</p> <pre><code>public class Date{ public Date(String inString){ String s = inString; String b; b.printThis(s); ...
java
[1]
2,897,742
2,897,743
Pop Out Menu with <table> tag
<p>We can create a pop out menu by using ul &amp; li tags, but can we achieve the same with the table tag in conjunction with some JS code?</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;Menu1&lt;/td&gt; &lt;td&gt;Submenu 1&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;!-- here is some Javascript that does the magic -...
javascript
[3]
4,052,617
4,052,618
C# Getting value from delegate methods inside a class --- ref with lambda operator?
<p>I want to encapsulate delegate methods, which will be invoked later on. This delegate method, when invoked, will calculate some arguments at that instance of time and assign/return the value to a variable outside of the class.</p> <p>For example, I have a class Tool</p> <p>This tool should generate, let's say Poin...
c#
[0]
2,527,874
2,527,875
Alternative to using relationship with SQLite
<p>I'm creating an app which is going to have some data that is stored in an SQLite database. I want the user to be able to create "folders" which can be assigned to each data item.</p> <p>I was going to do this using a one to many relationship e.g. one "folder" can have many data objects under it but having looked at...
android
[4]
4,916,406
4,916,407
Php restricting the data insertion in mysql
<p>I have a list box with two times i.e 12:00 to 2:00 and 2:00 to 4:00.I want to do that when someone submit the form (example a meeting reservation form) the timing inserted into the databse should be booked only for three times.when someone tries to insert the same time for the fourth time,it should give us message l...
php
[2]
1,987,555
1,987,556
How can I declare a constant in a public static class?
<p>I have this class:</p> <pre><code>public static class LinkExtensions { </code></pre> <p>Within this class I have a lot of methods that use a constant. Can someone explain to me is it possible for me to declare a constant at the class level that I can use in all these methods?</p>
c#
[0]
3,772,047
3,772,048
Wait function in Java
<p>So I am writing a Java code to represent a heap sort and to represent the operation I need to have a waiting function which will wait between different operation but I am not sure if there is a function in Java that does that or do I need to write the function by myself and how would i do that.</p> <p>Representing ...
java
[1]
430,363
430,364
Is there any jquery quiz plugin?
<p>I'm looking for quiz application. where teacher can create quiz. Is there any jquery plugin? I want to use this plugin in cakephp. thanks</p>
jquery
[5]
4,246,833
4,246,834
jQuery display value when dropdown menu is used
<p>I used to have a text input in place of the dropdown, where you would type in a number. However, I wanted something a little more logical, so I converted it to a dropdown. My jQuery code only works if I use a text-input, unfortunately.</p> <p>How would I make it work in this situation?</p> <p>Here's my code: <a hr...
jquery
[5]
2,731,879
2,731,880
Figuring out what Javascript object is this?
<p>I have some script that has the following code:</p> <pre><code>var result = { id: 'test', name: 'test', home: 'test', ex_info: [{date: new Date('12-31-2010'), quantity: 976}], status: '' } </code></pre> <p>I am trying to insert information in the ex_info property. But I can't add anything. I try ...
javascript
[3]
5,744,332
5,744,333
Arranging corresponding values in descending manner
<p>I have two sets of columns right now but I am not sure how do I program it and what set of class for me to use it. Both are in separate arrays. One for letters and the other for the numbers.</p> <pre><code> a 12 b 9 c 156 </code></pre> <p>So a corresponds to 12 and b corresponds to 9 etc etc. The list is actu...
java
[1]
4,662,306
4,662,307
interface of the list in c++
<p>I found some interface for the list: and there I found this constructor</p> <pre><code>template&lt;typenameT&gt; ... list(size_tnum, constT&amp; val = T()); ... </code></pre> <p>can somebody explain what is this: <code>constT&amp; val = T()</code></p> <p>thanks in advance</p>
c++
[6]
2,388,287
2,388,288
Video not playing in Android Device
<p>I have used videoview for playing the video from the url.. while trying it out in emulator i got the error msg as "Sorry this video cannot be played". i though that the error occurs because i am trying to run in emulator.. but even after installing into Android device, am getting the same error msg... Plz help me o...
android
[4]
5,793,518
5,793,519
How can i set the position of text?
<p>i have a problem that i want to set the position of text as to from particular location. for example: i have this text in my textview: "abcd efgh ijkl mnop qrstu vwxyz" Now i want this text to show from location "efgh" rather than "abcd" How can i perform this operation in textview. I want to change position of te...
android
[4]
5,561,553
5,561,554
When to use a Constructor and when to use getInstance() method (static factory methods)?
<ol> <li><p>When and how should we use a Constructor </p> <p>Foo bar = new Foo();</p></li> <li><p>And When and how should we use getInstance() (static factory methods)</p> <p>Foo bar = Foo.getInstance();</p></li> </ol> <p>What is the difference between these two, I always use the 1st way but when to use the 2nd way?...
java
[1]
3,747,765
3,747,766
taking data from a csv file, and putting it into an array
<pre><code>public class Earthquake { public double Magnitude { get; set; } public string Location { get; set; } public double Latitude { get; set; } public double Longitude { get; set; } public double depth { get; set; } public DateTime date { get; set; } public string EventID { get; set; } ...
c#
[0]
1,779,538
1,779,539
Error While Debugging
<p>I have one web application. while i debug the solution the rendering makes too slow and if i close the browser page i got one error like this</p> <p>WebDev.WebServer.exe has encountered a problem and needs to close. We are sorry for the inconvenience.</p> <p>I got one information from attched proess is that this ...
asp.net
[9]
4,005,939
4,005,940
What does this jQuery code with square brackets and a caret mean?
<p>What does this jQuery code mean?</p> <pre><code>$('tr[id^="message"]') </code></pre>
jquery
[5]
2,066,314
2,066,315
How to work with libraries that don't support unicode characters
<p>In my case, I recently picked up the <a href="http://www.ambiera.com/irrklang/" rel="nofollow">irrKlang</a> library which allows me to work with audio files without doing too much work. Then I ran into the issue where unicode characters in filepaths were not supported by the library. It either reads it incorrectly (...
c#
[0]
358,290
358,291
Android ListView sorted by checked items
<p>I use a ListView with android.R.layout.simple_list_item_multiple_choice as list items. I want to sort the list (and maybe group the list) that checked items are on top of the list. I looked at the Comparator but it only lets me sort the list by the entries name of the list. How could that be done in a nice way? </p>...
android
[4]
1,883,097
1,883,098
Python: What is the Formal Difference Between Print and Return?
<p>Lets say i define a simple function which will display an integer passed to it:</p> <pre><code>def funct1(param1): print(param1) return(param1) </code></pre> <p>the output will be the same but and i know that when a return statement is used in a function the output can be used again. Otherwise the value ...
python
[7]
365,775
365,776
Generating a Static Map Efficiently
<p>I'm writing a simple parser in C++ that works using a map of string 'triggers' to 'handler' function pointers, my question is what would be the most 'static' and efficient method of implementing generation and access to the map?</p> <p>I first considered a method, e.g. <code>Parser::add_handler</code>, that would a...
c++
[6]
924,743
924,744
How to access my object inside onClick(View v) function?
<p>I have defined a model class:</p> <pre><code>public class MyObject { ... } </code></pre> <p>In my activity, I get this object from SERVICE layer. Everything works fine at this point, my only question is, in Activity, if I set <strong><em>setOnClickListener</em></strong> to a <strong><em>TextView</em></strong>,...
android
[4]
4,642,492
4,642,493
KeyPress Event for textbox which is in gridview
<p>i have a gridview in that '> &lt;%-- onkeypress="searchKeyPress(event);" --%> ...
asp.net
[9]
1,631,542
1,631,543
jQuery live method: can't stop event from bubbling the DOM
<p>I'm not sure, but it seems like a bug.</p> <p>Here are samples:</p> <p><a href="http://jsfiddle.net/QNrZu/" rel="nofollow">http://jsfiddle.net/QNrZu/</a></p> <p>Maybe i'm doing something wrong? Any solution for this?</p> <p>Thanks ;)</p>
jquery
[5]
4,844,097
4,844,098
disk image can not be mounted
<p>i am using SDK 3.0 and iPhone 3.0 (upgraded from 2.2.1). when i try to install on my iPhone device, i got an error like "disk image can not be mounted " and also i am getting same error on organizer window of xcode.</p> <p>i am not able to deploy my app developed using SDK 3.0 on iPhone</p>
iphone
[8]
983,826
983,827
Generate controls at runtime
<p>How to generate controls at runtime and set there properties like height, width, Content..</p> <p>and also their events, like Clicked event</p>
c#
[0]
2,981,611
2,981,612
Why is my JavaScript if statement not working?
<p>The first <code>if</code> statement is not working although I passed the value of the block parameter as <code>physicalActivityBlock</code>:</p> <pre><code>function obj(select,block,idName) { var a=document.getElementById(select).value; var b=document.getElementById(block); var i=0; b.innerHTML = ''...
javascript
[3]
3,275,157
3,275,158
; in cookie value trims cookie in asp.net
<p>I am saving a cookie using a value from a database and then accessing that cookie on another page. i noticed that if the cookie has a ; in it's value, it is cut off at that ;. How do I fix this other than changing the data so it does not include ;?</p>
asp.net
[9]
3,959,771
3,959,772
c# opensource project to draw graphs or should I write that myself?
<p>In my trading software I need to draw graphics. I have huge array (about 20 000 000 items) of [x,y] (where x is time and y is price) and I need to display it on the graphic. I need ability to zoom interesting parts. Also I need ability to add custom labels to display trades and orders (or I can implement this myself...
c#
[0]
5,520,568
5,520,569
Write CSS from jQuery within a for loop
<p>My script needs to dynamically create a stylesheet in the section of the page (rather than put inline styles on each element, because I need to override these styles with media queries later on).</p> <p><strong>The Code</strong></p> <pre><code>for (var i=0; i&lt;theElements.length; i++){ $(theElements[i]).no...
jquery
[5]
4,050,106
4,050,107
Why Java programs?
<p>I've had little exp. with java and since now i've worked with c++. what makes this one more special and preferred?</p> <p>Moreover I would like to know about the use of System.in classes and parseInt classes.</p>
java
[1]
5,619,876
5,619,877
Recursive function looping through obj props not working
<p>why does this only alert 1 ?</p> <pre><code>function test() { var myobj = { a : '1st level prop', b : 'findme', c : { aa : '2nd level prop', bb : 'findme', cc : { aaa : '3rd level prop', bbb : 'findme' } } } function countem(needle,haystack) { var count = count || 0; for(va...
javascript
[3]
1,160,694
1,160,695
simple PHP integer conversion
<p>convert this: $300 to this : 300</p> <ul> <li>can't do it with intval() or (int) typecasting</li> <li>if the non-numerical character is suffixed (300$), both works and returns 300</li> <li>if it is prefixed it returns 0</li> <li>the non-numerical character can be anything other than the "$"(i.e. "askldjflksdjflsd")...
php
[2]
5,093,728
5,093,729
can subclass of another subclass inherit method from base class in c#
<p>Say Class A is the base class and then you have class B subclass of A (class B : A). Then you have class C : B. </p> <p>Question is if you have a method in class A, can class C use that method?</p>
c#
[0]
4,039,950
4,039,951
ASP.NET Profile Properties and Complex Types
<p>I require to store Users checkbox selection so the checkboxes are disabled/enabled when User logs back in. Please note that number of checkboxes displayed is dynamic.</p> <p>Following is what I used in my web.config.</p> <pre><code>&lt;add name ="checkBoxListTest" type="System.Collections.Specialized.StringDiction...
c#
[0]
5,360,367
5,360,368
Netbeans IDE Project Deployment
<p>I am unable to deploy an existing project into Netbeans IDE. Could someone guide me? Thanks in advance</p>
java
[1]
5,004,151
5,004,152
How to send AT command in android?
<p>I want to send At command throug my application to modem. Can some one please let me know how to send AT command thr my application?</p> <p>Do we need Phone object to send AT command?</p> <p>The <code>ATResponseParser</code> class parses part of the AT command syntax used to communicate with the mobile radio hardw...
android
[4]
5,978,607
5,978,608
anonymous types and generics
<p>I cannot find a way to pass an anonymous type to a generic class as a type parameter.</p> <p>// this is the class I want to instantiate</p> <pre><code>public class ExtArrayStore&lt;T&gt; : IViewComponent { public IQueryable&lt;T&gt; Data { get; set; } </code></pre> <p>... // the creator class</p> <pre><code...
c#
[0]
4,222,956
4,222,957
Java - implementation instances inside an interface
<p>In my project I need to create objects for each kind of Java Math Operator like "Add", "Substraction", "Multiplication", etc. And these operators should be singletons. </p> <p>So here is what I am going to do. I define the Math Operator as an interface and I put those implementations inside it as I don't want to de...
java
[1]
1,621,113
1,621,114
how to use JS to dynamically update innerHTML
<p>I have a drop down box, each option in it has 2 values. I want to dynamically update value in my HTML based on the selection. The value that has to be shown is derived from drop down box values. Here is my code, but nothing seems to be happening here. </p> <pre><code>&lt;html&gt; &lt;head&gt;&lt;title&gt;&lt;/...
javascript
[3]
890,629
890,630
Swapping the contents od div (with more than 3 div)
<p>I have an RSS reader application in j query, with 8 div section and 8 categories.On selecting a particular category inside a div,the div with that category should automatically get replaced by the contents in the first div.</p> <p>I need a demo for swapping the contents on div (with more than 3 div).</p>
jquery
[5]
2,116,502
2,116,503
Getting a reference to data collected by a Service from an Activity for visualization purposes
<p>Hello fellow developers,</p> <p>I am trying to achieve something in Android and I would like some advise on the best practice.</p> <p>I have created an Activity which can start and stop a Service which collects data.</p> <p>Instead of simply starting and stopping the Service, the Activity should also display the ...
android
[4]
1,022,347
1,022,348
ASP.NET: Why does it take forever to load a page after compiling?
<p>Why does it take forever for ASP.NET to process a request the first time you try to access the site after compiling?</p> <p>Maybe it's just me but the first time I visit a page after I've compiled my project, it takes about 20 seconds before I receive a response. Why is this?</p>
asp.net
[9]
1,255,835
1,255,836
event when sim is changed
<p>how to access event when sim is changed in mobile.</p>
android
[4]
2,896,880
2,896,881
Android - how to add two text fields to dialog
<p>I am trying to add to text fields to dialog, but it doesn't seem to be working... Here is my code. Can anybody fix my code or give me some guidance ao the about how to add two text fields to the dialog?</p> <p>Thanks.</p> <pre><code> final EditText input1 = new EditText(this); input1.setText("...
android
[4]
1,155,374
1,155,375
TypeError: 'undefined' is not an object (evaluating '$.browser.msie')
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/14505301/jquery-latest-browser">jQuery latest $.browser</a> </p> </blockquote> <p>There was an error with jQuery 1.9 and $.browser; It returns 'undefined' for any $.browser; function. What i did wrong?</p> <blo...
jquery
[5]
5,704,426
5,704,427
JMagick compression like MS-Paint
<p>I'm using JMagick to scale images to a smaller dimension like (400x400). But the resultant image size is around 200 KB which is big while loading images on the web as it takes time to load the page. So, I would like to reduce the size of the scaled images by setting some compression. I have tried setting compression...
java
[1]
4,283,439
4,283,440
Process with() statement after if() condition in one line
<p>This line doesn't make much sense, but I wonder why it raises a syntax error:</p> <p><code>x = 1; if x: with open("x.txt") as f: f.write(x)</code></p> <p>How can I execute <code>with</code> block after <code>if</code> statement in one line?</p>
python
[7]
1,820,960
1,820,961
How to define jQuery scroll settings?
<p>My problem is extremely simple: I have to modify a jQuery <code>scrollTo</code> call on existing code in order to execute a callback function after the scroll has completed (some hundreds of milliseconds).</p> <p>I found <a href="http://flesler.blogspot.com/2007/10/jqueryscrollto.html" rel="nofollow">this article</...
jquery
[5]
109,868
109,869
php - why won't my data show up in firefox
<p>I'm using the following code in an index.php page to display content from one page on another domain. However, it works fine in IE, but when I load the page in Firefox, its missing php data.</p> <p>Am I doing something wrong or does firefox not allow this? Any help appreciated.</p> <pre><code>$domain = $_SERVER['H...
php
[2]
5,352,986
5,352,987
How to read the mp3 files in a given folder?
<p>how to read the mp3 files and display those file names using c++ can anyone provide me code for this in C++?</p>
c++
[6]
2,692,355
2,692,356
Hardware acceleration for sdk 11, benefits earlier versions?
<p>I know there's hardware acceleration support in android sdk 11 for Canvas. If we build against 11, but target earlier sdk versions, will we get any of that support?:</p> <pre><code>&lt;uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11" /&gt; </code></pre> <p>I watched the google io presentation o...
android
[4]