Unnamed: 0
int64
65
6.03M
Id
int64
66
6.03M
Title
stringlengths
10
191
input
stringlengths
23
4.18k
output
stringclasses
10 values
Tag_Number
stringclasses
10 values
4,893,244
4,893,245
Get class name from element, and select all elements with the same class
<pre><code>$('.classToClick').live("click", function () { $(this).attr('disabled', 'disabled'); $(this).val("lol"); $.post('post.php', { string: "lalala" }, function (data) { $(this).removeAttr('disabled'); }); }) </code></pre> <p>This code doesn't work, because in post we use <code...
jquery
[5]
4,301,057
4,301,058
how do i set a dynamic object in JS?
<p>I want to keep a value from a form by a js function with <code>document.getElementById("form1")</code><br> but in the form there are dynamic inputs amount1 , amount2 ect... (i dont know how many - its from database)<br> how do i reach form1.amount (p)<br> when p is the index of the amount ?<br> thanks</p>
javascript
[3]
3,418,051
3,418,052
imagebutton size
<p>I would like to know what is the best way to resize my pictures to sute the imagebutton.I like the size of the buttons i have at the moment. The pictures i have on the imagebutton is the android logo. Which looks fine cos its all the same. When i put my image in it just resizes the button. thank you.</p> <pre><code...
android
[4]
5,143,391
5,143,392
getView called when scrolling.
<p>In my Custom adapter for my <code>listview</code>, I've added an animation like this:</p> <pre><code> View lastAddedItem = parent.getChildAt(0); if(lastAddedItem != null) { Animation a = AnimationUtils.loadAnimation(c, R.anim.push); lastAddedItem.startAnimation(a); ...
android
[4]
4,828,877
4,828,878
Javascript Arrays & Loops
<p>I'm working on a mock censorship google for history class. What is supposed to happen is a user enters a term, and the script will check for whether it is a "blocked" term or a searchable term. If the term is blocked, it will lead to a different page, and if it's searchable, it will lead to the actual page. However,...
javascript
[3]
736,680
736,681
verify user login credentials using gmail (or other email service provider)
<p>How to verify users login credentials using users login credentials of user's gmail account (like in stackoverflow on clicking gmail it takes to gmail login page and gmail verifies the user)</p>
asp.net
[9]
5,975,428
5,975,429
strtolower fails with arabic characters
<p>my site is allow users to register with arabic/english names</p> <p>i am trying to convert user first and last name to lower case</p> <p>i am using this function</p> <pre><code>$first_name = strtolower ( $_POST['first_name'] ); </code></pre> <p>if i try to put arabic name i get this encode ( ø¹ù„ø§ø¡ )</p> <p>t...
php
[2]
4,747,440
4,747,441
func_get_args vs explicit arguments
<p>I have been blissfully unaware of the php function <a href="http://us3.php.net/func_get_args" rel="nofollow"><code>func_get_args()</code></a>, and now that I have discovered it I want to use it everywhere. Are there any limitations of using <code>func_get_args</code> as compared to explicit argument declaration in t...
php
[2]
2,191,680
2,191,681
How can i post a blog on LinkedIn?
<p>I want to post a blog on linkedIn so how it's possible?I have completed LogIn functionality in LinkedIn.Please Help me in Posting blog from my native application.if some one got the idea then please explain me with code.i have completed authentication process but after authentication successful it gives me one code ...
iphone
[8]
5,543,130
5,543,131
Android setting label to spinner
<p>Hi how to set a label in spinner: ie the lable should initially visible when user clicke the spinner button options visible , when user select the option the label should replace with the new item,is it possible with spinner?</p>
android
[4]
1,520,760
1,520,761
display button at the very bottom of the screen and right side
<p>How to display image button at the very bottom of the screen and right side. Right now, i am using like this, but button is not showing at the very bottom of the screen.</p> <pre><code>&lt;ImageButton android:id="@+id/ibdGoBack" android:layout_width="42dp" android:layout_height="42dp" android:layout...
android
[4]
3,540,425
3,540,426
The way to calculate Bitmap size?
<p>I'm trying to find the size of my image but not to load into memory. I use the flowing code</p> <pre><code>BitmapFactory.Options o = new BitmapFactory.Options(); o.inJustDecodeBounds = true; BitmapFactory.decodeResource(a.getResources(), R.drawable.icon, o); int width1 = o.outWidt; int height1 = o.outHeight; <...
android
[4]
2,741,712
2,741,713
How to create DTO class
<p>I want to create DTO class for User. my input to program is firstname, lastname,lastname.role,group1,group2,group3. </p> <p>so for each user role consist of group_1,group_2,group_3.....</p> <p>In database i want to store in following format demo,demo,demo,roleId, gorup_1_name group_1_Id demo,demo,demo,roleId, g...
java
[1]
3,997,850
3,997,851
Loading and Saving from a file c++ highscore function
<p>I have a game that I have created. I want to implement a function that loads and saves high scores. At first when there is no text file (in my case <code>highscore.txt</code>), once created I want to print 0 to the file. If it is there on load I want it to load the highscore from the previous playing of the game. H...
c++
[6]
1,093,022
1,093,023
Required concepts for to learn Python?
<p>Can any one tell me,which concepts are required for to learn Python? </p> <p>As of now, I'm working on Java as SE in a small company and I'm looking for job change and my friends suggested 'Python' is easy compare to all. Last week I was started to learn the Python and I've lot of doubts on this.. 1. Which topics ...
python
[7]
3,982,456
3,982,457
add a span tag inside h2 tag jquery
<p>I need to add a span tag inside every h2 tags</p> <p>my problem is im having an anchor tag inside h2 tag like this</p> <pre><code>&lt;h2&gt;&lt;a href=#"&gt;something&lt;/a&gt;&lt;/h2&gt; </code></pre> <p>I have tried this code</p> <pre><code>$('h2').wrappInner('&lt;span /&gt;'); </code></pre> <p>It is wrapping...
jquery
[5]
5,535,179
5,535,180
Jquery on default values
<p>Using jquery, how can I change the color of these elements to red if the textboxes contain defaultvalues and the 'isrequired' value is "Yes"?</p> <pre><code>&lt;input type="text" value="Name" isrequired="Yes"&gt; &lt;input type="text" value="Address" isrequired="No"&gt; &lt;input type="text" value="Age" isrequired=...
jquery
[5]
3,059,572
3,059,573
how do i configure .ashx in iis 7.5?
<p>I have an application that makes use of the default ASP.NET HTTP handler extension, .ashx.The handler fetch image from a databse and display it on a web form.This works fine from visual studio.But after hosting it in iis 7.5 the image does not show any more.</p>
asp.net
[9]
5,725,876
5,725,877
How to convert video to gif in android programmatically
<p>Is it possible to convert recorded <strong>video</strong> into <strong>GIF</strong> in Android programmatically? Can you help me with some sniped code or tell me how to do it? </p>
android
[4]
1,552,775
1,552,776
How to call stopservice() method of Service class from the calling activity class
<p>I am trying to call my service class's stopService() method from my activity. But I dont know how to access stopservice method from my activity class. I have the below code but its not working...........</p> <blockquote> <p>This is HomeScreen class:</p> </blockquote> <pre><code> public void onCreate(Bundle saved...
android
[4]
5,893,427
5,893,428
I have no idea what is wrong with this code?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8379805/im-new-to-python-i-cant-tell-if-this-will-work-or-not">I&#39;m new to python, I can&#39;t tell if this will work or not</a> </p> </blockquote> <pre><code>import time from sys import stdout varthing = 1 w...
python
[7]
4,315,298
4,315,299
method overloading in python
<p>I need to call unparameterised method <code>first</code>, but also parameterized <code>first</code>, but it is giving an error.</p> <pre><code>&gt;&gt;&gt; class A: ... def first(self): ... print 'first method' ... def first(self,f): ... print 'first met',f ... &gt;&gt;&gt; a=A() &gt...
python
[7]
4,621,910
4,621,911
Why javascript Function.caller nequal to function this
<pre><code> function T() { var t = this; function Hello() { alert(arguments.callee.caller == t);//false alert(Hello.caller == t); //false //this is a Object //but caller just a Function. //How? } Hello(); }...
javascript
[3]
4,650,747
4,650,748
android page curl Activity coustomize as in the seprate form, i want curl on button click
<p>The want a page Curl in android and i find one nice example : <a href="http://code.google.com/p/android-page-curl/" rel="nofollow">Available Here</a> is very nice example for page curl in android . </p> <p>but i need to customize it <code>like</code> if i press button then it moves to directly page 3 and also want ...
android
[4]
451,708
451,709
Trouble with Python if/else statement
<p>I'm sure the answer to this is embarrassingly easy, but I cannot for the life of me figure this one out. I have this code and if I just have the if statement it works perfectly, but when I add the else it stops working. What on earth am I doing wrong?!</p> <pre><code>import wmi import win32api c = wmi.WMI() process...
python
[7]
577,016
577,017
Module longname and shortname
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/8997274/changing-import-name-in-python">changing import name in python</a> </p> </blockquote> <p>In Pymel,</p> <p>when i access a class name Transform which is inside a module name nodetypes. I can accss the cl...
python
[7]
2,263,326
2,263,327
Check if file uploaded successfully
<p>To start off, I've set my <code>post_max_size</code> in <code>/etc/php.ini</code> to 4M just as a test. I have a check in place to check for file type and size of file. I want to only accept JPG, GIF and PNG. The file size cannot be larger than 4M. It seems that if the file size is larger than what's set in <code>po...
php
[2]
3,672,925
3,672,926
Javascript - Regex to remove an array of prefixes
<p>I need to remove a prefix from a string. Given an array of known prefixes, I do not know which prefix will exist in a string. One and only one prefix will exist.</p> <pre><code> function CleanupSupportedItems(data) { var prefixes = new Array("TrialLeads", "IPG"); for (var i = 0; i &lt; prefixes...
javascript
[3]
2,036,263
2,036,264
Copy constructor for a doubly linked list
<p>I am having problems making a copy constructor. Consider the code below:</p> <p>In List.h</p> <pre><code>template &lt;class T&gt; struct ListNode { T value; ListNode&lt;T&gt; *next; ListNode&lt;T&gt; *prev; ListNode(T theVal) { this-&gt;value = theVal; this-&gt;next = NULL; ...
c++
[6]
2,275,910
2,275,911
(Basic jquery) pass the text of a link to a textbox
<p>this is a really basic jQuery question, but i'm not sure how to do this:</p> <pre><code>&lt;input type=text class=city /&gt; &lt;ul class="cityList"&gt; &lt;li&gt;&lt;a href="#"&gt;Test 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Test 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Test 3&lt;/...
jquery
[5]
4,106,721
4,106,722
Write input to binaryfile and read it back as int (getting back decimal values)
<p>When writing to a binary file like this:</p> <pre><code>byte[] content = {1,2,3}; FileOutputStream output = new FileOutputStream("data.bin"); DataOutputStream fileName = new DataOutputStream(output); fileName.writeInt(content.length); for (int i = 0; i &lt; content.length; i++) { fileName.writeInt(content[i]); S...
java
[1]
4,040,189
4,040,190
Why 'Serialization of 'SplFileInfo' is not allowed?
<p>I'm trying to store an array of <code>SplFileInfo</code> instances in a cache with <code>serialize</code> command but the command throws this exception:</p> <pre><code>Exception' with message 'Serialization of 'SplFileInfo' is not allowed </code></pre> <p>Why is it not allowed? </p> <p>Thanks! </p> <p><strong>No...
php
[2]
896,219
896,220
Non-blocking algorithm and mutual exclusion
<p>Wikipedia says that:</p> <blockquote> <p>Non-blocking algorithm ensures that threads competing for a shared resource do not have their execution indefinitely postponed by mutual exclusion.</p> </blockquote> <p>How can one ensure that this is achieved when multiple threads need to access some critical sec...
java
[1]
2,323,797
2,323,798
Check if integer is multiple of 8
<p>Hi i'm new to c++ so i'm not sure if this is a really silly question. Basically i'm using a c++ custom action project to interact with my MSI installer. I get a property that my user will have entered, it is an integer. I need to ensure that this is a multiple of 8 and i'm not sure how to go about this. Obviously if...
c++
[6]
1,309,222
1,309,223
check if multiple items inArray
<p>Is it possible to check if multiple items are contained within an array using jquery's inArray function?</p> <pre><code>if ($.inArray('foo' &amp;&amp; 'bar', array) == -1) { // Neither foo or bar in array }); </code></pre> <p>Thanks</p>
jquery
[5]
4,995,972
4,995,973
jQuery - Passing parameters to click, with custom function
<p>Sorry, this was a bad question. I couldn't work out how to delete it. Actual question and solution here:</p> <p><a href="http://stackoverflow.com/questions/6911416/jquery-toggle-div-class-on-click">jQuery - Toggle div class on click</a></p>
jquery
[5]
4,114,590
4,114,591
encode html in php and decode in javascript
<p>I have some html code I want to store in a database. I need a way to encode it in php so all the special characters don't break the db INSERT (the html can include all sorts of spec chars) and then a way to unencode that at the other end in javascript once i've passed it via JSON so that the html is rendered correct...
php
[2]
3,543,114
3,543,115
While loop in parent function JavaScript
<p>I am having trouble interpreting what this code is doing. Here it is:</p> <pre><code>function parent(e, n) { if (n === undefined) n = 1; //if n is not defined, use 1 by default while(n-- &amp;&amp; e) e = e.parentNode; if (!e || e.nodeType !== 1) return null; return e; } </code></pre> <...
javascript
[3]
1,910,091
1,910,092
How is JQuery library typically included in web page - whole or in part?
<p>I am beginner in JavaScript and I am curious about the best way libraries like JQuery are used. Do you usually include the whole library in HTML page, so ~70KB (for JQuery) has to be downloaded every time a user visits your page? Or is there some heavy browser's cashing going on?</p>
jquery
[5]
4,938,664
4,938,665
Why doesn't my scalene triangle test work correctly?
<p>Checking Scalene Triangle ( I am learning from <a href="http://www.pyschools.com" rel="nofollow">http://www.pyschools.com</a>)</p> <p>I do not know what I am wrong ,Because I could not pass this test.</p> <p>Write a function <code>isScalene(x, y, z)</code> that accepts the <code>3 sides</code> of a triangle as inp...
python
[7]
1,960,640
1,960,641
how to get raw folder uri path and save in internal memory in android?
<p>here my code.where is my errors errors.the errors is file not found exception.</p> <pre><code>Uri video = Uri.parse("android.resource://com.ring.app/raw/"+a[i]+".mp3"); file= new File(video.toString()); try { inputStream= new FileInputStream(file); fos = super.openFileOutput("output"+i+".mp3", MODE_WORLD_READABLE...
android
[4]
3,310,553
3,310,554
org.hibernate.HibernateException: Unexpected row count: 0 expected:
<p>org.hibernate.HibernateException: Unexpected row count: 0 expected:</p>
java
[1]
4,685,890
4,685,891
Android List view selection to open activity
<p>Heres my code</p> <pre><code>package com.momentum.waldo; import android.app.ListActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ListView; public class l...
android
[4]
136,553
136,554
Android RelativeLayout spacing
<p>I'm just putting the finishing touches to my Android app. Unfortunately, I dug straight into development without reading the documentation and built my layout with AbsoluteLayout and it turned out to look terrible when I loaded the app on my phone. Now I'm redoing the UI in a RelativeLayout and I want to put empty c...
android
[4]
2,443,832
2,443,833
Jquery - How to find a #tag a name and apply a class
<p>When on #page1 of a website I'd like the menu item for #page1 to be highlighted like a current page style. I've tried add a class and applying css directly with the code below, neither works.</p> <p>Can anyone tell me what I'm doing wrong? THANKS in advance.</p> <pre><code>var url = window.location.href; if (url.s...
jquery
[5]
3,076,894
3,076,895
how to get value member of combobox which is created using foreach loop
<p>How can I get a value member of combobox which is created using foreach loop? It does not show the value member.</p> <p>My code below:</p> <pre><code>DataSet dsLoadWorkHourId = new DataSet(); dsLoadWorkHourId = Workhour.LoadWorkId(); foreach (DataRow row in dsLoadWorkHourId.Tables[0].Rows) { cmbWorkHourId.Item...
c#
[0]
3,645,792
3,645,793
application not playing sound while clicking of images in android
<p>I am developing an Android Game application Bingo.I have implemented the sound part.While selecting 5 images A bingo image appears. I have also implemented tapping functionality.Now main problem is when i click on 5 images,It should play Bingo sound.. I am wondering why sound is not played on android emulator</p> <...
android
[4]
5,795,868
5,795,869
add subtitle in navigation bar
<p>I want to add subtitle in navigation bar. How can i do this? </p> <p>Here is image of what i want =></p> <p><img src="http://img189.imageshack.us/img189/6373/80160929.jpg" alt=""></p> <p>Let say this is my navigation bar . so how can add sub title which is smaller than title in size? thanks in advance </p>
iphone
[8]
96,956
96,957
c++ question, about * and ->
<p>when I have a pointer like:</p> <pre><code>MyClass * pRags = new MyClass; </code></pre> <p>So i can use</p> <pre><code>pRags-&gt;foo() </code></pre> <p>or</p> <pre><code>(*pRags).foo() </code></pre> <p>to call foo.</p> <p>Why these 2 are identical? and what is *pRags?</p> <p>Thank you</p>
c++
[6]
1,340,319
1,340,320
How to remove Fading effect from Listview?
<p>In my application I use a ListView and I need to remove the cacheColorHint at the bottom and top of the list. I tried to set the cacheColorHint to #00000000 but the have semi-transparent effect at the bottom/top. </p> <p>Do you if it is possible to remove these effect?</p> <p>Thanks</p>
android
[4]
4,713,821
4,713,822
How to create a list of directory and import images to them
<p>As you knew, a iphone app has 4 directories: Application folder, Document, Library, tmp.</p> <p>When app is installed in the first time, I want to:</p> <ol> <li>Create a list of directories in Document folder</li> <li>Import a list of images to each that directories.</li> </ol> <p>I searched and found the way to ...
iphone
[8]
3,834,223
3,834,224
Unique Visitor Counter?
<p>I have found a script that will allow me to display the number of unique visitors, but there seems to be a problem. It counts me three times before it stops. I am not good in PHP, but i tried to figure out the problem, but could not. Is there something wrong in my code? Is there another better, easier way to do this...
php
[2]
2,835,461
2,835,462
Compiling Java using command line JAVAC
<p>I'm kinda new to compiling using cmd line javac and I'm having trouble compiling this simple Base-Interface class</p> <pre><code>package com.apress.prospring2.ch03.di; /** * @author janm */ public interface Encyclopedia { Long findLong(String entry); } </code></pre> <hr> <pre><code>package com.apress.pro...
java
[1]
1,698,640
1,698,641
can anyone explain Late binding in java for me please?
<p>in late binding, I know which method or object going to use, isn't done at compile time, the choice is made during the run time.</p> <p>by how does it work in the JVM level, I want to know details in low level, and why its called late binding, not something like real-time choosing etc..... </p>
java
[1]
2,530,404
2,530,405
When call by value is used, actual parameter values are pushed into the stack. What about call by reference?
<p>When call by value is used, actual parameter values are pushed into the stack. What about call by reference? What is pushed onto the call stack?</p> <p>EDIT:</p> <p>Nice to know that java does not use call by reference, ever. How about in C++. I changed the tag to c++ from java. Sorry for the confusion.</p>
c++
[6]
4,439,635
4,439,636
How to access ASP.NET ListView header programmatically?
<p>I am having a ListView. How do I access the ListView header programmatically?</p>
c#
[0]
5,883,193
5,883,194
show TypeError in javascript
<p>I have seen this message. I can I solve it</p> <blockquote> <p>TypeError: opener.document.frm.market1 is undefined</p> </blockquote> <pre><code>opener.document.frm.market1.value = value; </code></pre> <p>where 'frm' is my form name 'market1' is my field name</p>
javascript
[3]
306,950
306,951
How to save data from a DataGridView into database? c# winforms
<p>I have this little application, and what it does is a user can add many deductions to a certain employee and save the record.</p> <p><img src="http://i.stack.imgur.com/Y2mVu.png" alt="alt text"></p> <p>What I do in my coding is I pass all the values to a <code>DataTable</code> and loop through each rows and execut...
c#
[0]
1,249,469
1,249,470
Safely truncating a string in C# that may be `null`
<p>I have the following method but it fails if the string is null. How could I make it just return a null if the string is null?</p> <pre><code>public static string Truncate(this string value, int maxChars) { return value.Length &lt;= maxChars ? value : value.Substring(0, maxChars) + " .."; }...
c#
[0]
2,590,785
2,590,786
iPhone App too large for SpringBoard to launch?
<p>I created an iPhone app that has almost 500MB of data. But the problem is SpringBoard keeps crashing when trying to run it. It runs fine without the 500MB of data so I'm guessing I am packaging the data wrong. I placed all the files under the resources in folders. Only one piece of data is called at anytime in my pr...
iphone
[8]
3,598,314
3,598,315
Function template
<p>I have a function template as this.</p> <pre><code>template&lt;class T&gt; T getFromString(const string&amp; inStream) { istringstream stream (inStream); T t; stream &gt;&gt; t; return t; } </code></pre> <p>I am not getting how to use this function template. I have tried the usual method of using ...
c++
[6]
2,846,500
2,846,501
How to make this large if-statement more readable in JavaScript
<p>I need to make the following large if-statement more readable in JavaScript.</p> <p>Any ideas?</p> <pre><code>if ( Tools.Array.contains( that.pAutocompleteAliasUsed[i], this.currentString) !== false &amp;&amp; ( this.autocomplete.list.length === 0 ) || ( this.currentString.toLowerCase() !== this.autocomplete....
javascript
[3]
2,894,825
2,894,826
Feedback that a slow php script is working?
<p>Running a PHP script that is doing a huge mysql query plus some crunching on the results. Because of this the script takes a long time to execute and may appear to be not working to the user.</p> <p>Is there a way to provide feedback to the user that the script is running? Perhaps way to print to the browser with ...
php
[2]
147,885
147,886
How to read the redirect target of an ASP.NET request
<p>For logging purposes i want to log the redirect target of the current request to a database. how can i read the readirect target of the current request. keep in mind that i do not want to log on every Response.Redirect. I want the logging to take place in a central location. this location might be Application_EndReq...
asp.net
[9]
664,763
664,764
How to post variables in ASPX?
<p>In an ASPX page, I am populating the rows of a table programatically by filling up a server-side string with contents and then putting it in the output HTML with a construct <code>&lt;tbody&gt;&lt;%=mystring%&gt;&lt;/tbody&gt;</code>.</p> <p>One of the <code>&lt;td&gt;</code> elements of the row is a button to del...
asp.net
[9]
4,037,317
4,037,318
PHP get name and value while using for
<p>I have this problem that when I use array as such</p> <pre><code>Array ( [11] =&gt; /2 [10] =&gt; /2 ) </code></pre> <p>I'm unable to get the array name or the value when I use</p> <pre><code>for($i=0; $i &lt; count($_SESSION['CHECKBOX']);$i++){ </code></pre> <p>how can I get the name? and value? separat...
php
[2]
2,560,954
2,560,955
Handling Key Press Events in C#
<p>I am developing an application in C#. Whenever someone presses keys like <kbd>Ctrl</kbd> + <kbd>C</kbd> or <kbd>Ctrl</kbd> + <kbd>1</kbd> etc, i want the application to capture them and perform some action based on the key combination that is pressed.</p> <p>What is the way of achieving that ?</p>
c#
[0]
5,640,861
5,640,862
Why does adding a String and an int act this way?
<p>When I run the following code: </p> <pre><code>public class LianXi1 { public static void main(String args[]) { int a=12; int b=23; System.out.println("case 1"+a); // System.out.println("case 2"+b); // } } </code></pre> <p>I get this result:</p> <pre><code>@ubuntu:~/mycode/t...
java
[1]
3,164,865
3,164,866
Methods A and B call method C. Now how to find out inside C who called it?
<p>I have some code in method C that will get executed based upon the who called it. </p> <pre><code>public void C() { if(A called me) { .... } if(B called me) { .... } } </code></pre> <p>One way is to use a flag variable. Set the variable before calling C and then inside C process the flag.</p> <p>Any other...
c#
[0]
1,523,197
1,523,198
Subdomain Login page
<p>I have a login page at <a href="http://accounts.xaos-ia.com/login" rel="nofollow">http://accounts.xaos-ia.com/login</a> when the user logins, I need it to register a session that can be used on xaos-ia.com at the same time, I have tried sending the session id from the main domain xaos-ia.com to accounts.xaos-ia.com/...
php
[2]
2,080,857
2,080,858
How to show options in mode vertical in a ice:selectManyCheckbox?
<p>How to show options in mode vertical in a ice:selectManyCheckbox?</p> <p>I need to show a list of options the menu in mode vertical. At this time I show horizontal. </p>
java
[1]
5,870,190
5,870,191
defining a dynamic 2 dimensional array using prototype.slice.call
<p>I try to create a dynamic 2 dimensional array using the prototype.slice.call. The array dimension varies depending on the value k inserted by the user. The code is as follows:</p> <pre><code>var A = new Array(k); if (k &gt; 1) { var args = Array.prototype.slice.call(k, 1); ...
javascript
[3]
5,642,709
5,642,710
jQuery Slider Issue !
<p>I have This script </p> <pre><code>&lt;div style="position:relative ;overflow:hidden ; height:195px;"&gt; &lt;div style="position:absolute" class="scroll"&gt; {foreach from=$announce_list item=a} &lt;div&gt; &lt;img src="imgsize.php?w=214&amp;h=100&amp;img=../uploads/announce/{$a.--------}.j...
jquery
[5]
1,339,484
1,339,485
What's the purpose of the following JS structure?
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/1643321/javascript-why-the-anonymous-function-wrapper">JavaScript: Why the anonymous function wrapper?</a> </p> </blockquote> <p>Sometimes I see a structure like this in JS programs:</p> <pre><code>(function() ...
javascript
[3]
867,567
867,568
Updating an androd app
<p>I am getting the following error when i try to install my android app on tablet</p> <pre><code>ERROR: Re-installation failed due to different application signatures. You must perform a full uninstall of the application. WARNING: This will remove the application data! Please execute 'adb uninstall com.spundhan.expen...
android
[4]
3,212,028
3,212,029
Integrating weather information in iphone
<p>Hai all, I'm new to this.can anyone tell me the steps ti integrate weather information into my iPhone App.I found some API's are there,but didn,t found steps for this.Thanks in advance.</p>
iphone
[8]
5,428,674
5,428,675
php - checking previous with dynamic variable names
<p>Looping through a dynamically-named array and comparing results to the previous positions results.</p> <pre><code>if($s&gt;1 &amp;&amp; $s&lt;=10) { if( ${"strat{$s}"}[total] &gt; ${"strat{$s-1}"}[total] ) $sl_best = $sl_mult; //if this one did better than the previous one, then ...
php
[2]
5,283,090
5,283,091
Can I import from a module based on raw_input, in Python 2.7?
<p>In Python 2.7 is it possible to take user input and use this to determine which module gets loaded?</p> <p>I tried something like:</p> <pre><code>userModule = raw_input("Which module to import? ") from userModule import * </code></pre> <p>where there is no preexisting module called userModule...</p> <p>Currently...
python
[7]
4,197,860
4,197,861
jQuery .after with effect
<p>i would like to ask, if is it possible to use .after function in correlation with some effect like fadeIn or so. </p> <p>The whole flow should work like this:</p> <ol> <li>get some AJAX content depend on user action (.click or so) </li> <li>render response html right after current element</li> </ol> <p>I already ...
jquery
[5]
5,672,359
5,672,360
How does a webserver interface with PHP
<p>I want to handle http requests via another webserver or own written server in future.</p> <p>I want to understand how to provide php with request data properly.</p> <ul> <li>in what form request data should be provided</li> <li>how data is provided to php, via stdin or somehow else</li> <li>how php handles receive...
php
[2]
4,456,508
4,456,509
Why does InetAddress.isSiteLocalAddress() in Java source code always returns false
<p>I was checking the source file of <code>java.net.InetAddress</code> Class and found that few methods always return false. For example</p> <pre><code>/** * Utility routine to check if the InetAddress is a site local address. * * @return a &lt;code&gt;boolean&lt;/code&gt; indicating if the InetAddress is * a si...
java
[1]
4,918,334
4,918,335
How to manually set an array in Java?
<p>How do you manually assign variables to an array? I have a code fragment below. I don't want to manually put shortStraight[0] = "211100", shortStraight[1] = "021110", and so on. Any help?</p> <pre><code>private String [] shortStraight; public Sample () { shorty = new String [12]; sho...
java
[1]
4,154,634
4,154,635
Python throwing errors when no errors exist
<p>I'm writing a script and Python throws an error, but after restarting my IDE (Eclipse) everything worked!?!?!</p> <p>Specifically, I was calling a class's method and got an AttributeError even the method existed and worked previously. </p> <p>Has anyone heard of this or know of a possible solution?</p>
python
[7]
299,111
299,112
How can i access to all the message ( sms ) folder in the phone ?
<p>I writing some simple application that will look for some message ( sms message ) according to some regular expretion. </p> <p>I can't access to the message folder - how can i do it ? </p>
android
[4]
1,878,602
1,878,603
How do we get notification when app is installed on android
<p>I need to get a notification once the app is intalled on android device. Based on the status that app is installed or not then i need to update something. Please help me on this.</p> <p>Thanks KIRAN</p>
android
[4]
4,847,192
4,847,193
What is the purpose of the second argument in $(first, second)
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="http://stackoverflow.com/questions/6979097/what-does-the-second-argument-to-mean">What does the second argument to $() mean?</a> </p> </blockquote> <p>There is some time that i use jQuery and from time to time I see this:</p> <pre><code>$(argume...
jquery
[5]
5,032,286
5,032,287
iphone sdk > 3.0 . Video Thumbnail?
<p>From what i have read apple doesnt expose the api to allow developers to get a thumbnail of a movie using the current sdk. </p> <p>Can any one share some code as to how they are going about this? I have heard you can access the camera picker view and find the image view just before the ui image picker is closed. Th...
iphone
[8]
2,419,943
2,419,944
Add onclick to a dynamically create li tag
<p>I want to be able to add an onclick handler to a dynamically created div.</p> <p>Here is how I create the elements:</p> <pre><code>function add_remove_roll_func(){ for (var i = 0; i&lt;3; i++){ li_dice_side_one = createElementWithClass('li',arguments[i]); add_remove_roll.appendChild(li_dice_side_one); ...
javascript
[3]
1,892,819
1,892,820
Which is the best method to encrypt the web.config file in asp.net framework 4.0 while uploading godaddy.com?
<p>I want to encrypt the web.config file in asp.net framework 4.0. I want to upload it to godaddy.com but I am getting error after uploading encrypted web.config file into it. So please help which method I should follow for encrypting the web.config file and which is the best and secure for web.config file. Please let...
asp.net
[9]
948,445
948,446
irregular displaying on a galaxy 3
<p>Hi I have a problem with the displaying of buttons. when i switch to portrait the edges are irregular... not round</p> <p>another problem is the the listview loses borders.. the toast.makeText has a bad frame.. In the emulator everthing looks perfect but on the samsung galaxy 3 its awfull</p> <p>i think its beca...
android
[4]
5,551,429
5,551,430
Grabbing only one function call from an included file
<p>What's the best way to include a file, but not execute anything except for calling a single defined function, such as register("name","id")?</p>
php
[2]
2,207,011
2,207,012
jQuery - re-use CSS value on another element
<p>I have a background colour set on a series of buttons, <code>.button1, .button2., .button3 &amp; .button4</code>. Each of these buttons has a different background colour set in CSS.</p> <p>I want to use jQuery to detect the background colour of the button when it is clicked and apply that colour to <code>.toolbar</...
jquery
[5]
2,464,446
2,464,447
java Object By Reference
<p>I forgot some java concept. </p> <pre><code>PaymentData payment = basket.getPaymentData(); PaymentData newPayment = payment; basket.unMaskCreditCardNumbers(payment); basket.maskCreditCardNumbers(payment); </code></pre> <p>Here issue is when unmask the <code>payment</code> object, <code>newPayment</code> object ...
java
[1]
1,244,146
1,244,147
How to use Zxing in portrait mode?
<p>Currently zxing library supports only on landscape mode.For my app i need to use in portrait mode</p>
android
[4]
1,623,381
1,623,382
Android: Is There a way to stream video on a app?
<p>I've seen apps like netflix that stream video. Is there a way to do this using the sdk? I could not find anything about how to stream on android.</p>
android
[4]
3,413,311
3,413,312
Access from view to object in appdelegate
<p>I would like to acces to a object in appdelegate from diferent views. I mean, in the appdelegate I have a object which I need in diferent view but I don't know how get the instance. In my app, I have only one object with information from the user and I need this data from diferents views. </p>
iphone
[8]
5,231,238
5,231,239
jQuery :first and :last selector
<pre><code>$('div#nutrition-fact-content table tr:first td:first').addClass('product-volume'); $('div#nutrition-fact-content table tr:first td:last').addClass('flavor-name'); </code></pre> <p>In the above code, the second line of jQuery applies the class. The td before it never receives the class. I also tried just tr...
jquery
[5]
1,293,844
1,293,845
print that only prints one line
<p>How would you make print only print one line each time like</p> <pre><code>for i in range(1,100) print i </code></pre> <p>but then i would want it to print one line each time so it would be: 1 and then 1 would be erased then it would print 2 and so on.</p>
python
[7]
3,120,266
3,120,267
Javascript explain this code please
<p>I see in a lot of scripts this pattern</p> <pre><code>(function(){})(); </code></pre> <p>What is it and why use it?</p> <p>Thanks in advance</p>
javascript
[3]
4,068,268
4,068,269
php max_execution_time 30 seconds, but ran a script for 2 hours
<p>I ran a script for 2 hours via the command line. The script ran on Mac OS X and queries the database for a list of job and generates a pdf and sends an e-mail over and over again. It keep going and didn't fail. The script ran from the command line. I thought it only had 30 seconds.</p>
php
[2]