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 |
|---|---|---|---|---|---|
1,992,622 | 1,992,623 | How to find character at byte offset in PHP? | <p>I'm trying to troubleshoot an issue with some (apparently) mangled serialized data in a MySQL database, after a conversion to UTF8. When I try to unserialize them, I get the usual <code>Notice: unserialize() [function.unserialize]: Error at offset 1481 of 255200 bytes [...]</code>
However, given that this is a mult... | php | [2] |
3,680,247 | 3,680,248 | Using variables as names for other variables in Java | <p>Alright, I am not completely sure that I worded the title right, but I want to use an int variable to define another int to go through a method. In other words, I want to be able to have the int/name/thingy variable go through a ++ statement, and then the next variable would go through the method. Is this possible... | java | [1] |
4,210,512 | 4,210,513 | How to get Person Id using peoplePickerNavigationController | <p>in my application i am using peoplePickerNavigationController</p>
<p>I want to get person Id </p>
<ul>
<li>(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentif... | iphone | [8] |
5,772,955 | 5,772,956 | set attribute with polyline points | <p>I know that the following code would be set out in this particular way to say set attribute of a rectangles width is it the same for a polyline or do you have to change it ? </p>
<pre><code>function newer() {
document.getElementById("rectangle").setAttribute('width',"70");
}
</code></pre>
<p>Would it by l... | javascript | [3] |
1,197,767 | 1,197,768 | Android SMS App | <p>How difficult would it be to build an android app that responds to all SMS from a certain number.</p>
<p>Given a certain regexp on those SMS responds with an answer to a certain number.</p>
<p>Example input: "HelloWorld 12345"</p>
<p>Example regexp: "([0-9]{5})"</p>
<p>Example output confif: "Purchase $2"</p>
<... | android | [4] |
5,904,471 | 5,904,472 | how to resolve function call in method overloading? | <pre><code>void add(int,int);
void add(int ,float);
void add(float,int);
unsigned int i = 10;
unsigned float j = 1.0;
add(i,f); // ambiguios call error
</code></pre>
<p>if i remove unsigned from program then it is working fine.</p>
<pre><code>int i = 10;
float j = 1.0;
add(i,f); // working
</code></pre>
<p>Why usin... | c++ | [6] |
3,295,989 | 3,295,990 | Working with ZipInputStream object, how can available() return a 1 but read return a -1? | <p>Guys here is the relevant code...</p>
<pre><code>ZipInputStream zis = new ZipInputStream(zip.getInputStream(ze));
System.out.println(zis.available());
int count = zis.read(data,0,buffer);
System.out.println(count);
</code></pre>
<p>I continually get this as output...
1
-1</p>
<p>Now its my understanding that a 1 ... | java | [1] |
982,887 | 982,888 | working with sitemap path in asp.net? | <p>can i know how to work with sitemap path in asp.net is possible examle please.</p>
| asp.net | [9] |
5,507,994 | 5,507,995 | How to transfer `\u0627` into utf-8(php) | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2934563/how-to-decode-unicode-escape-sequences-like-u00ed-to-proper-utf-8-encoded-char">How to decode Unicode escape sequences like “\u00ed” to proper UTF-8 encoded characters?</a> </p>
</blockquote>
... | php | [2] |
3,422,589 | 3,422,590 | PHP performance when printing | <p>Is there any difference between:</p>
<pre><code>echo "<p>" . $var . "</p>";
</code></pre>
<p>and</p>
<pre><code><p> <?php echo $var; ?> </p>
</code></pre>
<p>when it comes to performance?</p>
<p>Joel</p>
| php | [2] |
1,402,300 | 1,402,301 | Auto position textblock | <p>i'm currently trying to position my textblock in a way where it would automatically load below the next textblock after eg i click a button. (Its like a messenger , just that the text are set by me depending on events)</p>
<p>Other than scrollviewer to contain more textblock if it overshoot the screen, what do i ne... | c# | [0] |
4,282,858 | 4,282,859 | ASP.NET : How to indicate a file outside web directory when Relative URI is expected? | <p>It is possible to create or emulate a virtual directory using C# for load controls (ascx) from a directory outside my web application scope?</p>
<p>Im trying :</p>
<pre><code> UserControl newUserControl = (UserControl)LoadControl( @"D:\" + ascxFileName);
</code></pre>
<p>Obviously I get runtime exception as the f... | asp.net | [9] |
884,336 | 884,337 | tableHeaderView tableFooterView | <p>i want to create a table view with contacts as in native contacts app of iPhone i have an array of name and i want to show the tableHeaderView and tableFooterView like the native contacts screen of iPhone for eg a b c how can we do it in our app</p>
| iphone | [8] |
2,085,681 | 2,085,682 | Type.GetType() dynamic string return null | <p>I´m using <code>Type.GetType()</code> to create a instance.</p>
<p>This works:</p>
<pre><code> var type = Type.GetType("Test.ClassServices.HowService, Test");
</code></pre>
<p>But, this doesn´t work. It returns <code>null</code>:</p>
<pre><code> var name = "How";
var type = Type.GetType("Test.ClassServices."+na... | c# | [0] |
1,477,201 | 1,477,202 | Is there a centralised error handling process in C# | <p>Is there a way to centralize the error handling or exceptions handling without using try catch methods.</p>
<p>Thanks in advance</p>
<p>Pradeep</p>
| c# | [0] |
3,032,549 | 3,032,550 | jQuery .click event | <p>I'm new to jQuery. I'm playing with a menu that slide when the user click on the arrow.
I used:</p>
<pre><code>$(document).ready(function(){
$('.userArrow').click(function(){
$('#dropdown-1').slideToggle(300);
});//end click
});//end ready
<div id="dropdown-1" class="dropdown-menu has-tip">
<ul>
... | jquery | [5] |
4,546,030 | 4,546,031 | Internal Iterator in c# | <p>How can I implement internal iterator in c# ?</p>
| c# | [0] |
586,346 | 586,347 | why browser can not parse the following code? | <pre><code><script type='text/javascript'>
function cool()
{
var innerHtml = "<script></script>";//simply for demostration
$("body").append(innerHtml);
}
</script>
</code></pre>
<p>The above will confuse browsers and will not render correctly before the cool functi... | javascript | [3] |
2,082,327 | 2,082,328 | Create a large bit field? | <p>I want to create a large bit field in JavaScript that will effectively represent a multi-dimensional array of markers (uses indexing to jump to various dimensions in the physical "1D" structure).</p>
<p>Rather than a bunch of numbers, I'm considering how I might use a string as bits, so I can allocate a string of t... | javascript | [3] |
2,443,441 | 2,443,442 | Is there an equivilent to .closest() that searchs down the DOM tree instead of up? | <p>Is there an equivalent to <a href="http://api.jquery.com/closest/" rel="nofollow">.closest()</a> that searches down the DOM tree instead of up?</p>
| jquery | [5] |
3,015,346 | 3,015,347 | Load a data text file into a multidimentional array then copy the content into textboxes |
<p>The problem:
I have a text file which contains 14 columns and more than 3500 rows of integers. I need to read that file by the click of a button and then load the whole contents into a multi dimensional array. From this array 14 textboxes will be loaded. Then I need that content to change every 50ms. I'll use this... | c# | [0] |
212,662 | 212,663 | C++ Regarding Reference to a method | <p>I got a function at </p>
<pre><code>File2.cpp which contains the following code below
#include "File2.h"
//some codes in between
static float File2::computeData(string s,int a,int b,float c,float d)
{
float result;
//the compute code
return result;
}
</code></pre>
<p>at File2.h , i tried to declare it at my clas... | c++ | [6] |
4,523,578 | 4,523,579 | remove an overlay in map | <p>I am showing current location using a red marker and some other set of location using a blue marker. After an operation, I have to remove some of the locations indicated using blue marker. Rest should be shown in the map itself. How will I do it?</p>
| android | [4] |
2,075,019 | 2,075,020 | with open (name,"rb") as f need not close am i right? | <p>I notice that I can open a file like this:</p>
<pre><code>f=open("a.dat","rb")
</code></pre>
<p>And another method:</p>
<pre><code>with open("a.dat","rb") as f:
</code></pre>
<p>In my opinion, if I use the first one, I must call f.close() function, while the second method need not. Am I right? Or there would be ... | python | [7] |
169,818 | 169,819 | Calendar disappears after a few seconds | <p>I want to create a new calendar in the existing google account. I do this on API level 7. I know, that not until ICS the calendar is supported. But I need it on API level 7.
Following is the way I do it now. The calender creation works, but after a few seconds the calendar disappears.</p>
<pre><code>public void cre... | android | [4] |
5,910,192 | 5,910,193 | Problem with radio froup if not selected | <p>I have a group of radio button in with name <code>gender</code>. I am getting values of radios using jquery. </p>
<pre><code><label id="msg"></label>
<label><input type="radio" name="gender" value="male" />Male</label>
<label><input type="radio" name="gender" value="female... | jquery | [5] |
2,930,936 | 2,930,937 | java.lang.outofmemory exception jvm heap size insufficient | <p>I tried to read a text file which have only one line. File size is over 50Mb. When I tried to read it using the following code it gives </p>
<blockquote>
<p>java.lang.outofmemory exception jvm
heap size insufficient</p>
</blockquote>
<p>I change the java heap memory to 1GB . But still it gives the same excepti... | java | [1] |
4,003,175 | 4,003,176 | How to set variable index outside of function and execute after a function has finished | <p>2 Questions, firstly I have this code:</p>
<pre><code> function Question(container, question_list, chosenAnswer) {
this.container = container.empty();
this.question_list = question_list;
if(question_list.length == 1) {
container.append('<div class="answer">' + question_list[0] + '<... | jquery | [5] |
200,768 | 200,769 | XmlSerializer xs = new XmlSerializer (typeof(MyClass) closes debugger session in visual studio but works in intermediate window | <p>I am facing a really strange issue:</p>
<p>XmlSerializer xs = new XmlSerializer (typeof(MyClass) closes debugger session in visual studio but works in intermediate window</p>
<p>It was working before but suddenly started to behave like this...</p>
| c# | [0] |
4,280,383 | 4,280,384 | Tabs jquery without jquery UI | <p>Does anyone have any resources about creating your own tab control without using jQuery UI?</p>
| jquery | [5] |
1,173,114 | 1,173,115 | How to return object from function? | <p>I am having conceptual Javascript issues while returning Object from functions. Can someone point out what am I doing wrong here?</p>
<pre><code>var productsPartsObj = {
layers: ['toe', 'base', 'shaft'],
layer: [
{
name: 'toe',
height: 75,
width: 78,
coords: {
x: 20,
... | javascript | [3] |
1,697,385 | 1,697,386 | Do all header("Location: member.php?id=$username") have to be the first thing in a script? (PHP) | <p>I know in the Manuel it says that the header has to be the first thing in a script, but how come I see some codes where <strong>header("Location: member.php?id=$username")</strong> is in a if-statement?</p>
<p>Ex:</p>
<pre><code>//a bunch of codes above
if($result!="0"){
// authenication correct lets login
$_SES... | php | [2] |
5,721,571 | 5,721,572 | Make an independent duplication of a List<T> | <p>I make two List< Test> called <strong>listA</strong> and <strong>listB</strong>.
I save a peace of data in <strong>listA</strong>.
I copy the data from <strong>listA</strong> to <strong>listB</strong>.
I change the data in <strong>listB</strong>.
When I change the data in <strong>listB</strong> it also changes in... | c# | [0] |
1,606,637 | 1,606,638 | Need answer to the edit section of this question | <p>Need your opinion on the edited part of this <a href="http://stackoverflow.com/questions/4173203/what-do-you-think-about-the-quality-of-this-php-code">question</a> i asked on stackoverflow. Been waiting for the whole day but no one's come back to answer that.</p>
<p>Do you think it is useful if you further separta... | php | [2] |
2,100,952 | 2,100,953 | c# FindSumSubset(decimal, ArrayList<decimal>)' has some invalid arguments | <pre><code>ArrayList<decimal> FindSumSubset(decimal sum, ArrayList<decimal> list)
{
for (int i = 0; i < list.Length; i++)
{
decimal value = list[i];
if (sum - value == 0.0m)
{
return new ArrayList().Add(value);
... | c# | [0] |
3,247,659 | 3,247,660 | openFileOutput from surfaceview | <p>i have problem with </p>
<blockquote>
<p>public abstract FileOutputStream openFileOutput (String name, int mode)</p>
</blockquote>
<p>It is work when i use Activity but when
Im us surface View nothing happen , the code is below :</p>
<pre><code> public void save(Context cxt, String data,
String ... | android | [4] |
1,605,194 | 1,605,195 | DateTime funny time values | <p>I am using DateTime.Now.ToString() to show the present time in an application. It appears fine in some computers, but in other computers, the time shows funny values.
For example, it shows 2010/11/09\0؎鶡撗䄠ϗ퉌؎鵢
Any ideas how to fix it? </p>
| c# | [0] |
4,544,322 | 4,544,323 | video chatting on Android without Internet access | <p>I want to test video chatting on android phone through wireless LAN in our lab. However, most of the video chatting apps like Tango or Fringe require access to their server on the Internet. Is there a way for me to test video chatting without access to Internet server? Is setting up a SIP server a good alternative?<... | android | [4] |
4,726,723 | 4,726,724 | List directories with a specified depth in Python | <p>I'm want a function to return a list with directories with a specified path and a fixed depth and soon realized there a few alternatives. I'm using os.walk quite a lot but the code started to look ugly when counting the depth etc. </p>
<p>What is really the most "neat" implementation?</p>
| python | [7] |
1,721,262 | 1,721,263 | .ics attachment Issue in yahoo mail | <p>I am sending meeting events from my service . so i am generating .ics file in icalendar format and sending to defferent mail clients.</p>
<p>My Aim is to get the event dates enter code here be imported to the calendar automatically and should be able to send response to my service by clicking ( yes, no , maybe if... | python | [7] |
1,040,527 | 1,040,528 | how to connect sqldatasource in asp dot net with .mdf file in hosting server | <p>I am new in asp net .</p>
<p>I have created a website in asp dot net i want it to be connect through mdf file(tradingcalls.mdf) to my website .</p>
<p>I want it to connect the mdf file contain in the App_Data folder in my hosting server </p>
<p>I am using this connection string for my database to be connect </p>
... | asp.net | [9] |
101,623 | 101,624 | Live audio streaming with Android 2.x | <p>I need to play a live stream on devices with 2.x and greater versions. <a href="http://developer.android.com/guide/appendix/media-formats.html" rel="nofollow">This</a> states that it's impossible to play live streams on devices with Android 2.x.</p>
<p>What're my options here ? Especially I'm interested in streamin... | android | [4] |
2,538,085 | 2,538,086 | integer rounding with parseInt in javascript | <p>I have the following javascript code. </p>
<pre><code>if( frequencyValue <= 30)
leftVal = 1;
else if (frequencyValue > 270)
leftVal= 10;
else
leftVal = parseInt(frequencyValue/30);
</code></pre>
<p>Currently if given the value 55 (for example) it will retu... | javascript | [3] |
1,725,589 | 1,725,590 | Child UserControl missing datasource when binding through ListView | <p>I have a UserControl that takes a class object as property "DataSource." On DataBind, I apply properties of that object to controls -- TextBox, RadioButton, etc -- inside the UserControl.</p>
<p>This works great when I just set the UC on a page, bind, and go.</p>
<p>Now, I'm attempting to use this control in the <... | asp.net | [9] |
2,142,782 | 2,142,783 | c# Time Display AM PM | <p>I know we can do the following to show AM PM for a Time.</p>
<pre><code> String.Format("{0:t}", dt); // "4:05 PM"
</code></pre>
<p>What if I want to show A for AM and P for PM. Is there a format for that? </p>
| c# | [0] |
4,820,019 | 4,820,020 | Using POUND SIGN as a string in PYTHON? | <p>I want to have a string containing 4 pound signs..how can I accomplish this in Python without commenting the string out due to the pound signs?</p>
| python | [7] |
4,847,832 | 4,847,833 | Disable onclick function on image tag | <p>jQuery how can I disable a click on <code><img></code> tag</p>
<pre><code>$("#ico_cal_id").attr('disabled', 'disabled') or
$("#img_id").attr('disabled', 'disabled') is not working
</code></pre>
<p>Below is my code:</p>
<pre><code><span id="img_id"><src="ico_calendar.png" id="ico_cal_id" style="curs... | jquery | [5] |
5,021,045 | 5,021,046 | Use NumberFormat or DecimalFormat | <p>In most case, how can we justify, when shall we use</p>
<pre><code>NumberFormat.getInstance();
</code></pre>
<p>When shall we use</p>
<pre><code>new DecimalForamt(...);
</code></pre>
| java | [1] |
1,934,731 | 1,934,732 | While page loading in asp.net, stop running this script? | <p>I got the following error while runing my asp.net page
stop runing this script?
A scrip on this page is causingyour browser to run slowly.If its continues to run,your computer might become unresponsive.</p>
<p>will you plz help me </p>
| asp.net | [9] |
4,577,120 | 4,577,121 | Hide keyboard and next line feature when using using text view | <p>I'm using text view, for hiding keyboard i'm doing,</p>
<pre><code>- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
if([text isEqualToString:@"\n"]) {
[textView resignFirstResponder];
return NO;
}
return YES;
}
</code></p... | iphone | [8] |
1,298,061 | 1,298,062 | Fget in smtp function | <p>I want to read last line which is 250 from Ehlo command. Currently it reads the first line which has 250 . Here is the current code</p>
<pre><code>fputs($socket, "EHLO server1.aa.com\r\n"); // ehlo command
$res = fgets($socket, 1024); // read output
if (substr(trim($res), 0, 3) != "250") {
</code></pre>
<p>Plea... | php | [2] |
1,618,008 | 1,618,009 | Listbox values are persisting across postbacks | <p>I am having a listbox in ASP.net. I am populating the listbox values from another listbox in a page dynamically. During postbacks the values of output listbox are not persisted.
(while going to another page and come back to this page).</p>
<p>Please suggest some good answer. EnableViewstate = "true" is not working.... | asp.net | [9] |
5,768,377 | 5,768,378 | change url for website content using php | <p>I want to read the content of web page using php and preview it using iframe in HTML page,I make like this to avoid cross origin problems that avoid me to reach other websites content using javascript.</p>
<p>I want to replace each url in a website content using php, I want to replace all urls for src and href tags... | php | [2] |
1,864,520 | 1,864,521 | What is this "Log" class? | <p>I see an application have used <code>Log.info = "some info"</code>
where are these logs created by the application ? where can i see that ?</p>
| c# | [0] |
1,217,077 | 1,217,078 | Is there a python version of javascript's String.fromCharCode? | <p><code>String.fromCharCode</code> returns a string based on a list of unicode codepoint values. @see <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/fromCharCode" rel="nofollow">reference</a></p>
<p>Is there an analog in python ?</p>
| python | [7] |
2,622,475 | 2,622,476 | Clearing the Console in C++ | <p>I am trying to clear the console in C++. I know printing a number of newlines is a bad practice, as it can be slow and is not always reliable to completely clear the console window, but I have researched multiple options and have found almost no other solutions besides <code>system("cls")</code>, which is an even wo... | c++ | [6] |
1,847,148 | 1,847,149 | Android 4.0 development - onMenuItemSelected(int,Menu) | <p>I ve just upgraded my Android application from api level 13 to 14, using simulator 4.0.</p>
<p>Can anyone that is using level 14 api confirm that there is a problem with </p>
<pre><code>@Override
public boolean onMenuItemSelected(int featureId, MenuItem item)
{
switch(item.getItemId())
{
... | android | [4] |
207,287 | 207,288 | How to create the build of PHP application | <p>I have developed a web application in php. And i need to host it in the server. But before that i have convert the source code into build. How can i achieve this..</p>
| php | [2] |
302,162 | 302,163 | MFmailcomposer 's send button is not disabled...? | <p>i am using MFMailcomposer .send button is disabled when "To: " field is empty in simulator.
but in device when i run that same application , send button is not disabled...i clicked,
"the mail has sent" result has been shown..any help?</p>
| iphone | [8] |
5,023,015 | 5,023,016 | "Talk / Say" functionality in a game | <p>So I've been racking my brain trying to figure out how to implement a "talk" function in my game. I'm new to C# programming but I've been doing as much reading and experimenting as I can with the language. </p>
<p>This is what I have so far:</p>
<pre><code>Comm comm = new Comm();
string message = null;
if (InputBo... | c# | [0] |
1,009,618 | 1,009,619 | using sqlite manager in android application | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6333412/how-to-view-sql-database-in-eclipse-debug-mode-for-android">How to view SQL database in Eclipse Debug mode for android</a> </p>
</blockquote>
<p>I am developing an android application which involves data... | android | [4] |
745,347 | 745,348 | How should I store a lookup collection? | <p>I am debugging an application that uses an XML file to store data as key/value pairs.</p>
<p>Every pageload the XML file is parsed to populate a Dictionary collection with these key/value pairs. The Dictionary is then used to look up values based on their keys.</p>
<p>Is this method of loading data from an XML fil... | asp.net | [9] |
4,015,116 | 4,015,117 | How to find out if a Object isa integer or isa string or isa boolean? | <p>I have an object and I want to detect what type is, so I can call</p>
<pre><code>if (obj isa Integer)
put(key,integerval);
if (obj isa String)
put(key,stringval);
if (obj isa Boolean)
put(key,booleanval);
</code></pre>
| java | [1] |
2,394,674 | 2,394,675 | add key to associative array if key is not found | <p>Given a PHP associative array like this one:</p>
<pre><code>$a = array(
'color' => 'red',
'taste' => 'sweet',
'shape' => 'round',
'name' => 'apple'
);
</code></pre>
<p>I want to search a key and, if not found, I want to add 'myKey'=>0. Which is the best way to do such a thing?</p>
| php | [2] |
3,282,963 | 3,282,964 | remove unwanted space in between a string | <p>I wanna know how to remove unwanted space in between a string. For example: </p>
<pre><code>>>> a = "Hello world"
</code></pre>
<p>and i want to print it removing the extra middle spaces.</p>
<p>Hello world</p>
| python | [7] |
1,241,751 | 1,241,752 | BufferedReader reads only 61 bytes | <p>i wanna read a 90kb file (which apparently equals approximately 90,000 bytes) using Java's BufferedReader, but it stops after only 61 bytes. The file's alright, I've checked it using an HexEditor.</p>
<pre><code>private ArrayList<byte[]> readAsBytes(String dir, String filename, int lineCount) {
/** Read f... | java | [1] |
1,466,399 | 1,466,400 | How can I simplify this AddClass/RemoveClass code? | <p>I made this very simple code for button clicks.
Clicking one button changes it's css class to <em>active</em>, and removes the <em>active</em> class for all other buttons. This is how I made it:</p>
<pre><code>jQuery(document).delegate("#today_button","click",function(){
jQuery("#today_button").addClass("act... | jquery | [5] |
601,480 | 601,481 | get_html_translation_table expects at most 2 parameters, 3 given | <p>The server is running with <strong>PHP 5.2.17</strong>, and I am trying to run get_html_translation_table() with three arguments. Here is how I invoke the function: </p>
<pre><code>$text = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, "UTF-8");
</code></pre>
<p>I am getting a warning message saying </p>
<... | php | [2] |
4,062,255 | 4,062,256 | Java class, what is the best pratice for setting values in class constructor? | <p>For example I have a class</p>
<p>class1:</p>
<pre><code>public class car{
private Color carColor;
public car(Color carColor)
{
this.carColor = carColor;
}
public void setColor(Color carColor)
{
this.carColor = carColor;
}
}
</code></pre>
<p>class2:</p>
<pre><code>public class car{
private Color car... | java | [1] |
4,428,578 | 4,428,579 | How to get output parameter from Python Sybase module | <p>I am stuck with this problem for a while and need your comments.</p>
<p>I have to deal with vendor's procedure call with 2 output parameters (int and varchar). I pick the Python's Sybase module, everything is ok until I found that I can't find the document that describe how to call stored procedure with output para... | python | [7] |
3,389,952 | 3,389,953 | How to have a "no image found" icon if the image used in the function returns an error? | <p>In my application I use timthumb for resizing images. Those images are not controlled by me because I get them from RSS feeds. Sometimes the image are not shown in my page. When I examine the entire link with the timthumb I get this</p>
<blockquote>
<p>Warning: imagecreatefromjpeg(http://www.domain.com/image.jpg)... | php | [2] |
5,348,573 | 5,348,574 | LocationManager exception Provider "gps" unknown | <p>This is related to my own question here:
<a href="http://stackoverflow.com/questions/5543822/locationmanager-exception">LocationManager exception</a></p>
<p>Now that I have no permission issue - same line of code gives me exception:</p>
<pre><code>Caused by: java.lang.IllegalArgumentException: Provider "gps" unkno... | android | [4] |
3,142,294 | 3,142,295 | How to kill a running php script in windows | <p>I have a php script running in an infinite loop that I need killed without restarting apache.</p>
<p>I have access to the server via remote desktop. Please advise.</p>
| php | [2] |
2,646,970 | 2,646,971 | How to interchange multi dimension array keys | <p>i have an array format like (mysql result array)</p>
<pre><code>$new_array=Array ( [0] => Array ( [quantity] => 5 ) [1] => Array ( [quantity] => 25 ) [2] => Array ( [quantity] => 20 ) )
</code></pre>
<p>I have to convert this array into the following format</p>
<pre><code>$new_array['quantity'][... | php | [2] |
4,611,140 | 4,611,141 | Autocomplete text view with customize suggestion view in android? | <p>I want to show autocomplete Textview suggestion <strong>on top of the android default keyboard</strong> in horizontal scroll bar instead default drop down list to autocomplete Textview..
(i have tried using custom view but it doesn't work as per my requirement) </p>
<p>Thanks in Adv!!</p>
| android | [4] |
2,151,863 | 2,151,864 | Getting exit code from a batch file | <p>In C#, how can I capture the exit code of batch file I launch via Process.Start()?</p>
<p>Also, is there any limitation of running a batch file via Windows Service (The service being the invoker)? </p>
<p>Thanks</p>
| c# | [0] |
3,325,461 | 3,325,462 | PHP: Handling return of function without storing? | <p>Let's say that I have a library in my application that returns an array. Is it possible to access the array without, in beforehand, storing it as an variable in my scope?</p>
<p>The below shown code clearly doesnt work, but is something similar to this possible?</p>
<p>Example of what I would like to do:</p>
<pre... | php | [2] |
2,453,510 | 2,453,511 | Append text to textarea with javascript | <p>How can I append a list of text into a textarea?</p>
<pre><code><textarea id="alltext"></textarea>
<ol>
<li onclick="addText(Hello')">Hello</li>
<li onclick="addText(World')">World</li>
<li onclick="addText(Earthlings')">Earthlings</li>
</ol>
... | javascript | [3] |
1,075,362 | 1,075,363 | Code for putting and removing breakpoint after some time in asp.net? | <p>Code for putting and removing breakpoint after some time in asp.net?</p>
| asp.net | [9] |
2,049,276 | 2,049,277 | Issues with the App_code folder | <p>I created an application which is using classes from App_Code.</p>
<p>I have now added this application as a subfolder to an existing application. So there are App_Code now one in the root and one in the sub-folder. </p>
<p>I want to find out how do I make my app in the subfolder be able to recognize files kept in... | asp.net | [9] |
2,701,193 | 2,701,194 | Replacing text in html with a linkbutton | <p>I have a variable that contains some html. I currently just put that in a literal on a page, and it works fine.</p>
<p>Now lets say every time the word "FISH" occurs, I want to replace the word with a linkbutton that does something.</p>
<p>I can find all occurrences of the word FISH with regex and replace it with ... | asp.net | [9] |
6,008,198 | 6,008,199 | Cannot sum more than 9 input javascript | <p>i have a small issue in my script and i cannot get the sum for more than 9 input's.</p>
<p>Up to 9 is working good, but if you add a new input field this stop working.</p>
<p>Div whit input and buttons:</p>
<pre><code><div id="valuesContainer">
<input type="text" id="value01" />
<input type="text" ... | javascript | [3] |
3,746,303 | 3,746,304 | onItemClick Two Listviews problem | <p>I have two listviews in the same activity. They both trigger this:</p>
<pre><code>public void onItemClick(AdapterView adapter, View v, int position, long arg3)
</code></pre>
<p>How do I check which list was selected from this event handler?
Also, if <code>adapter == listA</code> then I need the checkbox in that l... | android | [4] |
1,399,467 | 1,399,468 | How to create log file in asp.net web application? | <p>How to create log file in asp.net web application which contains the actions & activities of the applications so that in future i will recover application with the help of that file?</p>
| asp.net | [9] |
2,649,427 | 2,649,428 | Casting Boolean To Int | <p>I am going through a tutorial where so far it gives you the code below:</p>
<pre><code>boolean p, q;
System.out.println("P\tQ\tAND\tOR\tXOR\tNOT");
p = true; q = true;
System.out.print(p + "\t" + q + "\t");
System.out.print((p&q) + "\t" + (p|q) + "\t");
System.out.println((p^q) + "\t" + (!... | java | [1] |
54,167 | 54,168 | preg_match() or stripos()? | <p>For doing insensitive case search in strings which function is faster preg_match() or stripos()?</p>
<pre><code><?php
$string = "This is test string";
$result = preg_match('/test/i', $string);
OR
$result = stripos($string, 'test') !== false;
?>
</code></pre>
| php | [2] |
678,807 | 678,808 | How to filter a list based on another list's values | <p>For example, I have two lists of the same length:</p>
<pre><code>a = [[1,2],[2,2],[3,3],[4,2],[5,6]]
b = [1,2,2,3,1]
</code></pre>
<p>I want to have a function such that </p>
<pre><code>func(a,b,1) = [[1,2],[5,6]]
func(a,b,2) = [[2,2],[3,3]]
func(b,b,2) = [2,2]
</code></pre>
<p>What the function does is return a... | python | [7] |
4,371,172 | 4,371,173 | Why did the Android Parcel Project choose the word Parcel? | <p>I'm just wondering how the word parcel was chosen for the Android Parcel Project. I first saw the project in the Advanced Android Coders Cookbook and went onto google searching for Android Parcels, the top results shows the main problem with the name: Android has a class called Parcel.</p>
<p>I was just wondering w... | android | [4] |
2,347,266 | 2,347,267 | how to calculate(sum up) an a row value of an datatable | <p>i have an datatable like this.
i am getting this data from an excel sheet and converted to datatable</p>
<pre><code>id workedhours tfshours
1 3 2
2 5 5
3 .7 3
4 2 3.2
5 4.3 6.8
</code></pre>
<p>now i need the sum of the column workedhours and ... | c# | [0] |
2,256,296 | 2,256,297 | Using superclass to initialise a subclass object java | <pre><code>SuperClass object = new SubClass();
</code></pre>
<p>Why use a superclass to instantiate a subclass object like above? Because the only way i learnt to instantiate an object is to: </p>
<pre><code>SubClass object = new SubClass();
</code></pre>
<p>I'm learning java.</p>
| java | [1] |
2,591,262 | 2,591,263 | To Read a double value out of a longer C# string | <p>I have a string that goes like "-23.45m / abc = 53.02m/s" that I want to take apart. You'd think there was an easy way in .net to get the -23.45 (like using a built-in float interpreter) and tell me that the rest of the string starts at 'm'. </p>
<p>In C++ I would use </p>
<pre><code>double num;
wchar_t* input_t... | c# | [0] |
2,259,551 | 2,259,552 | can we write own language constructs in C#? | <p>i'd like to know if it is possible to implement own language constructs (like lock or foreach) in C#?</p>
<p>The idea behind is that i want to mark start and end of a block of operations.
instead of writing</p>
<pre><code>startblock("blockname");
blabla();
andsoon();
endblock();
</code></pre>
<p>i'd like to w... | c# | [0] |
989,365 | 989,366 | How to handle innerHTML using javascript | <p>I need to create a table within the page when the submit button is clicked.. so i use onclick() to call the function javascript.. its working fine for one submit button.. if i had more than one submit button its not working fine..</p>
<p>here is the coding javascript coding.</p>
<pre><code>function openemailbox(fo... | javascript | [3] |
954,165 | 954,166 | Identifying searchable/non searchable file in java | <p>In my application, i will receive a file. I have to check whether the file has searchable text(text content) or non searchable text(images) and display.</p>
<p>I cannot go with the file extension, because in PDF files, we can have non searchable types also.</p>
<p>I need java code for this. Can anyone help me plea... | java | [1] |
3,372,498 | 3,372,499 | PHP - Name of first day in actual month | <p>How can i get name (~Monday) of the first day in the current month? or just value (monaday=0, tuesday=1 ...)
in PHP?</p>
<p>I have $date = getdate(), i try make a calendar, but i need to know first day
offset in calendar.</p>
<p>EDIT:
fixed question: I'm asking of 1-st day only.</p>
| php | [2] |
4,621,384 | 4,621,385 | how to get the number of minutes from a specific time up to the current time using java.util.Date? | <p>so i have this homework and this is the given problem:</p>
<p>Per-minute charging offers at 75 cents a minute from 5:01 am to 5:00 pm, and 90 cents a minute from 5:01 pm to 5:00 am.</p>
<p>this is my code: </p>
<pre><code>double charge = 0;
Date date = new Date();
if(date.getHours() >= 5 && date.getH... | java | [1] |
3,238,133 | 3,238,134 | navigate to C:Drive via php error | <p>I'm trying to navigate to C drive via PHP on my local drive, this one line of code works fine:</p>
<pre><code><a href='<?php echo'file:///C:\Users\Emily\Documents\'?>' TARGET="_blank" >Clcik Me</a>
</code></pre>
<p>This works fine from my local drive but as soon as this is on my sever it throws a... | php | [2] |
1,303,063 | 1,303,064 | Why it works about python type conversion? | <p>I known if I want to do type conversion in Python, I should use the built-in functions.</p>
<p>for example:</p>
<pre><code>number = int('100')
</code></pre>
<p>but I am using c# style to do conversion like</p>
<pre><code>number = (int)('100')
</code></pre>
<p>it also work, could you tell me why that is working.... | python | [7] |
5,846,019 | 5,846,020 | Need some good sources to learn java | <p>I am a beginner at java and i am learning java by thenewboston's java for beginners series.
<a href="http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28&feature=plcp" rel="nofollow">http://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28&feature=plcp</a></p>
<p>it is very interesting and easy to underst... | java | [1] |
2,451,321 | 2,451,322 | Find information in a table | <p>I have a table with a thead and couple of tr in a tbody</p>
<p>When I click on a cell in a tr, i want to traverse to the text of the cell that is before it</p>
<p>For eg if i clicked on Cell 3 of Row 3, i want to find the text of Cell2 of Row 3</p>
<p>How i do it?</p>
<p>Edit: I cancelled my edit. I will open a ... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.