Unnamed: 0
int64
65
6.03M
Id
int64
66
6.03M
Title
stringlengths
10
191
input
stringlengths
23
4.18k
output
stringclasses
10 values
Tag_Number
stringclasses
10 values
4,261,628
4,261,629
get last week in javascript
<p>I am using the following in a script:</p> <pre><code>var startDate = new Date("10/12/2012"); var endDate = new Date("10/18/2012"); </code></pre> <p>I would like those dates to be dynamically created with startDate as last Monday and endDate as last Sunday. I have tried the following:</p> <pre><code>var curr = new...
javascript
[3]
1,122,355
1,122,356
get selected value from multiple <li> using jquery
<p>i have a unordered list of data, and within each <code>&lt;li&gt;</code> i have a hidden input which contain the different values for each <code>&lt;li&gt;</code></p> <pre><code>&lt;form&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="hidden" id="tid" value="1" /&gt;Apple&lt;/li&gt; &lt;li&gt;&lt;input type="h...
jquery
[5]
3,390,706
3,390,707
android externel application
<p>Hi form the following site <a href="http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android-apps/2.1_r2/" rel="nofollow">http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android-apps/2.1_r2/</a><br> i can download the source code of all android app as...
android
[4]
4,056,792
4,056,793
send add to face book
<p>How can I add news to my facebook from web site with what java script code or other ways? </p>
asp.net
[9]
3,953,066
3,953,067
JavaScript function on post back
<p>I am maintaining some code someone has created and it uses a few JavaScript functions to make some div's have rounded corners - however, on a post back the corners seem to dissappear. The event for the function is below:</p> <pre><code>curvyCorners.addEvent(window, 'load', initCorners); </code></pre> <p>I'm assumi...
javascript
[3]
1,398,619
1,398,620
Will this foreach copy the values in memory?
<p>Example:</p> <pre><code>foreach ($veryFatArray as $key =&gt; $value) { </code></pre> <p>Will the foreach assign the value behind the $key by reference to $value, or will $value be a copy of what's stored in the array? And if yes, how could I get an reference only? The array values store pretty big amounts of data ...
php
[2]
2,646,274
2,646,275
JSObject: Download it or available in JRE 1.6?
<p>This is a question from a Java noob.</p> <p>I have eclipse open (JRE 1.6), <a href="http://svn.littleshoot.org/svn/littleshoot/trunk/client/applet/src/main/java/LittleShootApplet.java">I have copied this code into an eclipse class</a>.</p> <p>The line in question is this:</p> <pre><code>import netscape.javascript...
java
[1]
3,153,667
3,153,668
Need to fetch the Contact Account name and Contact Display name from the content provider using a single cursor in Android
<p>I need to list the 'Display name' of all the contacts belonging to a single account. I am planning to use a cursor adapter for populating the list and hence would require the corresponding fields (Display name, Account info) to be fetched in a single content provider querry.</p> <p>Looking at the Contacts Database ...
android
[4]
2,838,831
2,838,832
How to avoid duplicating complicated catch blocks
<p>I have this code:</p> <pre><code>try { do_stuff(); return do_more_stuff(); } catch (UnsupportedEncodingException e) { throw CustomException.programmer_error(e); } catch (ProtocolException e) { throw CustomException.programmer_error(e); } catch (MalformedURLException e) { throw CustomException.pr...
java
[1]
3,188,680
3,188,681
document.writeln not working as expected
<p>With the following line of code:</p> <pre><code>document.writeln("blahblahblah") </code></pre> <p>I expect the content to be placed on its own line, but instead the content is inserted, but with no new line. Only a space. </p> <p>Is it expected?</p>
javascript
[3]
4,392,427
4,392,428
jQuery get and text return replacement character. How to solve?
<p>If I use:</p> <pre><code>$.get("url",function(data){$("#destination").text(data);}) </code></pre> <p>in the <code>.text</code> of <code>#destination</code> the letters like èéàòùì become the <a href="http://www.fileformat.info/info/unicode/char/fffd/index.htm" rel="nofollow">replacement character</a>.</p> <p>How ...
jquery
[5]
1,436,705
1,436,706
Active bluetooth on airplane mode
<p>I need to turn of the gsm network at my application but enable bluetooth. I know how to change to airplane mode <a href="http://stackoverflow.com/questions/5533881/toggle-airplane-mode-in-android">Toggle airplane mode in Android</a>, but is there a way to keep the bluetooth on (I know that them both working on radio...
android
[4]
2,610,404
2,610,405
APK that needs another apk to function
<p>I am implementing a kind of location provider that I would like to distribute as an apk. If someone implements an application that uses the classes of my apk it is necessary that my apk is installed on the device first. My "location provider" offers an API that can be used by other programmers (it has no UI). </p> ...
android
[4]
540,166
540,167
python check pattern in string
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/5319922/python-check-if-word-is-in-a-string">Python - Check If Word Is In A String.</a> </p> </blockquote> <p>i have a string which is a url e.g.</p> <pre><code>my_url = "http://mysite.com/somefolder/somefile" ...
python
[7]
5,738,044
5,738,045
Python None and if conditions
<p>I have some code here:</p> <pre><code>m = None n = None if not m: print "Something happens" &gt;&gt;&gt; Something happens </code></pre> <p>if I do:</p> <pre><code>if not m and n: print "Something happens" </code></pre> <p>Nothing happens.</p> <p>But I can do:</p> <pre><code>m, n = 1,2 if m and n: ...
python
[7]
4,493,204
4,493,205
How to pass an variable to curl_init in php
<p>In the below code which is to download an file , But i tried to pass an image url in the form of variable to the curl_init , How to use variable in curl_init </p> <p>// $downlaod="http://image.com/image.jpg";</p> <p>I used $download variable in the curl_init but it shows errors. </p> <pre><code>&lt;?php $ch = ...
php
[2]
260,654
260,655
Is it possible to output video of my iPhone application running on a device?
<p>I am working on an app for a client where he will be showing it in a board from to a group of directors for a serious presentation. Because the iPhone is so small, it wouldn't make sense to have him demo the app on the actual device because no one would see anything. </p> <p>Is it possible to have the screen output...
iphone
[8]
4,451,177
4,451,178
calendar code required
<p>Where can I get code to generate a calendar which displays dates in a proper grid? Or can I get code for a calendar app so that I can make a few changes to it? It will help ma save a lot of time.</p>
android
[4]
622,235
622,236
Receiving JPEG images via http GET request
<p>I want to receive images from an IP camera over HTTP via GET request. I have written a program that creates TCP socket connection with the camera and sends the following GET request to the camera:</p> <pre><code>GET /mjpeg?res=full HTTP/1.1\r\nHost: 143.205.116.14\r\n\r\n </code></pre> <p>After that, I receive ima...
c++
[6]
3,534,443
3,534,444
How to make popup window in javascript only show once?
<p>I want to make single pop up window in javascript. No matter how many times the button is pressed from parent page, only the single pop up is activated.</p> <p>How can I do that in Javascript?</p>
javascript
[3]
1,685,051
1,685,052
Why is javascript converting this and what is it converting it to?
<p>I have a string, '0x000000000000090D' that I am passing to a function. However, when I try to display it in an alert in the function, it has been converted it to 2317. Displaying it in an alert in the calling function displays it correctly.</p> <pre><code>var tagid = msg[post].TagID.toString(); alert(tagid); Show...
javascript
[3]
1,203,291
1,203,292
Detect touch on EditText, but not interrupt it?
<p>I need to know when the user touches/taps/clicks the edittext in my activity.</p> <p>How can I do this without interrupting the events, so the keypad still displays properly?</p> <p>(And I need to know about it before the OS displays the keypad...if possible)</p>
android
[4]
4,117,397
4,117,398
Is it true constructor's prototype cannot overwrite public members?
<p>Example 1:</p> <pre><code>function Cat(){ this.color = function (){ return "Green"; }; } Cat.prototype.color = function(){ return "Blue"; } var kitty = new Cat(); alert(kitty.color()); // Green </code></pre> <p>Example 2:</p> <pre><code>function Cat(){ var color = function (){ re...
javascript
[3]
4,693,548
4,693,549
Memory warning level 1 due to UIImage
<p>I am working on one component where I need to scale and rotate image. following is flow of the component</p> <p>Select the image from photo library -> show that image in UIImageView -> do the scaling -> save this image in document.</p> <p>This works fine with image having low resolution.</p> <p>but once I select ...
iphone
[8]
4,240,655
4,240,656
The method split(String) is undefined for the type Scanner
<p>Why is it that I cant use split method on <code>input</code>? In Eclipse it says: The method split(String) is undefined for the type Scanner. I dont know what I am doing wrong, if anyone could guide me in the right direction.</p> <pre><code>btnFile.addActionListener(new ActionListener() { public void actionPerf...
java
[1]
3,108,614
3,108,615
Javascript bottleneck for server communication (for downloading resources)
<p>I'm writing a javascript application. In my application I want to create my own cache management.</p> <p>Now my question is: Is there any bottleneck in javascript (e.g. any event on window object) that we can handle and modify all server communications?</p> <p>many tags in the page can request a resource from serv...
javascript
[3]
543,310
543,311
remove and rebinding li tags to ul is not working
<p>I am trying to rebind the li tags by removing it and again rebinding it. The ul tag is generated dynamically. My code to remove the li tags is this...</p> <pre><code>$("#ulActivity li").remove(); </code></pre> <p>this line is removing all li tags perfectly, but append new set of li is not working...</p> <pre><cod...
jquery
[5]
4,161,945
4,161,946
php, string to int
<p>how convert from string to int?</p> <pre><code> If i print $width_s, get: 1024 If i print $width, get 0. </code></pre> <p>How convert string to integer(number) ?</p> <pre><code>$width_s = '&lt;script language="javascript"&gt;document.write(screen.width)&lt;/script&gt;'; $width = (int)$width_s; var_dump($widt...
php
[2]
1,527,233
1,527,234
in php, how can I describe an object's properties and methods?
<p>How can I show what all the objects' methods and properties are?</p> <p>That is, including the property's values?</p>
php
[2]
2,269,468
2,269,469
Making permutations with array of chars
<p>So the problem is like this, user inputs n (integer) and n chars. I have to make program that writes out all combinations of 2 up to n chars from the chars I am given. You can not use same char twice, however user can write same char multiple times so you can use it as many times as he wrote it (say user writes 'a' ...
c++
[6]
4,912,792
4,912,793
Android animation with multiple jpeg files?
<p>I want to build an animation with some jpegs. I need to change the source of a imageview 24 times per second? What is the easiest way of implementing this? (Newbie)</p>
android
[4]
5,644,169
5,644,170
How to override base method in asp.net?
<p>I want to create custom Textbox control in asp.net.But i have one doubt when i override the base method i got predefined syntax something like this</p> <pre><code> base.OnRender(writer); </code></pre> <p>Now my question is that from where I should start witting the code means before Base.OnRender or after base.On...
asp.net
[9]
260,859
260,860
How to redirect to success / fail pages after php form submission?
<p>I have successfully integrated the following form submission code into my site, and it works great. However I would like to have the code redirect the user to one page if the form submission is successful, and a different page if it fails. How could I adapt the following code to do that? It's really starting to get ...
php
[2]
5,222,889
5,222,890
Send value to php file
<p>I'm try to send a value to a PHP file, but when I check, this value became <code>null</code>.</p> <p>I send the value by: user_login.php?p_action=New_User</p> <p>The code of user_login.php is:</p> <pre><code>require("include/session_inc.php"); require("include/user_handling_inc.php"); require("include/db_inc.php"...
php
[2]
4,694,160
4,694,161
AutoCompleteTextView: display a mixed list
<p>I have an autocompleteList I would like to present mixed search results in. By mixed i mean two types of entities. After the user selects any/both entities, his selection is added to a ListView. This can be done several times and in this case the ListView will grow.</p> <p>I have two types of entities I want to pre...
android
[4]
2,911,637
2,911,638
order by timestamp without a database?
<p>I have to store some info (timestamp of post, title and link) from various feeds (facebook,twitter,rss and some custom xml) without using a database. So I'm writing what I need to xml files and then pulling everything in using simplexml. This works fine. However, I need output the info from the various feeds in to a...
php
[2]
4,570,522
4,570,523
PHP: Obligatory params
<p>What would be the best way, when it comes to practices, to return false if some param is not passed to a PHP function?</p> <p>Mainly because I am calling this function will be called with params that come from the frotend, which means that the user could pass null as a param, and I want to return false if that happ...
php
[2]
1,383,723
1,383,724
use js to store current domain, full url, and ip
<p>Im trying to obtain the IP address of the user, current domain, and full page URL when my javascript is run ( for traffic analysis )</p> <pre><code> var ip = '&lt;!--#echo var="REMOTE_ADDR"--&gt;'; var domain = document.domain; var page = window.location; </code></pre> <p>I keep getting errors in FF3</p> <pr...
javascript
[3]
3,900,435
3,900,436
cache the database result in txt file and how to output it?
<p>eg: <code>$results = mysql_query('SELECT title FROM article');</code> now I want to put the result in a text file. Then :</p> <pre><code> $filepath = 'test.txt'; if (is_file($filepath)) { echo file_get_contents($filepath); } else { // read the databse, and stored the result to the test.txt. } </code></pre>...
php
[2]
5,720,275
5,720,276
how to declare and define a time data?
<p>I have a class that needs to contain a time variable. How to do that? I would like to specify that I communicate with a server and as a response at time section I receive for example: 2011-07-01T14:32:39+02:00 .APPRECIATE. THX</p> <p>P.S I would like to use the C++ API. </p>
c++
[6]
3,609,362
3,609,363
jQuery validate only by remote
<p>My form has 4 fields and at least one of them must contain a number. I can handle this all by remote but I can't get the snippet below to call the remote function unless I also add a <code>required: true</code> to the rules. <code>codes[25]</code> is just one of the fields. </p> <pre><code>$("#create-codes-form").v...
jquery
[5]
3,585,785
3,585,786
location.reload altering the url
<p>Does anyone know what could cause this piece of javascript to alter the url:</p> <pre><code>&lt;script type="text/javascript"&gt; window.setTimeout(function() { window.location.reload(true); }, 5000); &lt;/script&gt; </code></pre> <p>The window location accepts fragments and changes the url from /web/page/...
javascript
[3]
5,125,166
5,125,167
Android ExpandableListView about arrays
<p>I'm planning to add expandablelistview in my activity. I did some researches on the Internet but none of them fits what I want. I read also that expandablelistview has parent and child elements. What I want to do is that the parent would be the categories let's say it's fruits, then its children are Apple, Lemon, Al...
android
[4]
1,039,322
1,039,323
Build a Blog Archives block with code in php?
<p>i am a new learner of php, i only able to read and write some data into mysql database and some basic php knowledge. now, there is a blog programme. i had wrote some articles.i want to build a Blog Archives block with code by myself. but i even don't know how to begin? the Blog Archives block style as this:</p> <pr...
php
[2]
449,299
449,300
How can i test from code if a phone is htc type?
<p>I want to show a button on a screen just if the phone is htc . How can i test this?</p>
android
[4]
4,400,811
4,400,812
Retrieving n values from treemaps in java
<p>I'm using treemaps in my java program. The output of the program is a sorted map as follows</p> <pre><code>[cat=1, dog=1, pin=3, ball=4, mice=4..... and so on] </code></pre> <p>I want to display only first 3 values of the map instead of displaying the whole map. I want my output as follows</p> <pre><code>cat=1 do...
java
[1]
5,881,278
5,881,279
check style of element with jquery persistently
<p>i need code like this</p> <pre><code>if($('#someElement').hasClass('test')) { ... } </code></pre> <p>but i need to check it persistently not in a specific position. my question is function like bind can help me or i have to use interval for checking?</p>
jquery
[5]
5,274,528
5,274,529
Is this an ok use of the comma operator
<p>I've seen other posts in stackoverflow that highly discourage overloading of the comma operator. I was sent a github pull request with comma operator overload, that looked something like the following</p> <pre><code>class Mylogger { public: template &lt;typename T&gt; Mylogger &amp; op...
c++
[6]
6,011,743
6,011,744
Uncaught Error: SecurityError: DOM Exception 18 Canvas
<pre><code>function getBase64Image(img) { var canvas = document.createElement("canvas"); canvas.width = img.width; canvas.height = img.height; document.body.appendChild(canvas); var ctx = canvas.getContext("2d"); ctx.drawImage(img, 0, 0); var dataURL = canvas.toDataURL("image/png"); retu...
javascript
[3]
3,931,943
3,931,944
place php errors in log file
<p>I am running mac 10.6.4 on an iMac and am using it as a developer server. </p> <p>I have Apache and Entropy php5 installed, when i write my applications, some pages wont run when php has errors, however these are not recorded on a log file, I created one php_errors.log and entered the following on the php.ini file<...
php
[2]
2,498,669
2,498,670
timer issue at displaying view
<p>hi i am new to iphone. what i am doign is displaying 20 images as grid and by selecting image it is displayed on imageview after 4 sec it will come back to main screen,for that i am using timer it works fine but there is a small problem with out selecting image the timer is continually running.if i am selecting butt...
iphone
[8]
5,168,060
5,168,061
android: how to append text to TextView in another activity every 2 seconds
<p>I have two activities, one is main and I have another activity called Test as well</p> <p>in the main activity i have a button when I click on this button I go to the Test activity</p> <p>in the Test activity I want the application to automatically append some text to the textview that it has every 10 seconds</p> ...
android
[4]
5,847,349
5,847,350
Cannot save video to specific folder
<p>I am trying to save video to specific folder like </p> <pre><code>Intent captureVideoIntent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); File videosFolder = new File(Environment.getExternalStorageDirectory(), "Videos"); if (!videosFolder.exists()) { videosFolder.mkdirs(); // &lt;---- } Strin...
android
[4]
1,449,555
1,449,556
passing parameters from Javascript
<p>I have the typical HTML "contact me" page, i.e. name, e-mail address and message. Since I want to do input validation on the page itself using Javascript, I can't use a "submit" button, otherwise the attached Javascript function would be ignored. At least that's how I understand it, CMIIW.<br /> I tried to load the ...
javascript
[3]
678,188
678,189
Does minified javascript improve performance?
<p>I'm making an AIR application (so download time doesn't have a huge impact), does combining and minifing all the javascript files affect the performance? How would obfuscating affect the performance.</p>
javascript
[3]
5,454,761
5,454,762
Custome control generic
<p>I have a custom control which contains certain fields (textfields) and a button this control is accessed in various other forms .</p> <p>This user control also contains a Button on click of that button based on what fields are entered i need to do some operation .Now since this user control is used used in many pla...
c#
[0]
5,729,735
5,729,736
How can this switch statement be simplified?
<p>I have two switch statement on inside another.<br> Like this </p> <pre><code>switch(something) { case h: switch(s) { case e: break; default: } break; default: } </code></pre> <p>Can i simplify it any way? Is there a way to use only one switch statement?<br> I thought of moving it to ...
c++
[6]
5,592,901
5,592,902
Android: dots and line around nine patch images?
<p>I am trying to use the attached nine patch image as the background for a View in my app (the image is from the android-15 sdk resources). As pictured, the image has two vertical dots to the left of image, two horizontal dots above the image, and a horizontal line below the image. These dots/line from the images sh...
android
[4]
248,920
248,921
Android: How to make TextView editable?
<p>How I can allow user to edit TextView? Of course, I can use EditText instead, but I don't know how to customize it and also I've read in Android documentation that TextView can be editable. So I tried this:</p> <pre><code>&lt;TextView android:id="@+id/tv" android:layout_width="wrap_content" andr...
android
[4]
2,513,091
2,513,092
Editing a Photo | From ( X by Y ) to ( A by A )
<p>When I upload my Facebook photo there are no requirements on the x and y dimensions of the photo. However Facebook finds a way to insert a 50px by 50px photo that is not distorted into the news feed. </p> <p>The only way you could do this, unless I am mistaken, is by cropping the image so that x and y are equal a...
php
[2]
559,282
559,283
How to use the varchar data type in c#?
<p>I have this piece of code and I want to make it varchar not string. What is the appropriate syntax to do that in c#</p> <pre><code> string emri = row["Nome"].ToString(); </code></pre> <p>I have a query that I have to run and I use emri in it and compare it with a column in table which I have created in mysql. the ...
c#
[0]
3,924,037
3,924,038
Android: ContextMenu and ItemSelected in Context Menu
<p>This is the onCreate and oncontextitemslected code </p> <pre><code>@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu....
android
[4]
4,221,920
4,221,921
eq(n) and hover()
<pre><code>$('.rUl li').eq(0).click(); </code></pre> <p>Show first item of my news rotator. But with <code>$('.rUl li').eq(0).hover();</code> the first item not visible. What is the difference between click() and hover() in this issue? How can I show first item with hover()? Thanks in advance</p>
jquery
[5]
645,053
645,054
[ milli | micro | nano ]second granularity using tv_usec or tv_nsec
<p>I'm working on a project, and I need to need a finer granularity than whole second (i.e. time()). I was looking through opengroup.org and I notice there are data structures with memebers tv_usec and tv_nsec.</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;time.h&gt; int main (void) { struct timespec ts;...
c++
[6]
5,764,675
5,764,676
I wanna play a video streaming live from network or local source but i want to add some stopper condition ?
<p>I wanna play a video streaming live from network or local source but i want to add some stopper condition so that user can download and play whole video first time and next time he downloads the video, video will play for 0nly 20sec? i am new in android , can anyone suggest me or provide some link. Thanks in advanc...
android
[4]
2,749,945
2,749,946
combining effects in jquery
<p>How would I alter the below page and code so that when my 'news' P fades out the content below it... slides smoothly up instead of jumping.</p> <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://ww...
jquery
[5]
5,696,532
5,696,533
Look for various substrings and return the position of the one found
<p>I want to analize a string for a substring and return the position of the substring if it was found.</p> <pre><code>function analize(t) { if (t.indexOf(" a ") &gt; -1 || t.indexOf(" b ") &gt; -1 || t.indexOf(" c ") &gt; -1) { alert(t.indexOf(" a ")); } </code></pre> <p>The problem is that I'm l...
javascript
[3]
3,848,977
3,848,978
Suppress output from subprocess.Popen
<p>How do you stop the output from subprocess.Popen from being output? Printing can sometimes be slow if there is a great deal of it.</p>
python
[7]
4,936,951
4,936,952
Fire onchange event when hidden input changes
<p>I have various inputs that I want to set a dirty flag.</p> <p>However the onchange event does not fire if these inputs are modified by javascript.<br> Many of the inputs are customised data entry moodules written by many other people and have hidden input and javascript UI layer to modify the hidden input.</p> <p>...
javascript
[3]
4,252,404
4,252,405
Setting checkbox input when specific value equals variable in jquery
<p>I am trying to use JQuery to set a checkbox to checked if the input value of the checkbox is equal to some other variable that I have. This is what my code looks like: </p> <pre><code>var test_val = "test"; $('#checkbox[value='+test_val+']').attr('checked', true); </code></pre> <p>This does not seem to be working,...
jquery
[5]
671,750
671,751
Redirection not working
<p>I have an asp.net application running on integrated pipeline and I have this specified in the web.config:</p> <pre><code>&lt;customErrors mode="On"&gt; &lt;error statusCode="404" redirect="404Error.aspx" /&gt; &lt;/customErrors&gt; </code></pre> <p>However, my site still shows the generic 404 asp.net error.</p...
asp.net
[9]
3,309,828
3,309,829
jquery modal dialog form
<p>Can someone please help </p> <p><a href="http://jqueryui.com/demos/dialog/#modal-form" rel="nofollow">http://jqueryui.com/demos/dialog/#modal-form</a></p> <p>I want onclick event instead of button click , that is i want a link to appear create new user instead of button . </p> <p>Please help </p>
jquery
[5]
445,912
445,913
Parse error: syntax error, unexpected '?'
<p>I have code that is supposed to select all of the rows of data from a database, and echo them all into a checkbox for for deletion. But for some reason it won't work. I keep getting the error: Parse error: syntax error, unexpected '?' in \delete.php on line 13</p> <p>My code is:</p> <pre><code>&lt;form method="pos...
php
[2]
2,063,005
2,063,006
Disoriented when writing JavaScript - Architectural Integration - Grockage
<p>I'm a reasonably experience programmer (10+ years), and have only hacked JavaScript. I don't feel comfortable writing more than a few lines of it, but I'm seeing it more and more unavoidable to learn properly.</p> <p>I get the same feeling writing JavaScript as I first did writing Unix shell scripts. I didn't ful...
javascript
[3]
5,058,223
5,058,224
how handle error in NSPredicate
<p>when i try to match regular expression for Data . sometime application crashes with error</p> <p>here is error description </p> <p>'Can't do regex matching, reason: Can't open pattern U_REGEX_INVALID_RANGE (string Ertyu, pattern [a-Z], case 0, canon 0)'</p> <p>here is my code</p> <pre><code> - (BOOL)isValidateSt...
iphone
[8]
4,602,593
4,602,594
How do I resolve the "maximum request length exceeded" exception?
<p>please any one help me when I upload image i had this error</p> <p>maximum request length exceeded</p>
asp.net
[9]
3,131,835
3,131,836
I keep getting a unterminated string literal error
<p>It keeps giving me a unterminated string litereral error below but I can't see the problem. How can it be fixed below:</p> <pre><code> var $fileImage = $("&lt;form action='upload.php' method='post' enctype='multipart/form-data' target='upload_target' onsubmit='startUpload();' &gt; &lt;p class='f1_upload_process...
javascript
[3]
2,549,169
2,549,170
Are classes and objects the same thing in PHP?
<p>Just starting out with OOP in PHP and in general. From what I have been reading so far the two seem to be synonyms. Is this the case, and if not, practically speaking when people refer to objects and classes do they generally use the terms interchangeably?</p>
php
[2]
3,946,018
3,946,019
JQuery page loading dynamically
<p>i search for jquery page load. </p> <p>I always face that people use something like that</p> <pre><code>jQuery("#popup").fadeIn(4000); //function to redirect the page after few seconds window.location.replace("http://"+a_href); }, 3000) </code></pre> <p>They ...
jquery
[5]
5,110,849
5,110,850
fadeIn() on a tr cause display:block - bug?
<p>If you try to do a <code>.fadeIn()</code> on a <code>&lt;tr&gt;</code> in jQuery, it adds (on Firefox and IE7) the element <code>display:block;</code>. (on IE7 also zoom:1).</p> <p>I'm using the version 1.5 of jQuery. Is it a bug? And how can I fix this problem?</p>
jquery
[5]
4,652,687
4,652,688
Javascript if in x
<blockquote> <p><strong>Possible Duplicates:</strong><br> <a href="http://stackoverflow.com/questions/5252650/test-for-value-in-javascript-array">Test for value in Javascript Array</a><br> <a href="http://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-javascript-array">Best way to find an item i...
javascript
[3]
3,875,780
3,875,781
Modify userInput on submit
<p>I need help with this javascript, if a user inputs anything in the filed the field will print that value, but i want to modify specific part of the value. users are going to submit image urls which have a specific string that i need to modify.</p> <p>For instance user input something like: <strong>http://www.domain...
javascript
[3]
565,322
565,323
can anyone help me to give the java code to access tweets?
<p>i am working on a project that get tweets about a specific topic and than analysis these tweets, and conclude a result. In first phase of my project, I have to write the code to access the tweets about a specific topic or concept. Can anyone help me in this code, i am a newer in these type of research projects, than...
java
[1]
2,357,788
2,357,789
Remove hover with on()
<p>I would like to have both a hover and remove hover event. The nodes which have this event are added dynamically, so I wish to use on(). When adding a hover event, it works great (the #second list below). For some reason when I add the off hover event, not even the add hover event will work (#first list below).</p...
jquery
[5]
4,902,971
4,902,972
Tools required for jailbroken Device applications
<p>I like to know about teh various tools required to develop for jailbroken application. </p> <p>I have seen many links dealing with jailbroken devices says about the Open Toolchain . Does it really required for developing applications for jailbroken devices. Can anyone clearly elaborates regarding the open toolchain...
iphone
[8]
4,426,909
4,426,910
Remove placeholder span after form submitted
<p>I'm using a placeholder span in my input fields. Using jQuery, I show/hide the span depending on whether there is a value entered into the field. The problem: When I implement this type of placeholder in a form, after submitting the form the span isn't hidden, despite the presence of a value in the input field. Afte...
jquery
[5]
4,514,229
4,514,230
Learn Python the Hard Way 2nd Edition. Exercise 45
<p>I'm going through Learn Python the Hard Way 2nd Edition and I've just done the exercise where am suppose to write down the is-a/has-a relationships. Am able to use classes somehow but i find is-a/has-a confusing. So I have no ideas if what I've done is correct, any pointers will be appreciated. Thanks.</p> <pre><co...
python
[7]
1,103,764
1,103,765
Code to detect all words that start with a capital letter in a string
<p>I'm writing out a small snippet that grabs all letters that start with a capital letter in python . Here's my code </p> <pre><code>def WordSplitter(n): list1=[] words=n.split() print words #print all([word[0].isupper() for word in words]) if ([word[0].isupper() for word in words]): list...
python
[7]
433,860
433,861
jQuery Object Not able to find the class
<p>I am not sure why but jQuery find function is not able to find the class using the class name. </p> <p>Here is the result from Visual Studio immediate window which shows that there is a class called TBLCONTENTS but when searched using the find method it returns nothing.</p> <pre><code>optionRows[0].className "TBLC...
jquery
[5]
537,532
537,533
How the instantiation is happening in this java code snippet
<p>my code is</p> <pre><code>class Alpha { public void foo() { System.out.print("Alpha "); } } class Beta extends Alpha { public void foo() { System.out.print("Beta "); } public static void main(String[]args) { Alpha a = new Beta(); Beta b = (Beta)a; a.foo(); b.foo(); }...
java
[1]
4,867,757
4,867,758
multiple HashMap implementation
<p>I am trying to implement the use of two HashMaps and it seems to be more or less successful also.But now my problem is i want to update the value of a hashMap based on a check.ie if userId is already existing in the hash i need to update the timestamp corresponding to it...</p> <p>Below given is my code.How can we ...
java
[1]
2,684,432
2,684,433
Set up variables in a file instead of in a class JAVA
<p>im not sure if the title is correct but currently i have :</p> <pre><code>private String destinationPDF = "D:/Documents/NetBeansProjects/printing~subversion/fileupload/web/resources/pdf/"; public static String destination ="D:/Documents/NetBeansProjects/printing~subversion/fileupload/Uploaded/"; public String fileL...
java
[1]
397,466
397,467
"unassigned local variable 'mylist' error" given loop containing initiatization will be entered once? And how to make the code recursive?
<pre><code>List&lt;string&gt; Getlist() { List&lt;string&gt; mylist; for (bool successFlag = false; !successFlag; ) //It will definitely enter the loop once. { successFlag = true; mylist = new List&lt;string&gt;(); for (int i = 0; i &lt; n; i++) { var CDF = GetCD...
c#
[0]
4,797,659
4,797,660
Android autostart functionality
<p>I am working on one application which basically is an auto start application and runs in background.</p> <p>The Problem is i need to access shared preference before auto start. But if device is not properly booted up how can i access the shared preference.</p> <p><strong>I want that either if device is completely ...
android
[4]
1,863,450
1,863,451
problem in creating thumb picture in php
<p>I am using following function to create thumb picture in php</p> <pre><code>function createThumbnail($img,$imgPath,$newPath,$newWidth,$newHeight,$quality) { $path=$imgPath."/".$img; echo $path; $original = imagecreatefromjpeg($path); if($original) { echo "occur1"; list($width, $...
php
[2]
2,513,794
2,513,795
Running back ground action
<p>I need some thing like sending SMS to inactive users. If some user is inactive for 36hrs he much get a text saying <code>you are away from this site</code> To do this how an ASP.NET page fires the query for every 3 minutes to check for the new user's inactivity in database.</p> <p>I have a code to perform the query...
asp.net
[9]
4,708,574
4,708,575
How to get Activity's content view?
<p>Tell me, what method should I call to get know if Activity has it's contentView, I mean method <strong>setContentView()</strong> has been done?</p>
android
[4]
3,865,006
3,865,007
Java subtract two dates in this format
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/453388/calculating-difference-in-dates-in-java">Calculating difference in dates in Java</a><br> <a href="http://stackoverflow.com/questions/3526485/how-do-you-subtract-dates-in-java">How do you subtract Dates in J...
java
[1]
5,767,462
5,767,463
jQuery loses formatting
<p>I am new to jQuery and trying to inject the HTML content of one <code>&lt;div&gt;</code> into another <code>&lt;div&gt;</code>. This is the code I'm using:</p> <pre><code>&lt;div class="relatedItems"&gt; &lt;/div&gt; &lt;script&gt; jQuery.noConflict(); jQuery(document).ready(function() { var relat...
jquery
[5]
2,600,661
2,600,662
Browse button does not appear in IE(jquery.uploadify.v2.1.4.js) multiple file uploads
<p>i am using "jquery.uploadify.v2.1.4.js" for multiple file upload,</p> <p>It works fine in all browsers , but browse button does not appear in IE8</p> <p>please tell me any suggestions</p>
javascript
[3]