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 |
|---|---|---|---|---|---|
2,909,600 | 2,909,601 | Override document.location.href is it possible in javascript? | <p>Is it possible to override somehow document.location.href ? </p>
<p>need override getter, ex.: alert(document.location.href); should return lets say "www.example.com" while real document location is www.stackoverflow.com...</p>
<p>don't know is it possible..</p>
| javascript | [3] |
4,600,890 | 4,600,891 | PHP:Check duplicate values in all nested array | <p>I would like to find out a duplicate value in the all nested arrays within an array.
At the moment my array is something like that.</p>
<pre><code>Array $bigarray = Array (
[431] => Array (
[0] => orange
[1] => apple
[2] => pine
)
[440] => Array (
[0] =... | php | [2] |
5,753,789 | 5,753,790 | removing value from the list | <p>I have a query I have a Map like this</p>
<pre><code> Map ppvValidatedinfo = new HashMap<String, List<String>>();
</code></pre>
<p>and it contains the value like this </p>
<pre><code> 1 22 23 24 25
</code></pre>
<p>so 1 is the key(patient id) and the values(scriptinfo) are 22,23,24,25</p>
<p>No... | java | [1] |
78,937 | 78,938 | Android Remote Service without aidl? | <p>Is it possible to write Remote Service in Android without aidl ?
If yes - is it better to use then aidl?</p>
| android | [4] |
2,907,958 | 2,907,959 | How do I specify an assembly file name for a compiled ASP.NET application? | <p>I have read under: Compiling Web Application Projects (http://msdn.microsoft.com/en-us/library/aa983464.aspx)</p>
<p>... this compilation model creates a single assembly, you can specify attributes, such as assembly name and version.</p>
<p>You can supply a PATH (directory name only) in the Visual Studio "Build Op... | asp.net | [9] |
3,780,453 | 3,780,454 | Htm page to Aspx page | <p>I have an htm page.There i have a link Moreinfo.When we click that link it will go to aspx page.Means here the link Moreinfo <a href="http://localhost/akki/akki/b/reg.aspx" rel="nofollow">More Info...</a> when we click that link it has to go reg.aspx.But its not going,,error is shopwing page not found</p>
<p>Means... | asp.net | [9] |
1,823,899 | 1,823,900 | how to sent parameter to another activity when recieve sms | <p>how to sent parameter to another activity after recive sms i try but its show error</p>
<p>The method putExtra(String, boolean) in the type Intent is not applicable for the arguments (Bundle)</p>
<p>below os my code
public class SmsReceiver extends BroadcastReceiver {</p>
<pre><code>@Override
public void onRe... | android | [4] |
4,891,301 | 4,891,302 | What is dInspect and how can I use it? | <p>I am very interested in @Sebastián Grignoli 's answer to <a href="http://stackoverflow.com/questions/255312/how-to-get-a-variable-name-as-a-string-in-php">this question</a> but, when I try to execute it, I get <code>Fatal error: Class 'dInspect' not found</code>.</p>
<p>Can anyone tell me how to rectify this? Thank... | php | [2] |
3,894,143 | 3,894,144 | String Split and FileSystemEventArgs argument usage in C# | <p>In some scenario, I need to call FileWatcher onDelete function in my application.
The below code works as expected. Please let let me know if there any better way to do this.</p>
<pre><code> string path = @"C:\File\Test";
string part1, part2;
part1 = path.Substring(0, 3); //C:\\
p... | c# | [0] |
579,246 | 579,247 | what does ":" stands for, in a for function | <p>i have this code, and i would like to know what the ":" mean in the function</p>
<pre><code>Element[][] grid = readFile();
for (Element[] ea : grid) {
for (Element e : ea)
System.out.print(e.getChar());
System.out.println();
</code></pre>
| java | [1] |
1,288,497 | 1,288,498 | ASP.NET 2.0 not handling static files under IIS 7 | <p>We recently migrated from IIS 6 on windows 2003 server to IIS 7 on windows 2008 server. Our applications are using ASP.NET Framework 2.0 and a custom Forms Authentication module.</p>
<p>The issue that we have is that ASP.NET is handling native ASP.NET file types (ex .aspx), but not static files (images, documents,... | asp.net | [9] |
5,518,526 | 5,518,527 | c# function inside lock(obj) | <p>For the example below, will the lock be release before i++ is executed? In otherwords will the lock be released when a function is called inside a lock?</p>
<pre><code>lock (lockerobject /*which is static*/)
{
call2anotherFunction();
i++;
}
</code></pre>
| c# | [0] |
3,486,357 | 3,486,358 | writing a single line of a file in C++ into two different arrays | <p>suppose a text file has 11001100 11001101</p>
<p>and i open the text file and take the input from the file as pt[0]=11001100, pt[1]=11001101..</p>
<p>but if i take the input from file as in>>pt it wont put it in two different arrays which is obvious but it takes the whole line . Thus I have to take another for... | c++ | [6] |
1,043,092 | 1,043,093 | Java - Call the main class (this) when i'm am into a method | <p>I don't know how to do this (yes sorry, should be a must to know maybe).
It would be easy to explain with an example :</p>
<pre><code>public class PageMenuLogin extends Container {
public PageMenuLogin() {
final ITextField login_user = this.createTextField();
login_user.setName("");
fin... | java | [1] |
4,564,112 | 4,564,113 | Is there other way to reference grandParent object in javascript | <p>I have following code:</p>
<pre><code>var objectParent:{
child1:{
test1:function(){},
test2:function(){}
},
child2:{
demo1:function(){},
demo2:function(){},
parent:this // gives child2
grandparent: .... // need to reference objectParent here
}
... | javascript | [3] |
5,916,545 | 5,916,546 | need help converting anonymous usort function | <p>I recently started hosting a website on 000webhost which doesn't support PHP 5.3 and kept getting the unexpected T_FUNCTION error at the first usort function in this file.</p>
<pre><code><?php
$cityXML = simplexml_load_file("http://build.uitdatabank.be/lib/1.2/city.xml");
$regionXML = simplexml_load_file... | php | [2] |
255,467 | 255,468 | jquery use a datepicker on more pages | <p>I have this in my javascript file:</p>
<pre><code>$("#birthdate").datepicker({
changeMonth: true,
changeYear: true,
altFormat: 'dd-mm-yy',
altField: '#birthdate',
});
</code></pre>
<p>I have various pages which have fields that need a datepicker. Someti... | jquery | [5] |
1,051,178 | 1,051,179 | ScheduledThreadPoolExecutor scheduleWithFixedDelay and "urgent" execution | <p>I have the following problem that the standard library doesn't solve well, and I'm wondering if anybody has seen another library out there than can do it so I don't need to hack together a custom solution. I have a task that is currently scheduled on a thread pool using scheduleWithFixedDelay(), and I need to modif... | java | [1] |
4,083,833 | 4,083,834 | make notification when clicking app bring to front | <p>I want make a notification, that when clicked on it will bring my app from the background to the front. I am using the following code:</p>
<pre><code>NotificationManager noma = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
PendingIntent pen = PendingIntent.getActivity(Timer.this, 0, intent, 0);
inte... | android | [4] |
5,084,774 | 5,084,775 | What happens to Activities/Services when phone goes to sleep/standby mode? | <p>What happens to android application and activities and services that belongs to application when the phone/AP goes to sleep mode?Will the framework destroy Activities and Services and OS kills the process?</p>
| android | [4] |
4,353,373 | 4,353,374 | unexpected comma error message | <p>I don't understand why I am getting the following error:</p>
<blockquote>
<p>[Sun Apr 10 21:29:31 2011] [error]
[client 127.0.0.1] PHP Parse error:
syntax error, unexpected ',' in
/var/www/pay_registration_fee.php on
line 105, referer:
<a href="http://localhost/pay_registration_fee.php" rel="nofollow">... | php | [2] |
2,187,638 | 2,187,639 | edit codes in php.ini in share hosting | <p>Can anyone tell me how I can access to the php.ini file, when I use shared hosting ,, I tried to create a new php.ini to put on the root of website (because I just read depends on the server, maybe can override)</p>
<p>anyway, It didn't work for me, how can I add some codes to php.ini while I don't have access to ... | php | [2] |
2,048,876 | 2,048,877 | How Send fax from Android device | <p>I need to write an activity tht should open Fax screen in Android Application.</p>
| android | [4] |
5,239,200 | 5,239,201 | C++ getline and gcount | <p>Suppose I have an <code>std::istream</code> pointing to the following contents (the line break is a <code>'\n'</code> character):</p>
<pre><code>12345678
9
</code></pre>
<p>and run the following code:</p>
<pre><code>std::istream & is = ...
char buff[9];
is.getline(buff, 9);
int n = is.gcount();
</code></pre>
... | c++ | [6] |
1,462,481 | 1,462,482 | PHP: switch() default for all? | <p>I have this:</p>
<pre><code>case true:
echo '<textarea rows="2" cols="35" name="message_friend" id="message_friend"></textarea>';
break;
default:
echo '<textarea rows="2" cols="35" name="message_friend" id="message_friend" readonly="readonly"></textarea>';
break;
</code... | php | [2] |
5,438,442 | 5,438,443 | Getting decimals from python math function? | <p>I'm a bit new to python and can't seem to figure out what I'm doing wrong.</p>
<pre><code>a = 9
b = 13
print ((a-b)/a)
-1
</code></pre>
<p>But on my calculator, the correct answer is -0.444444444 (meaning 'a' is about 45% lower than 'b').
How can I get a few decimals to show up?</p>
<p>I tried </p>
<pre><code>pr... | python | [7] |
2,863,610 | 2,863,611 | Download servlet throwing java heap space exception | <p>I have a search function in which i am returning all the records of the entities to a user on searh button , now matter how much the records are(right now, it is able to search 50,000 records). now i am trying to download all these records in a csv .if the records are less, then its working fine , but when its more ... | java | [1] |
3,804,725 | 3,804,726 | jQuery Post Success | <p>Hey everbody, im getting some trouble here.</p>
<p>When span gets clicked, it sends to a php some data, deleteing from my MySQL something. OK!
This is fine. Working.</p>
<p>But, when i try to set to jquery hide or fade out a element for me, inside the post action, he doesnt hides it.</p>
<p>But when i set it out ... | jquery | [5] |
1,517,527 | 1,517,528 | Why does my MP3 play in Android's Music app but not using MediaController? | <p>I have an MP3 audio file that I want to play from my Android app. I am using MediaController and VideoView like the answer to question <a href="http://stackoverflow.com/questions/2961749">2961749</a>. I get the error "Sorry this video cannot be played." But if I copy the file to /Music on my sd card, I can play it ... | android | [4] |
5,290,812 | 5,290,813 | Cant understand what this refers to | <p>Can anybody elaborate below in <code>innerF</code>, what does <code>this</code> refer to? <code>User</code> or <code>innerF</code>?</p>
<pre><code>function User(){
this.id = 1;
};
User.prototype.sayHi = function(){
var innerF = function(){
this.id = 2; // "this" refers to User or innerF ?
};
... | javascript | [3] |
4,562,904 | 4,562,905 | Android: runtime OnClickListener does not work | <p>I'm developing an app for Android devices using Eclipse and Android SDK;
I would like to add some ImageButtons (at runtime) with the same OnClickListener. The problem is that the OnClickListener works ONLY for the first added button.
For all the next buttons the onClick event simply doesn't fire.</p>
<p>Have someo... | android | [4] |
3,822,656 | 3,822,657 | default value of parameter as result of instance method | <p>I would like to initialize method parameter by some default value, if explicit value was not passing in the method. Something like this:</p>
<pre><code>class Example
def __init__(self, data = self.default_data()):
self.data = data
def default_data():
# ....
return something
</code></pre>
... | python | [7] |
3,689,212 | 3,689,213 | how to know updated , deleted code in contact list using contact observer? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5996921/how-do-i-make-my-android-contentobserver-for-contactscontract-detect-a-added-up">How do I make my Android ContentObserver for ContactsContract detect a added, updated or deleted contact?</a> </p>
</blockquo... | android | [4] |
1,566,826 | 1,566,827 | Join txt files side by side in python | <p>I have 2 arrays of data in txt files:</p>
<blockquote>
<p>A1 A2 A3<br>
A4 A5 A6<br>
A7 A8 A9</p>
</blockquote>
<p>and</p>
<blockquote>
<p>B1 B2 B3<br>
B4 B5 B6<br>
B7 B8 B9</p>
</blockquote>
<p>I would like to combine them side by side:</p>
<blockquote>
<p>A1 A2 A3 B1 B2 B3<br>
A4 A5 A6 B4 B5 B6... | python | [7] |
2,418,861 | 2,418,862 | generic method to create an instance from an object | <p>Is this a safe way to create an instance (assuming T has a accessible default constructor) ?</p>
<pre><code><T>
public T defaultObj(T obj) throws Exception {
return (T) obj.getClass().newInstance();
}
</code></pre>
<p>Because of the type erasure, the above codes will generate an unchecked warning. Is it... | java | [1] |
5,569,793 | 5,569,794 | Can i put buttons on Toast message in Android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3308975/android-button-in-custom-toast">Android : Button in custom Toast</a> </p>
</blockquote>
<p>HI,i have create toast message,now i want to create buttons on it,please give suggestions to achieve it...</p>
| android | [4] |
4,840,487 | 4,840,488 | Check that integer type belongs to enum member | <p>I want to check that some integer type belongs to (an) enumeration member.</p>
<p>For Example,</p>
<pre><code>public enum Enum1
{
member1 = 4,
member2 = 5,
member3 = 9,
member4 = 0
}
</code></pre>
<p>Enum1 e1 = (Enum1)4 gives me member1</p>
<p>Enum1 e2 = (Enum1)10 gives me nothing and I want t... | c# | [0] |
4,551,752 | 4,551,753 | Shortcut for method parameter | <p>I was wondering if there was a way to do something like this in Python:</p>
<pre><code>some_method(param1="param1", param2 = somevar or None)
</code></pre>
<p>I want to pass the param2 if somevar is set, or None if it isn't. Basically I am looking for a shorter way of doing this:</p>
<pre><code>if somevar is None... | python | [7] |
124,150 | 124,151 | How do I scroll to a expanded div inside a scrollable div with jquery? | <p>I made a sort of a custom accordion, and nested it inside a parent div with <code>overflow</code> set to <code>scroll</code>, now whenever an item in that accordion is expanded(<code>slideDown(200)</code>), I need the div to scroll properly to fit that entire item within the div. that is, if the bottom of the expand... | jquery | [5] |
1,180,453 | 1,180,454 | Dimming option menu/android | <p>Okay, so I have an option menu for my current app and it is the same with every class. okay, so I would like to know how to dim the options that are included in the menu when the selected class is already selected. For example, I have the Main Home on my option menu. When I am at the Main Home screen...it does appea... | android | [4] |
2,773,489 | 2,773,490 | How to Handle networkonmainthreadexception in Andoid? | <p>I have following 2 class</p>
<pre><code>class CallNetworkMethod extends AsyncTask<Void, Void, Void>
{
@Override
protected Void doInBackground(Void... params) {
if (TwitterUtils.isAuthenticated(prefs)) {
sendTweet();
} else {
Intent i = new Intent(getApplicati... | android | [4] |
4,936,783 | 4,936,784 | Export operation from specific calendar | <p>there is an open source calendar called DayPilot open source .
(you can reach from <a href="http://www.daypilot.org/" rel="nofollow">http://www.daypilot.org/</a>)</p>
<p>I want to export the data to excel from calendar
<a href="http://www.daypilot.org/demo/Calendar/" rel="nofollow">http://www.daypilot.org/demo/Cal... | c# | [0] |
2,869,529 | 2,869,530 | android programming | <p>every one,
I'm preparing a game on android,consisting of 6 game levels which have over ridden ,and overloaded methods in it....
Untill Gamelevel3 everything was fine,but in gamelevel4 I'm using the same methods which I have used before in gamelevel 1,2 & 3,but it's giving an error that I can't use the same meth... | android | [4] |
559,882 | 559,883 | Javascript: getElementById() wildcard | <p>I got a div, and there i got some childnodes in undefined levels.</p>
<p>Now I have to change the ID of every element into one div. How to realize?</p>
<p>I thought, because they have upgoing IDs, so if the parent is id='path_test_maindiv' then the next downer would be 'path_test_maindiv_child', and therefore I th... | javascript | [3] |
176,578 | 176,579 | PHP PDO + copy out Array | <p>I have a PDO Query that returns what appears to be an array $pds. I can loop through this array as follows:</p>
<pre><code>foreach ($pds as $row) {
}
</code></pre>
<p>I need to loop through the same array a second time but when I do this there doesn't appear to be any data in the array. Also I've tried to copy t... | php | [2] |
1,227,865 | 1,227,866 | C# Collection was modified; enumeration operation may not execute | <pre><code>List<String> employeeTimings;
public string[] sTime = {"0000", "0030", "0100", "0130", "0200", "0230", "0300", "0330", "0400", "0430", "0500", "0530", "0600", "0630", "0700", "0730", "0800", "0830", "0900", "0930", "1000", "1030", "1100", "1130", "1200",
"1230", "1... | c# | [0] |
637,576 | 637,577 | how can we call a method in super class from subclass's subclass? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/586363/why-is-super-super-method-not-allowed-in-java">Why is super.super.method(); not allowed in Java?</a> </p>
</blockquote>
<p>In the following code I have done inheritance. Now I want to call the method in o... | java | [1] |
2,344,260 | 2,344,261 | Asp.net 3.0 and 64 bit sqlite dll file | <p>Greetings!</p>
<p>I am developing Asp.net application, in which i need to use sqlite as database, i tried to add reference to 64 bit dll file System.Data.SQlite file.
When i run my application it shows as below error
Error 1 Could not load file or assembly 'SQLite' or one of its dependencies. An attempt was made to... | asp.net | [9] |
2,635,442 | 2,635,443 | PHP script being interrupted at random time | <p>I have a php script that does a lot of stuff, produces a lot of output and can take a few minutes to complete.</p>
<p>I have already placed a set_time_limit(999999) at the beginning.</p>
<p>Before that, it obviously exceeded the time limit of 30 seconds and got interrupted. When that happened, a fatal error was lo... | php | [2] |
4,283,733 | 4,283,734 | Combine 3 strings into one | <p>I've been trying to combine 3 strings into one and having trouble doing so.</p>
<p>the strings are below.</p>
<pre><code>$from="/2/3/4/5/6/";
$to="/30/31/32/33/34/";
$sub="/2/3/4/5/6/7/8/9/10/11/12/";#this is dynamic, ever changing past > (/2/3/4/5/6/)
</code></pre>
<p>the output must look like this below.</p>... | php | [2] |
3,470,643 | 3,470,644 | How to make sure the program is running for long time and not shut down by the system? | <p>To be more specific, in my app there are recorder and accelerometer running in 2 services to record sleep cycle, and I need to make sure these 2 components stay up all night long (8 hours for example), how do I make sure they will not be killed or shut by the android system itself?
Although I doubt it will, because ... | android | [4] |
629,553 | 629,554 | How to use Proximity Alerts to trigger a Notification? | <p>Is it possible?<br>
I mean when I get close some specific place,I get a Notification.<br>
Proximity Alerts will fire a Intent,but I don't know how to start a Notification with a Intent.<br>
Someting like Intent(String action) and IntentFilter?</p>
| android | [4] |
1,824,843 | 1,824,844 | Android: How can i put an image as a point style in a line graph? | <p>I have a line graph in which i need to put an image as a point style. How can i do that? Please help me?</p>
| android | [4] |
2,700,455 | 2,700,456 | Respak database connection with PHP | <p>How to connect with Respak database from PHP. I need to insert a user in respak database if it is not already existing there..</p>
<p>Is there any documentation available for this ? I didnt find anything in internet.</p>
| php | [2] |
3,970,064 | 3,970,065 | Assign a value to a struct value-type | <p>I want to be able to create a struct, and use it like a normal built-in.
For example, say I decide that the Bool should also have a FileNotFound value (as a silly example!), so I create a struct to include that - what would it take to be able to use it as a normal struct in code (ie. assign to it), as in
bool b =... | c# | [0] |
1,678,894 | 1,678,895 | where can I find 'pkunzip.cpp and pkunzip.h"? | <p>somewhere, I found a simple source to read something, and that source includes
"PkunZip.cpp" and "Pkunzip.h" to read zip-file.</p>
<p>However, I could not find the website about PkunZip.cpp ( sourceforge or codeproject etc ).</p>
<p>where can I find the website that describe 'pkunzip.cpp' and a manual about it?</p... | c++ | [6] |
4,762,901 | 4,762,902 | jQuery effect goes once but I need it to recur | <p>I'm using .fadeIn and .fadeOut and can get the effect to happen once, the problem is getting it to happen each time the link is moused over. I've tried dripping in .deQueue() and .stop() to no avail. (newb here, so please be patient and thorough in your explanation - much is still over my head)</p>
<pre><code><... | jquery | [5] |
1,307,305 | 1,307,306 | Is it legal to write code like C#? | <p>Example:</p>
<p>H</p>
<pre><code>class MyClass {
int x,y,z;
public:
MyClass(int,int,int);
void X();
void Y();
void Z();
};
</code></pre>
<p>CPP</p>
<pre><code>class MyClass {
int x,y,z;
public:
MyClass(int x,int y,int z) {
this->x=x;
this->y=y;
this->z... | c++ | [6] |
2,450,971 | 2,450,972 | locking the object inside a property, c# | <pre><code>public ArrayList InputBuffer
{
get { lock (this.in_buffer) { return this.in_buffer; } }
}
</code></pre>
<p>is this.in_buffer locked during a call to InputBuffer.Clear?</p>
<p>or does the property simply lock the in_buffer object while it's getting the reference to it; the lock exits, and then that refe... | c# | [0] |
5,173,142 | 5,173,143 | Post on facebook wall without any dialogs from an android app? | <p>I would like to post on the facebook wall from android app.But I don't want any dialog boxes to come up.</p>
<p>(1)The user login prompts should also be prevented.I will be storing the username and password in shared Preferences.Is there some way to pass the user id and password so that authentication happens witho... | android | [4] |
3,727,922 | 3,727,923 | Displaying divs using JQuery in sequence | <p>I am trying to display 3 divs one after another. I want them to be displayed in the sequence 1,2,3,1,2,3,.... and so on..</p>
<p>This is the code I am using</p>
<pre><code>//Initially setting the divs to be hidden
$(document).ready(function(e) {
$(".1").css("visibility","hidden");
$(".2").css("visibility",... | jquery | [5] |
3,367,189 | 3,367,190 | web form in mvc, jquery and ajax | <p>Struggling with this issue:</p>
<p>I have a form filled out and submit the form. Once I click on the browser's back button I get to the original pre-filled form, but noticed a field isnt populated anymore.</p>
<p>Can we retain information/data on a form using the browser's back button ?</p>
<p>Or is this a jqeruy... | jquery | [5] |
1,124,409 | 1,124,410 | How to Merge calls using android api | <p>I am building an android app for quick conference call. User should be able to conference a list of three numbers by click of one button. So programatically i want to call each number and once the other person picks up i want to merge the calls. </p>
<p>In the program I call the first person using Intent.CALL_ACTIO... | android | [4] |
867,199 | 867,200 | Why is the rowIndex property of a jQuery returned element.parents("tr") row undefined? | <p>If i get a reference to an elements parent as follows:</p>
<pre><code>function findParentRow(srcElement) {
var curElement = srcElement;
while (curElement && (curElement.tagName != "TR")) {
curElement = curElement.parentElement;
}
return (curElement.tagName == 'TR' ? curElement : null... | jquery | [5] |
847,760 | 847,761 | JavaScript and 'this' inside immediately executed functions | <p>I have been reading up on the intricacies of 'this' in JavaScript. Given this code:</p>
<pre><code>$(document).ready(function() {
console.dir(this);
(function foo() {
console.dir(this);
})();
});
</code></pre>
<p>In Chrome, the console shows the first 'this' as an 'HTMLDocument' (as I expected)... | javascript | [3] |
554,987 | 554,988 | File Download dialogue is not displayed when we download a file | <pre><code><asp:HyperLink ID="Download" runat="server" NavigateUrl="~/ExcelFile.xls" TabIndex="1">Click to download Excel File</asp:HyperLink>
</code></pre>
<p>I am using the above hyper link in my application to allow the users to download an Excel file.When I click on the hyperlink button it is displayin... | asp.net | [9] |
920,439 | 920,440 | scrollToRowAtIndexPath scroll inside the header section | <p>When I use the indexpath.row = 0 ,it is working fine and showing below the header</p>
<p>But when I use the indexpath.row =1 , the row 1 will move inside the header section of the table view .</p>
<p>Please help me , i want the first row should be hidden at lauch .</p>
<p>[alltweettableView scrollToRowAtIndexPat... | iphone | [8] |
2,607,514 | 2,607,515 | fiscal year related leave calculation | <p>i'm creating a webpage showing the quarterly leaves available for an employee in a company. There is a dropdownlist for selecting the quarter of a financial year(April 1 to March 31).Dropdown contains the 4 quarters present in the corresponding ongoing finacial year(ie.for the 2012-2013 fiscal year,the dropdown lis... | c# | [0] |
4,197,633 | 4,197,634 | DHL Rate calculation | <p>In my website(php based) I want implement a rate calculator of DHL. I want to add 3 fields-1.Origin, 2.Destination and 3.Weight. These 3 values will be sent to DHL server and in return I want to have the RATE. How can I do that? </p>
<p>In another section, I will add more field (address, product hts code, etc.) wit... | php | [2] |
5,834,203 | 5,834,204 | Custom Uninstalling menu android | <p>I have an android app that's related to security. </p>
<p>My need is authenticate user before uninstallation. ie; if anyone tries to uninstall my app it pops up a window and read some password/id or something and if its valid uninstallation proceeds else not.</p>
<p>I have root access</p>
| android | [4] |
996,996 | 996,997 | Setting the file and Video permission... so, as to use the content only by the application | <p>How can we accomplished the task to avoid copy paste and read the content that we store in sdcard or phone memory, only my application can use it. Thank you for your concern.</p>
| android | [4] |
717,332 | 717,333 | network programming in python | <p>how do i run a python program that is received by a client from server without writing it into a new python file?</p>
| python | [7] |
600,248 | 600,249 | Highlight current url in menu ith jquery | <p>I have a menu but I want to highlight current link with jquery. </p>
<pre><code>var loc = window.location;
var lochref = $("#topNavigation li a").attr("href");
if(lochref == loc){
$('#topNavigation li a').addClass('currenthover');
}
</code></pre>
<p>With above script, there is no any change in "a"... | jquery | [5] |
125,389 | 125,390 | Java Pointer vs C# IntPtr | <p>Hi have to use a dll.
In Java we use this :</p>
<pre><code>Public interface CLibrary extends Library {
CLibrary INSTANCE = (CLibrary)
Native.loadLibrary("are32.dll",
CLibrary.class);
Pointer ENCRYPT(String a, int ai, String b, int bi);
}
...
Pointer ptr1 = CLibrary.INSTANCE.ENCRYPT("TEST",5,"TEST"... | c# | [0] |
5,894,954 | 5,894,955 | java class initialization explanation | <p>I kind of new to java and will be happy if anybody could explain the following code samples to me.This is just a sample java code snippet for illustration. But the main question is that if the class Learn initializes another class Smart with a parameter which is also a class Object , then the addition of the dot cla... | java | [1] |
287,963 | 287,964 | functionality of void operator()() | <p>I am confused about the functionality of void operator()(),</p>
<p>could you tell me about that, for instance:</p>
<pre><code>class background_task
{
public:
void operator()() const
{
do_something();
do_something_else();
}
};
background_task f;
std::thread my_thread(f);
</code></pre>... | c++ | [6] |
791,722 | 791,723 | Python: interrupt execution with key and run again | <p>how can I interrupt python execution with a key and continue to run when the key is pressed again ?</p>
<p>thanks</p>
| python | [7] |
1,108,080 | 1,108,081 | How do you edit text messages/urls on HTC Desire | <p>So I've been asked this question by another developer in work and I couldn't figure it out. Now having a Desire myself, how the hell do you edit a text message that you are composing? The same for a URL you may have made a typo in? On the iPhone you would hold down on the area where you want to edit and a little ... | android | [4] |
535,533 | 535,534 | What does *array[] mean? | <p>What does this mean? I see it all the time in programs and I don't get it:</p>
<pre><code>int *array[9];
</code></pre>
<p>Why is the asterisk there. What is the difference between this declaration and this:</p>
<pre><code>int array[9];
</code></pre>
| c++ | [6] |
3,310,750 | 3,310,751 | Android BitmapFactory.decodeStream(...) doesn't load HTTPS URL on emulator | <p>App doesn't load an Image from an HTTPS URL when run on the emulator. </p>
<p>Sample code:</p>
<pre><code>URL url = new URL("https://someserver.com/photo.jpg");
mImageView.setImageBitmap(BitmapFactory.decodeStream(url.openStream()));
</code></pre>
<p>The image loads just fine when run on an actual device. Also th... | android | [4] |
1,073,307 | 1,073,308 | var myFunction = function() {}; vs fuction myFunction() {}; | <p>What do you think, which one is the better, faster, nicer solution to declare a function?</p>
<p>First:</p>
<pre><code>(var) myFunction = function(){
//Stuff to do
};
</code></pre>
<p>or Second:</p>
<pre><code>function myFunction() {
//Stuff to do
};
</code></pre>
<p>Both will work in JavaScript and JQuery. But... | javascript | [3] |
5,803,223 | 5,803,224 | Click asp link button manually which have added attribute "onclick" | <p>anyone have idea to fire click event of link button on code behind in any user define function. this link button have added "onclick" Attributes on load event. </p>
<p>eg </p>
<pre><code>lbAddPayment.Attributes["onclick"] = "return OnClickAddPaymentDetail(event, 'Paid');";
</code></pre>
<p>I want to fire event ... | c# | [0] |
1,162,572 | 1,162,573 | Intent <data> definition - host, pathPrefix? | <p>I'm trying to capture a url like the following in an intent:</p>
<pre><code>https://example.com/apple/orange?key=value
</code></pre>
<p>I've got the following, but it doesn't seem to work:</p>
<pre><code><activity>
<intent-filter>
<action
android:name="android.intent.action.VIEW" />
... | android | [4] |
1,248,044 | 1,248,045 | Can I make it so when I select in a select box the title is updated using jQuery? | <p>I have:</p>
<pre><code><select name="TopicID" id="TopicID">
<option value="00">XX</option>
<option value="02">YY</option>
</select>
</code></pre>
<p>How can I make it so that when a user selects a new value such as "YY" that the title of the select gets updated like this:</p... | jquery | [5] |
746,472 | 746,473 | A strange print function bug | <p>I'm working on a InterviewStreet problem <a href="https://www.interviewstreet.com/challenges/dashboard/#problem/4fcf919f11817" rel="nofollow">https://www.interviewstreet.com/challenges/dashboard/#problem/4fcf919f11817</a>, the algorithm is correct but I still get several wrong answers, after several hours I find the... | c++ | [6] |
1,749,195 | 1,749,196 | Adding empty point C# charts | <p>I'm using C# charts to display/compare some data. I changed the graph scale to logarithmic (as my data points have huge differences) but since logarithmic scaling doesn't support zero values, I want to just add an empty point (or skip a data point) for such cases. I have tried the following but non works and all cra... | c# | [0] |
4,293,135 | 4,293,136 | What does it mean when you pass a variable={} into a function? | <p>What does something like this achieve?</p>
<pre><code>function myFunction(foo, bar={}, boo){
//?
}
</code></pre>
| javascript | [3] |
453,011 | 453,012 | Build an extension system for my android application | <p>I'm trying to build an extension system for my application, basically to add
different protocols in it (facebook and twitter connection for example) and
be able to configure them from my main application. I want it to be pretty
similar to how dolphin browser extensions work. But I haven't any idea how
to start i... | android | [4] |
3,685,699 | 3,685,700 | Design of android activity | <p>Alice has to answer three questions. After she answered the questions she gets a dialog that lists the question and answers and there's a button to save the answers to a database.</p>
<p>At the moment I think that the design should be three classes: Master, Question, Summary.</p>
<p>Master calls Question with an i... | android | [4] |
1,491,308 | 1,491,309 | php error on basic php | <p>Im trying to do the following but keep getting a error.</p>
<pre><code><?php
echo '<a href="'javascript:toggle5'" id.'imageDivLink'('profilebar', 'imageDivLink');">' .$USER->firstname.' '.$USER->lastname.'</a>';
?>
</code></pre>
| php | [2] |
4,932,465 | 4,932,466 | What is the difference between Dispose and setting reference to null in C#? | <p>I have two code samples and I want to know what is the deifference between them and which is better to use as best practice and performance wise:</p>
<pre><code>using (TestForm test = new TestForm())
{
test.ShowDialog();
}
</code></pre>
<p>and the other is:</p>
<pre><code>TestForm test = null;
try
{
test = new T... | c# | [0] |
5,908,966 | 5,908,967 | Class instance declaration in C++ | <p>Let's say I have ClientList class and I have declared like this.</p>
<pre><code>class ChatMgr
{
private:
ClientList _userlist;
ClientList *_userlist;
}
</code></pre>
<p>Then what is the difference? I know that the second one is the address of the instance and I need to initialize it using new to use it. T... | c++ | [6] |
1,720,673 | 1,720,674 | anybody recommend several html or dom parsers in php with good performance? | <p>anybody recommend several html or dom parsers in php with good performance?</p>
| php | [2] |
1,044,400 | 1,044,401 | $("#MyForm").submit(function () { Does not work in IE8 but FireFox 8? | <pre><code>$(document).ready(function () {
$("#MyForm").submit(function () {
alert("Hello");
return true;
});
});
</code></pre>
<p>Hi, I have a very simple code above, when I submit the form in IE8 nothing happens, but it works fine in FireFox 8.</p>
<p>I am using jQuery 1.5.1. So is it a prob... | jquery | [5] |
540,881 | 540,882 | PHP validation for registration form | <p>I have the problem I created a registration form and given database connection and database field values to enter the values in table. Here I am able to enter all field values in tables. If the field is empty, the empty value is entered, so I need to validate the registration form. If user enters empty value it shou... | php | [2] |
4,656,293 | 4,656,294 | Non-object when adding code into html | <p>I am getting the following error:</p>
<blockquote>
<p>Fatal error: Call to a member function error() on a non-object in /home/gamepla3/public_html/football/result.php on line 177</p>
</blockquote>
<p>The line for this is</p>
<pre><code><?php echo $form->error("homescore"); ?>
</code></pre>
<p>I'm fail... | php | [2] |
1,999,768 | 1,999,769 | Padding bars remain when scrolling GridView | <p>I have this <code>GridView</code> (see screenshot) that contains items that all need about 12 dip spacing. However, when I set padding on the <code>GridView</code>, it seems that I can't scroll across this paddingm which I do want to do. How do I achieve this?</p>
<p>Note the slice of space above the top two pictur... | android | [4] |
1,249,574 | 1,249,575 | C++ - avoiding the implicit inlining of a function defined in the class definition | <p>In my implementation files (.cc files), I often find that it's convenient to define member functions in class definitions (such as the functions of a Pimpl class). For example:</p>
<pre><code>struct X::Impl {
void DoSomething() {
...
}
};
</code></pre>
<p>instead of</p>
<pre><code>struct X::Impl {... | c++ | [6] |
5,048,334 | 5,048,335 | std::max - expected an identifier | <p>I'm having a problem with std::max. I can't figure it out.</p>
<pre><code>int border = 35;
int myInt = 2;
int myOtherInt = 3;
int z = std::max(myInt + 2 * border, myOtherInt + 2 * border);
</code></pre>
<p>I've included the algorithm standard header. When I mouse over max, I am getting:</p>
<p>Error: expected an ... | c++ | [6] |
3,953,662 | 3,953,663 | UIButton move animated problem | <p>how to make a UIButton when moving (animated) without shadow? i tried the code but cannot make it can someone modifify or point out the problem</p>
<pre><code>-(IBAction)move{
point=CGPointMake(0,1);
for(int i=0;i<50;i++){
NSLog(@"fdfafa");
CATransition *animation = [CATransition animation];
[animation se... | iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.