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 |
|---|---|---|---|---|---|
589,967 | 589,968 | How can i construct a variable name in code from a string? | <p>I have a number of variables named test1....test10 they are all declared as a string.</p>
<p>what I want to do is access them from inside a loop using the loop counter something like this:</p>
<pre><code>string test1;
//...
string test10;
for (int i = 1; i < 10; i++)
{
test + i.ToString() = "some text";
... | c# | [0] |
621,295 | 621,296 | can we add data for sql database within the application | <p>Can i add the data with in the application like as enclosed below. </p>
<p>public long createEntry(String lat, String log, String name, String value, String light){</p>
<pre><code> ContentValues cv = new ContentValues();
cv.put(KEY_LAT, 30);
cv.put(KEY_LOG, 40);
cv.put(KEY_NAME, ra... | android | [4] |
4,154,260 | 4,154,261 | Not able to put ArrayList into Bundle in onSaveInstanceState | <p>Is any way to put this into Bundle during <code>onSaveInstanceState</code>?</p>
<pre><code>public static ArrayList<StringProArrayList> splnenoNa1 =
new ArrayList<StringProArrayList>();
</code></pre>
<p>The method <code>putStringArrayList</code> don't work.</p>
| android | [4] |
2,036,826 | 2,036,827 | Does making an apk take two hours? | <p>I have asked someone to make me an app. I want to test it and asked him if he can email me the apk twice every day with the changes he made that day.</p>
<p>He told me it takes too long to set up that apk twice every day, that it takes a couple of hours. Is that true?</p>
| android | [4] |
4,616,769 | 4,616,770 | How to detect whether a keyboard is present or not | <p>How does android detects whether a keyboard is present or not? Which file I should modify if I need to change the way android detects the keyboard.</p>
| android | [4] |
381,498 | 381,499 | What kind of User data I can collect | <p>I was wondering if I ever need to collect any kind of user data (like their location, which I don't think I should collect now, their IMEI, their google account, app usage time etc), then how much of it I can collect without doing so illegally.</p>
<p>I know there will be issues with all of them, but since I couldn... | android | [4] |
3,712,774 | 3,712,775 | Jquery best practice, checking for the existence of button/link before attaching an event | <p>I have a web page with buttons and links that may or may not exist.
I have jQuery that runs and assigns <code>click</code> events to these buttons and links.</p>
<p>Is it bad practice <em>not</em> to check for the existence of the buttons or links before I try to attach <code>click</code> or any other events? What ... | jquery | [5] |
932,335 | 932,336 | how to set margin between TableRow android | <p>I found a lot of solutions about TableRow margin, but when I tried the rows dont margin at all. </p>
<p>This is my code:</p>
<pre><code> TableLayout table = (TableLayout)findViewById(R.id.myTableLayout);
for (int i = 0; i < 3; i++) {
TableRow tr = new TableRow(this);
Layo... | android | [4] |
2,937,431 | 2,937,432 | Assigning a name to a pattern-matched item in Python | <p>I'm trying to do the following:</p>
<pre><code>def f( a=(b,c,d) ):
pass
</code></pre>
<p>But the interpreter complains that b is not defined when I do this. Is there a "Pythonic" way of getting the intended result? I know that I could do something like the following: </p>
<pre><code>def f( (b,c,d) ):
a = (b,c... | python | [7] |
2,685,502 | 2,685,503 | Using threadpool and func objects | <p>When using a thread pool and its queuecallbackitem, can I not pass in a func object (from the method parameter)? </p>
<p>I don't see a func which takes one parameter but returns nothing. There is<code> func<T, TResult></code> but how can I set TResult to be null (want to indicate "this method returns void")?<... | c# | [0] |
5,378,451 | 5,378,452 | Ignore if there is URL | <p>This question is continuation of:
<a href="http://stackoverflow.com/questions/14880551/garbage-values-coming-on-pulling-data-from-wordpress">Garbage values coming on pulling data from wordpress</a></p>
<p>I have dealt with the garbage value by using following piece of code:</p>
<pre><code> htmlentities($entry->... | php | [2] |
2,799,292 | 2,799,293 | System.DirectoryServices.AccountManagement.PrincipalOperationException Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) | <p>I'm having a hard time figuring this one out.</p>
<p>I have an application that reads active directory. This application is installed on 6 machines. I have one machine that produces this error every time it's ran.</p>
<p>The call to active directory is wrapped in an Impersonator class that uses an domain adminis... | c# | [0] |
835,378 | 835,379 | Question about C++ inner class | <p>HI,</p>
<p>In C++ inner class,</p>
<pre><code>class A {
public:
void f1();
private:
void f2();
class B {
private void f3();
};
}
</code></pre>
<p>Does an inner class (B) has a pointer to its parent class (A)? (like it does in Java).
And can B calls its parent class pub... | c++ | [6] |
863,872 | 863,873 | Can I prevent the screen from turning on for an incoming phone call? | <p>I have seen questions that are somewhat similar to this, but none that answer this question. If I wanted to be able to prevent the screen from turning on at all when receiving an incoming call, is this possible? I know it may sound bizarre, but it would only act this way exactly when the user would want it to, par... | android | [4] |
4,068,473 | 4,068,474 | Using SetTimeout and .each Jquery | <p>I want to use settimeout() function with .each function.Basically iwant to show each image for 5 seconds and then next but i am only able to see last image.The .each executes and do not stop for 3 seconds.How can i do this?This is how i am doing.</p>
<pre><code> <html xmlns="http://www.w3.org/1999/xhtml">
... | jquery | [5] |
541,295 | 541,296 | How to obtain the possible duration of idle time of phone based on its current battery level | <p>I am new to the android programming environment.
I am currently working on a project which deals with the user's phone battery level.I am showing the current battery level left on the phone.now i want to display the amount of duration of "idle time, talk time, video playback, audio playback and web surfing" that can... | android | [4] |
4,093,417 | 4,093,418 | Global declaration in iOS | <p>i have this code for storing information about username,password,costomerkey etc etc in .h file</p>
<pre><code>extern NSString * const consumerKey;
extern NSString * const consumerSecret;
extern NSString * const userStoreUri;
extern NSString * const noteStoreUriBase;
extern NSString * const shardId;
extern NSString... | iphone | [8] |
1,192,297 | 1,192,298 | SharedPreferences | <p>I'm creating a <code>SharedPreferences</code> and it's working only if I start Activity like this:</p>
<pre><code>myIntent.putExtra("prefName", MYPREFS);
startActivity(myIntent);
</code></pre>
<p>But my SharedPreferences is not working after I save it and hit back a few times, to go at menu page and go to the page... | android | [4] |
305,895 | 305,896 | Private storage folder to store paid app specific content in Android? | <p>I'm developing an app that would have an In-app purchase and download Videos from my server and store them on the device.
The problem is, the Videos are paid videos and are to be maintained in a highly secure place <strong>inside the app itself.</strong></p>
<p>What are the possibilities of doing it? I had a look ... | android | [4] |
5,536,326 | 5,536,327 | Is eventKit supported in IOS 3.0 | <p>Is eventKit is not supported on 3.0 - it's giving me this message below on my 3.0 iPhone</p>
<blockquote>
<p>dyld: Library not loaded: /System/Library/Frameworks/EventKit.framework/EventKit</p>
<p>Referenced from:
/var/mobile/Applications/B50DB029-19WE-481A-9090-3748EC4DD415/abc.app/abc</p>
<p>Reason:... | iphone | [8] |
1,954,159 | 1,954,160 | Error Installing Android SDK Platform Tools | <p>I have downloaded eclipse, the android SDK starter package, and installed the "Developer Tools." Following the guide on developer.android.com exactly. After the developer tools have installed, and eclipse restarts I get two error messages: </p>
<p>1: <code>"SDK Platform Tools component is missing!
Please use the... | android | [4] |
412,337 | 412,338 | What are the pros and cons of the various Python implementations? | <p>I am relatively new to Python, and I have always used the standard cpython (v2.5) implementation. </p>
<p>I've been wondering about the other implementations though, particularly Jython and IronPython. What makes them better? What makes them worse? What other implementations are there?</p>
<p>I guess what I'm ... | python | [7] |
930,950 | 930,951 | How to get method parameter in an array? | <p>Imagine in a class you got this Method:</p>
<pre><code>float Do(int a_,string b_){}
</code></pre>
<p>I'm trying to do something like this:</p>
<pre><code>float Do(int a_, string b_)
{
var params = GetParamsListOfCurrentMethod(); //params is an array that contains (a_ and b_)
}
</code></pre>
<p>Can someone help... | c# | [0] |
1,553,587 | 1,553,588 | android app unable run in Motorola droid | <p>Hi i am new to android. i developed an android app using 2.1 version in eclipse Ganymede.
i used SQLite data base to store data and it will show the stored values when loading page My app is running perfectly in Sony Ericsson Xperia but it was not working in motorola droid which is having os Android 2.1 i dont know... | android | [4] |
2,013,321 | 2,013,322 | c++ while loop repeats | <p>I have the following code. When something like <code>jackpot</code> is inputted, it prints out the cout 8 times, once for each character. Why is it doing this? Information is a structure and number is an integer. </p>
<pre><code>do {
cout <<"Please input a valid number."<< endl;
cin>&... | c++ | [6] |
3,317,936 | 3,317,937 | upload data to server memory | <p>I'm using PHP</p>
<p>I understand that its possible to upload value to the server memory</p>
<p>Lets says that every user have table of permissions for the website</p>
<p>I don't want to do query for permission every time user load some page. I s it possible to load all permission in advanced to the server memory... | php | [2] |
656,904 | 656,905 | Adding elements to a page dynamically and then removing them | <p>I set up a jQuery control that adds a table containing textboxes to a page dynamically.</p>
<p>The adding part works fine, but the remove function at the end fires no matter where I click in the table...I just want it to remove the table when I click on the remove button.</p>
<p>Is there a better way to set this u... | jquery | [5] |
4,917,569 | 4,917,570 | implement seek bar in media player on android | <p>in my app i am storing all song file name,path from sdcard into data base and play one by one with seek bar. my problem is i get null pointer exception println needs a message.
the file name is exist and valid one.</p>
<p>my code:</p>
<pre><code> playsong(filename); // line no 92
....
private void playsong... | android | [4] |
2,797,395 | 2,797,396 | To show an alert when application just enter into background | <p>I just want to show an alert when user just quit the application before application entering the background, how can I do that??</p>
<p>If I show the alert in <code>applicationDidEnterBackground:(UIApplication *)application</code> method then this alert will be shown when we again resume the application, but I need... | iphone | [8] |
3,813,665 | 3,813,666 | Base64 encodeBytes - out of memory exception | <p>I ma trying to upload a picture from android to remote server. Everything is working is fine except for large photos. I am getting "memory out of exception" at Base64.encodeBytes() methos. Here is the code.</p>
<pre><code>ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFor... | android | [4] |
3,505,628 | 3,505,629 | Not displaying added two months (PHP) | <p>I have a problem in my codes. Obviously, I'm beginning to program in PHP and know nothing about its advanced concepts. So I'm asking of your help. I'd like to add 2 months to the end date the user input. I tried this code below:</p>
<pre><code>protected function inputEndDate() {
$value = $this->endDate;
... | php | [2] |
2,468,622 | 2,468,623 | Need to get the value of a variable which is sent as a string? | <p>I'm sending a string as parameter to a function, but i already have a global variable in that name, i want to get the value of that variable but its sending as undefined..</p>
<p>My example code</p>
<p>i have a array as reg[0][0],reg[0][1],reg[1][0],reg[1][0],reg[2][0],reg[2][1]</p>
<p>and i have some global vari... | javascript | [3] |
1,379,865 | 1,379,866 | How to change speed at which text is printed (python) | <p>What I am trying to accomplish is first text appears after 1 second. then 2, ect. till 10. then when time equals 10, the time decreases, so the text appears after 9 seconds, then 8 etc.</p>
<p>How could I fix this code so that it works properly?</p>
<p>The error:</p>
<pre><code>Traceback (most recent call last):
... | python | [7] |
4,991,771 | 4,991,772 | Put imports at the top? Or where they get used? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/477096/python-import-coding-style">Python import coding style</a> </p>
</blockquote>
<p>When I write some code that requires an import, and the import is only introduced by the bit of code I'm currently writing,... | python | [7] |
1,811,928 | 1,811,929 | How to show an image that is hidden using jQuery | <p>I'm having issues showing an image that is hidden using jQuery. </p>
<p>I have hidden the an image with the class 'img.zoom' using jQuery. I want to be able to hover over the list item that the image is within and show the image that is hidden. I am able to do this but it affects every list item with that image in.... | jquery | [5] |
5,728,650 | 5,728,651 | Testing FPS using Android plugin for Eclipse? | <p>Ive no doubt this question may have been addressed before but how can I turn on a framerate monitor to use when I run my programs using the android emulator so I can see exactly what my android game is achieving at a given time?</p>
| android | [4] |
290,124 | 290,125 | How to open two popup window on a button click? | <p>I need to open two pdf files as popup window on click ona button in asp.net C#,but now its opening only the first popup?Can anybody help me ,to open the both windows at the same time?</p>
<p>This is my code:</p>
<pre><code>string PDFPath = folderpath + filename;
string PopupName = "popUp";
... | c# | [0] |
6,026,050 | 6,026,051 | Convert iPhone GPS to address | <p>I have been researching a few different apps lately for my company which are all able to convert your current GPS location to an address. I have been googling and searching through the stack but I can't seem to find any helpful information on the net to tell me how to achieve this. So my question is this; how do you... | iphone | [8] |
2,246,214 | 2,246,215 | Searching for '\' using javascript | <p>I have written a following code to get just the file name without extension and path.I m running it in browser. </p>
<pre><code><script type="text/javascript">
var str=new String("C:\Documents and Settings\prajakta\Desktop\substr.html");
document.write(str);
var beg=str.lastIndexOf("\");// **HERE IS THE PROB... | javascript | [3] |
1,255,679 | 1,255,680 | comparing two ExtendedProperty's | <p>I am working in C#, so I have a define list of ExtendedProperty's, then I pull another list of ExtendedProperty's. </p>
<p>So ExtendedProperty myprop & ExtendedProperty pulledList</p>
<p>Now I would like to compare both ExtendedProperty's. However both extendedProperty list are not in the same order. How co... | c# | [0] |
928,117 | 928,118 | xml parsed result pass through Geopoint() ,problem in number format | <p>I have done xml parsing and store result as latitude and longitude in an StringArray and using <code>for loop</code> I store result of lat and longitude in a string named "lat" and "longi" I want to pass these points through GeoPoint() for showing in a map,now the problem is now that i have 43 items in array: "site... | android | [4] |
2,698,244 | 2,698,245 | development of php oop based project | <p>I want to develop my php project using oop concepts.I read many tutorials.But i can't understand how to implement those are in my project.
Plz help me.</p>
<p>Thanks in advance
Bhavyasri</p>
| php | [2] |
1,863,463 | 1,863,464 | Can I create a non-explicit constructor for a Java class? | <p>By default, C++ will do "auto promotion" in assignment if appropriate constructors exist (and are not declared <code>explicit</code>).</p>
<p>In Java, this behavior doesn't happen by default. If I want automatic promotion, is there a way to declare my constructors as implicit?</p>
<p>For example, here is some C++... | java | [1] |
5,337,154 | 5,337,155 | Android:click effect in a linearlayout | <p>I am a beginner in android programing and just started to play around with android.</p>
<p>I have a linearlayout which contains 2 textviews. When i click on the linearlayout, the textcolor in one textview and background in the other textview must change for a small peroid of time. It should return to its orginal te... | android | [4] |
2,663,385 | 2,663,386 | overriding a method from a class with a private variable | <p>If I have a class that can't be changed (inside a jar),
Ex. </p>
<pre><code>public class AA implements A{
private String s = "foo";
public String getValue() { return s; }
}
</code></pre>
<p>what would be a good way to override that getValue() method?
My way has been recopying the class. Ex.</p>
<pre><code>p... | java | [1] |
303,542 | 303,543 | How add new hidden input fields to the form on submit | <p>I'm doing some conditional checks and want to pass certain hidden variables to a request.</p>
<p>For example I want to pass these if this condition passes:</p>
<pre><code> <script type="text/javascript">
function checkClosureLevel()
{
var openLevel = document.getElementById('openLevel');
... | javascript | [3] |
2,816,160 | 2,816,161 | how do you implement System.Net.IPAddress.HostToNetworkOder and NetworkToHostOrder | <p>The <code>HostToNetworkOrder</code> method converts multibyte integer values stored on the host system from the byte order used by the host to the byte order used by the network, and the <code>NetworkToHostOrder</code> does the reverse.</p>
<p>Question is how to implement these methods in C#, assuming that it is no... | c# | [0] |
1,150,000 | 1,150,001 | converting char to unsigned char | <p>How the conversion works ? For example:
Scope of char[-128, 127],
scope of unsigned char[0, 255]</p>
<pre><code>char x = -128;
unsigned char y = static_cast<unsigned char>(x);
cout<<y; //128
</code></pre>
<p>Why not 0 ?</p>
| c++ | [6] |
889,847 | 889,848 | where to store user credentials | <p>at the android developer site <a href="http://developer.android.com/guide/practices/security.html" rel="nofollow">http://developer.android.com/guide/practices/security.html</a>
i read that user password should not be stored in device.</p>
<p>Then how should i handle this. I mean how to store user credentials on c... | android | [4] |
3,724,158 | 3,724,159 | Why does this `auto` not automatically turn into "`const`" | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/14008893/auto-reference-in-c11">auto reference in c++11</a> </p>
</blockquote>
<p>The more I learn C++, the more I have come to realize that so far (almost; see below) everything in it basically just makes sense... | c++ | [6] |
5,463,502 | 5,463,503 | Arbitrary precision type | <p>Is there such a type\implementation in C#?</p>
<p>It is needed to calculate figures up to 10<sup>10,000</sup> magnitude.</p>
| c# | [0] |
1,830,921 | 1,830,922 | How can I tell if a ManualResetEvent is signaled or non-signaled? | <p>I want to check to see if an instance of ManualResetEvent is signaled before starting a thread. How can I do this?</p>
| c# | [0] |
4,126,318 | 4,126,319 | get every 4th hour | <p>I have a time string from 0 to 24. like this</p>
<pre><code>0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23
</code></pre>
<p>Now if it is 2 oclock, I want to select every 4th hour. so from above it will be</p>
<pre><code>2, 6, 10, 14, 18, 22
</code></pre>
<p>I am trying to wrap my head around it to... | php | [2] |
4,709 | 4,710 | Why can't I have an object initializer within another object initializer in Javascript? | <p>I have the following code and was wondering why I am not allowed to create another object within another.</p>
<p><strong>CODE</strong></p>
<pre><code>//Object initializer
var shoe = {
size: 10,
make: var maketype = {
this.brand: "rebook"
},
availa... | javascript | [3] |
883,403 | 883,404 | how to pass parameter programtically in objectdatasource | <p>i want to pass 3 parameters for SelectMethod and 1 parameters for SelectCountMethod of ObjectDataSource.</p>
<p>How can i pass these?? And how ObjectDataSource can distinguish which parameters for which methods.??</p>
<p>Thanks & Regards</p>
| asp.net | [9] |
5,310,122 | 5,310,123 | Replace a value if null or undefined in JavaScript | <p>I have a requiremnt to apply the ?? C# operator to JavaScript world and don't know how.
Consider this in C#:</p>
<pre><code>int i?=null;
int j=i ?? 10;//j is now 10
</code></pre>
<p>Now I have this set up in JavaScript:</p>
<pre><code>var options={
filters:{
firstName:'abc'
}
};
var f... | javascript | [3] |
5,299,456 | 5,299,457 | save files with specific name from site to disk drive | <p>here is my code is not working perfectly so what is the problem </p>
<pre><code>$urls = file('list.txt', FILE_IGNORE_NEW_LINES);
foreach($urls as $url) {
copy(trim($url),"c:/data/$url");
echo "$url is done";
ob_flush();
flush();
}
</code></pre>
<p>some urls does not exist </p>
<p>i want that each file from... | php | [2] |
31,098 | 31,099 | subscribe and unsubscribe a function that contains calls to other functions | <p>I have a function that I want to subscribe it to a event queue. When it executes this function I need it to unsubscribe from the queue.</p>
<p><code>functionToExecute</code> is the function I want to execute.</p>
<p><code>onDOMReady</code> subscribes the <code>attachDOMHandler</code> function which in turn execute... | javascript | [3] |
4,423,516 | 4,423,517 | Submitting with jquery | <p>I would like to learn how these websites are validating data with PHP. For instance you go to facebooks page and view the source code there is no form action supplied. Ok I understand they are using Javascript in some manner to post data towards PHP but can I do something similar with jquery? Are the submit() and Po... | jquery | [5] |
4,542,415 | 4,542,416 | hashcode uniqueness | <p>Is it possible for two instances of Object to have the same hashcode ? </p>
<p>In theory an object's hashcode is derived from its memory address, so all hashcodes should be unique, but what if objects are moved around during GC ?</p>
| java | [1] |
5,357,092 | 5,357,093 | Crash due to SIGABRT on Linux C++ PowerPC | <p>My program crashes in string assign. I cannot corner down the exact cause of it. Multiple threads execute the same code.</p>
<p>This is my code.</p>
<pre><code> char* cTemp = new char[5];
memset(cTemp,'\0', 5);
snprintf(cTemp , 5 , "%04x" , iParameter);
string sVar1 = cTemp;
delete[] cTemp;
if(... | c++ | [6] |
3,849,421 | 3,849,422 | Using evaluated variable values instead of the actual type | <pre><code>var foo;
console.log(typeof foo); //"undefined"
if(typeof foo === 'undefined')
console.log(1);
if(!foo)
console.log(2);
</code></pre>
<p>In my example above, the console will log both "1" and "2", since <code>undefined</code> evaluates as <code>false</code>. The same thing will happen for <code>n... | javascript | [3] |
4,187,259 | 4,187,260 | Launch App from Notification with data | <p>I'm trying to use C2DM to trigger a push notification on my android phone, and have the user click the notification and launch a certain activity in the app. How can I pass this information along? </p>
<p>Currently I'm doing the following:</p>
<pre><code> String ns = Context.NOTIFICATION_SERVICE;
... | android | [4] |
4,700,368 | 4,700,369 | How to call a method in another class using the arraylist index in java? | <p>Currently I have two classes. A Classroom class and a School class. </p>
<p><code>public void addTeacherToClassRoom(Classroom myClassRoom, String TeacherName)</code></p>
<p>I would like my method addTeacherToClassRoom to use the Classroom Arraylist index number to setTeacherName</p>
<p>e.g.
int 0 = maths
int 1 ... | java | [1] |
3,689,993 | 3,689,994 | file_put_content in loop | <p>I want to replace "uggg" word inside of the index.php with different values (I have values in array) and make new files for each replaced string and save it with the name of string.
I wrote this but it only create one file for the last value in the array.</p>
<pre><code>foreach($info_array as $rp)
{
$data = file_ge... | php | [2] |
669,555 | 669,556 | How do I read one number at a time and store duplicates into an array? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/11819532/how-do-i-read-one-number-at-a-time-and-store-it-in-an-array-skipping-duplicates">How do I read one number at a time and store it in an array, skipping duplicates?</a> </p>
</blockquote>
<p>I'm trying to... | c++ | [6] |
948,028 | 948,029 | what is the difference between [[],[]] and [[]] * 2 | <pre><code>t0 = [[]] * 2
t1 = [[], []]
t0[0].append('hello')
print t0 ... | python | [7] |
3,958,315 | 3,958,316 | How to decode eval( gzinflate( base64_decode( | <p>I have this code injected in my site. How can I decode the trailing string? I need to know what happened and what is the code behind it.</p>
| php | [2] |
1,656,107 | 1,656,108 | How do I write my script for each link I want to redirect | <p>So I'm trying to redirect users from html links and element id tags, to other pages with javascript. I've figured out how to do one singular redirect but having trouble writing the code for multiple links heres what I have so far:</p>
<p>HTML:
</p>
<pre><code><head>
<script type = "text/javascrip... | javascript | [3] |
5,377,473 | 5,377,474 | getNodeById does not work | <p>I have a ext treepanel with json.</p>
<pre><code>var tree = new Ext.tree.TreePanel({
renderTo:'tree-container',
title: 'Category',
height: 300,
width: 400,
useArrows:true,
autoScroll:true,
animate:true,
enableDD:true,
containerScroll: true,
rootVisible: false,
frame: true,
root: {
text: 'Category',
draggabl... | javascript | [3] |
447,920 | 447,921 | What does $foo="file.php" mean? | <p>I have trouble understanding some code. There is a part where the code reads:</p>
<pre><code>$GA_PIXEL = "ga.php";
</code></pre>
<p>Is this like an include? In which situations would this be useful?
This code was taken from the server side implementation of google analytics. </p>
| php | [2] |
1,713,109 | 1,713,110 | While statement help (PHP) | <p>My database contains both questions and answers. The questions have an ID (intQAID) and the responses have an ID (intResponseID). The intRespondID is the same as the intQAID ID that it is responding to. Each entry into the database has its own ID, which is intPostID.</p>
<p>What's i'm trying to do is write a query ... | php | [2] |
1,281,213 | 1,281,214 | Toggling image border color on click | <p>Referencing this Fiddle ( <a href="http://jsfiddle.net/j5uGN" rel="nofollow">http://jsfiddle.net/j5uGN</a> ), how can I toggle a clicked image's border color between <code>#efefef</code> and <code>#3f96cf</code> so that it is <code>#efefef</code> when the image appears to be unchecked (aka has a class of "nocheck")?... | jquery | [5] |
1,245,096 | 1,245,097 | how to Design the exported excel in asp.net? | <p>I am exporting gridview data to excel but that excel file add the some lable text and textbox values and format also taken , pls give how to design the excel code in asp.net. I am writing like this </p>
<ul>
<li><p>All gridview data taken dataset ds
-pls give me textbox values and some label or normal text designe... | asp.net | [9] |
4,525,435 | 4,525,436 | Android How to get my MapView's Screen coord? (the visible rect) | <p>How can I get the my MapView's Screen coord to save? (visible rect left-top, and zoomlevel)
I'd like to reload that coords after a while. How can I do that?</p>
<p>Thanks, Leslie</p>
| android | [4] |
3,190,296 | 3,190,297 | Passing data without using cookies in Javascript | <p>Is there a way to pass data between pages without using cookies and a server-side language in javascript? every way I found incorporates cookies or a server-side language (PHP session vars).</p>
| javascript | [3] |
1,323,128 | 1,323,129 | getting all child nodes' values of the current node | <p>I am trying to retrieve all of the values in the div.
For example:</p>
<pre><code><div>xyz <span> abc </span> def</div>
</code></pre>
<p>This is the code</p>
<pre><code>the_page="<div>xyz <span> abc </span> def</div>"
doc = libxml2dom.parseString(the_page, html=1)
... | python | [7] |
4,338,181 | 4,338,182 | PHP developer looking for 2nd language (I want out of web development) | <p>I've been working with PHP for over a year now, and although I've learnt and worked with a lot of cool things I'm grateful for (OOP, working with a framework, learning some design patterns, theming and developing for Drupal/WP),...I've already made up my mind and I know I don't want to do web development forever. I ... | php | [2] |
697,913 | 697,914 | How to get out of Recursive function? | <p>I wrote this function to find a particular element in a table :</p>
<pre><code> function LoopThroughChildElements(parantEle,flag) {
for (var i = 0; i < parantEle.childNodes.length; i++) {
if (parantEle.childNodes[i].childNodes.length > 0) {
LoopThroughChild... | javascript | [3] |
787,221 | 787,222 | Object Creation Differences | <p>What is the Difference in between 2 statements </p>
<pre><code>int main()
{
A a = new A();
A a;
}
</code></pre>
<p>Please explain this two object creation statements.</p>
| c# | [0] |
2,794,163 | 2,794,164 | What to read to understand how Java works? | <p>Knowing how Java works in initializing objects and how it bind methods and fields to an object , abstract , final methods to an object and some other issues take a lot of time to guess myself , and i needed to ensure that every guess i made was correct by asking here and there .
I need some recommendations to read o... | java | [1] |
4,547,379 | 4,547,380 | checkpointing library for C# | <p>Am looking for checkpointing library for C#. Any ideas ?</p>
<p>see <a href="http://en.wikipedia.org/wiki/Application_checkpointing" rel="nofollow">http://en.wikipedia.org/wiki/Application_checkpointing</a></p>
| c# | [0] |
5,706,896 | 5,706,897 | how to pass value to pop up window using javascript function? | <p>I want to open new window from existing form.When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page,not able to get text box value from parent form.</p>
<p>How to call textfield input value in popup window from parent window usi... | javascript | [3] |
2,601,714 | 2,601,715 | Make an android activity method thread safe | <p>I have a method updateFoo() of an activity called both from a Handler thread every 5 seconds and from a button when user want to press it... updateFoo update the interface of my activity... to make this method thread safe I declared it "synchronized" ... Is that the right way???</p>
<p>Thanks in advance for any hel... | android | [4] |
1,719,302 | 1,719,303 | How to select closest hidden div in jquery? | <p>I'm trying to perform a keypress event the divs inside the bus_lines div.</p>
<pre><code>$('#bus_lines').keypress(function(e){
var box = $(this).closest("div:hidden").attr("id");
console.log(box);
});
</code></pre>
<p>Here's what it looks like in firebug:</p>
<p><img src="http://i.stack.imgur.com/w2t2V.p... | jquery | [5] |
621,983 | 621,984 | Bypass the .submit() handler | <p>I have an event handler for a form submittal that needs to do some work. That work includes making an ajax call to perform some very specific validations. Because of the asynchronous nature, my intent was to <code>preventDefault</code> at the top of the event handler and, if everything went well, submit the form "ma... | jquery | [5] |
1,784,261 | 1,784,262 | How to cache html file like browser but on server depending on header file | <p>Is there a special function that does this or does one needs to parse the header ?</p>
| java | [1] |
5,371,216 | 5,371,217 | android:windowBackground="@null" to improve app speed | <p>I just read a <a href="http://www.curious-creature.org/2009/03/04/speed-up-your-android-ui/" rel="nofollow">blogpost by Romain Guy</a> on how to speed up an app UI. He basically says that if your app uses opaque views you can set the background to <code>@null</code> in your <code>Activity</code>'s style using:</p>
... | android | [4] |
5,708,685 | 5,708,686 | problematic python function returns | <p>I have a function similar to the following:</p>
<pre><code>def getCost(list):
cost = 0
for item in list:
cost += item
return cost
</code></pre>
<p>and I call it as so:</p>
<pre><code>cost = getCost([1, 2, 3, 4])
</code></pre>
<p>This is GREATLY simplified but it illustrates what is going on. No matter... | python | [7] |
1,102,692 | 1,102,693 | in php i need one line if condition for time compare | <p>i have to value</p>
<pre><code> $mo=strtotime($input_array['MondayOpen']);
$mc=strtotime($input_array['MondayClose']);
</code></pre>
<p>now i need a if condition to display an error on below conditions</p>
<ol>
<li>if one of them($mo or $mc) are empty, null or blank.</li>
<li>if close time($mc) is less than open... | php | [2] |
4,169,883 | 4,169,884 | Add image from database after building jar | <p>So, I have a java program which reads a MySQL database. It reads lots of things from there and, one of them, is the path for images.</p>
<p>Is there a way I can add an image path in this database and make a built jar show it without rebuilding?</p>
| java | [1] |
30,795 | 30,796 | Limiting number of checkable radios in a page | <p>Evening all,</p>
<p>Been trying to do this for a day now but can't figure it out.</p>
<p>I've got a page filled with 5 groups of radio selects, with 3 selects in each group.</p>
<pre><code>GROUP 1 | GROUP 2 | GROUP 3 | GROUP 4 | GROUP 5
radio 1-1 | radio 1-1 | radio 3-1 | radio 4-1 | radio 5-1
radio 1-2 |... | jquery | [5] |
2,779,086 | 2,779,087 | How to embed different languages in android apps? | <p>I have made an app.(base version Gingerbread 2.3) and now I want to embed different languages to it so that the user can use the app. in different languages. But the process of embedding different languages is not clear to me(I'm a new to android programming), somebody please explain it in details with code.</p>
| android | [4] |
5,017,265 | 5,017,266 | How to maintain and clear Browser history in android 2.2 | <p>How to maintain and clear Browser history in android 2.2
I know
<code>Browser.clearSearches(getContentResolver());</code>
used for default browser but I want to create custom one.</p>
| android | [4] |
1,955,203 | 1,955,204 | How to upload a file to a folder without 777 permission? | <p>I want to upload a file to a folder which has not 777 permission. How can i do this using php?</p>
| php | [2] |
3,338,765 | 3,338,766 | Rendering HTML to PNG / JPEG | <p>I am looking for a php library or an unix shell tool to render a HTML page into a single png/jpg image.</p>
<p>Is there any?</p>
| php | [2] |
2,073,531 | 2,073,532 | Automatic Slide show? | <p>HI,</p>
<p>Want to implement automatic slideshow in my application, the images should change automatically with some time. Should look like a flash type changing screens,
Please help?</p>
| android | [4] |
3,879,570 | 3,879,571 | How can i see a combo in al window forms in c# | <p>Hy.
I want to use the combo selected item from form1 in form 2 and i don't know how in c#.</p>
<p>Please help!</p>
| c# | [0] |
5,328,226 | 5,328,227 | Execute PHP without being redirected to the action linked file? | <p>If I have a submit button that will execute a PHP script, can I execute it without actually going to that page, i.e.: process.php? I'm used to JavaScript being able to do this.</p>
<p>(For the record, I'm talking about without AJAX, without redirecting once on that other page, and no, I'm not very hopeful.)</p>
| php | [2] |
5,340,084 | 5,340,085 | Copying an array to a list | <p>Hey guys I am wondering if there's a one-line way of copying an array to a list than the following:</p>
<pre><code>String array[] = new String[]{"1", "2", "3", "4" } ;
List list = new ArrayList();
for (int i=0; i< array.length; i++){
list.add(array[i] );
}
</code></pre>
<p>Edit: thanks for both informativ... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.