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
215,509
215,510
Working with associate array in javascript
<p>I making one application which contains 2 input box and one input button.My qestion is when user enter some input eg. "I used to going somewhere" then my result should be "I UD GNG somewhere." For that i am using this code <a href="http://pastebin.com/vHkhASdZ" rel="nofollow">http://pastebin.com/vHkhA...
javascript
[3]
106,909
106,910
jquery click function not getting called
<p>Why is the click function not called?</p> <pre><code> &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt; &lt;head&gt; &lt;title&gt;Untitled Page&lt;/title&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js" type="text/javascript" /&gt; &lt;script type="text/javascript...
jquery
[5]
2,201,228
2,201,229
getting all values in the row
<pre><code>var patientInfo = {} patientInfo.patientID = row.patientID; patientInfo.firstName = row.firstName; patientInfo.lastName = row.lastName; patientInfo.dateOfBirth = row.DateOfBirth; patientInfo.age = row.age; patientInfo.gender = row.gender; </code></pre> <p>When I print I <code>patientInfo</code>, I get on...
javascript
[3]
5,053,334
5,053,335
How to add own OMX_decoder in Android?
<p>I want to add my own <code>OMX_Decoder</code> to <code>android</code>, I want to understand that, how much important it is to understand Opencore and Stagefright for same. </p> <p>Say, I go ahead with Android 2.1 which has opencore,what will be the rework I need to do for <strong>Android 2.3</strong> or further and...
android
[4]
5,473,539
5,473,540
How to make 3d background for an android game
<p>I have started creating a 3d android game and of course this is my first experience in game development.I found out many tutorials and created a man like model in 3d as .md2 file and inserted animation into it. And now i got a perfect hero to make my game. </p> <p>Now I want to show like he walks and the background...
android
[4]
2,168,727
2,168,728
Array not passing correct value
<p>i have following variable and need to use it in the array loop...</p> <pre><code>$jointa="'nike-score', 'pack-cupcake', 'shor-burgundy'"; foreach (array($jointa) as $id) { $yourSiteContent[] = array('permalink' =&gt; $id, 'updated' =&gt; $dated); } </code></pre> <p><strong>but when i put the value direct in a...
php
[2]
3,363,755
3,363,756
Pause between animations
<p>I have a bunch of &lt; li > elements which I want to animate one after the other, so what I'm doing is the following:</p> <pre><code>&lt;script type="text/javascript"&gt; var i=-1; var items = $('li'); animateAll(); </code></pre> <p>The animateAll() function goes like this</p> <pre><code>function animateAll(){ ...
jquery
[5]
1,468,618
1,468,619
Opacity when moving div NOT on mouse down JavaScript
<p>I have set an opacity to a draggable div, but the problem is that i don't want to add the opacity on mouse down, only when I start move the div. Should be connected to the X and Y but i really don't get how to.</p> <p>This is what i have.</p> <pre><code> function startDrag(evt) { // To start the opacity function ...
javascript
[3]
5,882,924
5,882,925
Expression value
<p>I have these declarations: </p> <pre><code>var a; var b = 1; var c = 2; var d = a || b, c; </code></pre> <p><code>d</code> is 1 , so what is the meaning of the <code>,c</code> in the expression?</p>
javascript
[3]
2,202,110
2,202,111
How can I convert my string to a number in Javascript?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/12040769/how-to-convert-string-variable-to-int-in-javascript">How to convert String variable to int in javascript?</a> </p> </blockquote> <p>I have the following:</p> <pre><code>var dataElapsed = $("#stats-list...
javascript
[3]
5,152,785
5,152,786
Creating/resizing arrays...can't use non-constant?
<p>I have a struct defined as</p> <pre><code>struct Point { int x, int y } </code></pre> <p>I am getting an array of Points passed into a function, as well as an integer i that tells me how many elements the array contains. How in the world can I just add an element into the array? I realize there is no method to jus...
c++
[6]
1,804,550
1,804,551
Showing grid of images with thumnail sized photos
<p>I have a requirement where I have to show a grid that contains thumbnail sized photos in say 2 rows and 5 columns. If there are more images, I need some scroller to show rest of images. Now, these are user uploaded images that could vary in size.</p> <p>Can someone throw some light how can I dynamically resize each...
jquery
[5]
2,986,040
2,986,041
Is it possible to chain array.push() in Javascript?
<p>I have 3 separate arrays and I'm looking to load them all into to a single array. Am I able to use <code>.push()</code> several arrays into one? Is something like this possible?</p> <pre><code> var activeMembers=[]; // Active Users var noactiveMsg=[]; // Non-Active Users with a Pending Message var noa...
javascript
[3]
3,595,685
3,595,686
How to minify php html output without removing IE conditional comments?
<p>I minify my HTML pages whit this PHP script:</p> <pre><code>function compress_html($html) { preg_match_all('!(&lt;(?:code|pre|script).*&gt;[^&lt;]+&lt;/(?:code|pre|script)&gt;)!', $html, $pre); $html = preg_replace('!&lt;(?:code|pre).*&gt;[^&lt;]+&lt;/(?:code|pre)&gt;!', '#pre#', $html); $html = preg_re...
php
[2]
3,103,196
3,103,197
How to check if a custom protocol supported
<p>We are using software that registers its own protocol. We can run application from browser then by link like:</p> <pre><code>customprotocol://do_this. </code></pre> <p>but is there a way to check is such custom protocol supported by user`s system? If not we would like to ask user to install software first.</p> <p...
javascript
[3]
4,914,968
4,914,969
C# basic loop iterator
<p>Okay here's the question, using C# I need to create a program using a loop which asks for a number then displays the first 1000 multiples of it. So basically if the person enters 17 it would show 17, 34, 51, 68, 85 etc.</p> <p>I've got so far this code.</p> <pre><code>Console.WriteLine("Please enter a number"); in...
c#
[0]
4,644,103
4,644,104
Why isn't my JavaScript countdown function doing anything?
<p>I found this script:</p> <pre><code>&lt;script language="Javascript" TYPE="text/javascript"&gt; var container = document.getElementById('dl'); var seconds = 10; var timer; function countdown() { seconds--; if(seconds &gt; 0) { container.innerHTML = 'Please wait &lt;b&gt;'+seconds+'&lt;/b&gt; seconds....
javascript
[3]
3,303,451
3,303,452
NSNumberFormatter currency negative number
<p>i use this</p> <pre><code>NSNumberFormatter *f = [[[NSNumberFormatter alloc]init]autorelease]; [f setNumberStyle:NSNumberFormatterCurrencyStyle]; [f setCurrencySymbol:NSLocalizedString(@"CURRENCY", @"Get Currency")]; NSString * stringCurrecy = [f stringFromNumber:(-70.00)]; </code></pre> <p>i using NSLog and check...
iphone
[8]
4,675,534
4,675,535
SQL query convert to array Android
<p>Hello i am new in android and i really need help with something. I got a prepopulate database in my sqlitehelper class and i need a query request returns a String[] table. Example my database got 3 columns id, name, tel my query will be based on id so the cursor will get {1 mary 2134} i want that to be converted to...
android
[4]
2,500,333
2,500,334
jQuery events .live() wierdness
<p>I have a page with a toolbar menu at the bottom. I have a function which checks the display property of a block that contains the menu items and sets it to "none" if it's "block" or sets it to "block" if it's "none".</p> <p>I'm using jQuery to bind the event to the object. I want to use the live() method because ...
jquery
[5]
1,698,728
1,698,729
ASP.net image.imageurl not showing anything
<p>i have a server image control the id is Picoftheday and i was trying to generate a url for that image control.. here is my image url generating code.....</p> <pre><code>private string PicID() { DataTable dt = new DataTable(); Connection dbconn = new Connection(); SqlDataAdapter ad = new ...
asp.net
[9]
662,919
662,920
PHP, MySQL table query syntax error?
<p>I hope someone can help see what's wrong here: I have a form with two field <code>EMAIL</code> and <code>PASSWORD</code> that opens a php page where I intend to run a simple query on a table. I get an error message that makes no sense:<br> <code>You have an error in your SQL syntax; check the manual that corresponds...
php
[2]
4,652,791
4,652,792
How to use ssh2_connect to connect to multiple connections?
<p>I have this php code to connect to ssh2, but I'm trying to make it so it connects too multiple hosts, instead of 1 </p> <pre><code>$ssh = ssh2_connect('host', 22); ssh2_auth_password($ssh, 'root', 'pass'); </code></pre>
php
[2]
3,193,832
3,193,833
Why this line xmlns:android="http://schemas.android.com/apk/res/android" must be the first in the layout xml file?
<p>Why this line is needed in xml layout file ? </p> <p>Can anybody give me an explanation?</p> <p>I tried to understand, but not succeeded, so I post this question here.</p>
android
[4]
1,928,427
1,928,428
sort a List<Tuple> from highest to lowest
<pre><code>List&lt;Tuple&lt;String, int[], int&gt;&gt; </code></pre> <p>I want to sort the <code>List</code> by the <code>int</code> from highest to lowest.</p>
java
[1]
2,917,955
2,917,956
How to refactor the C++ code to support the dynamic array size
<p>I need to get rid of fixed array size in C++/ODBC apps. Instead the hardcoded array size (ROWS =10 below) I want to pass the ROWS as the command-line argument. I know how to parse the command line. But how to adjust the following code?</p> <pre> #define ROWS 10 SQLINTEGER idata[ROWS] SQLCHAR cdata1[...
c++
[6]
4,185,147
4,185,148
Display ListPopupWindow on most left of the screen
<p>I could display ListPopupWindow on most left of the screen by following code.</p> <pre><code>@Override public View onCreateActionView() { LayoutInflater layoutInflater = LayoutInflater.from(mContext); final View actionItem = layoutInflater.inflate(R.layout.list_table_view_action_provider, null); final...
android
[4]
3,654,328
3,654,329
how to check image behaviuor
<p>here is my image width and size code which is work perfectly but problem is that when i pass null fileupload it give me error 'argument not valid ' but i want pass null value also how will i do</p> <pre><code>HttpPostedFile fil = this.FileUp.PostedFile; System.Drawing.Image uploadimage = System.Dra...
asp.net
[9]
374,297
374,298
How can 2 different classes point to the same datatable name
<p>I need to initialize an object in a method without specifying the class from where the object is. Can I do that?</p> <p>can someone give me an example?</p> <p>EDIT:</p> <pre><code>MyClass{ ...}; MySecondClass {... }; void method(*object); //how to write correct?? {..} MyClass *x= new MyClass(); MySecondClass *y= ...
c++
[6]
5,165,125
5,165,126
PushFront method for an array C++
<p>I thought i'd post a little of my homework assignment. Im so lost in it. I just have to be really efficient. Without using any stls, boosts and the like. By this post, I was hoping that someone could help me figure it out.</p> <pre><code>bool stack::pushFront(const int nPushFront) { if ( count == maxSize ...
c++
[6]
318,736
318,737
How to determine whether the phone is ringing or making any other sound?
<p>I'm writing a recording application for sound measurements. I need find out if the phone is making any sound (ringing, incoming sms, music playing, ...) and whether the user is dialing. In that case, the measurements are temporally stopped and automatically resumed afterwards. Also vibration may influence the measur...
android
[4]
118,001
118,002
Creating new structs on the fly
<p>I am (very) new to C++, and am having some issues understanding structs. I'm using example code from a course, so I have:</p> <pre><code>struct Point { int x; int y; } </code></pre> <p>In another bit of code, I want to write the following:</p> <pre><code>drawLine(point1, new Point(x, y)); </code></pre> <p>...
c++
[6]
5,692,736
5,692,737
how to create a range of random decimal numbers between 0 and 1
<p>how do I define decimal range between 0 to 1 in python? Range() function in python returns only int values. I have some variables in my code whose number varies from 0 to 1. I am confused on how do I put that in the code. Thank you </p> <p>I would add more to my question. There is no step or any increment value tha...
python
[7]
4,511,902
4,511,903
javascript Date diffrent days equal miliseconds
<p><a href="http://jsfiddle.net/skowron_line/zPCBc/1/" rel="nofollow">http://jsfiddle.net/skowron_line/zPCBc/1/</a></p> <pre><code>var d1 = '31.05.2012'; var d2 = '01.06.2012'; var s1 = d1.split('.'); var s2 = d2.split('.'); var nd1 = new Date(s1[2], s1[1], s1[0]); var nd2 = new Date(s2[2], s2[1], s2[0]); $('#a').h...
javascript
[3]
5,591,133
5,591,134
backlight in android
<p>In my android app , I have a menu for backlight options ,and I want that when the user selects one like " during this operation " to have the backlight on during that operation. Could I be be shown a way of accomplishing this . My problem is the that I don't know how to manipulate the backlight and how to properl...
android
[4]
2,145,739
2,145,740
jQuery append html element with variable string
<p>I'm a JQuery Newbie. I'm trying to append an object property( declared in an array form) to an html element like the following</p> <p>HTML:</p> <pre><code>&lt;div id="container"&gt; &lt;p&gt;some text &lt;/p&gt; &lt;p&gt;some text &lt;/p&gt; &lt;p&gt;some text &lt;/p&gt; &lt;/div&gt; </code></pre> <p>JQuery Scrip...
jquery
[5]
3,276,170
3,276,171
MVC 4 empty template page not found using model data
<p>I have started with an empty template in MVC 4 and I can access model data from views fine. However when I add a Shared folder, _Layout.cshtml and _ViewStart.cshtml, any time I try to output information from a model I get "page not found". </p> <p>If I remove the model data from the markup and use plain HTML my lay...
asp.net
[9]
2,158,122
2,158,123
How can i change the focus to be on Form1 from being on the new Form?
<p>I have a button click wich i click on and it open a new Form.</p> <p>Then i can click on the new Form listBox and everything.</p> <p>Now when i want to back to the Form1 and click there on the menu or a button i need to click on it twice since the control/focus was on the new opened Form.</p> <p>What's the best w...
c#
[0]
119,252
119,253
Infinite nested elements in a json file - How to get specific element?
<p>this is my json file:</p> <pre><code>{ "categories": { "category": [ { "id": "1", "title": "Android", "subcategory": [ { "id": "1", "title": "JavaScript", "question": [ </code></pre> <p>My question is: if subcategory element can appear i...
javascript
[3]
2,010,010
2,010,011
Javascript - take every fifth number from an input list
<p>Say I have an input consisting of 30 numbers, and I want the 1st, 5th, 10th, 15th, etc - all in one output. How would I do this?</p> <p>Thanks much in advance</p> <p>Joe</p>
javascript
[3]
1,775,586
1,775,587
unable to read data from more than 1 row
<p>i have a problem reading data from the table. This is the sample of my coding</p> <pre><code>Dim SqlQry As String = "SELECT Distinct(RechargeAmt) from KioskItem where TelcoID='" &amp; TelcoID &amp; "'" Dim SqlCmd As New SqlCommand(SqlQry, Conn) Dim dr As SqlDataReader = SqlCmd.ExecuteReader ...
asp.net
[9]
3,807,276
3,807,277
Quick jQuery Question
<p>I have this code:</p> <p><code>&lt;a href="javascript:$('#searchPost').submit()"&gt;Search&lt;/a&gt;</code></p> <p>This submits my search form. I'm trying to keep it from submitting when empty. I know that'll be difficult to do inline, but when I tried to take the JS code out of the link, it ceases to work, even w...
jquery
[5]
1,482,515
1,482,516
Is importing a file good in Python
<p>I have around 80 lines of a function in a file. I need the same functionality in another file so I am currently importing the other file for the function.</p> <p>My question is that in terms of running time on a machine which technique would be better :- importing the complete file and running the function or copyi...
python
[7]
5,696,139
5,696,140
How to save an instance of a custom class in onSaveInstanceState?
<p>I created an instance of a custom class RestaurantList to hold my data (a list of restaurant data received from a web service as json data).</p> <p>How can I save it in <code>onSaveInstanceState</code>?</p>
android
[4]
4,985,871
4,985,872
what's wrong with this jQuery code?
<p>My following code works fine.</p> <pre><code>$(document).ready(function() { $('a.address').click(function() { $('#box').slideDown("slow"); $.ajax({ type: "POST", url: "details.php", success: function(html){ $("#m...
jquery
[5]
2,609,235
2,609,236
Javascript element is null
<p>I am a begginer at javascrit, and im trying to get a form result globaly</p> <p>the radio button</p> <pre><code>&lt;input type='radio' name='supporter' id='supporter' value='yes'&gt; </code></pre> <p>and the javascript on the nother page</p> <pre><code>&lt;script type="text/javascript"&gt; function show(){ v...
javascript
[3]
2,205,987
2,205,988
Sending ajax call when active?
<p>Hey, i just noticed something on facebook.com, facebook was in my other tab, and i was browsing on SO, after a while i switched back to facebook.com and it like fades in new news in the wall. How did they make a script that knows when you are active again without clicking anywhere it shall refresh new messages etc. ...
javascript
[3]
1,812,045
1,812,046
clarification on comparing objects of different types
<p>The following sentences are a cause of confusion for me(from Guido's Tutorial on python.org):</p> <blockquote> <p>"Note that comparing objects of different types is legal. The outcome is deterministic but arbitrary: the types are ordered by their name. Thus, a list is always smaller than a string, a str...
python
[7]
497,357
497,358
why the code doesn't alert Worky-worky?
<pre><code>var a = function() { function someSetup(){ var setup = 'done'; } function actualWork() { alert('Worky-worky'); } someSetup(); return actualWork; }(); </code></pre> <p>why the above code doesn't alert Worky-worky?it shows undefined.thank you</p>
javascript
[3]
1,273,522
1,273,523
How can I know witch web site load my image?
<p>I try to create some free HTML Templates, to share them for free, but I like to know where my templates are installed.</p> <p>What I have in my mind, in order to track the template installation, is to create a php script that will generate a single pixel image. That script except the one pixel image generation, I ...
php
[2]
2,963,087
2,963,088
How can i change the int array to string
<p>I have an <code>int</code> array that i want to display in a text box as follows, <code>(5 4 2 8 6)</code>. Please help me.</p>
c#
[0]
1,357,295
1,357,296
.load(function) firing twice
<p>I have a click event that loads an iframe, which is followed by a .load(function() for the iframe. The problem is the load function gets fired twice for each click event. Can someone explain me the reason why this is happening? And how can it be prevented?</p> <pre><code>$(document).ready(function() { $('.Popup...
jquery
[5]
2,274,106
2,274,107
Validation XML with XSD
<p>I try to validate my XML with XSD File. But I have some doubts that it validate it in any case. Here is the code of validation:</p> <pre><code> var schemaFileName = directory + fileInfo.Name; XmlSchemaSet schemas = new XmlSchemaSet(); schemas.Add(null,...
c#
[0]
545,400
545,401
Load links as unselected in jQuery
<p>I have sets of links with id and name attributes, id for individual identifiers and names for groupings. In my jQuery, I have a click function that manipulates the CSS based on what a user clicks on.</p> <p>But I want to start the freshly loaded page with some of the links disabled (no href attribute) and with a s...
jquery
[5]
5,257,038
5,257,039
How to re-read in the last point ! python
<p>hello everyone how to read txt file and stop then continue at last read line</p> <pre><code>example: Joe LOley Hana fat oh beef come one </code></pre> <p>example = the txt file and that last line i had read it is Hana fat so how i can continue ? like that:</p> <pre><code>#!/usr/bin/python #this script name is x.p...
python
[7]
3,053,705
3,053,706
How to call a method on specific time in java?
<p>Is it possible to call a method in java at specific time? for example: If i have a peice of code like this:</p> <pre><code>class Test{ .... // parameters .... public static void main(String args[]) { // here i want to call foo at : 2012-07-06 13:05:45 for instance foo(); } } </code></pre> <p>How this can b...
java
[1]
5,658,367
5,658,368
Is there a good, frequently updated, well written news site for c# developers preferably with a alt.net bent
<p>I would love to visit a web site and catch up on the latest <strong>C# news</strong>, Microsoft Framework and other alt.net news.</p> <p>Is there something out there that offers a bit of editorial or is aggregating blog feeds into Google reader the only solution.</p> <p>The only thing that I'm aware of that comes ...
c#
[0]
2,681,113
2,681,114
A paste event triggered manually has no .originalEvent property?
<p>When I trigger a paste event with .trigger(), the ensuing captured paste event has no .originalEvent property. Is this expected behavior? Why?</p> <p>See example - <a href="http://jsfiddle.net/2uxEr/" rel="nofollow">http://jsfiddle.net/2uxEr/</a></p> <pre><code>&lt;textarea&gt;Paste something here&lt;/textarea&gt;...
jquery
[5]
5,030,863
5,030,864
Parsing firewall rules in Python
<p>I am writing a script to parse firewall rules from the configuration of a Cisco ASA.</p> <p>Examples of my input include:</p> <pre><code>access-list myACL line 1 extended permit tcp host 10.8.13.200 host 10.32.53.22 eq 1122 access-list myACL line 2 extended permit tcp 10.8.13.0 255.255.255.0 host 10.1.206.17 eq 44...
python
[7]
5,267,719
5,267,720
Interesting call to main method
<p>I was around Wikipedia reading about a programming language called <a href="http://en.wikipedia.org/wiki/D_%28programming_language%29" rel="nofollow">'D'</a>, it is the first time I read about it.</p> <p>It was curious to me that the syntax looks very similar to Java. But most interesting was when I saw their main...
java
[1]
2,505,689
2,505,690
Why is List<String> not a subtype of List<Object>?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/2660827/java-generics-covariance">java generics covariance</a> </p> </blockquote> <p>I am trying to make sense of the fact that <code>List&lt;String&gt;</code> is <strong>not</strong> a subtype of <code>List&lt...
java
[1]
343,440
343,441
deselect list view item?
<p>I have list view with names and numbers and checkbox populated from contacts with SimpleAdapter, and on item click I listen event and change color of item, also I want to change checkbox to enabled and after user click one more time on the same item I want to deselect that item. How can I do that? Thanks Wolf.</p> ...
android
[4]
5,322,265
5,322,266
LoaderCallbacks as a static inner class (to handle multiple Loaders with different data types returned)
<p>I have an activity which uses two Loaders. Each of them returns different type of data. To get data from a single Loader one just implements <code>LoaderCallbacks&lt;D&gt;</code> into an Activity. I guess I could just implement <code>LoaderCallbacks&lt;Object&gt;</code> and check the type of the object and then deci...
android
[4]
2,002,583
2,002,584
Failing to retrieve a page with file_get_contents
<p>I want to scrape some google page with file get contents function:</p> <pre><code> $encoded='http://www.google.co.il/#hl=en&amp;biw=1440&amp;bih=799&amp;sclient=psy-ab&amp;q=site:'.urlencode("http://stackoverflow.com/"); echo file_get_contents($encoded); </code></pre> <p>When I do this:</p> <p>echo $enc...
php
[2]
4,178,560
4,178,561
How to chain jQuery removeAttr for radios inside a Div
<p>I have a checkbox that shows/hides a div that contains a grid of radio buttons. At the bottom of my page I have this jQuery:</p> <pre><code>$(document).ready(function(){ $('#cb1_1').click(function(){ $('div#QxGrid').slideToggle('slow'); }); }); </code></pre> <p>And this works great. When the radio buttons are h...
jquery
[5]
2,557,404
2,557,405
PHP system function strange behavior
<p>I have a strange behavior with PHP system function. In this php script there are only 2 instructions (the rest being pure html):</p> <pre><code>&lt;?php echo system('cgi-bin/gallery2/galleryheaderview.cgi'); ?&gt; &lt;?php echo system('cgi-bin/gallery2/galleryview.cgi'); ?&gt; </code></pre> <p>The first cgi just r...
php
[2]
4,862,281
4,862,282
Undefined index php mvc model
<p>Undefined index: first_name </p> <pre><code>$view = $user-&gt;VIEW_EMP($connect); if (is_array($view)) { foreach($view as $key =&gt; $value){ echo $view['first_name']; } } </code></pre> <p>Function:</p> <pre><code>static function VIEW_EMP($db){ $sql = "SELECT * from employe...
php
[2]
4,801,166
4,801,167
Remake old web forms application in asp.net mvc
<p>I've inherited the code maintenance of a complex web site for a customer that continuously requests enhancements for it. This application took years to develop and I'm facing increased difficulties to enhance it. It's organized but at the same time the .net code is mixed with ajax, javascripts and old school html th...
asp.net
[9]
5,640,316
5,640,317
jquery How to remove an item with or without a comma/space?
<p>Given a Input which can contain values like:</p> <pre><code>&lt;input type="hidden" value="XXXXXXX" /&gt; &lt;input type="hidden" value="XXXXXXX, YYYYYYYY" /&gt; &lt;input type="hidden" value="XXXXXXX, YYYYYYYY, ZZZZZZZZZZ" /&gt; </code></pre> <p>I want to use jQuery to remove: XXXXXXX, but if XXXXXXX has a comm...
jquery
[5]
5,176,195
5,176,196
Android - Signing an apk
<p>Hi<br /> I have written a little program, by default, it is signed with debug certificate. I checked the documentation at Android developer site, I don't know how to get the certificate and key, could someone advice me?</p> <p>Thanks</p>
android
[4]
5,557,410
5,557,411
PHP: how can I load the content of a web page into a variable?
<p>how can I load the content of a web page into a variable ?</p> <p>I need to store the html in a string</p> <p>thanks</p>
php
[2]
3,613,818
3,613,819
Using one sqlconnection/sqlcommand through 2 DB-bound methods
<p>I have a class with a method which gets data from a database through a SELECT stored proc. This method uses a <code>SqlDbReader</code> by returning <code>ExecuteReader()</code> on a <code>SqlCommand</code>.</p> <p>The connection and everything is made in this method, with fields (such as connection string) set as c...
c#
[0]
5,947,932
5,947,933
jquery get value with '&' character
<p>I have a textbox which has value like "PN &amp; J".I am storing it in</p> <pre><code>var sState = $('#txtState').val(); </code></pre> <p>and making Ajax call by</p> <pre><code> data: 'Service=' + sSvendor + '&amp;City=' + sCity + '&amp;Sub=' + sCitySub + '&amp;State=' + sState + '&amp;Network=' + sNetwork, </cod...
jquery
[5]
3,426,256
3,426,257
Using global variable as default parameter
<p><strong>a.py</strong></p> <pre><code>#!c:/Python27/python.exe -u from connection import Connection import globals globals.server_ip = '192.168.0.1' connection = Connection() </code></pre> <p><strong>globals.py</strong></p> <pre><code>#!c:/Python27/python.exe -u server_ip = '127.0.0.1' </code></pre> <p><strong...
python
[7]
2,896,518
2,896,519
Could not find operator< for pointer type
<p>I'm trying to order a vector of pointers using insertion sort with an overloaded &lt; operator (cannot use any library). Having a class which contains another, something like:</p> <pre><code>class A { vector&lt;B*&gt; v; void order(); } class B { int id; //each one is unique virtual do...
c++
[6]
4,631,922
4,631,923
Getting User signature
<p>Him what would be the best way to provide a view where a user can provide their signature, i.e a drawing platform?</p> <p>Well, how would it be implemented in a view using OpenGL ES?</p>
iphone
[8]
1,938,228
1,938,229
Cycling through an array of form elements
<p>I am returning form elements into a form from ajax. I can count the number of elements returned, but I don't know how to cycle through them. I need to be able to get the value of each element returned.</p> <p>I am pretty sure this is a basic javascript thing that I just don't know. The problem only looks more co...
javascript
[3]
3,196,905
3,196,906
Does Android support .dat extension file?
<p>Actually i just want to know that whether Android Mobile phones support " .dat " file extensions. I want to save a dynamic graph in " .dat " extension format. </p> <p>Please go through the below video link</p> <p><a href="http://www.youtube.com/watch?v=td75nzaCrX8" rel="nofollow">http://www.youtube.com/watch?v=td7...
android
[4]
1,630,538
1,630,539
Getting the android username stored in the phone
<p>I am writing an application that requires to retrieve the android username username@gmail.com from the phone. I have been looking at AccountManager class. This is what I have for now in my code.</p> <pre><code> AccountManager accountManager = AccountManager.get(this); Account[] accounts = accountManag...
android
[4]
1,498,609
1,498,610
Converting exponential value in java to a number format
<p>I am trying to read the values from excel sheet using java. When i type more than 10 letters in a cell in excel it is displaying in exponential form like "9.78313E+2". but this is not the real number what i given. Can any body help me out in this. How can i convert the above exponential form to original number usin...
java
[1]
3,155,432
3,155,433
How to make strings equal?
<p>In this a and "v1" does not come out to be equal...although the content is same..can someone help in suggesting a way such that a comes out to be equal to "v1"</p> <pre><code>int main() { stringstream s; string a; char *c="v1"; s&lt;&lt;c; a=s.str(); cout&lt;&lt;a; int i=strcmp(a, "v1");...
c++
[6]
744,831
744,832
How to get dropdown option label from POST request?
<p>I have this array that populates a dropdown menu. The key is my database key and the value is the corresponding database value. The issue I am having is that when I POST the form, I am getting the POSTed numerical value instead of the string value in the dropdown list. I could query the database to get the string bu...
php
[2]
5,300,279
5,300,280
How to render text on path?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8337221/how-to-write-curved-text">How to write curved text?</a> </p> </blockquote> <p>I want to render text as in given image (in place of "AMEX 3"). Please tell me how to achieve this.</p> <p><img src="http://...
android
[4]
785,299
785,300
document object of window.open
<pre><code>var theNewWindow = window.open('http://www.example.com', 'example', ''); </code></pre> <p>How can I use the <code>document</code> object of <code>theNewWindow</code> to dynamically update the dom of the new window. </p>
javascript
[3]
3,952,762
3,952,763
Jquery shuffle cards or divs
<p>i need to do a shuffling effect using jquery. I have 8 no.of divs, it has the different designs. when the customer click on the shuffle button all this 8 cards/divs need shuffle random wise. it should be reach different x,y positions. any idea regarding to do this?</p>
jquery
[5]
469,834
469,835
Avoid splitting of HTML tags in string
<p>I have a custom made news page in my website. The problem is adding a "more" option if the string returned from the database exceeds 400 characters. Splitting the string after 400 characters may sometimes mean that an HTML tag might be split in half, or text contained within the html tag will be split, not giving ...
asp.net
[9]
5,902,738
5,902,739
jQuery Partial Selectors
<p>I have a number of tables, which have nested tables. I using jQuery to hide some of the table cells as a number are empty or the contents irrelevant.</p> <p>I use jQuery to hide all TD's and then jQuery to show them, for instance, if they contain a <code>&lt;P&gt;</code>.</p> <p>Unfortunately some of the TD's don'...
jquery
[5]
4,363,723
4,363,724
AutoComplete with vectors - android
<p>I've have a Vector like this in my app:</p> <pre><code> Vector&lt;Firm&gt; firmVector= new Vector&lt;Firm&gt;(); </code></pre> <p>As you may see, this is a vector of objects from my own class <code>Firm</code></p> <p>So to my question, is it possible to add a <code>AutoComplete</code> to this `Vector?</p> <p>Li...
android
[4]
1,604,226
1,604,227
I'll upload a photo when the picture is not small. Just resize the-php mod_frontpage
<p>This is my methimazole code.</p> <p>I'll upload a photo when the picture is not small. Just resize the</p> <p>See line 244 source.</p> <p><a href="http://www.koders.com/php/fid136A4B6F430643CDD142AFB26F9E06F0DA5EBD2F.aspx?s=rss" rel="nofollow">view source</a></p> <p><strong>This part of the code will only change...
php
[2]
2,587,048
2,587,049
Unseen C++ syntax
<p>A friend sent me this and I really don't know what it is, inside the loop. Whatever it be it calls the std::set constructor half million times.... any help appreciated. I would expect a compiler error, but it actually compiles in g++ 4.4 and 4.5 and the behavior is different to copy construction...</p> <pre><code>#...
c++
[6]
4,733,885
4,733,886
Android AlarmManager
<p>I have an Alarm Manager which send Intent to BroadcastReceiver. This Broadcast is not in Manifest. I register it onResume and unregister onPause in my Activity. What I need is to Save 2 boolean Preferences when app is not active and time of alarm is come. How to do that ?</p>
android
[4]
4,066,924
4,066,925
Adding a condition in the url
<p>I would line to add a test condition in an asp.net form such that:</p> <p>1) From page1.aspx I manually add a query string parameter so that I can trigger the rest of the process in test mode like so: page1.aspx?test=true . This flag must be added in the query string. 2) When I click on a asp.net button in page1.as...
asp.net
[9]
5,514,249
5,514,250
populating text box with DropDownList using sql server
<p>I have a Textbox to enter category name, and it should populate with the DropDownList when I click the save button. Please can someone help me how to write the code? Thanks in advance.</p>
asp.net
[9]
1,999,174
1,999,175
How many changes in Desktop Application After it become Android Application
<p>In MNC company Interview this is the qusestion that How many changes in Desktop Application After it become Android Application Question by company Employer That I have cheply Android mobile Not As much Internal Storage Internal storage is around 5-10 MB. And Desktop App NFS its space like 1-2 GB &amp; I want t...
android
[4]
2,988,664
2,988,665
Print out all the possible combinations of a string
<pre><code>public static void combinations(String s) { char[] original = s.toCharArray(); int original_size = s.length(); String temp = new String(); for (int i = 0; i &lt; original_size; i++) {// add the first element String sb = ""; temp = ""; sb = "" + original[i]; te...
java
[1]
880,255
880,256
How to log into port 80 to enter credentials via a webbrowser control in c#?
<p>I have to use a webbrowser control which needs to log into an html page of the router . I would like to log into it but bypassing the log in pop up screen . </p> <p>Please give me suggestions as to how I could achieve this via a webbrwoswer control on a windows form.</p> <p>Edit : This is what i could see in t...
c#
[0]
2,417,054
2,417,055
How to construct jQuery object from variables storing html content
<p>As question stated, would like to know is that possible to construct jQuery object from variables. Example as such:</p> <pre><code>var data = "&lt;div id='bird'&gt;halo world&lt;/div&gt;"; console.log($("#bird",$(data)));​ </code></pre> <p>JSfiddle link <a href="http://jsfiddle.net/mochatony/nRQqh/" rel="nofollow"...
jquery
[5]
4,492,402
4,492,403
Is it safe to replace a self object by another object of the same type in a method?
<p>I would like to replace an object instance by another instance inside a method like this:</p> <pre><code>class A: def method1(self): self = func(self) </code></pre> <p>The object is retrieved from a database.</p>
python
[7]
5,009,021
5,009,022
How to Change Image Source using Jquery using effects and looping?
<p>I want change the image source from <code>image1.png</code> to <code>image2.png</code> (with <code>fade</code>) and loop. I have this code below but this isn't looping to image1.png. </p> <p><strong>My code</strong></p> <pre><code>setInterval(function(){ $('.class') .attr('src','image2.png') ...
jquery
[5]
502,823
502,824
Any use of declaring a private static class in c#?
<p>Is there any use of declaring a static class as private.Here is the code below:</p> <pre><code>static class DerivedClass { private static string GetVal() { return "Hello"; } } </code></pre>
c#
[0]