Unnamed: 0
int64
65
6.03M
Id
int64
66
6.03M
Title
stringlengths
10
191
input
stringlengths
23
4.18k
output
stringclasses
10 values
Tag_Number
stringclasses
10 values
1,196,084
1,196,085
Modify a dictionary which I am iterating through
<pre><code>foreach(BruteforceEntry be in Entries.Values) { if (be.AddedTimeRemove &lt;= now) Entries.Remove(be.IPAddress); else if (be.Unbantime &lt;= now &amp;&amp; be.Unbantime.Day == DateTime.Now.Day) Entries.Remove(be.IPAddress); } </code></pre> <p>An exception was thrown: Collection was mo...
c#
[0]
3,492,802
3,492,803
How to tell that all dynamically constructed textboxes have a value
<p>Given code that calculates (and then constructs) how many text boxes a page has:</p> <pre><code> var gEmails = '&lt;p&gt;Please enter your desired emails&lt;/p&gt;'; for (var i = 0; i &lt; numInputs2Render; i++) { gEmails = gEmails + '&lt;input type="text" id="Email' + i + '" class="emai...
jquery
[5]
235,207
235,208
HTTPS URL in Android webservice
<p>I am not able to work with HTTPS URL in Android webservice. It's working with HTTP but not with HTTPS. Please help me. I don't have any idea how to use HTTPS. Do I have to add any extra code? Please help me with that.</p>
android
[4]
3,006,365
3,006,366
How to display a phone number in an iphone webapp?
<p>I have a webapplication that runs on an iphone and I would like to display a phone number on it. How can I make this so that when the phone number is clicked then the phone number will be dialled?</p>
iphone
[8]
3,742,138
3,742,139
How to hide default keyboard when click on menu?
<p>I have tried several methods for this website by inserting the code in the <code>onCreateOptionsMenu (Menu menu)</code> without success. I want to hide the keyboard when I click the menu button.</p> <p>I have three EditText where I write some data, and options to insert / delete / modify a database, are on the menu...
android
[4]
5,406,682
5,406,683
Using php to pop an array stack (or iterate through a text file) on a timed interval
<p>I want to set up a small php script which simply returns a string, either from an array or from a line in a text file. As well as returning the string any time this script is called, I also want it to automatically cycle through the set of items (either an array or each line in a text file) on a timed basis. For exa...
php
[2]
193,476
193,477
Couldn't put a song into an app
<p>Have already tried that out and failed I put a .wav file into my app and it was fine. So I tried to put a .wav song file into the app. When runs, there's no sound coming out. ( the song is converted from .mp3 using iTunes) Any ideas how can I fix this? Thanks in advance </p>
iphone
[8]
795,509
795,510
How to get system password from System.getProperties()
<p>System.getProperties() return me all the System properties.</p> <p>I can see my system user name in <code>user.name</code> property.</p> <p>Is there a way to get something like <code>user.password</code>?</p> <p>Note: <em>I have no intention to hack a system</em> :)</p>
java
[1]
429,427
429,428
Upload a file with a file.write interface
<p>I've never seen this in Python and I'm interested if there is anything out there that will allow you to send files (for example HTTP PUT or POST) with a write interface? I've only ever seen a read interface where you pass a filename or <code>file</code> object (urllib, requests etc)</p> <p>Of course I may have neve...
python
[7]
1,285,296
1,285,297
Can I set a timeout for a few seconds when connecting to a 3rd party via a form post?
<p>During a form submission, I have to verify something and I don't want to wait for more than a few seconds.</p> <p>I.e. if I don't get a response within 5-10 seconds, just end the request.</p> <p>Is this possible and reliable?</p> <p>I am doing a server side XML post in C#.</p>
asp.net
[9]
3,270,543
3,270,544
Check if an object is non-basetype?
<p>I want to be able to see if an object is of a base type (char, int, var, string (is this a base type in C#?)). The reason for this is because I want to create a parser, which gets the fields of the object and if it comes across an object it cannot get a value out of (if it was another object inside), it will recursi...
c#
[0]
5,861,352
5,861,353
How to skip directly to email app AND setType(audio/wav)?
<p>When you intent.setType("message/rfc822") you bypass the intent chooser and head straight to the email app, however, i also need to intent.setType("audio/wav");</p> <p>How can I accomplish both??</p>
android
[4]
682,859
682,860
Angle of mobile while using
<p>I'm working on an Android program for my research.</p> <p>It needs to find out the angle while user using my mobile phone.</p> <p>The angle here is like a rotation angle of entire mobile phone, not the widgets in layout.</p> <hr> <p>I've tried keyword "angle" on <a href="http://developer.android.com/reference/pa...
android
[4]
23,457
23,458
How to handle NullpointerException in this case
<p>This is my for loop function inside the servlet </p> <p>Here i have a question . The Data will be passed from the USER Interface to this .</p> <p>In some conditions , some information (For example symbol or side ) may not be passed , then in those conditions , i am getting NullPointreException as null would be su...
java
[1]
5,957,534
5,957,535
c++, what have i done wrong?
<p>I am trying to ask the user for the age of 10 students if they enter anything less than 0 or more than 18 i want it to change that value to 0.</p> <p>what have i done wrong?</p> <pre><code> #include &lt;iostream&gt; using namespace std; int main() int age [10]; int TotalAge, AverageAge; for (int ...
c++
[6]
5,940,578
5,940,579
Overhead: method call vs. object creation
<p>As far as I understand the JVM, it should generally be cheaper to invoke a method (i.e. allocate a new stack frame, etc), than to create a new object. </p> <p>However, can we estimate just how big the difference in overhead between the two generally is, assuming that both the method and the object declare the same ...
java
[1]
4,280,455
4,280,456
Jquery fade in - fade out help
<pre><code>$('.HelpBoxOk').live('click',function() { var BoxHelpMain = $(this).parent().parent().parent().parent().parent().parent(); var ShouldFadeIn = false; //if the button says next then there is more divs to fadein if it says ok then no more divs to fade in i.e end of divs if($(this).attr('value') == ...
jquery
[5]
3,888,072
3,888,073
Best way to create book publication back end
<p>i want to create automated web based book publication system. My company is publishing reports which is written in words. &amp; there is lots of hassel on formatting word document. So we want to develop system where different users can loged into system then create different chapters &amp; different parts within th...
asp.net
[9]
112,160
112,161
PHP include path error
<p>I keep getting an error when I try to include simpletest in my include_path:</p> <pre><code>&lt;? set_include_path(get_include_path() . PATH_SEPARATOR . realpath(basename(dirname(__FILE__)) . '/../../')); include 'simpletest/autorun.php'; </code></pre> <p>returns:</p> <pre><code>.:/usr/lib/php:/Users/kristiannis...
php
[2]
5,218,134
5,218,135
Store object of a class within the class itself
<p>I would like to know how to store an object of a class within the class itself.</p> <p>I know that I have to use the static keyword to accomplish what I want.</p> <p>thus the class should look something like</p> <pre><code>class my_class { public: static my_class instance; my_class() { my_class::i...
c++
[6]
1,007,162
1,007,163
how to include java script when you have ajax and css?
<p>when I run my javascript in my index.html it works properly but I wanted to seperate it as a js file so I created aram.js and then I added my code to it I also included this line to index:</p> <pre><code>&lt;script type="text/javascript" src="aram.js"&gt;&lt;/script&gt; </code></pre> <p>aram.js:</p> <pre><code>&l...
javascript
[3]
2,766,650
2,766,651
PHP: In Exception what's the purpose of the exception code?
<p>Can this be any number I choose for my personal liking (my own set of codes for my app) or is it suppose to be standard number codes?</p> <p>For reference: <a href="http://www.php.net/manual/en/exception.getcode.php" rel="nofollow">http://www.php.net/manual/en/exception.getcode.php</a></p>
php
[2]
3,092,965
3,092,966
How to test server speed with Python
<p>I'm trying to test the speed of my servers, and compare it with third parties' servers including Facebook, Tumblr and Google. I need to build a report with at least 100's of requests and I decided to do this with Python.</p> <p>The idea is that I upload an image to Facebook, then re-download it (as Facebook modifie...
python
[7]
5,176,465
5,176,466
how can i pass a string from activity to Service in Android?
<p>Can anyone tell how to pass an String or integer whatever, from activity to Service. im trying to pas an integer setpossition(4), but it doesnt take, always it takes 0 Service when it start I dont know why i cant manipulate from Activity by using an instance of Service.</p> <pre><code> public class MainMP3 exten...
android
[4]
2,349,089
2,349,090
Dynamic HTML content through PHP
<p>I've heard it's a bad practice to echo dynamic HTML content through PHP. But what are the alternatives, in case you need it, like, f.e. a navigation menu on a website, repeated in every page?</p>
php
[2]
1,855,386
1,855,387
correct way to store information to file when application shutdown
<p>One of my class collects statistics during application execution and I want to store this statistics to disk when application finished. I never destroy this class inside my program so I have tried to store logs to file like that:</p> <pre><code> ~Strategy() { foreach(var item in statisticItems) ...
c#
[0]
5,422,010
5,422,011
java class implements comparable
<p>Why is Java <code>Comparable</code> used? Why would someone implement <code>Comparable</code> in a class? I've seen it I'm just wondering what it is for.</p> <p>Can someone give me real life example when would you implement comparable?</p>
java
[1]
4,109,660
4,109,661
Find an element in a div using the attribute ends selector
<p>I am trying to find hidden element in a div using the attribute ends with selector and I am running into issues. </p> <p>I have a jQuery object which represents div and I know that my hidden input is in this div and it ends with "-id", but I am not able to locate it. </p> <p>This is my code</p> <pre><code>var cl...
jquery
[5]
5,965,987
5,965,988
attribute assignment order in class definition
<p>Hi my problem is that: I want to define a class in this way:</p> <pre><code>class List(Base): hp = Column(int,...) name = Column(str,...) </code></pre> <p>This class represents a list, I can define/modify/code the <code>Base</code> and the <code>Column</code> class. There's a way to know the order in whic...
python
[7]
4,003,939
4,003,940
Event for resize stopped
<p>Is there an event that tells me when the user has stopped resizing by letting go of the mouse button? I'm looking at $(window).resize, and it's firing for every pixel movement. I just need to know when they've stopped.</p>
jquery
[5]
3,010,100
3,010,101
jquery replace div content html()
<p>I'm just try to replace the content of a div with new content binded to a click event.</p> <p><a href="http://jsfiddle.net/pCckh/" rel="nofollow">JSFIDDLE</a></p> <p>When I use <code>appendTo()</code> instead of of <code>html()</code> it's working, but I need to clear the old content out so I'm a bit confused why ...
jquery
[5]
725,592
725,593
iPhone sdk Edit Tempo of the Music File
<p>I need to Edit the Tempo of Music File which I am Playing in the Background.Actually I have to Put Button For Fast Slow and Medium tempo and get the Tempo effect related to it.I am looking for some sample code or tutorial which can guide Thanks in advance for any help that u can provide me.</p>
iphone
[8]
5,891,508
5,891,509
Select option hover in and out jquery
<p>I have a select dropdown and certain number of options in that.</p> <p>I want to change color of options whenever i hover in and out of the option.</p> <p>Like :- when i hover on a option the color should turn to red and when i hover out i should be transparent again.</p> <p>it is not working proper.</p> <p>JS</...
jquery
[5]
1,892,977
1,892,978
Calculate business days difference between two days excluding holidays?
<p>I already have a list of holidays which is a List . </p> <p>Given two Date object, how could I calculate the difference in working days <strong>(not counting weekends and holidays)</strong> between them? </p> <p>I have found the library ObjectLab Kit but I think it only knows how to advance days.</p> <p>Thanks</p...
java
[1]
2,476,491
2,476,492
How to Create A file on Disk
<p>i am working on a pc 192.168.2.200 i have made a simple C# Windows application on 192.168.2.200</p> <p>I want to Create a Text File on D: of a Network PC whose IP is <strong>192.168.2.201</strong> and <strong>UserName is abc</strong> and <strong>Password is 123</strong> by C# code in Windows Application How i Will...
c#
[0]
1,538,058
1,538,059
Changing "global" array with pool processes
<p>Apologies first for the small code dump to follow, but I've spent the evening taking my first baby steps into the multiprocessing module; with my previous knowledge coming from openMPI fortran. I'm having issues with the below code in that although all the threads spawn and run etc and have access to all the correct...
python
[7]
1,128,791
1,128,792
How to convert String to date
<p>I have a requirement to treat strings of the form 20031006, among others as datetime. Using the C# functions, I came up with the function below for converting most all of my dates in my application. However, I don't seem to have the format for converting the string 20031006 to date. What methods do I use to accompli...
c#
[0]
2,068,011
2,068,012
How to update Fragment UI from other helper class?
<p>Fragment A(FragmentA.java) contains a textview and button.<br> When users click button, it will popup a dialog with a "OK" button.<br> If user clicks "OK", it will update the textview to "OK".<br> However, I write a dialog helper class(DialogA.java) for the dialog.<br> How can I directly update the fragment's textvi...
android
[4]
1,515,735
1,515,736
Internal storage not being written
<p>I'm trying to read from website url then write into device internal storage. Below are my code, the system output can print the line out but there is no file at internal storage. Suppose the abc.xml will appear at "/data/data/my-package/abc.xml" but there is nothing... Kindly help me on this problem.</p> <pre><co...
android
[4]
1,507,229
1,507,230
Troubleshooting a recursive stripslashes method in PHP
<p>I'm trying to use the stripslashes_deep function in the PHP documentation as a method, but when I pass it an array, it doesn't work. It does, however, work with a string. Can anyone point out why it might not be working? Magic quotes are on because I'm testing for that possibility, but like I said, it works for a st...
php
[2]
432,149
432,150
When is "public" needed in a class definition?
<p>This question relates to where <strong>classes</strong> themselves (not their methods or data) need to be declared as public.</p> <p>Currently I'm a Java noob, self taught with just the very basics. I'm familiar with several other languages, but in Java I've only written extremely basic programs, like with everythi...
java
[1]
2,123,852
2,123,853
How would one get the value/text of an anchor DOMElement?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/4629071/how-to-get-anchor-text-using-domdocument">How to get Anchor text using DomDocument?</a><br> <a href="http://stackoverflow.com/questions/6399924/getting-nodes-text-in-php-dom">Getting node&#39;s text in PHP...
php
[2]
3,157,805
3,157,806
code or tutorial for how to make call for iphone application?
<p>Hello All iphone developers ,</p> <p>I am creating an iphone application in which i want the same facility as user taps on the call button and make a phone call to that person.</p> <p>Can anyone provide me some code snippet or reference links.</p>
iphone
[8]
205,381
205,382
Error on maximum number of Files
<p>is there any way to throw new exception on maxmium number of files in a directory ?</p>
c#
[0]
276,255
276,256
identify the file extension using java
<p>i have different format files in DB. i want to copy to my local machine.</p> <p>how can i identify the file format (doc, xls, etc...)</p> <p>Regards, krishna </p> <p>Thanks, for providing suggestions... based on your suggestions i had written the code &amp; i am completed...</p> <p>please look into my blog.. i p...
java
[1]
4,137,507
4,137,508
Search Display Controller to not hide navigation bar when search bar is tapped
<p>I use Search Display Controller to do the search. I follow the TableSearch sample from Apple.</p> <p>In <code>searchBarTextDidBeginEditing</code> I put <code>[self.searchDisplayController setNavigationBarHidden:NO animated:YES]</code> to keep navigation bar showing, but this doesn't work. Navigation bar gets pushed...
iphone
[8]
864,644
864,645
displaying images retreived from database uisng php
<p>i would like to know how to display the image in a particular div which stored in a database using php?</p> <p>The code i used is</p> <pre><code>&lt;form method="post"&gt; &lt;input type="button" name="show" value="show"/&gt;&lt;br/&gt; &lt;input type="image" id="image_show" name="img" value="img"/&gt; &lt;/post&...
php
[2]
678,234
678,235
How to dynamically show a list of words
<p>I'm just starting with android and could use some help.</p> <p>I have a list of words that will always be between 20 and 30 words in length, and I want to display those words in columns on the screen, utilizing as much of the screen as possible. In portrait, having three columns seems to be the best size, and in l...
android
[4]
3,954,969
3,954,970
Get just a class name without module, etc
<p>I'm probably overlooking something simple. Given an instance of a class, I'd like to get just the class name. For example:</p> <pre><code>class Foooo: pass instance = Foooo() print("instance.__class__ = "+str(instance.__class__)) print("Just the class name: "+str(instance.__class__).split(".")[-1][:-2]) </code><...
python
[7]
4,743,360
4,743,361
Basic find replace words
<p>All I want is to replace several words to other words. I tried the following but it conflicts and breaks other elements of the site such as AJAX elements etc.</p> <pre><code>document.body.innerHTML = document.body.innerHTML.replace(/searchword/g, "resultword"); </code></pre> <p>I'm also pretty sure this is a fairl...
javascript
[3]
289,820
289,821
how to use string.compare
<p>There is an error with that string.compiler thingy and i dont know what to do. i really need some help please</p> <pre><code>char[] valWord = new char[100]; Console.WriteLine(textBox1.Text); valWord = textBox1.Text; int beg = 0; int val = 0; int value = 0; for (int i = 0; i &lt; 100; i++) { if (valWord[i] == ...
c#
[0]
1,686,866
1,686,867
Python loop | "do-while" over a tree
<p>Is there a more Pythonic way to put this loop together?:</p> <pre><code>while True: children = tree.getChildren() if not children: break tree = children[0] </code></pre> <p>UPDATE: I think this syntax is probably what I'm going to go with:</p> <pre><code>while tree.getChildren(): tree = tr...
python
[7]
1,202,368
1,202,369
Most Common JQuery ModalBox Plugin
<p>(Before I start: the intent of this question is not to start flamewars or put down anyone's favorite tool.)</p> <p>I am trying to determine the most commonly used and/or best supported ModalBox plugin. There seem to be dozens of them, and since I have no way to determine their popularity or quality, the best thing ...
jquery
[5]
5,912,635
5,912,636
Reading a binary file in Java
<p>I'm not new to Java, which perhaps only adds to the awkwardness of having to ask this question, but here goes. I have a comparatively long file of unsigned integers (64 bits each, 0.47GB file) that I need to read and store in an array. After some brain racking I wound up using the type long, since everything in Java...
java
[1]
5,393,812
5,393,813
Tagging strings in Java
<p>How can i tag an array of string in java ?</p> <p>I want to make an array of strings and tag them like :</p> <pre><code>m funny s funny t boring k boring </code></pre> <p>Then if the user can search for them by tagging like </p> <pre><code>search : funny :: m,s </code></pre>
java
[1]
4,946,060
4,946,061
if spinner changed
<p>i want execute populateFields if the spinner changed but i don't know how i can do it. i need anything like a onclicklistener or else</p> <p>java:</p> <hr> <pre><code> private String abfrage; on create: Spinner spinner = (Spinner) findViewById(R.id.spinnerStd); Ar...
android
[4]
3,206,261
3,206,262
how to run iPhone application from Xcode 4 and ios sdk 4.3 for jailbroken iphone
<p>I have developed an iPhone application and would like to test it on my personal iPhone without paying 99$.</p> <p>I'm using Xcode 4 and ios sdk 4.3 on VMWare snow leopard 10.6.7.</p> <p>I have followed all steps described in <a href="http://www.alexwhittemore.com/?p=398" rel="nofollow">http://www.alexwhittemore.co...
iphone
[8]
1,245,831
1,245,832
ASP.NET Convert money datatype to displayable value on screen
<p>Just pulled from database a value from DB with datatype and appearing on my screen as</p> <p>9.8600</p> <p>Whats best way to get this to get to</p> <p>€9.86</p>
asp.net
[9]
4,462,722
4,462,723
implement the sorting of data into an array without using arraylist,linkedlist
<p>I need help to create an array of CDs, where the data comes from a text file, and then sorts the array content by artist name, then title, releaseyear, length in ascending order of artist's name (2 classes main and Cd ). When the sorting is done, a new fill is written to disk, with the sorted data. without using Arr...
java
[1]
1,497,680
1,497,681
How to build Dialer/Phone application from the source code?
<p>Hi i am trying to write test cases for "phone" native application , so i am trying to build that application from the source code... It has some dependency with the Contacts app , i am not able to resolve that . Any help regarding writing test cases for phone app or help on building it is very much helpful.</p> <p>...
android
[4]
553,579
553,580
disable click event for all links except the links inside a div
<p>I have a page with some links inside a div and some outside that div.</p> <pre><code> &lt;div id="navigation"&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="/Home/Index"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt; &lt;a href="/Home/contactus"&gt;Contact Us&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt...
jquery
[5]
1,422,441
1,422,442
validations of text box in javascript
<p>I have to do one validation in javascript. I have text box into which user should not allow to enter value which is more that 5.00 means user can enter value which is less than 5.00. so please suggest such validation in javascript</p>
javascript
[3]
3,250,639
3,250,640
drawable-land-xhdpi = invalid resource directory name?
<p>My project's getting an error for drawable-land-xhdpi as an invalid resource directory name in the res/ folder. Anyone else have any ideas? I've had drawable-port-xhdpi sitting there just fine before, and it's only when I added in the drawable-land-xhdpi folder that the errors started happening.</p>
android
[4]
979,942
979,943
JQuery, cannot change the ID of a cloned element?
<p>Is there an issue with updating ID's of cloned elements? I think my syntax is correct here but it's not updating.</p> <pre><code>function addQuestion(){ // Clone the first question Container and give it a new ID $('#questionContainer0').clone().attr('id','questionContainer'+currentQuestion).appendTo('#questionArea'...
jquery
[5]
3,780,305
3,780,306
Replacing two dimensional array with other data structure
<p>I have a complex problem, I don't know whether I can describe it properly or not. </p> <p>I have two dimensional array of objects of a class. Currently my algorithm operates only on this two dimensional array but only some of the locations of that array are occupied. (almost 40%)</p> <p>It works fine for small dat...
c#
[0]
2,769,939
2,769,940
Seeking on a http progressive download
<p>I am trying to implement the progressive download of audio files in my android project. I am able to progressively play the audio by reading chunks of data and passing on to the media player. So, the media player does play the audio with simultaneous buffering, but the problem lies with seeking.</p> <p>When I seek ...
android
[4]
5,778,937
5,778,938
How to preempt a ProgressDialog?
<p>App I'm building is carrying out a task, ProgressDialog is on the screen circling 'round and 'round.</p> <p>How can I provide the user the ability to break out of that Dialog at any given time, immediately disappear the Dialog and stop the task from being carried out mid run?</p>
android
[4]
5,203,648
5,203,649
reference and pointer
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/57483/difference-between-pointer-variable-and-reference-variable-in-c">Difference between pointer variable and reference variable in C++</a> </p> </blockquote> <p>what is the difference between reference an poin...
c++
[6]
704,977
704,978
Use php to generate snippet code of html or javascript
<p>Simply want to use php to generate snippet in javascript or html that can access images from another server if they meets criteria as they are registered and active.</p> <p>Example. if i have some users that have avatars if they want to embed their avatar on their own website they use snippet code generated by php ...
php
[2]
1,354,574
1,354,575
How to insert nodes and values in binary search tree in java?
<p>I am new to data structures and binary trees so I am a little bit lost . My problem is that how do we insert values in the tree itself ? </p>
java
[1]
5,695,072
5,695,073
How to open Administrator mode?
<p>I want to open Administrator mode automatically after installing my application.</p> <p>And also i want to add Font automatically into Client's PC when installing my application.</p>
c#
[0]
3,071,171
3,071,172
PHP's date usage results in 2 hours error
<p>I'm using <code>date('H:i:s', (time() - $start['time']))</code> to displa time that passed since start of the script.</p> <p>whatever the result of <code>time() - $start['time']</code> - be it 0, 17 or whatever the date prints out like 02:00:00, 02:00:17 etc.</p> <p>What may be the reason?</p>
php
[2]
1,209,706
1,209,707
Problem using Conditional Operation with Nullable Int
<p>A small problem. Any idea guys why this does not work?</p> <pre><code>int? nullableIntVal = (this.Policy == null) ? null : 1; </code></pre> <p>I am trying to return 'null' if the left hand expression is True, else 1. Seems simple but gives compilation error - </p> <p>Type of conditional expression cannot be deter...
c#
[0]
2,882,500
2,882,501
php give class to 3 div's then skip 3
<p>I have a table with a row of 3 div's then another row or 3 div's then another and then another. </p> <p>But what I'm trying to achieve is to highlight every other row. And each row contains 3 div's.</p> <p>So the first row will be <code>.mydiv .even</code> and then the <code>.even</code>'s will be grey. Then the n...
php
[2]
4,979,662
4,979,663
jQuery clone question (cloning form input sets)
<p>I am creating a quiz creation form that requires sections of the form to be cloned. </p> <p><a href="http://jsfiddle.net/eduQ8/19/" rel="nofollow">see jsFiddle code example here</a></p> <p>My troubles come with the adding of a new set of question fields. When I click on the "ADD ANOTHER QUESTION" button, it duplic...
jquery
[5]
3,921,551
3,921,552
PHP Strip_tags for div with a specific ID?
<p>Does anybody know if a modified strip_tags function exsists where you can specify the ID of the tags to be stripped, and possbile also specify to remove ALL THE DATA IN THE TAGS. Take for example:</p> <pre><code>&lt;div id="one"&gt; &lt;div id="two"&gt; bla bla bla &lt;/div&gt; &lt;/div&gt; Running: new_...
php
[2]
5,468,925
5,468,926
Can't debug old android app that I wrote - INSTALL_FAILED_UID_CHANGED Error
<p>After I wiped my phone I can't install or even debug an app on my phone that I wrote. I get this error:</p> <pre><code>[2013-05-15 09:20:40 - BatteryMonitor] Installation error: INSTALL_FAILED_UID_CHANGED [2013-05-15 09:20:40 - BatteryMonitor] Please check logcat output for more details. [2013-05-15 09:20:40 - Batt...
android
[4]
1,243,297
1,243,298
Java-RAM & Benefit of static variable
<p>1)Why java is stored in RAM and not stored in hard disk. 2)And what is the benefit of static variable over normal variable. Whether normal variable occupy more memory space since objects of classes have it's own copy. </p>
java
[1]
1,341,091
1,341,092
C# - use symbols from other class without qualifying with classname
<p>I have declared a bunch of global constants in a class and now want to use these constants in other classes without always having to prefix the constants with the name of the class they have been declared in. Example:</p> <pre><code>namespace SomeName { public class Constants { public const int SomeCons...
c#
[0]
282,299
282,300
How to make an update to base class less demanding on updating derived classes?
<p>this is for PHP:</p> <p>The following scenario has been troubling me and I was wondering if anyone know a good strategy or solution. My problem is the following:</p> <pre><code>class Foo { public function doSomething() { // do something } } class Bar extends Foo { public function doSomething() { // do s...
php
[2]
814,651
814,652
MainClass in java
<p>I found this MainClass in java which has 2 static methods. </p> <pre><code>public class MainClass { public static void main(String args[]) { permuteString("", "ABC"); } public static void permuteString(String beginningString, String endingString) { if (endingString.length() &lt;=...
java
[1]
1,910,706
1,910,707
converting source code from window to linux
<pre><code>c++ (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5 </code></pre> <p>I am converting some source code from windows to running on ubuntu.</p> <p>However, the windows is using the code below to log messages and get the current time the message is logged. However, this is windows. What is the best way to convert this t...
c++
[6]
241,205
241,206
Most pythonic means to find out if an element from one list is not a member of another list
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5305164/get-difference-from-2-lists-python">Get difference from 2 lists. Python</a> </p> </blockquote> <p>I have two lists</p> <pre><code>rt = [1,2,3] dp = [1,2] </code></pre> <p>What is the most pythonic way ...
python
[7]
3,680,739
3,680,740
On scroll down display search option using jquery
<p>I need to implement On scroll down display search option using jquery as in the following link <a href="http://in.msn.com/?rd=1&amp;ucc=IN&amp;dcc=IN&amp;opt=0&amp;tc=1&amp;ar=1" rel="nofollow">http://in.msn.com/?rd=1&amp;ucc=IN&amp;dcc=IN&amp;opt=0&amp;tc=1&amp;ar=1</a></p> <p>Can anyone refer me some sample links...
jquery
[5]
3,117,908
3,117,909
jQuery access element by id
<p>This may be a simple question. I need to access an html element using jQuery in the following way:</p> <pre><code>var element_ID = "my" + "name" +"xyz"; </code></pre> <p>Now I want to access/manipulate the element whose ID I have stored in 'element_ID' as above.</p> <p>This doesn't work : <code>$('#element_ID')</...
jquery
[5]
166,179
166,180
Java Script: How to ammend a datetime variable to set a specific time?
<p>I need to take a datetime values from an MSSQL based app which is read into the script as 22/12/2010 3:56pm and adjsut the time component toa set time.</p> <p>I've used what I know of javascript and what I can find in google searches to try and progress this but to no avail.</p> <p>Premis: I need to read the date...
javascript
[3]
1,033,921
1,033,922
Custom FrameLayout that adds items to sub FrameLayout?
<p>I am trying to make some kind of button that can have content added to it like it is done to a FrameLayout. For example:</p> <pre><code>&lt;ch.pboos.android.ui.ContentButton ...&gt; &lt;LinearLayout ...&gt; &lt;TextView .../&gt; &lt;TextView .../&gt; &lt;/LinearLayout&gt; &lt;/ch.pboos.android.ui.Conten...
android
[4]
3,434,399
3,434,400
how to create a QR code reader in android? (please explore step by step)
<p>Hello friend i want to develop a QR code reader application for android and it's a first time for me so i have no idea that where is the starting point for develop a QR Code reader. so please anyone explore the way of develop (Step by Step guidance). help me out please.....</p>
android
[4]
879,484
879,485
Shorthand adding/appending in Python
<p>I like that in PHP I can do the following</p> <pre><code>$myInteger++; $myString += 'more text'; </code></pre> <p>With Python I must do the following</p> <pre><code>myInteger = myInteger + 1 myString = myString + "more text" </code></pre> <p>Is there a better way to add or append to a variable in Python?</p>
python
[7]
3,123,487
3,123,488
Build sitemap using c#
<p>Does anyone know a way to build a sitemap of a website using c#.</p> <p>I want to be able to point to a website and generate a full sitemap.</p> <p>Any ideas on how best to approach this?</p> <p>Sp</p>
c#
[0]
5,007,658
5,007,659
Jquery - directly i can't map the object values?
<p>i am storing the element reference in object. later if i refer the object value, i unable to get the result.. </p> <pre><code> var cciApp = {}; cciApp.widget = { console.log($(cciApp.tools.title))//return undefined shuffle : function(){ $($(cciApp.tools.title), cciApp.tools.secParent).cl...
jquery
[5]
3,421,555
3,421,556
Parent selector in jquery
<p>I have a table row that needs to be hidden when the anchor with class "removerow" is clicked.</p> <pre><code>&lt;tr&gt;&lt;td&gt;Product Name&lt;/td&gt;&lt;td&gt;&lt;a class="removerow"&gt;Remove&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt; </code></pre> <p>I've been trying this, but it doesn't work:</p> <pre><code>$("a.remov...
jquery
[5]
689,205
689,206
Is there an alternate/better way to do this simple logic in java?
<p>I have a method, say method1(), that takes a while to run. During it's execution, if there is another call to method1(), it should be ignored. I have, roughly, something like this</p> <pre><code> boolean mFlag = false; void method1() { if(!mFlag) { mFlag=true; // d...
java
[1]
4,816,218
4,816,219
replacing characters in a string
<p>Why does this just not work out for me ?</p> <pre><code>&lt;script type="text/javascript"&gt; var gene="ATTAHATHHATTCGTA"; var i=0; for (;i&lt;gene.lenth;i++) { if(gene[i]=='H') gene[i]='G'; } &lt;/script&gt; </code></pre> <p>I change it by use of replace as follows</p> <pre><code>&lt;script type="text/ja...
javascript
[3]
4,870,188
4,870,189
Nothing in Logcat when I write Android service
<p>There is nothing in Logcat even the app force close when I just write Android Service without Andorid Activity.<br> Is there any problem?</p>
android
[4]
2,186,215
2,186,216
is there any way to make pdf scrollable in the horizontal way?
<p>I am showing a pdf in the web view and by default this has been showing in the vertical scroll way ,i just need it in the horizontal way scrollable ,Can it be done using the web view .</p> <p>Thanks </p>
iphone
[8]
5,138,245
5,138,246
how to solve Unknown entity error?
<p>I wrote the following code in MainActivity.java to make a options menu in android : </p> <pre><code>package com.jain.ashutos; import android.app.*; import android.os.*; import android.view.*; import android.widget.*; import android.content.*; import android.view.Menu; import android.view.MenuInflater; import andro...
android
[4]
888,466
888,467
Sort two different fields in one comparator
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/369512/best-way-to-compare-objects-by-multiple-fields">Best way to compare objects by multiple fields?</a> </p> </blockquote> <p>Hello i'm kinda new to programming and would like to ask help, my teacher created ...
java
[1]
81,189
81,190
How to access laptop built-in fingerprint scanner in c#?
<p>My c# windows application using external USB fingerprint scanner for capture finger print, i want to access laptop built-in fingerprint scanner instead of external USB scanner. is it possible? how to access that? please help.</p> <p>Thanks</p>
c#
[0]
3,200,978
3,200,979
March 14th not 86400 seconds long?
<p>In my web application, I have users input a date in a simple textbox. That input (after being sanitized, of course), is run through strtotime(), and 86399 is added to it, to make that timestamp the end of the day written (11:59:59). This is for due date purposes (so if the date passes, the application raises a flag)...
php
[2]