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 |
|---|---|---|---|---|---|
5,834,560 | 5,834,561 | Running an Activity a certain interval before going to sleep | <p>I am currently working on customizing an Android system and would like that, a few minutes before going to sleep, a given Activity is run, with the same premises as the sleep function (e.g. if the user performs any action, its timer gets reset).</p>
<p>For instance, let's say that we set its timer to 5 minutes and ... | android | [4] |
136,847 | 136,848 | Turn a page like a Book with UIView? | <p>I am trying to switch between UIViews by making it look like you are turning a page in a book.</p>
<p>The UIViewAnimationTransitionCurlUp is pretty close if I could get it to curl toward the Left or Right. Is this possible?</p>
<p>I have tried to use the CATRansition but none of the animation types come close to a... | iphone | [8] |
1,104,703 | 1,104,704 | Iterating through Struct members | <p>Lets say we have a struct</p>
<pre><code>Struct myStruct
{
int var1;
int var2;
string var3;
.
.
}
</code></pre>
<p>Is it possible to to iterate through the structure's members by maybe using foreach? I have read some things on reflection, but I am not sure how to apply that here.</p>
<blockquote>
... | c# | [0] |
47,060 | 47,061 | How can I send a date from one site to other sites? | <p>I'm not much of a php coder, mainly use VB. But I had a problem with one of my apps. To make it more secure I would need each php parameter to go through one site. Here is an example of what I mean:</p>
<ul>
<li>Application loads</li>
<li>Sends ip and location to 2 servers (a.php & b.php)</li>
</ul>
<p>The pro... | php | [2] |
1,519,863 | 1,519,864 | User-facing numbers: implementing them efficient, "operational" and round-off safe? | <p>I have something similar to a <strong>spreadsheet column</strong> in mind. A spreadsheet column has transparent data typing: text or any kinds of numbers.</p>
<p>But no matter how the typing is implemented internally, they allow <strong>roundoff-safe</strong> operations; eg adding up a column of hundreds of numbers... | java | [1] |
806,365 | 806,366 | Round hundreds, thousands, lack in to H, T, L | <p>Is there any PHP function which convert</p>
<p>100 = 1H
1000 = 10H
10000 = 10T
100000 = 1L</p>
<p>and so on</p>
| php | [2] |
2,972,438 | 2,972,439 | C# + PostScript | <p>Is there a way to implement PostScript like page display for text files in C#??</p>
<p>ie a Print Preview for a bunch of text in a web page.
The requirement is to show a Print Preview like in Google Docs for a text displayed inside a label.</p>
| c# | [0] |
5,160,927 | 5,160,928 | Configuration Error on roleManager in web.config on subdirectory | <p>I am getting an error in my <code>web.config</code> file at <code><rolemanager enabled="false"></code> can any one tell how to resolve this</p>
<p><img src="http://i.stack.imgur.com/EzTbC.png" alt="enter image description here"></p>
| asp.net | [9] |
396,778 | 396,779 | Select class nearest clicked button | <p>I want to expand the nearest div with the class "divtoexpand" when clicking button1.</p>
<p>How can I achieve this?</p>
<p>HTML:</p>
<pre><code><div class="test">
<div class="menu">
<div class="button1"></div>
</div>
</div>
<div class="divtoexpand"></di... | jquery | [5] |
3,142,214 | 3,142,215 | how do I get a unique ID per object in Java? | <p>I made a vector set in order to avoid thrashing the GC with iterator allocations and the like
( you get a new/free each for both the set reference and the set iterator for each traversal of a HashSet's values or keys )</p>
<p>anyway supposedly the <code>Object.hashCode()</code> method is a unique id per object. (w... | java | [1] |
4,167,199 | 4,167,200 | "The type Main must implement the inherited abstract method TextWatcher.beforeTextChanged(charSequence,int,int,int) | <p>I'm trying to add a TextWatcher editbox.afterTextChanged listenering to my "Main" activity where I have already used an onFocusListener. I receive this error message on the line where I declare the Main class:</p>
<pre><code>public class Main extends Activity implements OnFocusChangeListener, TextWatcher{
</code></... | android | [4] |
1,950,305 | 1,950,306 | Copying to an empty folder? | <p>When i use the command : </p>
<pre><code>FILE.copy(source path , destination path)
</code></pre>
<p>it's perform the copy just if in the destination path
there is a file in the same name as the file i want to copy from the source path.
actualy- it's replace it.<br>
how can i perform copying that will create the... | c# | [0] |
5,136,335 | 5,136,336 | while trying to write data into text file it is showing server doesnot exist in this context | <p>Here i have code base like this:</p>
<pre><code>class Program
{
static void Main(string[] args)
{
try
{
'String str;
'str = Server.MapPath("/financila_csharp");
StreamReader reader = new StreamReader("selectedmdx.txt");
StreamWriter writer = ... | c# | [0] |
2,332,269 | 2,332,270 | emulator does not open up home screen | <p>My emulator does not open up.</p>
<p>I have seen other questions in stackoverflow similar to my question, but I didn't get any help. Also I replaced my 1GB RAM with 2GB. But its still the same. The emulator does not show the home screen. I am using P4 3.0 GHZ processor. I also tried assigning 1024 mib to sd for a a... | android | [4] |
4,327,139 | 4,327,140 | Is it a mistake to return a list if the return type is an enumerable | <p>I have often the case where I want to return an <code>Enumerable<T></code> from a method or a property. To build the returning <code>Enumerable<T></code>, I use a <code>List<T></code>-instance. After filling the list, I return the list.</p>
<p>I always thought that this is enough. But it exists th... | c# | [0] |
3,324,143 | 3,324,144 | python read next() | <p>next() in python does not work. what is an alternative to reading next line in python. here is a sample</p>
<pre><code>filne = "D:/testtube/testdkanimfilternode.txt"
f = open(filne, 'r+')
while 1:
lines = f.readlines()
if not lines:
break
for line in lines:
print line
if (line[:... | python | [7] |
2,406,041 | 2,406,042 | C# get access to caller in parent constructor | <p>I have a child and a parent class, as such:</p>
<pre><code>class B : A{
public B : base(){
// stuff
}
}
class A{
public A(){
// how can I gain access here to the class that called me,
// ie the instance of class B that's being instantiated.
}
}
</code></pre>
<p>As above, my que... | c# | [0] |
2,364,536 | 2,364,537 | php doesn't disable functions | <p>I call php from the commandline, with the -c argument to load another php.ini file, like this:</p>
<pre><code>php -c my_ini_file.ini test.php
</code></pre>
<p>So in <code>disabled_functions</code> I added the <code>echo</code> function.</p>
<p>In test.php, echo works, and I don't know why. <code>phpinfo()</code> ... | php | [2] |
1,035,433 | 1,035,434 | Why do we have the output : S1S2 in this case? | <p>In the code below, the output is : S1S2. Why do we get the that result?</p>
<pre><code> public class S1 {
public static void main(String[] args) {
new S2();
}
S1(){
System.out.print("S1");
}
}
class S2 extends S1{
S2(){
System.out.print("S2");
}
}
</code><... | java | [1] |
3,347,831 | 3,347,832 | What does x(); refer to? | <pre><code>var y = new w();
var x = y.z;
y.z= function() {
doOneThing();
x();
}
</code></pre>
<p><em>where <code>w</code> does not contain a <code>z</code> object but contains other objects (e.g, <code>a</code>, <code>b</code>, <code>c</code>)</em></p>
<p>What is <code>x();</code> possibly referring t... | javascript | [3] |
2,820,996 | 2,820,997 | compare array values for a if statement php | <p>im having a list of names james,steve,manson,charles in a array and im using the explode function to separate them.</p>
<pre><code> $pieces = explode(",", $full);
foreach ($pieces as $p ){
$piece[]=$p;
}
</code></pre>
<p>the problem that im having is that i can access the variables as</p>
<pre><code>$piece[... | php | [2] |
609,154 | 609,155 | How to separate four bytes of floats? | <p>Could anyone, please guide me as how to separate 4 bytes of folat in Visual Studio C#.Net, and retives each byte as a character.As i need to save each byte of float as hex value in a text(.hex) file.</p>
<p>Regards
Asad</p>
| c# | [0] |
3,923,594 | 3,923,595 | How to set that data whole area in gridview? | <p>Hello, I am using the dataGridview control to display some data, but my problem is I have one or two columns of data, the columns will appear in a small part in gridview instead of filling all available space. I want the data to take up all available area in the datagrid. How can I do This? thank you!</p>
| c# | [0] |
1,765,375 | 1,765,376 | updation in database related to a web service | <p>we can fetch data from xml file through a link but can we update that xml file data through link.. and make changes in database related to it???</p>
| iphone | [8] |
1,936,573 | 1,936,574 | fixing many of headers and cookies problems | <p>i am still beginner in PHP but i found that one of the good things when you want to Avoid scripting headache is to turn output buffering on, specially that the script may work well in localhost but you face some troubles when you upload it to your site</p>
<p>simply at the top of your code before any HTML code you ... | php | [2] |
842,382 | 842,383 | Augumented Reality Concept in iphone | <p>Thanks in advance.
I want to know how to implement augument reality concept in iphone. I have seen the apis like wikitude , Layers and Unifeye sdk but i am not that much clear about the concept. If any one know please suggest me which api have to follow to develop and if possible provide me some documentation.</p... | iphone | [8] |
2,004,093 | 2,004,094 | android - how to get html code of a webpage in android? | <p>i want to get the html code of a webpage in android. The webpage url will be given in a edit textbox then when the user will click the button a text view will show the code of that webpage. Please explain and give the code!</p>
<p>Any help would be appreciated!</p>
| android | [4] |
5,346,120 | 5,346,121 | php what is the best way to distinguish users | <p>I'm building a PHP voting system, and I want to limit the number of votes per user.</p>
<p>So what is the best way to distinguish users on my website?</p>
<p>I can track them by cookies or sessions but this doesn't seem efficient because if a user deletes his cookies he will pass the security test. I know there wi... | php | [2] |
3,875,130 | 3,875,131 | About android international language | <p>Now, I'm doing a project, I would like to implement this software supports multiple languages
,My idea is to change the configuration file through xml,but I don's konw how to do that. </p>
| android | [4] |
2,063,844 | 2,063,845 | How to start an activity Dialog | <p>I have one activity which i am using for displaying Dialogs and as a normal layout.<br>
So what i want to do is, sometimes i want to start activity as Theme Dialog and some times using setContentView. </p>
<p>I can't use <code><activity android:theme="@android:style/Theme.Dialog"></code> in manifest file as ... | android | [4] |
3,861,858 | 3,861,859 | Using ASIHTTPRequest and json-framework on the iPhone | <p>I'm planning on using both these libraries (or wrappers?) in my upcoming iPhone app. I see one of the top reason applications get refused, is due to using private frameworks/API calls. Is ASIHTTPRequest and json-framework considered such, or can I safely use these? </p>
| iphone | [8] |
819,519 | 819,520 | How to maintain transactions in two different databases | <p>I have to maintain transactions between two different databases. I need to rollback if there is any error occurred in Database1 then all changes in database2 should be rollback.</p>
<p>I have two connection string in my web.config file.</p>
| asp.net | [9] |
2,439,138 | 2,439,139 | How to create named lock in java? | <p><strong> We can achive it in c# as follows- </strong></p>
<pre>
void readFile(File file)
{
Mutex mutexForFile = null;
bool mutexCreateFlag; // Return true/false based on whether mutext is already exist or it is created as part of current call
mutexForFile = new Mutex(false, fi... | java | [1] |
1,219,112 | 1,219,113 | To detect service idle | <p>How to programmatically detect either my Apache webserver is idle using C#?
I already have an open source program that monitors mouse movement. But how can I monitor either the targeted server is idle/up/down?</p>
| c# | [0] |
5,454,492 | 5,454,493 | Asyc Task return Arraylist retrieve it? | <pre><code>new DownloadFilesTask().execute(myPrefs.getString("IP", ""), null, null);
</code></pre>
<p>I returns an Arraylist from the dobackground method..how to put it into my arraylist?</p>
<pre><code>Arraylist al=null;
al=new DownloadFilesTask().execute(myPrefs.getString("IP", ""), null, null);
</code></pre>
<p... | android | [4] |
4,283,489 | 4,283,490 | Reading a text file and pulling out specific columns | <p>What i need to do is read a specific text file and pull out the entire column based on a string.</p>
<p>So if my string was parkingfee I would pull out whatever column in my | delimited file that header row matched the word parkingfee</p>
| c# | [0] |
2,276,367 | 2,276,368 | How can I have my activity display in android contact menu, like i.e. facebook app? | <p>I would like to launch my android application from a contact menu which is displayed after clicking on a contact shortcut on android desktop, like on attached graphic.</p>
<p>I couldn't find any materials on this in docs, but I think it should be possible, as i.e. facebook application puts it's icon in this menu. I... | android | [4] |
3,327,027 | 3,327,028 | php input file line by line make first line header one tag | <pre><code> <?php
foreach (glob("POSTS/*.txt") as $filename)
{
$file = fopen($filename, 'r') or exit("Unable to open file!");
//Output a line of the file until the end is reached
echo date('D, M jS, Y H:i a', filemtime($filename))."<br>";
... | php | [2] |
235,616 | 235,617 | Audio file and progress bar | <p>I am trying to design an audio player. I need help regarding the progress bar. I want the status of progress bar to change as the audio progresses. I want progress bar to pause as I press Pause button and start again as I press start button.
Please help...
Thanks in advance...</p>
| iphone | [8] |
2,895,095 | 2,895,096 | Javascript function arguments has to be a string? | <p>I'm new to javascript so I'm not sure why it's behaving like this.</p>
<p>I have a clock function:</p>
<pre><code>function updateClock()
{
var currentTime = new Date();
var currentHours = currentTime.getHours();
var currentMinutes = currentTime.getMinutes();
var currentSeconds = currentTime.getSeconds();
var curr... | javascript | [3] |
1,867,339 | 1,867,340 | Passing form name and form object names to functions | <p>I'm having trouble understanding the workings of Javascript...I want to pass a form name and the submit button name so that the function can evaluate a passed value and either enable or disable the submit button. </p>
<p>It works if I explicitly use the names but I'd like it to work dynamically. Unfortunately I j... | javascript | [3] |
1,332,471 | 1,332,472 | JQuery tab and JScrollPane combination is not working properly | <p>I'm using a jQuery tab and inside the I've used a jScroll Pane, tab code is below</p>
<pre><code>$(function(){$('.tabs').each(function(){var currentTab, ul=$(this);$(this).find('a').each(function(i){
var a=$(this).bind('click',
function(){
if(currentTab){
ul.find('a.active').removeClass('... | jquery | [5] |
3,416,108 | 3,416,109 | MGTwitterEngine | <p><br>
I am using mgtwitterEngine to integrate twitter functionality.In my application i want response in XML format so i have done all the changes as metion in readme of mgtwiiter
for example i have done</p>
<pre><code>#define YAJL_AVAILABLE 0
</code></pre>
<p>in MGTwitterEngineGlobalHeader.h and </p>
<pre><code>... | iphone | [8] |
2,311,837 | 2,311,838 | Compiling php with modules vs using shared modules? | <p>Is there a difference between compiling php with the parameter:</p>
<pre><code>--with-[extension name]
</code></pre>
<p>as opposed to just compiling it as a shared module and including it that way? Is there any performance benefit? If not, why would you want to do this?</p>
| php | [2] |
4,748,448 | 4,748,449 | Doc, ppt, xls mime type | <p>I try to open <strong>doc, ppt, xls</strong> and <strong>pfg</strong> files with app installed via intent. For <strong>pdf</strong> I use <code>i.setDataAndType(Uri.fromFile(file), "application/pdf");</code>
but if I do following:</p>
<pre><code>i.setDataAndType(Uri.fromFile(file), "application/doc");
</code></pre>... | android | [4] |
4,472,646 | 4,472,647 | PHP file input, accessing the content of the file | <p>I am making a file input that takes in a txt file. How do I access the contents of the file that just got uploaded using PHP?</p>
| php | [2] |
1,921,002 | 1,921,003 | Allowing user to change default screen | <p>My app lets the user choose a default screen for each time the app starts up, and I use SharedPreferences to do it. The app prompts them to choose a screen when it's launched for the first time after being installed, and that part works. However, inside the app where it allows the user to change the default screen, ... | android | [4] |
792,243 | 792,244 | python cpu consumption | <p>I wrote a simple python program that looks to me like it should be cpu intensive:</p>
<pre><code>for a in range(0,1500):
for b in range (0,a):
for c in range(0,b):
x = a+b+c
print x
</code></pre>
<p>What happens is that it takes a really long time on solving ... | python | [7] |
761,928 | 761,929 | Java sets: why there is no T get(Object o)? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/861296/why-does-the-java-util-setv-interface-not-provide-a-getobject-o-method">Why does the java.util.Set<V> interface not provide a get(Object o) method?</a> </p>
</blockquote>
<p>Why Java sets don't have... | java | [1] |
2,904,202 | 2,904,203 | detect change to window.name | <p>I'm trying to find a good way to detect when the window's name has changed. It is easy enough to do with <code>setInterval</code> like this:</p>
<pre><code>var old_name = window.name;
var check_name = function() {
if(window.name != old_name) {
console.log("window name changed to "+window.name);
... | javascript | [3] |
3,184,450 | 3,184,451 | MyLinearLayout.getDrawingCache() gives a NullPointerException | <p>edit:</p>
<p><strong>Nevermind, got it working that way</strong></p>
<pre><code>TopRatedPage.setDrawingCacheEnabled(true);
TopRatedPage.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
TopRatedPage.layout(0, 0, TopRatedPage.getMeasuredWidth(... | android | [4] |
4,798,701 | 4,798,702 | I wonder what is happening in this Java code block | <pre><code>Objectname.methodone()
.methodtwo()
.methodthree()
.methodfour();
</code></pre>
<p>Are these statements above same as</p>
<pre><code>Objectname.methodone();
Objectname.methodtwo();
Objectname.methodthree();
Objectname.methodfour();
</code></pre>
<p>Thanks,</p>
| java | [1] |
5,282,695 | 5,282,696 | What does the following code do if there is no GPS fix..? | <p>If there is no GPS FIX (because the person is in a metal building or something)....does it just stay in the Looper..?? OR does it keep trying for a fix via requestLocationUpdates..?? </p>
<p>If I do have a good GPS FIX....my code works fine...and in onLocationChanged()...I update the current location to the data... | android | [4] |
3,751,247 | 3,751,248 | Need to rename an image after upload | <p>i have this code here which outputs me an image.. I need to change it because for the moment it gives me something like : test.jpg, what i need is for it to give me test_s.jpg</p>
<p>Using the rename function i guess!</p>
<pre><code>$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT... | php | [2] |
2,585,776 | 2,585,777 | weird select drop down box error. content spilling out on page | <p>Weird issue the country names are no longer being listed in the select dropdown box they're just spilling out all over the page. can anyone spot the coding error that is causing it?</p>
<pre><code>echo "<select name=recordcountry style='width: 136px;'>";
//echo "<option value=$country selected=selected>... | php | [2] |
5,313,820 | 5,313,821 | autoboxing and generics | <p>I am actually confused on the both the topics, can anyone explain me. </p>
<pre><code>ArrayList<Long> queryParms = new ArrayList<Long>();
</code></pre>
<ol>
<li>Is the above one called generics or autoboxing and what is unboxing?</li>
<li>Is it a best practice?</li>
<li>Some say Autoboxing is evil thin... | java | [1] |
1,857,045 | 1,857,046 | jQuery context selection | <p>If I do this</p>
<pre><code>var domElement = $("#id");
</code></pre>
<p>and the returned element is a div tag,</p>
<p>How can I then do something like </p>
<pre><code>domElement.$('div a:nth-child(3)').after(somehtml);
</code></pre>
<p>This is an example where I want to add some HTML after the third link under ... | jquery | [5] |
3,600,245 | 3,600,246 | how to handle screen orientation? | <p>In my program I set my layout orientation as vertical but if I am rotating my phone as horizontally than the screen is not appearing properly because the size of horizontal screen is less as compare to vertical so on keeping it on landscape mode the bottom part is not
showing ,so how to fix all these problems?? </p>... | android | [4] |
2,102,809 | 2,102,810 | how to add cursor type on a table row using javascript? | <pre><code> var tbl = document.getElementById(TABLE_NAME);
var nextRow = tbl.tBodies[0].rows.length;
row.setAttribute('style', "cursor: pointer;");
</code></pre>
<p>This will add double click event on table row.right..!!!But i m facing problem in internet explorer.working perfect in all other browsers.
For ad... | javascript | [3] |
5,219,059 | 5,219,060 | What is "error C2061: syntax error : identifier "? | <p>When I start compile it has an error call "error C2061: syntax error : identifier 'Player' "</p>
<p>I can't figure out what is wrong with my code. Here is my code</p>
<blockquote>
<pre><code>#include "Platform.h"
#include "Player.h"
class Collision
{
public:
Collision(void);
~Collision(void);
static bool IsC... | c++ | [6] |
500,976 | 500,977 | Is it possible to use variables as dom elements? | <p>I have a several input fields in a form each having a unique name. For example, to change the color I would do:</p>
<pre><code>testForm.username.style.background = "yellow";
</code></pre>
<p><code>username</code> being the name of the input and <code>testform</code> being the form name</p>
<p>I want to do this: r... | javascript | [3] |
135,390 | 135,391 | Javascript Image shrinking for specific users | <p>I have a javascript function for shrinking images but I dont want the shrinking function to work if an administrator logs in.</p>
<p>Here is part of the code</p>
<pre><code> function shrinkImages(){
var i=0, maxWidth;
//if (/^(?:artistnews|albums|news|exitnews|reviews)$/.test(arg(0))) maxWidth=236;
if(typeof ho... | javascript | [3] |
181,630 | 181,631 | Default constructor not getting called | <p>Why default constructor(same class) is not getting called while calling the default constructor but the default constructor of parent class is getting called - Why?</p>
<pre><code>class A{
A(){
System.out.println("A()");
}
}
class B extends A{
B(){
System.out.println("B()");
}
}
cl... | java | [1] |
5,858,377 | 5,858,378 | thorowing error on else if | <p>I have given 2 option(upload icon/select icon) in form, but when i am checking it with php its throwing error...</p>
<p><strong>html</strong></p>
<pre><code><label class="tagslabel">Upload Icon</label>
<input name="uploadicon" type="file" />
<span>or</span>
<ul class="icons clearfi... | php | [2] |
5,296,613 | 5,296,614 | assigning value to a select box | <p>Hello i have a variable in jquery with the string "tuesday" in it, i also have a selectbox with all the days of the week in it, how can i assign my variable so that the selectbox automaticly selects my variable?</p>
| jquery | [5] |
4,971,718 | 4,971,719 | Variables, different contexts in a single page | <p>Hi I'm tring to use same variable in two different contexts in a single page.</p>
<pre><code>some html
<?php
$variable1="sample"
?>
some html
<?php
$variable2=variable1
?>
some html
</code></pre>
<p>I know creating session is a solution. But I'm not sure if its suitable to create a session for ... | php | [2] |
2,384,332 | 2,384,333 | How to find UILabel's number of Lines | <p>I displayed the text in UILabel by using wrap method.
Now I want to need to find the how many number of line is there in UILabel.</p>
<p>If there is any possible way to find the UILabel's number of lines count.</p>
<p>Thanks.</p>
| iphone | [8] |
2,153,452 | 2,153,453 | Combining frame and tween animations | <p>I'm new to the android development, and working my way through android tutorials available on Android website more specifically relating to animation. Now I know how to apply tween and frame by frame animations, but I can't figure out how to combine these two animations to run simultaneously example of which could b... | android | [4] |
896,082 | 896,083 | Empty ArrayList equals null | <p>Is an empty Arraylist (with nulls as its items) be considered as null? So, essentially would the below statement be true: </p>
<pre><code>if (arrayList != null)
</code></pre>
<p>thanks</p>
| java | [1] |
4,715,154 | 4,715,155 | ios self signed certificates | <p>Is there a way to create a self signed certificate from your own ios application?</p>
| iphone | [8] |
88,574 | 88,575 | jQuery Insert/Delete a grid | <p>If the user clicks on "Add", I need to temporarily disable all the add/delete listeners until myid loses the focus.</p>
<pre><code><!DOCTYPE HTML>
<html>
<head>
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
function OnLoad() {
var myCount... | jquery | [5] |
3,853,810 | 3,853,811 | ASP.NET error page does not work remotly | <p>I have problem with ASP.NET error page within my ASP.NET MVC application. When I browser to my application and exception happen then I just get this:</p>
<blockquote>
<p>Runtime Error Description: An
application error occurred on the
server. The current custom error
settings for this application prevent
t... | asp.net | [9] |
3,093,360 | 3,093,361 | A connection attempt failed because the connected party did not properly respond after a period of time....Exception in .net remoting | <p>We have an .Net remoting application using an remoting object we are trying to connect to an windowsa services however I am getting an exception as
"A connection attempt failed because the connected party did not properly respond after a
period of time, or established connection failed because connected host has f... | c# | [0] |
1,576,389 | 1,576,390 | how to get last inserted date in php MYSQL | <p>I have two tables, and I want to get the last enterd date.</p>
<p>The first table is <code>seeker</code>:</p>
<pre><code>seeker_nic-----username
111-------------ali
222-------------umer
333-------------raza
</code></pre>
<p>The second one is <code>requestblood</code>:</p>
<pre><code>id-------seeker_nic-----requi... | php | [2] |
4,545,410 | 4,545,411 | text box disappers | <p>I have some ids to be searched. I want to display two text boxes and where i give two values.As soon as i click find only one text box appears and another one disappears. Here is my code.</p>
<pre><code>if(op.value == 2){
alert("value is 3");
document.getElementById('test_name').style.display="";
... | javascript | [3] |
1,950,113 | 1,950,114 | xmlrpclib connection gives timeout error even with setglobaltimeout(None) | <p>Most of what I've seen on here is people trying to add timeouts to their connections - I actually have the opposite problem. I'm calling socket.setglobaltimeout(None) and making a custom transport with no timeout:</p>
<pre><code>class TimeoutTransport(xmlrpclib.Transport):
timeout = None
def set_timeout(self, timeo... | python | [7] |
5,881,453 | 5,881,454 | TouchListView : OnClickListener | <p>Whenever I am setting OnClickListener for TouchListView then DropListener and DragListener are not working.<br>
I downloaded the demo of the CWAC: TouchListView.<br>
So how should I implement the OnClickListener for the TouchListView.<br>
Please Help.<br>
Thanks. </p>
| android | [4] |
605,262 | 605,263 | How to compare 2 lists of objects and remove the items that are not common? | <p>I've got 2 generic lists that do not contain the all fields of the same type</p>
<pre><code>IList<Category> and List<CategoriesRow>Categories
categoryList = IList<Category>
</code></pre>
<p>but both have common fields Name and ID.</p>
<p>I want to compare list Categories with categoryList and f... | c# | [0] |
5,320,886 | 5,320,887 | Input text behaves stranges with edittext android | <p>for some reason android doens't put the text input above the 'keyboard'. Becaus of this you can't see what your typing. i have tried various things but without result does anyway have clue?</p>
<p>this is the code:</p>
<pre><code><EditText
android:id="@+id/comment"
android:layout_width="fill_parent"
android:lay... | android | [4] |
5,820,791 | 5,820,792 | How to save RatingBar Rating? | <p>I would like to save the rating bar rating for the user. I was wondering is it possible i could save the value inside of the SQL database or is there a better way?</p>
| android | [4] |
1,376,661 | 1,376,662 | I have multiple list objects in one list, how can i get the items that exist in every child list? | <p>Starting with a basic class:</p>
<pre><code>public class Car
{
public string Name {get;set;}
}
</code></pre>
<p>I can then create a list of these cars</p>
<pre><code>List<Car> cars = new List<Car>();
</code></pre>
<p>The new step is to have a List of this List, like this:</p>
<pre><code>List<Li... | c# | [0] |
2,295,555 | 2,295,556 | Get City, State, Country from Latitude and Longitude | <p>how can i Get City, State, Country from Latitude and Longitude using javascript. </p>
| javascript | [3] |
5,819,767 | 5,819,768 | Javascript Form Validation | <p>I have a form in an asp page that has the following code to verify it when it is posted.</p>
<pre><code><%
sSubmitAction = ""
sSubmitAction = sSubmitAction & "if (this.CheckValue.value != this.OrderTotal.value){confirm('The values do not match.'); this.CheckValue.focus(); return(false);}"
sSubmitAction = sSu... | javascript | [3] |
4,189,334 | 4,189,335 | Calendar Conversion between Different TimeZones in Java | <p>I want to convert the calendar object between two time zones in java.I shall the pass the first calendar object and want the output to be the modified calendar object with the different timezone.</p>
<p>Can someone provide me a way on how to do it ?</p>
<p>This is what i have done ...</p>
<pre><code>DateFormat fo... | java | [1] |
608,752 | 608,753 | Json encode data looping in js | <p>I have data that php returned to JS but i dunno how to loop it to access the information... i have this:</p>
<pre><code> result = call_data('get_chat.php');
console.log(result);
for(var data in result){
alert(result[data]["id"]); //says undefined
}
</code></pre>
<p>Console Log show... | javascript | [3] |
263,002 | 263,003 | Apache HttpComponents and Java NIO | <p>I read something about Java NIO, so i now know there is thing called selector, where i can register channels and let selector check for some events on those channels. One of event is OP_WRITE. If selector detect OP_WRITE key on some channel, it tell me that channel is ready for writing to it. </p>
<p>I need to do o... | java | [1] |
1,258,921 | 1,258,922 | Remove from string | <p>I have the following that I need removed from string in loop. </p>
<pre><code><comment>Some comment here</comment>
</code></pre>
<p>The result is from a database so the the content inside the comment tag is different.<br>
Thanks for the help.</p>
<p>Figured it out. The following seems to do the trick... | php | [2] |
1,529,209 | 1,529,210 | Is it possible to clear MPMediaItemCollection using codes? | <p>I store all audios to a MPMediaItemCollection. Later, I hope to clear all items in the MpMediaItemCollection.
Is it possible to clear MPMediaItemCollection using codes?</p>
<p>Thanks
interdev</p>
| iphone | [8] |
3,226,330 | 3,226,331 | What is the use readObjectNoData in Serialization in java? Please explain with an example? | <p>What is the use <code>readObjectNoData</code> in Serialization in java? Please explain with an example?
The java docs are not clear.</p>
| java | [1] |
1,479,637 | 1,479,638 | Python - how to handle outcome variables that are conditional set correctly | <p>Consider the following:</p>
<pre><code> def funcA():
some process = dynamicVar
if dynamicVar == 1:
return dynamicVar
else:
print "no dynamicVar"
def main():
outcome = funcA()
</code></pre>
<p>If the 'some process' part results in a 1, the var dynamicV... | python | [7] |
1,667,277 | 1,667,278 | Python passed values from a list not adding correctly | <p>In my Code below I am having issues with 2 things. For one The math in the function on lines 40 (examPoints) and 47 (hwkPoints) is being passed a range of values in a list on line 94. It should be taking the scores and adding them up but for some reason it isn't adding the last number on each range passed. </p>
<p>... | python | [7] |
2,214,843 | 2,214,844 | Android: TabLayout not working | <p>I was trying the TabLayout Tutorial from official developers site. I didnt copy paste it as such and some minor changes and corrections to typos in the tut.</p>
<pre><code>package com.org.example;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os... | android | [4] |
5,853,220 | 5,853,221 | Should I learn C# or PHP? | <p>I pretty much have been in I.T. for about 10 years. I started with a lot of telecommunications programming and some basic help desk skills. The last job I had before I was laid off in May of last year involved monitoring and testing web applications using HP Mercury tools like BAC, and Mercury Loadrunner. I used to ... | c# | [0] |
382,001 | 382,002 | Do apple native media player play Play-ready media files | <p>I have been researching on whether we can create an app which will play Play-ready protected DRM video files in apple's native media player. But what I could collect is that apple will not allow DRM protected video files to be streamed or played through media player. However if this the case, how there exists soluti... | iphone | [8] |
5,827,265 | 5,827,266 | Using ItemType for strongly typed repeater control? | <p>Okay, so I looked up some cool stuff about strongly typed repeater controls... the only issue is that it won't work. I have a <code>List<Entry></code> that I've bound my repeater to. I just want to display the data. Normally I use <code>((Entry)(Container.DataItem))</code>, but from what I've read I can just d... | asp.net | [9] |
1,078,218 | 1,078,219 | Can you access the web server logs from an ASP.NET web application? | <p>Is there a way to access referrer information from the server log in a ASP.NET web application?</p>
<p>I would like to know if a customer comes to my web app from a specific site and change the app's behavior accordingly. I could have the webmaster of the other site include a query string, but to my knowledge this... | asp.net | [9] |
5,405,301 | 5,405,302 | Using $this when not in object context ... stack issue? | <p>I'm getting the error <strong>Using $this when not in object context</strong> when using the code below. Is this because the function is on the stack and has no access to the object?</p>
<pre><code>array_walk($pins, function (&$array) {
$array->timestamp = $this->convertTime(strtotime($array->timestamp... | php | [2] |
4,490,407 | 4,490,408 | How to Place Button In center | <p>I am new to android , How to place a button in Center horizontally. I use left margin , but it doesnt work for all resolution types. I write following code</p>
<pre><code> <ImageButton
android:id="@+id/setPasswordImgBTN"
android:src="@drawable/password"
android:layout_width="110dip"
android:... | android | [4] |
5,535,280 | 5,535,281 | How to create a splash screen with percentage progress bar? | <p>I want to show a splash screen for my application at start through a progress bar with <code>actual</code> load % of the application.</p>
<p>I have following requirement/queries -</p>
<ol>
<li>Which component I should use to show progress bar</li>
<li>How to calculate the % load if splash screen itself is a part o... | android | [4] |
6,004,904 | 6,004,905 | Need to pass two parameters to function | <p>Currently I am passing one value to a function:</p>
<pre><code>function interfaceName(x,y,z){
var z = z[0];
return "<div class='iconRow2 linkrow'><a href=\"javascript:mcrloadgraphdata('"+x+"')\">"+x+"</a></div>";
}
</code></pre>
<p>Now I need to pass the value z too, please te... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.