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 |
|---|---|---|---|---|---|
771,793 | 771,794 | Calculate processing time | <p>I am using C# / .NET 1.1; how can I calculate the processing time, for example for copying a file from 1 system to another?</p>
| c# | [0] |
73,445 | 73,446 | Android Development - Best Advice Please :-) | <p>Firstly, please excuse my complete lack of knowledge of Android Development.</p>
<p>I know a bit of PHP, JavaScript, HTML, CSS, MySQL etc...but I am completely new to Android Development.</p>
<p>As the world is moving mobile, I would like to start learning Android Dev. Few questions I have, I hope someone can answ... | android | [4] |
1,004,800 | 1,004,801 | UIButton view: unrecognized selector sent to instance | <p>From the <code>UIToolbar</code> replaced the info button with some other <code>UIButton</code> and moved Info button over the <code>UIImageview</code>. Now when I run the app getting this message <code>[UIButton view]: unrecognized selector sent to instance</code>.</p>
<p>When I simply move the infobutton from the ... | iphone | [8] |
2,276,437 | 2,276,438 | Issue with Javascript closure | <p>I have the following piece of code:</p>
<pre><code>var blah = function(x, y){
var e = {
ox: x,
oy: y,
etc.
}
return e;
};
</code></pre>
<p>However, I am getting an error "x is undefined". I thought that x and y should be available in inner scopes. Any help/explanation would be gre... | javascript | [3] |
2,505,466 | 2,505,467 | How do I write a for each lambda expression to iterate over a numeric range in C#? | <p>I want to write something like:</p>
<p>(0 .. 7).ForEach(i => SomeMethod(i))</p>
<p>but either I can't find the correct syntax, or this isn't possible in C#. If it can be done, what is the correct syntax please?</p>
| c# | [0] |
3,427,951 | 3,427,952 | How is the boolean value returned true or false from this statement | <pre><code>function compare(a, b) {
return isNaN(a) || isNaN(b) ? a > b : +a > +b;
}
var c = compare(10,5);
alert("C value ==?"+c);
</code></pre>
<p>I'm having trouble in understanding the above script. How is the Boolean value <code>true</code> or <code>false</code> returned from the compare(). How is the... | javascript | [3] |
962,424 | 962,425 | Retrieving location from Google map in android | <p>I want to retrieve neary by locations from my current locations how can I do it...
For example
If I am In Ahmadabad city than give the list of all hotels of ahmedabad city
how can i do it
plz help me </p>
| android | [4] |
676,988 | 676,989 | How do I get the path where the user installed my Java application? | <p>I want to bring up a file dialog in Java that defaults to the application installation directory.</p>
<p>What's the best way to get that information programmatically?</p>
| java | [1] |
811,320 | 811,321 | php how to test if file has been uploaded completely | <p>is there any way how can I check if file has been uploaded completely on the server? My scenario: User uploads file over ftp and my other PHP task is running in cronjob. Now I would like to check if file has been uploaded or if user is still uploading. It is essencial because then I know if I can work with that file... | php | [2] |
1,892,109 | 1,892,110 | how to play mp3 file in .net compact framework | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/204562/is-there-a-clean-way-to-play-an-mp3-sound-in-the-compact-framework-3-5">is there a clean way to play an mp3 sound in the compact framework 3.5</a> </p>
</blockquote>
<p>how to play mp3 file in .net compac... | c# | [0] |
3,432,061 | 3,432,062 | comparing strings,iphone | <p>i have 2 strings say string A and String B
i need to check if they both are eqaul or not,
so did this</p>
<pre><code>if(a==b){
//they are equal
}
</code></pre>
<p>on console they both are showing same value say 'hey'.
but condition is not working for me.
is there any other condition to check if 2 strings are equal... | iphone | [8] |
4,807,052 | 4,807,053 | Multiple actions from a single submit on a web form | <p>I have a webform with a PayPal donate button.
How do I setup so that when the user clicks the submit button the details of the form are sent to my email address and then secondly the user is directed to PayPal to make the donation?</p>
<p>Thank-you.</p>
| php | [2] |
4,599,677 | 4,599,678 | How to catch an exception from a private member subclass object? | <p>Given the pseudo-code below, I want to catch the exception thrown by the sub-object a in class B, maintaining this object private in B. The catch clause as stated below doesn't work because the object a is private in B. How can I catch this exception ?</p>
<p><strong>Edit</strong> I have changed the pseudo-code to... | c++ | [6] |
1,148,253 | 1,148,254 | Javascript dropdown like Google Translate | <p>Anybody knows if the Google Translate's dropdown is Open Source?
<a href="http://translate.google.com/" rel="nofollow">http://translate.google.com/</a></p>
<p>I've taked some searches but don't found it.</p>
<p>Thanks</p>
| javascript | [3] |
5,553,339 | 5,553,340 | I am confused with onTouch(),please take a look | <p>Here is my code.</p>
<p>When false is returned only ACTION_DOWN can be called and when true is returned all actions are okay, why?</p>
<pre><code>aView = findViewById(R.id.a1);
aView.setOnTouchListener(new OnTouchListener(){
//@Override
public boolean onTouch(View v, MotionEvent event) {
//... | android | [4] |
5,699,460 | 5,699,461 | Android uninstalling an application and checking the result | <p>I want to delete an application from the device using the startActivityForResult()</p>
<p>I have tried this but always getting 0 as requestCode even for the cancel button</p>
<p>is it possible?</p>
<p>Thanks in Advance</p>
| android | [4] |
1,603,614 | 1,603,615 | possible to see where visitors are moving their mouse on website using javascript? | <p>i know that there are websites which can detect where the mouse is moving on the screen on a website, and then display a movie of that visit. like robotreplay or clicktale.</p>
<p>how do they do that?</p>
| javascript | [3] |
3,696,789 | 3,696,790 | Monitor.pulse Method | <p>Can anybody shed a bit of light on this piece of code. The step by step working? What i understand id that the critical section of code is locked to be accessed by a single thread at a time.</p>
<pre><code>lock (buf)
{
buf.AddRange(ary);
Monitor.Pulse(buf);
}
</code></pre>
<p>PS: Msdn explains pulse as</p>... | c# | [0] |
2,418,026 | 2,418,027 | Get returned value from jar file using javascript | <p>I have learned run a jar file using ActiveXObject Object in javascript.
Now, I need to get returned value from jar file. I can't use 'applet' because project requirement. </p>
<p>Here is simple coding...</p>
<pre><code>function RunExe(){
w = new ActiveXObject("WScript.Shell");
w.run('C://WindowJar.ja... | javascript | [3] |
3,897,906 | 3,897,907 | Reload Application Context | <p>Is it possible to setup an ASP.NET web application so that when I drop an updated dependent assembly into the BIN directory, the app will recognize it and reload, and begin using the new assembly?</p>
<p>If so, how do I achieve this?</p>
| asp.net | [9] |
1,727,790 | 1,727,791 | replace __defineGetter__ and __defineSetter__ on the prototype with defineProperty | <p>I currently use the following syntax to define a class with getters and setters.</p>
<pre><code>SomeObject = function() {
this._propertyOne = 'test';
}
SomeObject.prototype.__defineGetter__('propertyOne', function() {
return this._propertyOne;
});
SomeObject.prototype.__defineSetter__('propertyOne', funct... | javascript | [3] |
3,612,125 | 3,612,126 | Start new activity from onClickListener | <p>I have an EditText area that is not showing due to the keyboard covering it when the focus is on the EditText area. What I want to do is use a button to call an activity that will display a editable text area that overlays the main display and returns the value to the main activity which stores it in a separate cla... | android | [4] |
1,942,156 | 1,942,157 | Sorry guys.. It's been a minute. What am I missing? | <p>If someone could tell what I'm missing it would be awesome. Thanks guys. I haven't compiled any C++ in a while and am looking to get back to it. </p>
<pre><code>#include "stdafx.h"
#include <iostream>
using namespace std;
bool accept()
{
int tries = 1;
while (tries < 4) {
cout << "Do y... | c++ | [6] |
5,016,172 | 5,016,173 | Writing an enhanced for loop in Java | <p>I'm trying to convert the following for loop into an enhanced for loop</p>
<pre><code> for(int i=0; i< vowels.length; i++){
if(vowels[i] == Character.toLowerCase(c)){
return true;
}
}
return false;
</code></pre>
<p>This is what I got, but I got <cod... | java | [1] |
226,478 | 226,479 | create elements and set attributes inside each other with jquery? | <p>Answer found :D</p>
<p>I'm new with jQuery and I know there are some really nice quick tricks do doing stuff so.. I know how to answer this question in JavaScript in 30 lines of code. </p>
<p>Current code:</p>
<pre><code>$('<li>, <a>', {
id: '#tab-' + count
}).html($(this).text()).appendTo('#uls')... | jquery | [5] |
3,123,036 | 3,123,037 | Not Able to get the return value | <p>i am using this function to read from a notepad file and fill the data in <code>char str[255]</code> but after I execute the function <code>str</code> is still empty.</p>
<pre><code>char str[255];
char* data_pull()
{
std::ifstream in("C:/myfile.txt");
if(!in){
printf("\nCannot open the file");
... | c++ | [6] |
4,404,255 | 4,404,256 | Using DataSource without app-server | <p>My data access objects takes a DataSource as a parameter which works perfectly if they are deployed within an app server. </p>
<p>I'm wondering how I can assemble a data source from within a simple Java class. This might also be useful for unit testing?!</p>
| java | [1] |
604,242 | 604,243 | Javascript nested fucntions | <p>I am using nested functions </p>
<pre><code>Function mainfunction (callbackfun) {
//some code + function (score)
{
var score = scoreString;
alert(scoreString);
callbackFun(score);
}
} //--> i return this value to my calling function
mainfunction(function (anystring){
ale... | javascript | [3] |
4,276,779 | 4,276,780 | Delete from array in javascript | <p>3 hours ago, I asked a question in SO , about delete a part o an object that i liked this question to it.</p>
<p><a href="http://stackoverflow.com/questions/9359774/how-to-remove-a-part-of-an-object-in-javascript">delete a part of object in javascript</a></p>
<p>but now an other problem occurred when i delete fro... | javascript | [3] |
2,322,175 | 2,322,176 | Binary array in python | <p>How to create big array in python, how efficient creating that</p>
<p>in C/C++:</p>
<pre><code>byte *data = (byte*)memalloc(10000);
</code></pre>
<p>or</p>
<pre><code>byte *data = new byte[10000];
</code></pre>
<p>in python...?</p>
| python | [7] |
5,123,633 | 5,123,634 | Execute javascript even when an error occurs on an external page | <p>I'm trying to load a javascript file into an external page. And want a specific code to execute after the external page is loaded.</p>
<pre><code>window.onload = function() {
\* execute this code after the page is loaded *\
}
</code></pre>
<p>But the code won't execute if there's an error on the external page I... | javascript | [3] |
1,194,871 | 1,194,872 | jQuery show next prev items when keypress | <p>i have list items: </p>
<pre><code><ul>
<li class="slides">
<p>content</p>
</li>
<li class="slides">
<p>content</p>
</li>
.. etc
</ul>
</code></pre>
<p>and jQuery:</p>
<pre><code>$(document.documentElement).keyup(function (e) {
if (e... | jquery | [5] |
1,697,786 | 1,697,787 | loading data into session only once | <p>I have a master page where I'm loading some data into the session.</p>
<p>I put the lines of code that call my queries in the <strong>Page_Init event of the master page</strong>, inside an if statement</p>
<p><code>if (!Page.IsPostBack){ load data from queries into the session</code> } </p>
<p>Is this what I need... | asp.net | [9] |
4,230,220 | 4,230,221 | .NET DateTime object not very accurate? | <p>I am currently trying to write some code which is going to send a request to a device, and then wait for the response. The problem is the response does not have an end character to indicate the message is complete so we just have to wait a period of time. </p>
<p>What I want to do is send the message and then wait ... | c# | [0] |
2,730,532 | 2,730,533 | PHP Object Variable variables name? | <p>I have a loop that goes from 1 to 10 and prints values in</p>
<p><code>$entity_object->field_question_1</code> through 10 so...</p>
<p><code>$entity_object->field_question_1</code>, <code>$entity_object->field_question_2</code>, etc</p>
<p>And I want to print this in this loop, how can I get the variable... | php | [2] |
4,039,593 | 4,039,594 | how to clean datagridview in C# - but stay with the originals columns header | <p>i have DatagridView in my C# program and i want to clean the grid</p>
<p>(that the grid will be empty)</p>
<p>i try <code>dataGridView1.DataSource = null;</code></p>
<p>but it clean my header columns too</p>
<p>how i can only clean the grid and leave the originals columns ?</p>
<p>thank's in advance</p>
| c# | [0] |
609,797 | 609,798 | What's the best python idiom for grouping a list of items into groups of a specific max size? | <p>I want to write a function that takes items from a list and groups them into groups of size n.</p>
<p>Ie, for n = 5, [1, 2, 3, 4, 5, 6, 7] would become [[1, 2, 3, 4, 5], [6, 7]].</p>
<p>What's the best python idiomatic way to do this?</p>
| python | [7] |
2,813,165 | 2,813,166 | Why does code with successive semi-colons compile? | <p>According to my scientific Java experimentation, <code>int x = 0;</code> is equivalent to <code>int x = 0;;</code> which is equivalent to <code>int x = 0;;;;;;;;;;;;;;;</code></p>
<ol>
<li>Why does Java allow for this? Does it have any practical application?</li>
<li>Are each of these just empty statements? Do they... | java | [1] |
1,913,755 | 1,913,756 | Can see created file using adb shell but not in PC when mounted? | <p>In my application, I will be creating a log file (text file) in the /sdcard of the device.</p>
<p>Using adb shell, if I navigate to the /sdcard directory, I could see the created text file and by doing a cat I could read the contents </p>
<p>But if I mount the device and navigate to the drive, the file is not visi... | android | [4] |
4,997,598 | 4,997,599 | Playing a WAV File Multiple Times | <p>I need to have the same short wav file (1 second) play each time the user presses a single button. I have the following code that works for about 30 clicks and then the app "Force closes" on the device. I think what is going on is that new instances of media player are being created and then the instances build up (... | android | [4] |
2,464,760 | 2,464,761 | Resize byte[] of Image | <p>After reading from file dialog I want to resize a picture. I have the done the following code. Now I want to resize the stream of picture. How do I do it?</p>
<pre><code>Stream stream = (Stream)openFileDialog.File.OpenRead();
byte[] bytes = new byte[stream.Length];
</code></pre>
| c# | [0] |
610,476 | 610,477 | while accepting socket connection | <pre><code>unsigned __int8 Decrypt(unsigned __int8 data[]);
for(;;)
{
if((sConnect=accept(sListen,(SOCKADDR*)&addr,&addrlen)) != INVALID_SOCKET)
{
Print("Socket Connected Successfully!");
char buf[4095];
recv(sListen,buf,sizeof(buf),0);
Decryp... | c++ | [6] |
3,332,953 | 3,332,954 | File-like operations without the file? | <p>I'm working on an automation tool that will copy a series of commands to a file on a remote system and then ssh to the remote system and execute that file. I'm looking at the docs for paramiko, which has the needed sftp and ssh command capabilities I'll need.</p>
<p>However, I'm noticing that the paramiko.SFTPClien... | python | [7] |
1,289,440 | 1,289,441 | Is it possible to detect if iphone/ipo/ipad is activating(user is using them) | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6088734/is-it-possible-to-detect-if-my-app-is-running-and-displaying-on-screen">Is it possible to detect if my app is running and displaying on screen?</a> </p>
</blockquote>
<p>Hello everyone</p>
<p>My app is ... | iphone | [8] |
1,927,414 | 1,927,415 | TabActivity and startAcitivtyForResult | <p>can I make TabActivity start it's childs activities for result?
I need it because I can't make result code from a tab to propagate all
the way up in the chain (it's reset in the TabActivity)
thanks,
Ori </p>
| android | [4] |
5,592,285 | 5,592,286 | Rounding the Double Values | <h1>Rounding Issue</h1>
<p>For Example </p>
<ol>
<li>598.59 ya 591.45 to be convert 600.</li>
<li>541.0 to be convert 550.</li>
<li><p>541.59 to be convert 550.</p>
<p><em><strong>Just check the last 2 digit ignore the
decimal value. if last 2 digit in
between 11- 19 it will converted 20 if
21-29 then will converted... | java | [1] |
364,255 | 364,256 | iPhone: UITableView reorder rows | <p>There is an edit mode in UITableView which gives user possibility to reorder rows. To reorder rows user should click and drag on edit button (3 stripes). Is there any possibility to reorder rows also when user touch on row at all, not only on edit button ??? Thanks...</p>
| iphone | [8] |
2,222,990 | 2,222,991 | new to php - hello world | <p>I am new to PHP - just downloaded it and wrote hello world program:</p>
<pre><code><html>
<body>
<?php
$fileName = "test.jpg";
$txt="Hello World!";
echo $txt;
?>
</body>
</html>
</code></pre>
<p>But it doesnt work. I named the file test.php and opened it with Firefox and nothing... | php | [2] |
4,424,764 | 4,424,765 | parse retrieved data content from api | <p>how would you guys parse the data content retrieved from a api?</p>
<p>I just want to be sure that I end up with the correct data..</p>
<p>... and how can you check if you got it all with the checksum?</p>
<p>eg</p>
<pre><code>24
DK,19,Nørresundby,57.066700,9.916700
0
</code></pre>
| php | [2] |
5,571,389 | 5,571,390 | problem in Tab-Bar-Controller | <p><img src="http://i.stack.imgur.com/292Q8.png" alt="alt text"></p>
<p>My project is based on TabBar Application.</p>
<p>in some navigation..... details loaded.</p>
<p>AT Top i have segmented controller uparrow or downarrow.</p>
<p>now my requirement is to add segemented Controller to bottom of my TabBarControlle... | iphone | [8] |
4,890,335 | 4,890,336 | Defining numerous variables in a single step? | <p>Is there a solution I can use that allows me to define more than one var with the same value in a single step at the start of my funcion?</p>
<pre><code>function myFunction () {
var a,b = 0;
document.write(a) // undefined
document.write(b) // 0
}
</code></pre>
<p>Is there an improved way to write <cod... | javascript | [3] |
3,142,896 | 3,142,897 | SMTP server name settings | <p>Hello my smart friends i have this contact form that i am working on. I want visitors to send me email through the form. I am using godaddy as my web hoster. From the below code can someone help me how to setup SMTP using godaddy so i can receive emails from users on my site? I tried to use it on my local computer ... | asp.net | [9] |
5,639,610 | 5,639,611 | Is there an easy way to switch PHP versions while developing? | <p>I love <a href="https://rvm.io/" rel="nofollow">rvm</a> (ruby version manager), it allows to switch quickly between Ruby versions on the command line, like this:</p>
<pre><code>$ rvm use 1.9.3
</code></pre>
<p>Is there a similiar tool for PHP? (Preferably on the command line.) I'm currently developing a PHP framew... | php | [2] |
254,577 | 254,578 | Strange behaviour retrieving values from a cursor query | <p>Good day, Hope the tilte is not misleading. please take a look at the code snippet below and notice the commented parts:</p>
<pre><code>//if(cursor.moveToFirst()){
if(cursor.moveToNext() == true){
// do {
Log.d(TAG, "Column Name in bindview is " + columnName);
String name =... | android | [4] |
1,952,650 | 1,952,651 | The method call(Activity) in the type <type> is not applicable for the arguments (new View.OnClickListener(){}) | <p>Groping in the dark... This time I am receiving the following error in Eclipse:</p>
<blockquote>
<p>The method call(Activity) in the type
IntentsUtils is not applicable for the
arguments (new
View.OnClickListener(){})</p>
</blockquote>
<p>This error refers to the call() line in a callback hooked up to a bu... | android | [4] |
5,082,356 | 5,082,357 | Android browsing event hook | <p>for some business application scenario, we need to make an application (or a background service/daemon) that sits on an Android device and is activated when person, using any Android browser, comes to a certain website. We control the website content and can put any HTML/javascript/something else in it if needed.</p... | android | [4] |
2,958,848 | 2,958,849 | How to see when there are changes/enhancements to the CPython documentation | <p>"What's new" sections, message boards, community, etc, are great, but what happens when a reference I've read, am familiar with, and may never look at again (or think I don't need to), gets a significant update. I fear I may potentially miss the point of something useful when some new insightful examples or more co... | python | [7] |
1,325,436 | 1,325,437 | Android : Activity already started.. do I have to queue it if I want naother instance | <p>I have activity which is used for survey questionnaire.</p>
<p>So based on some events I have to trigger this survey activity from background service.</p>
<p>Suppose if the application is already running and if survey is triggered again, Android won't invoke the activity again since its already running.</p>
<p>Bu... | android | [4] |
3,061,924 | 3,061,925 | Disable SDCard Access | <p>I have a requirement where i need to block the user from having access to the device (phone) SDCard more like disable the SDCard completely. Is there a way i can achieve this? Can someone kindly guide me with some inputs on this.</p>
| android | [4] |
327,919 | 327,920 | Construct a Magic Square by a given number of rows | <p>I'm trying to build an application in simple PHP but could be done in any language.</p>
<p>I want the user to enter number of rows and the output will be the magic square of it.</p>
<p>For example, for $rows=3:</p>
<pre><code>8-1-6
3-5-7
4-9-2
</code></pre>
<p>Notice that in every row,column,diagonal the sum of ... | php | [2] |
5,997,459 | 5,997,460 | java pattern filter | <p>i need created java pattern to filter data, like 13.6Gb, 12MB,15.5Kb
I use those code</p>
<pre><code> Pattern p = Pattern.compile("(\\d+)(\\w+)");
Matcher m = p.matcher(content);
String num_letter = m.group(1);
String union = m.group(2);
</code></pre>
<p>but it can't detect decima... | java | [1] |
1,832,840 | 1,832,841 | reference variable in function definition | <pre><code>element.onmouseover = function onmouseover(event){ this.src=oldLinkImageOver; };
</code></pre>
<p>the variable <code>oldLinkImageOver</code> is a variable holding the string "images/image.png", but <code>alert(element.onmouseover);</code> on this will come out as <code>oldLinkImageOver</code> rather than wh... | javascript | [3] |
1,501,955 | 1,501,956 | Iterative deepening depth-first search in arrays PHP | <p>Would it be possible to implement IDDFS algorithm in PHP with arrays in levels?</p>
<p>Supposing the following tree:</p>
<pre><code> A
/ \
B C
/ \ \
D E F
</code></pre>
<p>Calling <code>getNodes(A)</code> results in Array(B, C), and likewise <code>getNodes(B)</code> in Array(D, E). I already wr... | php | [2] |
4,165,254 | 4,165,255 | Receive notification for the wrong iPhone App | <p>I have created two different iPhone application with two different push notification certificate, when i send a notification to app A i received it fine, but when i send it to app B the app A receive it !</p>
<p>i know im not specific enough but i need a general idea of where and what may couse this behavior. </p>
... | iphone | [8] |
1,708,796 | 1,708,797 | shuffle in database table using id | <p>How to shuffle id of database table of sqlite in android. And display or retrieve data with respective shuffled id of table. </p>
<p>For example: In <strong>programmer</strong> table:
<strong>id</strong>: 1,2,3 and <strong>level</strong>: trainee, junior and senior respectively. </p>
<p>My intention is shuffle th... | android | [4] |
3,093,903 | 3,093,904 | how to solve this error..--TF30063: You are not authorized to access Microsoft-IIS/6.0 | <p>I am trying to download a latest file from tfs server.the download operation is working fine at debugging mode.but whenever I run this code through localhost it showing a error message.TF30063: You are not authorized to access Microsoft-IIS/6.0.how to solve this..thanks sathya</p>
| c# | [0] |
312,908 | 312,909 | c#: how to convert image field to int[]? | <p>c#:
How would you convert an image field's data to an int array?
How would you write an int array to an image field?</p>
<p>Has to be done in code, not procedures, I don't know which database type will be used.</p>
<p>Edit: I am using a blob field to store a one dimensional array of instrument readings.</p>
| c# | [0] |
1,975,041 | 1,975,042 | Connecting AVD emulator with local servlet | <p>I've been trying to connect my android emulator with local servlet but without result. I know I should use <code>http://10.0.2.2:8080</code>, however it's still not working. The funny part is that on my real device, with my network ip, <code>http://192.168.1.10:8080</code>, servlet responds as it should. What is wro... | android | [4] |
3,996,217 | 3,996,218 | how to compare the date entered in textbox to the current date using javascript? | <p>How can I check that the date entered in a textbox is less than today's date using java script?</p>
<p>I m using code </p>
<pre><code>var currentDate_Month = new Date().valueOf().getMonth();
var currentDate_Date = new Date().getDate();
var currentDate_Year = new Date().getFullYear();
var En... | javascript | [3] |
2,693,988 | 2,693,989 | Passing optional number of arguments into another function | <p>Say I have a function called <code>addUp</code> which takes any number of decimal arguments and returns the result of them all added together.</p>
<p>If I have the following function:</p>
<pre><code>function myTest(){
$args = func_get_args();
return addUp($args);
}
</code></pre>
<p>If I call <code>myTest(... | php | [2] |
92,286 | 92,287 | Is it possible to mask a View in android? | <p>Is it possible to mask views? For example, if I have a design that calls for a List View to be visible within an oval shaped opening. Is there a way to create a mask for a view? Is it called something else? Because all the references I find to masking in the android docs are talking about masking a canvas object or ... | android | [4] |
2,454,856 | 2,454,857 | Calling Java inside JavaScript Function | <p>Please tell me if we can call java inside javascript function ?</p>
<pre><code> <HTML><HEAD></HEAD><BODY>
<SCRIPT>
function getScreenDimension() {
<%
System.out.println("Hiiiiiiiii");
%>
}
</SCRIPT>
<FORM>
<INPUT type="but... | javascript | [3] |
5,853,100 | 5,853,101 | Choosing the type of Index Variables | <p>We use Integer type represent index variables most of the time. But in some situations, we're forced to choose </p>
<pre><code>std::vector<int> vec;
....
for(int i = 0; i < vec.size(); ++i)
....
</code></pre>
<p>This will cause the compiler to raise the warning that mixed use of signed/unsigned variables... | c++ | [6] |
4,014,249 | 4,014,250 | Check a string to see if all characters are hexadecimal values | <p>What is the most efficient way in C# 2.0 to check each character in a string and return true if they are all valid hexadecimal characters and false otherwise.</p>
<p>Example</p>
<pre><code>void Test()
{
OnlyHexInString("123ABC"); // returns true
OnlyHexInString("123def"); // returns true
OnlyHexInStrin... | c# | [0] |
625,603 | 625,604 | Processing wikipedia dump file | <p>I want to process wikipedia dump file. In other meaning i want to extract title , category and text content for each article. what i want to ask about it is there any java api/tool that can help me in doing that.
thanks in advance</p>
| java | [1] |
3,261,856 | 3,261,857 | Change image button icon color to grayscale at Runtime using C# Code | <p>we are developing an erp application using WPF which is currently still at the initial stages.</p>
<p>i need to know how to change the color of the .png or .jpg icon to grayscale at runtime using C# code for a particular childwindow instance.</p>
<p>for example, a window handling edit operation should have save im... | c# | [0] |
2,213,009 | 2,213,010 | jQuery Get Class Name | <p>I'm trying to get the class name from an selection of images when clicked.</p>
<p>The code below retrieves the first images class name but when I click on my other images with different class values they display the first images class.</p>
<p>How can I get each images class value?</p>
<p>HTML</p>
<pre><code><... | jquery | [5] |
3,135,362 | 3,135,363 | jquery library download - stored in browser cache? | <p>If I keep reloading a page that uses jquery from google hosted site.
Does that mean it will always redownload the library?
Or does the browser know not to, since it previously downloaded it.</p>
| jquery | [5] |
2,326,920 | 2,326,921 | Type checking in variable-length argument lists | <p>I need to create a TreeNode class, that will be able to store <strong>childs of two types</strong>: String and TreeNode. <strong>Number of childs is not fixed.</strong></p>
<p>I want to create TreeNode objects somehow like this:</p>
<pre><code>TreeNode a = new TreeNode("str", new TreeNode("str2"), "str3"); //Corre... | java | [1] |
5,955,817 | 5,955,818 | First mouse call of JQuery's .show() does not display animation | <p>Hi everyone (first post!). I'm a JQuery and Javascript newbie.</p>
<p>I'm working on the following website: http://www.beautifulinteractions.com/lombo/</p>
<p>I made a custom .js file with my own functions calling JQuery selectors and methods. I call the startup() function from tag and two divs (the menu and and ... | jquery | [5] |
5,189,759 | 5,189,760 | How to create a forum inside of a application? | <p>Is it possible to have users leave comments and start conversations inside of a application?
If so what would need to be done on the server side and the application side?</p>
| android | [4] |
2,567,932 | 2,567,933 | when download an image, does urllib have a return code if its sucessful or not? | <p>I want to download an image file from potentially 5 sites.</p>
<p>Meaning that if the image wasn't found in site#1, try site#2, etc.</p>
<p>How can I test if the file was downloaded?</p>
| python | [7] |
1,726,734 | 1,726,735 | Error in designing a layout with textview in android | <p>I am developing in android application in which i have to make a layout involving a spinner and textview.I am having problem.that the textview is not clickable.I have given a background to each of textview.Can anyone guide me how to make this..</p>
<p>Below is the screenshot
<a href="http://www.freeimagehosting.net... | android | [4] |
265,725 | 265,726 | 'id' is a bad variable name in Python | <p>Why is it bad to name a variable 'id' in Python?</p>
| python | [7] |
3,949,724 | 3,949,725 | About the date picker of the calendar | <p>I have a small query, i m developing a calendar application for the iPhone,but i have stuck at a certain point, In xcode there is only a data-picker and this element is not functional in my app because in my app the user must be fast to choose date time. I would to use another instrument for chose a date. </p>
<p>H... | iphone | [8] |
795,613 | 795,614 | setinterval to reload php page unless "edit" button is clicked | <p>right now I have an interval function in jquery that reloads a page every few seconds :</p>
<pre><code>setInterval(function () {
$('div#tab2').load('morefour.php?doc=' + encodeURIComponent(ktitle));
}, 3000);
});
</code></pre>
<p>What I actually want to do now is if this input is clicked :</p>
<pre><code><inp... | jquery | [5] |
1,872,986 | 1,872,987 | Android application(.apk files) updating for an existing app in Google play | <p>At present I am having four .apk files for an android application with different version code and version 1.0 . Now I want to update my app with same four .apk files but there are now some changes in the manifest file for each apk. I a using same certificate key(existing one) and different version code with 1.1 vers... | android | [4] |
2,158,833 | 2,158,834 | Why am I getting a g++ error about discarding qualifiers in my code when compiling? | <p>Just a little warning: I've only been doing C++ for 2 weeks now, expect to see stupid beginner errors.</p>
<p>I was writing some (useless) code to get familiar with classes in C++ (it's a wrapper around a string), and I added a copy constructor, but I keep on getting this error:</p>
<pre><code>pelsen@remus:~/Dropb... | c++ | [6] |
5,884,839 | 5,884,840 | Program doesn't produce any error or output | <p>I have the following Python program:</p>
<pre><code> import xml.etree.ElementTree as ET
import sys
class MyXmlParser(object):
def __init__(self, users):
self.doc = ET.parse("users.xml")
self.root = self.doc.getroot()
def do_something(self, output = sys.stdout):... | python | [7] |
37,139 | 37,140 | Strange property in a class | <p>Could you describe what it does? I met it in one of projects and don't know how it works.</p>
<pre><code>public object this[int i]
{
get { return columnValues[i]; }
}
</code></pre>
| c# | [0] |
2,453,225 | 2,453,226 | how to divide integer and take some part | <p>I have a variable holding x length number, in real time I do not know x. I just want to get divide this value into two. For example;</p>
<pre><code> variable holds a = 01029108219821082904444333322221111
I just want to take last 16 integers as a new number, like
b = 0 # initialization
... | python | [7] |
850,836 | 850,837 | jquery "html" function returns weird behaviour | <p>i used jquery "html" function:</p>
<pre><code>$('#color .updateMoney').html('1');
</code></pre>
<p>to replace a certain string but instead it replace the content with an anchor wrapping like this:</p>
<pre><code><a xmlns="http://www.w3.org/1999/xhtml">1</a>
</code></pre>
<p>Why is that so?</p>
| jquery | [5] |
3,869,594 | 3,869,595 | What are the methods of protecting JavaScript web applications/games? | <p>Back story: I'm planning to implement a casual game to be deployed in a webapp, but I don't want to use Flash, instead just plain Javascript. One benefit of Flash that I would want though is that it distributes a binary and not the source code so it's easier to protect your code from being reused/stolen by somebody ... | javascript | [3] |
1,041,853 | 1,041,854 | www.jshint is worried I'm violating strict | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6300937/strict-violation-using-this-keyword-and-revealing-module-pattern">Strict Violation using this keyword and revealing module pattern</a> </p>
</blockquote>
<p>with this line</p>
<pre><code>function interf... | javascript | [3] |
5,147,350 | 5,147,351 | Python function definition global parameter | <p>Can someone explain why the gloabl variable x & y are not recognized in printfunc,</p>
<p>code.py</p>
<pre><code>global x
global y
def test(val_x=None,val_y=None)
x = val_x
y = val_y
printfunc()
def printfunc():
print('x',x)
print('y',y)
if __name__ = '__main__':
test(val_x=1,val_y=2)
<... | python | [7] |
1,563,991 | 1,563,992 | How to execute code that is in a string? | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/4629/c-eval-equivalent">C# eval equivalent?</a><br>
<a href="http://stackoverflow.com/questions/1511376/c-execute-a-string-as-code">c# execute a string as code</a> </p>
</blockquote>
<p>Say I have something l... | c# | [0] |
5,281,743 | 5,281,744 | Disadvantage of using sqlite? | <p>Well i want to add some features on my app. What i want is to put a search button there, and i know in order to do that i have to put my text on a database to use sql for querying. However is there a disadvantage of using sqlite on android? For example if i have to store large file in there? or if one user delete th... | android | [4] |
168,429 | 168,430 | expected behavior for document.getElementById(b).innerHTML=a; | <p>When I run this </p>
<pre><code>document.getElementById(b).innerHTML=a;
<div class="Bb2b_hold" id="Bb2b_hold">
<?php include ("pv1.php"); ?>
</div>
</code></pre>
<p>where b is a div (Bb2b_hold) in my page I want to update and a is the xhtml to update it with. It correctly inserts the xhtml a... | javascript | [3] |
2,274,839 | 2,274,840 | Replace certain part of a php string | <p>I have some text <em>(in this specific case <code>$expression</code>)</em>, sometimes it is quite long. I want to output the text the same way it is, except outputting <code>numbers %</code> bold. Sometimes its spelled like <code>3%</code> and sometimes there's a space like <code>123 %</code>.</p>
<pre><code><?p... | php | [2] |
2,895,827 | 2,895,828 | c++ method argument class reference | <p>I'm sorry to ask such a newbie question.
Here is my problem :</p>
<pre><code>MyClass* c = new MyClass("test");
method(c);//error cannot convert MyClass* to MyClass
</code></pre>
<p>the definition :</p>
<pre><code>method(MyClass c);
</code></pre>
<p>should I also define ?</p>
<pre><code>method(MyClass* c);
</cod... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.