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,741,801 | 4,741,802 | Best practice for sending data updates to iPhone app? | <p>I'm currently in the middle of developing an iPhone app with a big reference database (using Core Data backed with a pre-populated sqlite database). Once the app is live and deployed to a client's iPhone, I need the facility to update/insert a small amount of data. What are best practices / methods for doing this?</... | iphone | [8] |
847,753 | 847,754 | Read database GeoIPASNum.dat with PHP | <p>How can I got informations from GeoIPASNum.dat with PHP? There is no buildin function probably.</p>
| php | [2] |
3,674,258 | 3,674,259 | Socket communication not happening between components after JRE upgrade | <p>I have two components: one is a gateway and the other is the Application which has been deployed in the Jboss-5.0 GA Application Server. Our old code base was developed in jdk 1.4 and after migrating to jdk 1.6 there are some issues with socket timeout.</p>
<p>Initially we have a service which initiates timeout. Th... | java | [1] |
5,980,579 | 5,980,580 | Android: app incompatible with Huawei? | <p>I have two apps listed on the marketplace. One of them is a free demo application, and the second is a second key application that unlocks the full version of the first application. I received a report from a user that the demo installs on their Huawei, but the market lists they application as "incompatible". I h... | android | [4] |
1,169,050 | 1,169,051 | Fading Background Images | <p>I'm using a simple script to change the background image of my website every X seconds. What I'd like to do is incorporate some sort of fade animation or a transition from one image to the next. What is the best way to achieve this?</p>
<p>I'm not very good with Javascript so PLEASE, bear with me. :)</p>
<pre><cod... | javascript | [3] |
5,105,291 | 5,105,292 | php regex too strict | <p>Just wondering why this is too strict, I can send very simplified emails to say tim@yahoo.com or two@google.com</p>
<p>but if I make the email any longer (sacagawea@gmail.com) it does not get sent.</p>
<p>Instead it echos back my error message:Invalid Email Address Supplied</p>
<pre><code> // Create a function... | php | [2] |
415,365 | 415,366 | Validate dynamically added form | <p>I am working on a form for people to fill in and wanted to have a checkbox when if checked more forms appeared, this was not an issue but when the forms appear I want to validate them which requires a class="" to be set how can I do this? </p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/... | jquery | [5] |
1,484,887 | 1,484,888 | Building a dict using zip | <p>I have a list of names:</p>
<pre><code>['john smith', 'sally jones', 'bob jones']
</code></pre>
<p>I want to build a dict in the following format:</p>
<pre><code>{'john smith': [], 'sally jones': [], 'bob jones': []}
</code></pre>
<p>This is what happens when I try using zip </p>
<pre><code>zip((all_crew_names,... | python | [7] |
5,529,384 | 5,529,385 | Adding multiple ImageViews to a layout | <p>I need to load several ImageViews into a layout. The ImageViews are used to show a rating using 'star' icons. The number of stars (i.e. the rating is determined during loading by reading a configuration file.</p>
<p>The ImageViews are sitting inside a RelativeLayout layout.</p>
<p>Currently I am using something l... | android | [4] |
5,834,897 | 5,834,898 | How do I implement proper Exception handling in Java? | <p>I am currently writing a simple program in Java in response to a question. The question says :</p>
<blockquote>
<p>You are fixing a bug where documents (represented as a String) are failing to be converted to proper xml. This problem can occur because either:<br>
A. Certain characters fail in the xml, or<br>
... | java | [1] |
3,414,817 | 3,414,818 | How to search for a specific string in an array and remove it in java | <p>I have an array filled with a hundred strings. I would like to be able to use an input given by the user, pass it through a method parameter, search for that exact string, and remove it. How would I go about doing this? Furthermore, how would I do the same thing but add it instead? </p>
| java | [1] |
1,925,326 | 1,925,327 | Does Google restrict distributing Android apps to BETA customers outside of the marketplace | <p>We are developing iOS and Adroid apps for a service we are building. Apple has specific rules and limitations associated with distributing apps outside of the App store for use in BETA testing. I know how to distribute the apk file to our BETA customers outside of the Google marketplace, however are there any lega... | android | [4] |
5,690,188 | 5,690,189 | Server and Client Dual Communication IPhone | <p>After coding a simple multi player game to be played on the same device I'm interested in writing a server for the game so it could be played across several devices.</p>
<p>Which technologies do you use to write a server, which allows dual communications between the client and server?</p>
| iphone | [8] |
3,917,976 | 3,917,977 | Why wouldn't a global object's property accept a new assignment? | <p>I'm trying to assign a new value to the 'notes' property of the 'attendee' object in this global session object... whenever I try the assignment though, the value doesn't keep.</p>
<p>From the console in webkit:</p>
<pre><code>> session['attendee']['notes']
null
> session['attendee']['notes'] = "test"
"test"... | javascript | [3] |
5,429,158 | 5,429,159 | Can I set the size attribute of StructLayout at runtime? | <p>Im trying to use SendInput to simulate keyboard presses in my app and want to support both 32-bit and 64-bit.</p>
<p>I've determined that for this to work, I need to have 2 different INPUT structs as such</p>
<pre><code> [StructLayout(LayoutKind.Sequential)]
public struct KEYBDINPUT
{
public... | c# | [0] |
564,196 | 564,197 | REST uri calls using get | <p>Stupid questions I guess but how do I do a REST uri call. Do I use jquery ajax() or just plain $get()
All the REST uri does is return an image.</p>
| jquery | [5] |
5,664,394 | 5,664,395 | Open a URL in Android's web browser from application | <p>How can I open a url in the android web browser from my application on clicking a button.</p>
<p>I tried this :</p>
<pre><code>Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strURL));
startActivity(myIntent);
</code></pre>
<p>but I am getting exception:</p>
<p>but I got an Exception :</p>
<pre><cod... | android | [4] |
616,283 | 616,284 | how do I button clicked before outputting the results? | <p>So there're 2 radio items and I want the user to choose which one to execute, after the user chooses one of them, he/she will click on the button "Draw!" and will output the result from one of the function of the radio item they chose. But I can't figure out how to call either function and wait until the user clicks... | javascript | [3] |
2,584,626 | 2,584,627 | Get the decimal point | <p>How to get decimal point of a number? For example:<br>
If I have 1.5 how to get the 5 number?</p>
| c++ | [6] |
728,797 | 728,798 | jQuery getting new objects | <p>When using jQuery functions like <code>replaceWith</code>, the function return-value is (as clearly documented), the <em>original</em> jQuery object. However, I commonly want to chain with the <em>replacement</em> jQuery object. How do I do this?</p>
<p>For example:</p>
<pre><code>$("#original").replaceWith("<s... | jquery | [5] |
2,265,184 | 2,265,185 | C#: How do you control the current item index that displays in a ComboBox? | <p>I have set a list of items in a combobox, but when I debug the application, I have to select an item from the drop down to display an item by default. Is there a property? that you can set so that the combobox itemindex will always begin at 0 meaning the first item in the list at startup of the application?</p>
| c# | [0] |
4,147,002 | 4,147,003 | Best practice for class field having different values in subclasses | <p>I have some abstract class, in one of its method I use a string field which is supposed to be specific to the subclasses. I wonder what is the bect practice to implemnet this? via field and setting the field value in a consructors of the subclasses? via a static field and changing the value in every subclass?</p>
<... | java | [1] |
3,064,485 | 3,064,486 | Get Textbox text details from Java/Oracle Forms applet using Windows application | <p>I have one Java/Oracle Forms applet application. It has many Textboxes, DataGrids and Other controls. I am not using all these data information on daily basis.</p>
<p>So what I want is , Copy only required information from Java application(copy textbox details,data-grid detail) to another notepad using Windows app... | c# | [0] |
1,967,840 | 1,967,841 | Read/Write at the same time | <p>What I am doing is opening my file using fstream at the start of the main and closing it at the end. In between I am writing "Hello World" and after that reading what I wrote but the result is always weired charecters and not the "Hello World". I did do a cast to char but that didnt help. Any way I can do this?</p>
| c++ | [6] |
49,897 | 49,898 | Uploading Files with different formats to a URL using Java client | <p>I need to write some code in Java to upload a file(.tz format) to a URL(prqs@vks.com) by using HTTP PUT/POST and SMTP.I have no idea how to do this and my application is not a web based application i have to write a pure java client to do this. I searched the net but could not find a suitable tutorial on how to do t... | java | [1] |
5,652,625 | 5,652,626 | Android content provider | <p>i want to get the website name from contact list in android application.i have already get contact photo,contact name, contact address.. but i have problem in getting contact website name.please give me whole query for to getting website name.
Thank you. </p>
| android | [4] |
3,518,393 | 3,518,394 | How to .remove() by count | <p>Here is the HTML:</p>
<pre><code><div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</code></pre>
<p>Here is the Jquery:</p>
<pre><code> if ( $( ".line" ).length > 2 ) {
//remove all other div.lines but keep the... | jquery | [5] |
791,375 | 791,376 | How does one disable the success message once the requied field message is shown? | <p>I have a form with two text boxes. Once I enter the data and click the save button, I get a message in label: indicating that it saved successfully.</p>
<p>Then I show the form again, but when I click on the save button, I get a message telling me that it cannot be blank "as textbox value is empty this time" fro... | asp.net | [9] |
2,948,779 | 2,948,780 | do searching in a very big ARPA file in a very short time in java | <p>I have an ARPA file which is almost 1 GB. I have to do searching in it in less than 1 minute. I have searched a lot, but I have not found the suitable answer yet. I think I do not have to read the whole file. I just have to jump to a specific line in the file and read the whole line. The lines of the ARPA file do no... | java | [1] |
2,303,272 | 2,303,273 | Display database fields as checkboxes | <p>I'm trying to display all my database fields like radio buttons. For example I have this database fields :</p>
<pre><code>hostess_id
hostess_name_en
hostess_surname_en
... etc ...
</code></pre>
<p>I want to display them as radio buttons, in order to select them, then display data information only for the selected ... | php | [2] |
4,141,724 | 4,141,725 | .(dot) access to static method | <p>Following is a popular code:</p>
<pre><code>class A
{
public:
static const string TYPE = "AEvent";
const string& getType() { return TYPE; }
};
</code></pre>
<p>Above code could be use like this:</p>
<pre><code>if (aInstance.getType() == A::TYPE)
{
...
}
</code></pre>
<p>It's fine. But it's not i... | c++ | [6] |
26,319 | 26,320 | PHP call function from parent in child best practice | <p>I have a trick question regarding PHP calling a function from parent in child class.
We have 3 scenarios, and I want pros and cons.</p>
<pre><code><?php
class test{
private $var ;
public function __construct(){
$this->var = 'Hello world';
}
public function output(){
echo $var.'<br>... | php | [2] |
3,156,424 | 3,156,425 | Insert and Edit Template show in Devexpress in aspxGridview | <p>In Insert Mode I want to show one kind of Template and Edit Mode I want to show another Kind of Template in Devexpress Control in C#.NET</p>
| c# | [0] |
3,474,326 | 3,474,327 | Javascript function variables issue | <p>What is the problem with my script? When I execute it, the alert (line 2) gives me "100,200,300undefinedundefined", so is seems like 100,200,300 is interpreted as h1 when I would like it to be h1, h2 and h3 (with the commas).</p>
<pre><code>function myanimation(h1,h2,h3) {
alert(h1 + h2 + h3);
$("#... | jquery | [5] |
5,151,595 | 5,151,596 | String is not equal to itself | <p>But why?</p>
<pre><code>if ('i' == 'і')
echo 'good';
else
echo 'bad';
</code></pre>
<p>echos:</p>
<pre><code>>> bad
</code></pre>
<p>You should copy this snippet. If you write it by hand, it will work.<br>
It drives me crazy. </p>
| php | [2] |
5,936,006 | 5,936,007 | Get LastWriteTime of a decimal value | <p>What is the date of a value lastwritetime like this 347681594.3 ? This doesn't look like a epoche right ? </p>
| c# | [0] |
2,780,697 | 2,780,698 | Find pairs of numbers in a list that add up to 10 | <p>Given a list of numbers, I would like to find all pairs of numbers that add up to 10.</p>
<p>How can I write a function to do this in Python?</p>
| python | [7] |
1,341,197 | 1,341,198 | Android: how to catch the event when the soft keyboard pops up? | <p>When the user presses editText, the soft keyboard pops up. I want to hide a view or 2 while it is on. How to do that?</p>
| android | [4] |
339,194 | 339,195 | UIImageWriteToSavedPhotosAlbum saves to wrong size and quality | <p>I'm trying to take a screen shot of my app's current view and save it to photo album (to then be emailed or MMS'ed). </p>
<pre><code>UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext... | iphone | [8] |
3,633,260 | 3,633,261 | Searching for strings in files along with using os.walk | <p>I have written a Python Script to find out lines containing a particular script from each of the files within a directory. It works fine if i make this script run in the directory having those files. </p>
<pre><code>#!/usr/bin/env python
import os
def searchthis(location, searchterm):
for fname in os.listdir(... | python | [7] |
2,998,774 | 2,998,775 | Android: Why does adding minSdkVersion to manifest cause bitmaps to be cropped/masked | <p>I throw myself at your mercy, I have been pulling my hair out with this...</p>
<p>I have developed a simple android game: a thread writes bitmaps onto a Canvas provided by a SurfaceView. In the manifest I HAD NOT included a "uses-sdk" element in the manifest.</p>
<p>The game worked fine on my HTC Desire (2.2 SDK l... | android | [4] |
466,962 | 466,963 | Could not get the display property. Invalid argument | <p>i write a jquery code and when i test page in IE 7 i found this Error</p>
<p>Could not get the display property. Invalid argument.</p>
<p>my code:</p>
<pre><code> var $insert = $(item).css({ height: 0, display:'' }).prependTo($list);
$insert.animate({ height: 35 }, 600).animate({ di... | jquery | [5] |
345,068 | 345,069 | How to calulate the height of one div and increase another in jquery? | <p>I have the following problem.</p>
<p>I have a paneldiv1 which contains come content - as I decrease the browser size the content bunches up and increase the height of the div which is fine.</p>
<p>As paneldiv1 increase is height I would like paneldiv2 to recalculate its size depending on the size of paneldiv1.</p>... | jquery | [5] |
1,828,920 | 1,828,921 | Difficulty accessing contents of JQuery Array | <p>I am adding controls to an array in JQuery like this:</p>
<pre><code>$('#tblControls tr').each(function () {
var radioButtonText = $(this).find("#td2").find("#chxBxValue").val();
var isSelected = $(this).find("#td2").find("#chxBxSelected");
var $newRdBtn = '';
if (isSelected == 1) {
$newRdBtn = $('<input /&... | jquery | [5] |
1,906,632 | 1,906,633 | Select item in the list of item using jquery | <p>I have a list of div with the same class name. I wonder how to catch exactly which div client click on it by using jquery. I try many way in many times but I couldn''t figure out. Please help me because I''m newbie in jquery.</p>
| jquery | [5] |
5,729,503 | 5,729,504 | What is the proper use of strpos and or stripos? (Is this a bug?) | <p>This has me thrown for a loop:</p>
<pre><code>$s = "ERROR: 5 - [RecordN...blah blah blah";
print stripos($s, 'error') . "\n";
print strpos($s, "ERROR") . "\n";
print $s . "\n";
</code></pre>
<p>results in:</p>
<pre><code>0
0
ERROR: 5 - [RecordN...blah blah blah
</code></pre>
<p>Huh? All right I'll try something ... | php | [2] |
2,831,602 | 2,831,603 | HyperLinkField not showing as link | <p>I have the following column in a <code>GridView</code>, and my problem is that it only renders the text "Download", not a URL.</p>
<pre><code><asp:HyperLinkField DataNavigateUrlFields="ArchiveLocation" Text="Download" DataNavigateUrlFormatString="{0}" />
</code></pre>
<p>When I bind a <code>DataTable</code> ... | asp.net | [9] |
703,869 | 703,870 | PHP explode() function issue | <p>Please help me out on this explode() function issue. I am getting unexpected results for the third scenario, what's the explanation?</p>
<p><strong>EDIT:</strong> The value $page_string is actually from the database. This time I did the tests using var_dump instead of echo. The strings, How does php count them? How... | php | [2] |
794,689 | 794,690 | Validating a form for ONLY letter inputs | <p>Im validating a form but im struggling to get it to only accept letters for firstname and lastname fields</p>
<p>hope u can help</p>
<p>heres my code:</p>
<pre><code>$(document).ready(function(){
// Place ID's of all required fields here.
required = ["firstname", "lastname", "email"];
// If using an ID other than... | javascript | [3] |
2,149,749 | 2,149,750 | Convert COleVariant to CString | <p>I have a COleVariant which is set to VT_NULL, when i try and convert the bstrVal member to a CString I get garbage. In older versions of my program however I do not get garbage, I get an empty CString which is my desired behaviour. Here is a simplified version of the offending code: </p>
<pre><code> COleVariant ... | c++ | [6] |
4,592,600 | 4,592,601 | posting variables between windows in php | <p>my title may not be clear. But basically what I want to do is:</p>
<p>There will be a link in my php form</p>
<pre><code><a href="somepage.php" target=_blank>Update</a>
</code></pre>
<p>when the user clicks on the link, a new browser window opens and allows him to select some options. There will be cl... | php | [2] |
4,550,976 | 4,550,977 | jquery error on page without any scripts | <p>getting the following error with jquery.</p>
<p>getting this without any jquery syntax in the head sections. </p>
<p>any ideas?</p>
<p>jquery 1.9.1</p>
<pre><code>TypeError: a is undefined
[Break On This Error]
...function(b,d){var f=d.nextPage,g,h=new a.Event("pageremove");d.nextPage&&(g=f.jq...
</c... | jquery | [5] |
2,514,108 | 2,514,109 | Convert Type Decimal to Hex (string) in .NET 3.5 | <p>I am trying to convert a Decimal to Hex as a string. I've looked all over for a solution to this, but all I can find is Int or long to Hex. When using the code below I receive a "Format specifier was invalid" error.</p>
<pre><code> Decimal decValue = 18446744073709551615
string hexValue = decValue.ToString("... | c# | [0] |
2,708,925 | 2,708,926 | deque vs. queue in C++ | <p>Queue and Stack are a structures widely mentioned. However, in C++, for queue you can do it in two ways:</p>
<pre><code>#include <queue>
#include <deque>
</code></pre>
<p>but for stack you can only do it like this </p>
<pre><code>#include <stack>
</code></pre>
<p>My question is, what's the diff... | c++ | [6] |
539,758 | 539,759 | How to make exe file with c# | <p>i have one program in c#. this program get parameters(file for example *.jpg) from user and finally after click user on build button my program create one other program in windows application (cs:Form) that is has one viewer for images and store app in one exe file. i need help for how to create exe file from form c... | c# | [0] |
5,695,210 | 5,695,211 | Check if element has been removed JQuery | <p>I have script that removes an h4 element then animates a hidden form in its place.
I am trying to check if the h4 element has been removed so that if the same button is pressed ,while the form is visible, it will then animate out.</p>
<p>Here is the first part of my code</p>
<pre><code>$('#editMapItem h4').remove(... | jquery | [5] |
1,444,370 | 1,444,371 | c# handling keypresses | <pre><code>private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar < '0' || e.KeyChar > '9')
if (e.KeyChar != '\b')
e.Handled = true;
}
</code></pre>
<p>i am not understanding how this code is not allowing anything except backspace and numbers. </p>
<ol>
<li>t... | c# | [0] |
3,656,348 | 3,656,349 | How to traverse into CDATA in XML using Java | <p>I have an XML file like this</p>
<pre><code> <params>
<param index="0">
<value>
<![CDATA[value1]]>
</value>
</param>
<param index="1">
<value>
<![CDATA[val... | java | [1] |
5,060,324 | 5,060,325 | how to fix my connection class? | <p>Im newbie in C#</p>
<p>I put my database connection to a class: </p>
<pre><code>public class Connection
{
public string SetConnection()
{
string connectionstring = "server=SURI-PC;database=cms;Integrated Security=True";
return connectionstring;
}
}
</code></pre>
<p>then, I call it in m... | c# | [0] |
292,271 | 292,272 | How to retrieve a field array from an object array? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5174115/sorting-a-vector-of-objects-by-a-property-of-the-object">Sorting a vector of objects by a property of the object</a> </p>
</blockquote>
<p>I have a structure like below:</p>
<pre><code>strcut Point
{
... | c++ | [6] |
562,899 | 562,900 | Remove JavaScript code from HTML | <p>I'm looking for C# regular expression to replace/remove all JavaScript from HTML. Can someone please help me with the code?</p>
| javascript | [3] |
5,192,238 | 5,192,239 | why is nbsp converted before using indexof? And what does $(<html_section_id>).select... do? | <p>I wanted to ask 2 questions about below code:</p>
<pre><code>var tabName = 'Resolution';
var tabSection = $('tabs2_section').select('h3[class="tab_header"]');
var indexOfTabName = 0;
for (i = 0; i < tabSection.length; i++) {
var inner = tabSection[i].innerHTML.replace(/\x26nbsp;/g, ... | javascript | [3] |
646,138 | 646,139 | Web service call timer | <p>I have a PHP script that sends a request to a web service via soap. I expect to get a response back in just a few seconds, but if I do not receive a response within 30 seconds I need to send another request voiding my first request.</p>
<p>Any suggestions on the best way to handle this timer feature? Should I be l... | php | [2] |
4,105,094 | 4,105,095 | Unwrap t.co links with Python | <p>I'm new to python, and I'm searching for a solution to expand t.co shorten urls into full ones. Can someone give me a hint?</p>
<p>thanks in advance,
m.</p>
| python | [7] |
3,726,036 | 3,726,037 | Error with a simple Animation | <p>I tried to start an AlphaAnimation for a ImageView with this code:</p>
<pre><code> ImageView view;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.prueba);
view=(ImageView)findViewByI... | android | [4] |
4,053,194 | 4,053,195 | PHP script display as text in browser | <p>I have installed PHP, Apache in my Linux server. <a href="http://localhost/index.htm" rel="nofollow">http://localhost/index.htm</a> displaying correctly. To test the PHP I have created test PHP file phpinfo.php. Here is the code in that file</p>
<pre><code><?php phpinfo(); ?>
</code></pre>
<p>But when try to... | php | [2] |
3,050,573 | 3,050,574 | Back key not fully killing app, notification persists | <p>Min SDK is 7</p>
<p>I have a little notification on the top of the screen, but when you press the back key on the main activity, it doesn't go away. What do I need to add to my back button override to fix this?</p>
<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
if ((keyCode == Key... | android | [4] |
5,558,828 | 5,558,829 | Recursive/iterative functions | <p>I'm having a bit of a hard time creating a function, using iteration and recursion to find the sum of all even integers between 1 and the number the user inputs. The program guidelines require a function to solve this three ways:</p>
<ol>
<li>a formula</li>
<li>iteration</li>
<li>recursion</li>
</ol>
<p>This is wh... | c++ | [6] |
880,613 | 880,614 | Accessing $(this) within a callback function | <p>I'm working on changing prompt() to jPrompt() since IE blocks prompt() from running. The problem is $(this) no longer works correctly because jPrompt() doesn't return a value, but uses a callback function.</p>
<p>So lets say I have something like this, which works:</p>
<pre><code>$("a.foo").click(function(){
... | jquery | [5] |
783,165 | 783,166 | In android, how do you modify this code to populate two textviews instead of one? | <p>I am trying to modify the sample code below. It currently populates a View that contains an imageview and a textview. I have added an additional textview to my XML layout and am trying to figure out how to replace the simple array with a hash map or even a multidimensional array to populate not just the imageview an... | android | [4] |
1,170,195 | 1,170,196 | Java BufferedWriter IOException "Too many open files" | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4289447/java-too-many-open-files">Java Too Many Open Files</a> </p>
</blockquote>
<p><strong>This is not a duplicate, the referred question is different, only the title is same, please read carefully</strong></p... | java | [1] |
5,618,868 | 5,618,869 | How to view images based on tab selection in android | <p>Hi
I have created a program to fetch and display some images in gridview inside tabview stored on device.</p>
<ol>
<li><p>MyAppfolder</p>
<p>1.1. Fruitsfolder</p>
<p>1.1.1.apple.jpg</p>
<p>1.1.2.Grapes.jpg</p>
<p>2.1. Vegetablefolder</p>
<p>2.1.1.tomato.jpg</p>
<p>2.1.2.cucumber.jpg</p></li>
</ol>
<p>This i... | android | [4] |
2,574,766 | 2,574,767 | How to resize image after overlapping in asp.net | <p>I have a problem that I have two downloaded images on my webpage(second image is overlapped with first image), I have to resize second image which is overlapped, programmatically.
I don't know how to achieve this?</p>
<p>Please suggest me the right result.</p>
| asp.net | [9] |
4,064,905 | 4,064,906 | How to increase the labels at runtime | <p>i am accessing the web services, which return me data in a string array.
now i am creating a label at runtime, and adding it to the view of the application.
but for eg if there are 3 recodrs, only the third value is displayed in the label.
i mean to say i want to add labels one below the other.
how am i to do it...<... | iphone | [8] |
5,635,012 | 5,635,013 | Explain post back please | <p>Hello friends it may sound awkward but i am novice to asp dotnet web development realm, so my question is genuine. Please explain me about what is postback in asp.net. I want it's practical meaning and how does it work in the page life cycle while i dp understand ispostBack and i use it as well.</p>
<p>But i am no... | asp.net | [9] |
1,562,834 | 1,562,835 | android Notification PendingIntent problem | <p>i'm try to implement notification in android.</p>
<p>now i have a problem , i don't want to have a PendingIntent that user will open any Activity.</p>
<p>how can i do ?</p>
| android | [4] |
2,241,566 | 2,241,567 | HTML form values be used with PHP script | <p>I wanted to know if there is a better way to layout my form without having to create four check-boxes for the user to input 4 quarters as 25+25+25+25 = 1.00 to buy a drink.</p>
<p>Currently, I just have one check-box for each denomination(Nickles, Dimes and Quarters) I want to use.</p>
<p>I was wondering if there ... | php | [2] |
4,696,504 | 4,696,505 | change file extension in php? | <p>How do I change a files file-extension name in php?</p>
<p>example: $filename='234230923_picture.bmp'
and I want the extension to change to 'jpg'.</p>
<p>Thanks</p>
| php | [2] |
823,579 | 823,580 | how to set the cursor position in a non textbox component | <p>I am working with a component named SpinEdit that has a text property. how would I set the cursor position in this component ?</p>
| c# | [0] |
3,809,756 | 3,809,757 | Interpreting return value of function directly as an array | <p>Is there a way in PHP to interpret the return value of a function directly as an array?</p>
<p>lets say i have a function:</p>
<pre><code>function getArray() {
return array("foo", "bar");
}
</code></pre>
<p>instead of writing:</p>
<pre><code>$array = getArray();
$var = $array[1];
</code></pre>
<p>i want to a... | php | [2] |
2,046,539 | 2,046,540 | Jquery version conflicts | <p>I just posted a question regarding using 2 different plugins that use the UI library but didn't get a meaningful response. I'm not sure what it takes to get help in this JQ arena but this seems to me to be a common problem; at least amongst noobs.</p>
<p>How about someone be charitable and explain to me what I need... | jquery | [5] |
4,186,289 | 4,186,290 | Why does window.location.toString() report the same as window.location.href? | <p>The window.location is an object. But when you execute window.location.toString() it converts the object to the equivalent to window.location.href.</p>
<p>My question is how? And can I set up objects to a similar behaviour?</p>
| javascript | [3] |
2,412,181 | 2,412,182 | detecting button without touch sense in android | <p>I have 8 buttons I would like the app to detect the buttons by just scrolling on the screen and not by touching? like the accessibility feature in Jelly bean? I am not sure how to call that feature as? Gesture? Motion sense?</p>
<p>Is this possible? What should I look for?</p>
<p>Thanks!</p>
| android | [4] |
1,781,286 | 1,781,287 | convert NSString to NSDate | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1353081/nsstring-to-nsdate">NSString to NSDate</a> </p>
</blockquote>
<p>Hi I want to convert the string "<code>OCT 1, 2011 18:30</code>" into <code>NSDate</code> format <code>2011-05-13 19:00:00 +0800.</code>
I... | iphone | [8] |
3,032,195 | 3,032,196 | Convert a string to datetime object in python | <p>I have a date string defined as followed:</p>
<pre><code>datestr = '2011-05-01'
</code></pre>
<p>I want to convert this into a datetime object so i used the following code</p>
<pre><code>dateobj = datetime.datetime.strptime(datestr,'%Y-%m-%d')
print dateobj
</code></pre>
<p>But what gets printed is: 2011-05-01 0... | python | [7] |
2,823,711 | 2,823,712 | Problems outputting an image over http using Python | <p>I'm trying to load an image file from my local disk and output it over http when the script is accessed on my webserver via cgi.</p>
<p>For example I want <a href="http://example.com/getimage.py?imageid=foo" rel="nofollow">http://example.com/getimage.py?imageid=foo</a> to return the corresponding image. Just openin... | python | [7] |
5,633,352 | 5,633,353 | object oriented programming | <p>what is statically type and statically weak type.</p>
| javascript | [3] |
2,874,229 | 2,874,230 | Root Directory Information Included in Compiled Jar File? | <p>I have a simple 'Hello World' command line Java application. I build the .jar from the command line - no IDE is used. I find that if the root directory is different (i.e., /hello/ vs. /hello/with/more/dirs/), the final .jar files are not exactly the same. (I compared the two with a Unix diff utility). It appears ... | java | [1] |
427,995 | 427,996 | Searching Specific Data From a File | <p>I have a File having text and few numbers.I just want to extract numbers from it.How do I go about it ???</p>
<p>I tried using all that split thing but no luck so far.
My File is like this:</p>
<p>*AT+CMGL="ALL"
+CMGL: 5566,"REC READ","Ufone"
Dear customer, your DAY_BUCKET subscription will expire on 02/05/09
+CMG... | c# | [0] |
4,441,083 | 4,441,084 | How to crop a rectangle from an image in android | <p>i'm using <a href="http://www.londatiga.net/featured-articles/how-to-select-and-crop-image-on-android/" rel="nofollow">this</a> example to crop an image that was selected from the gallery but the problem is that example only crop squares. Would it be possible to crop rectangles instead of only squares? In that examp... | android | [4] |
17,262 | 17,263 | Is there a search engine for C++ commands? | <p>I do C++ and R programming since last 3 years. </p>
<p>I wish to know is there a search engine for C++ commands where I can find all the details regarding the command.</p>
<p>This is the example of what I am looking for:
This is a search engine for R commands:
<a href="http://www.rseek.org/" rel="nofollow">http://... | c++ | [6] |
4,963,398 | 4,963,399 | jquery tooltip probelm in IE8 | <p>i have linkbuttons inside table columns and want to display tooltip even if it is disabled..This worked fine in FF and Chrome but not in IE8 as IE8 disabled elements don't receive any events i tried this workaround</p>
<p>i create a span outside the linkbutton if it is disabled and find the parent of the linkbutton... | jquery | [5] |
5,781,284 | 5,781,285 | Problem compiling C++ class | <p>I am running a C++ program which uses a class from another .cpp file. The class only has a constructor. It works when I test it separately. The main program compiles,but when I run it, I have a bug in the constructor. Any one can think of any situation that could happen? Thanks. </p>
<p>I guess I just run the code ... | c++ | [6] |
3,727,912 | 3,727,913 | eliminate return function | <p>how can i eliminate multiple number of return statements to one statement. example: i hav one if clause, the result of the if clause is true it will return 0. or return 1, the else of the same if contains another if clause. it has also the return value. how can i eleiminate this four return statement to one?</p>
<p... | c# | [0] |
158,518 | 158,519 | jQuery jHTMLArea character count | <p>I am trying to build an interactive character left feature but I am having problems attaching it to jHTMLArea.</p>
<p>I am guessing this is because the plugin hides the actual textarea.</p>
<p>I tried Keith Woods character count but that didnt work.</p>
<p>Any suggestions on how to attach something like this to j... | jquery | [5] |
2,611,689 | 2,611,690 | Jquery - accessing an element is giving null | <p>I have page a where product and its image are loaded in a table.The image is initially hidden,and onmouseover I want to display the image.The image is inside a div tag,and productname is shown as a link.In the onready function,I attach event handler to the link,</p>
<pre><code>$('a').each(function()
{
i... | jquery | [5] |
2,769,214 | 2,769,215 | Infinite PHP Look in Xampp | <p>If I do an infinite loop or a loop so big it's going to take days, will the process stop if I restart xampp? I coded something which made requests to Google and me and other people on the network started getting the search captcha. I stopped xampp and it seemed to stop but when I restarted xampp it started happenin... | php | [2] |
512,441 | 512,442 | Check if multiple conditions are all false or all true - java | <p>This sounds simple but my mind is drawing a blank</p>
<p>say i have this </p>
<pre><code>bool evaluator
for each form element{
if (element.name = 'fname')
{
perform some op
evaluator = true
}else evaluator false
if (element.name = 'city')
{
perform some op
evaluator t... | java | [1] |
3,251,851 | 3,251,852 | Adding dot between two characters in java string | <p>I have a string :</p>
<pre><code>String x = "10";
</code></pre>
<p>i want to print it like this
1.0</p>
<p>I want to add "." between numbers </p>
<p>how??</p>
| java | [1] |
621,877 | 621,878 | Calculation of Latitude and Longitue from given point and radius | <p>I have latitude, longitude and a radius. Can you please help me in finding the
another latitude and longitude from given points (latitude and longitude) and radius.</p>
<p>Thanks in Advance</p>
| java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.