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,381,733 | 5,381,734 | Running shell command from Python script | <p>I'm trying to run a shell command from within a python script which needs to do several things<br>
1. The shell command is 'hspice tran.deck >! tran.lis'<br>
2. The script should wait for the shell command to complete before proceeding<br>
3. I need to check the return code from the command and<br>
4. Capture STDOUT... | python | [7] |
3,183,188 | 3,183,189 | Get id of specific element not the parent element | <p>I want to get the id of specific element on click, but the problem is that the if the element doesn't have an id, then the function still in a loop for all element's parents that have an ID!!</p>
<p>here's an example, how can I make it alert only for once for specific element?</p>
<p><a href="http://jsfiddle.net/R... | jquery | [5] |
5,648,025 | 5,648,026 | Auto generate data by tapping on a TextView in android | <p>My application is similar to Google Search Engine. I need to generate a list of items from the database <code>SQLite</code> when a user clicks on the <code>TextView</code> without typing a single letter. I have worked on <code>AutoCompleteTextView</code> which takes 3 letters to generate the related text.</p>
<p>Bu... | android | [4] |
5,853,915 | 5,853,916 | Collection was modified; enumeration operation may not execute | <p>I have this code that removes a player if the player is not alive, but I figured the problem is to do with the <code>foreach</code> loop. I've seen solutions involving making new lists, but I cannot see how I can apply it to my code. Can anyone please shed some light?</p>
<pre><code>private Dictionary<int, Playe... | c# | [0] |
5,633,199 | 5,633,200 | is there any way to to check whether the value present in row for multiple columns | <p>I have a String variable <code>abc</code> . Now I would like to check whether the value of <code>abc</code> is present in a searched row form sql (table X ) for multiple COLUMNS.</p>
<p>So if (<code>abc</code>) is present in <code>COLUMN01 ,COLUMN02, ....COLUMN50</code>. Let's say flag <code>PRESENT</code> is set.<... | java | [1] |
795,246 | 795,247 | Iframe CSS Properties | <p>I am using iframe with design mode on like textbox (The Richtextarea Concept) and which changes i am making in iframe that will affect in the div. but there will be only text changes no Image.</p>
<p>How to do this Because the changes will be done in this iframe only but can not be seen to user.</p>
| javascript | [3] |
4,177,381 | 4,177,382 | Javascript sort object string with numbers | <p>I have the following JSON object in javascript:</p>
<pre><code>var stuff = [{
"id": "20",
"serial": "0/0/19:46,0/0/149:63"
}, {
"id": "8",
"serial": "0/0/151:215,0/0/151:233"
}, {
"id": "54",
"serial": "0/0/151:26,0/0/151:37"
}, {
"id": "22",
"serial": "0/0/155:29,0/0/155:36"
}, {
"id": "4",
"serial": "0/0/151:48,0... | javascript | [3] |
1,527,647 | 1,527,648 | tabbar with navigation controller iphone application | <p>I have created a tabbar with navigation bar iphone application and i added another view which is coming from home tab.The view is coming but the navigation bar and tabbar are not coming.why? </p>
| iphone | [8] |
320,945 | 320,946 | jquery populate select list | <p>I have this in my htm file</p>
<pre><code> <select id="SelItem">
</select>
</code></pre>
<p>Within my javascript file I have a section for jquery I have the following</p>
<pre><code> var itemval= '<option value="OT">OT</option>';
$("#SelItem").html(itemval);
</code></pre>... | jquery | [5] |
987,468 | 987,469 | Exporting DLLs in a C++ project | <p>I've encountered a strange behavior in __declspec(dllexport) in my project.
I have a C++ project that uses classes, namespaces, try-catches and more cpp elements.
When exporting any dummy function in this DLL, no other C project will be able to load it with LoadLibrary (Getting error 'module not found').</p>
<p>Is ... | c++ | [6] |
1,555,076 | 1,555,077 | Comparing to string with each other in Java | <p>I'm looking for a solution to compare two strings with each other. I have already found a few suggestions but i'm not really understanding how to do it. I want to do something like that:</p>
<pre><code>String a = 23;
String b = 2;
if (a < b)
System.out.println("...");
else ..
</code></pre>
<p>I've found the co... | java | [1] |
3,005,082 | 3,005,083 | Positioning cursor after inserted word | <p>I want to position a cursor after an inserted word (test), in textarea.<br>
The insertion of the word can be in any position in textarea.<br>
(Internet Explorer)<br>
This is my script:</p>
<pre><code> document.activeElement.focus();
document.selection.createRange().text = "test";
var sel = document.selection.cr... | javascript | [3] |
2,499,644 | 2,499,645 | Python: try-except as an Expression? | <p>I find myself having this sort of pattern over and over:</p>
<pre><code>variable = ""
try:
variable = ... do some file loading stuff ...
except:
variable = ""
</code></pre>
<p>Is there any way to condense this into a single expression? Like with if-else statements you can turn:</p>
<pre><code>variable = "... | python | [7] |
4,775,949 | 4,775,950 | The usage of jQuery 'end()' function | <p>i go to the site <a href="http://api.jquery.com/end/" rel="nofollow">http://api.jquery.com/end/</a> just to understand how end() use and how it works. unfortunately i just do not understand what it does. so i need to know in what kind of situation end() should be used.</p>
<h2>here is small example</h2>
<pre><code... | jquery | [5] |
4,095,562 | 4,095,563 | How to pass a two dimensional array to a function in c++ | <p>I am trying to pass an array (2d) to a function as an parameter.
I have a code as follows:</p>
<pre><code>int main()
{
float T[100][100];
void set_T(float T[][]);
}
void set_T(float T1[][])
{
for (int i =0 ; i<90;i++)
{
for(int j =0 ;j <90;j++)
{
T1[i][j] = 3;
}
}
}... | c++ | [6] |
2,161,195 | 2,161,196 | jQuery oembed alternative | <p>Okay, sorry if its a stopud question you can down vote it if you feel like.</p>
<p>I started, to use the omebed jquery plugin <a href="http://code.google.com/p/jquery-oembed/" rel="nofollow">http://code.google.com/p/jquery-oembed/</a>.</p>
<p>Maybe im not useing it well but, after a time i always get this error: E... | jquery | [5] |
3,763,606 | 3,763,607 | changing images in picturebox of windows form using c# | <p>I am trying to change images in the picture box of windows form according to some conditions.But some how it is not showing any picture.</p>
<p>i placed a black picturebox control in the form and trying to give the path using c# like this...</p>
<pre><code> public void ApplyImage(string strParam)
{
... | c# | [0] |
179,603 | 179,604 | How to call method from parent in Java? | <pre><code>import java.util.Random;
class VehicleConstructor{
private int startSpeed;
public VehicleConstructor() {
setSpeed();
System.out.println("VehicleConstructor");
}
private void setSpeed(){
int minSpeed = 1;
int maxSpeed = 40;
Random random = new Rando... | java | [1] |
5,038,366 | 5,038,367 | HIde word with JavaScript | <p>I am not developer so I need help from you guys.</p>
<p>My Problem is simple.</p>
<p>I just want javascript to hide word before "<strong>.</strong>"</p>
<p><strong>Example :</strong> </p>
<p>say for <strong>google.com</strong></p>
<p>I just want word "<strong>.com</strong>" tobe print.</p>
<p>Please note that... | javascript | [3] |
5,522,451 | 5,522,452 | WordPress plugin/code to to to next/previous post in same category | <p>I have spent days looking for a WordPress plugin to automatically add next and previous links to the bottom of each post. I have found loads of plugins but I want one that will restrict the posts shown to posts in the same category.</p>
<p>I really dont know anything about php to write a custom plugin myself so an... | php | [2] |
4,842,375 | 4,842,376 | How can I get URL of JS file in same JS file? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/984510/what-is-my-script-src-url">What is my script src URL?</a> </p>
</blockquote>
<p>I have situation:</p>
<pre><code><script
type="text/javascript"
src="http://server/some.js">
</script>
</co... | javascript | [3] |
5,530,123 | 5,530,124 | Where should I locate my baseActivity class? | <p>Say i have com.mydomain.myappname. Is it a good idea to put my baseActivity class (from which all my other activity classes inherit) into com.mydomain? Or is that asking for trouble? I'm worried my other apps could then conflict if installed on the same phone.</p>
<p>Also, if not in com.mydomain, where should I pla... | android | [4] |
2,518,148 | 2,518,149 | comparing a character with a set of characters c++ | <p>is there a way to compare a single character with a set of characters?</p>
<p>eg: </p>
<pre><code>char a;
if(a in {'q','w','e','r','t','y','u'})
return true;
else return false;
</code></pre>
<p>i need something like this.</p>
| c++ | [6] |
1,410,102 | 1,410,103 | The remote host could not be resolved: | <p>I have the following C# program:</p>
<pre>
<code>using System;
using System.IO;
using System.Net;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string sourceUri = "http://tinyurl.com/22m56h9";
var request = WebRequest.Create(sourc... | c# | [0] |
3,315,874 | 3,315,875 | Java versioning | <p>From the installation manual of Oracle's JDEdwards EnterpriseOne</p>
<p><em>JDK 1.5 is required. JDK 1.6 and higher have not been validated with
EnterpriseOne as of November, 2008</em></p>
<p>As the sentence says, I need to get JDK 1.5. But the <a href="http://www.oracle.com/technetwork/java/archive-139210.html" r... | java | [1] |
5,888,732 | 5,888,733 | Why does the .index() function not work? | <p>Example: <a href="http://jsfiddle.net/peeter/ePMFe/" rel="nofollow">http://jsfiddle.net/peeter/ePMFe/</a></p>
<p>It returns the index as -1, instead of the actual index. Any ideas are greatly appreciated. </p>
| jquery | [5] |
3,190,996 | 3,190,997 | How to prevent calling onbeforeunload when page refresh | <p>I want to prevent calling the function "confirmExit()" when page get refresh,Is it possible to do that ? </p>
window.onbeforeunload = confirmExit;
function confirmExit()
{
$.post("test.php");
}
<p>Kindly give some idea</p>
<p>Thanks in Advance
Dinesh Kumar Manoharan</p>
| jquery | [5] |
1,529,518 | 1,529,519 | question on getView() | <p>Can anyone possible explain what the following code does?</p>
<pre><code> public View getView(int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
View myView = null;
try {
myView = convertView;
if (null == myView) {
LayoutInflater li = (LayoutInflater) getS... | android | [4] |
3,975,467 | 3,975,468 | i am trying to display the contact name and number using listview however i can only display the name but number is not comming up | <pre><code>public class contacts extends ListActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
try{
setContentView(R.layout.con_main);
}catch(Exception e){
Toast.makeText(this,e.toString(),Toast.LENGTH_L... | android | [4] |
91,136 | 91,137 | How to debug ad hoc version? | <p>I have an app, it worked well on simulator, but the ad hoc version always crashed when started on my ipod.
Is it possible to debug ad hoc version or its there any replacement solution?</p>
<p>Thanks</p>
<p>interdev</p>
| iphone | [8] |
2,479,335 | 2,479,336 | From a list of li, how do I tell which one is active using jquery? | <p>From a list of li, how do I tell which one is active with a highlight class using jquery?</p>
<p>For example, I have the ul list</p>
<pre><code> <ul>
<li> 11111111 </li>
<li> 22222222 </li>
<li> 33333333 </li>
<li> 44444444 </li&... | jquery | [5] |
3,698,315 | 3,698,316 | Why does my jQuery slideDown/slideUp 'wear out'? | <p>At <a href="http://poland.inbulgaria.org/" rel="nofollow">the site I'm developing</a>, I have some <code>div</code>s which are loaded by AJAX. They consist of a picture (displayed) and some text (hidden). Using jQuery's <code>$.live()</code> method, I make the text slide down when the mouse hovers over the picture, ... | jquery | [5] |
3,274,564 | 3,274,565 | Why does object not reference other object after unserialize? | <pre><code> $obj = new classname();
$obj1 = $obj;
$obj->var = 'something';
$obj = unserialize(serialize($obj));
$obj->var= 'something new';
</code></pre>
<p>Now obj1->var = 'something' and $obj->var = 'something new'.</p>
<p>Why does $obj,$obj1 not reference to the same thing?</p>
| php | [2] |
78,357 | 78,358 | Select MAX-date from Data table dt on condition | <pre><code>*VC_DEVID* *DT_LODDATE* *C_INPUTMODE* *DT_ALTERDATE*
DEVC109 29/Apr/2013 12:50:29 R 30/Apr/2013 12:50:29
DEVC110 29/Apr/2013 12:50:29 M 29/Apr/2013 12:50:29
DEVC111 29/Apr/2013 12:50:29 M 28/Apr/2013 12:50:29
DEVC112... | c# | [0] |
3,780,189 | 3,780,190 | timeoffset in whole minutes in c# | <p>I have a method that calculates the number of minutes between two times. Something like this:</p>
<pre><code>DateTime UserLocalTime = DateTime.UtcNow.ConvertToUserTime(UserTimezoneID);
double TheOffset = (UserLocalTime - DateTime.UtcNow).TotalMinutes;
return TheOffset.ToString();
</code></pre>
<p>The problem is ... | c# | [0] |
4,195,605 | 4,195,606 | error in moving std::unique_ptr | <p>I try to run this code to move the unique_ptr's from the first vector to another, in the copy constructor:</p>
<pre><code>class Text
{
struct paragraph
{
int index;
string text;
};
vector<unique_ptr<paragraph>> paragraphs;
public:
Text()
{
paragraphs.p... | c++ | [6] |
2,122,224 | 2,122,225 | Plotting changing arrays | <p>I am trying to plot a real-time signal. I have an array of size 4 that is refreshed every 1/32nd of a second with new data and I need to plot these values for at least 1 sec. </p>
<p>That means, there would be 32 of these arrays of size 4 each. This implies, I will have 32*4 = 128 data points to plot vs the no.of s... | python | [7] |
1,988,699 | 1,988,700 | java equivalent for mkstemp | <p>Is there any way in Java to write out to a temporary file securely?</p>
<p>As far as I can tell, the only way to create a temporary file (createTempFile) does't actually open it at the same time, so there's a race condition between file open & file write. Am I missing something? I couldn't find the C source c... | java | [1] |
4,947,026 | 4,947,027 | How to trigger an action from a custom button in UITableViewCell | <p>I've created a subclass of <code>UIButton</code> to allow me to have a checkbox on the iPhone. This checkbox is part of a subclass of <code>UITableViewCell</code>. My question is how I can attach an action to the button being pressed and have that method implemented in the table view controller?</p>
<p>I tried usin... | iphone | [8] |
2,702,784 | 2,702,785 | why the page refresh a time? | <pre><code><form method="get" action="/" onsubmit="SubmitForm()">
<input type="text" title="" value="" name="q" class="search-input" id="gsearch" />
<input type="submit" value="" name="sa" id="search-button"/>
</form>
<script type="text/javascript">
function SubmitForm(){
window.open("htt... | javascript | [3] |
1,589,034 | 1,589,035 | PHP Onclick Popup | <p>I would like a "popup" to appear when a user clicks the delete button in a CMS. I have the following code:</p>
<pre><code><?php echo ("<a href='delete_donor.php?id=$row->id' class='delete_icon2' title='Delete Donor' onclick='return confirm('Are you sure you want to delete this entry?')'></a></... | php | [2] |
5,158,815 | 5,158,816 | Can a Class be self-referenced? | <p>**If a structure can be a self-referential. like</p>
<pre><code>struct list
{
struct list *next;
};
</code></pre>
<p>as there is no difference between class and struct, except the default access specifiers.
then is it possible to write a class...</p>
<pre><code>class list
{
class list *next;
};
</code><... | c++ | [6] |
1,149,850 | 1,149,851 | Difference between array & object in js? | <p>How to recognize array & object in js where typeof doesn’t come in handy?</p>
<pre><code> var arr = [], ob = {};
</code></pre>
<p>As everything in js are objects, </p>
<pre><code>if(typeof arr == typeof ob) => returns true
</code></pre>
<p>I want a operator or ... that will tell me that the variable is a... | javascript | [3] |
198,279 | 198,280 | Getting all possible combinations of 2 lists | <p>I have 2 lists:</p>
<ul>
<li>List1 has the elements (a,b,c,d,e)</li>
<li>List2 has the elements (1,2,3)</li>
</ul>
<p>I have to calculate all possible combinations using all the elements of the 2 arrays:</p>
<ul>
<li>Combinaton 1: a1, b2, c3, dNULL, eNULL</li>
<li>Combination 2: a1, bNULL, c2, d3, eNULL</li>
</ul... | php | [2] |
5,515,958 | 5,515,959 | Change Data Based on Radio Button | <p>How do I do this in javascript where when a radio button is selected only certain fields show up to type in?? Please show work (preferably with JSFiddle) :)</p>
<pre><code> <form action="inc/add_p_c_validate.php" method="post">
Professor<input type="radio" name="addType" value="Professor" />
... | javascript | [3] |
4,006,696 | 4,006,697 | App Icon does not show up | <p>My app icon shows up on my Nexus One, but not on the Android Market site or the emulator. Is there some naming convention to use?</p>
<p>Thanks.</p>
| android | [4] |
5,307,372 | 5,307,373 | Countdown Timer | <p>My project in php</p>
<p>I want to create a countdown timer for asking question in limited timeframe like LMS
here i have use the javascript countdown timer but when refresh the page javascript timer are reset.</p>
| php | [2] |
1,604,306 | 1,604,307 | Shortcut for document.createElement("option")? | <p>My function clears out a dropdownlist and then re-populates it. Do I really need all this or is there a more concise way to do this? Meaning do I need to create a new document.createElement("option"); or is there a shortcut?</p>
<pre><code> for (blah blah blah)
{
objNewOption = document.createE... | javascript | [3] |
1,808,351 | 1,808,352 | asihttp post multi files | <p>I hope to use ASIHttp post multi files
Is it possible. For one file, I know the codes are:</p>
<pre><code> [request setFile:[documentsDirectory stringByAppendingPathComponent:@"img1.png"] forKey:@"img"];
</code></pre>
<p>all image files have same key "img"</p>
<p>Welcome any comment</p>
| iphone | [8] |
5,777,762 | 5,777,763 | PHP: "non well formed numeric value encountered" | <pre><code><?php
function aum($x) {
$contents = $_FILES['userfile']['tmp_name'];
$contents = file("$contents");
$aum = $contents[$x][13].$contents[$x][14].$contents[$x][15].$contents[$x][16].$contents[$x][17].$contents[$x][18].$contents[$x][19].$contents[$x][20].$contents[$x][21].$contents[$x][22].$contents[$x][23... | php | [2] |
3,394,796 | 3,394,797 | How to find same lines in two large text files? | <p>I'd like to compare two large text files(200M) to get the same lines of them.<br>
How to do that in Python?</p>
| python | [7] |
5,417,098 | 5,417,099 | user Like status using fql query | <p>I am using the following query to get the user like status</p>
<pre><code> fql?q=SELECT likes.user_likes FROM stream WHERE post_id = '1274834235_3976149403543'
</code></pre>
<p>I expect the result to be</p>
<pre><code> {
"data": [
{
"likes": {
... | android | [4] |
2,705,924 | 2,705,925 | c++ string::find ... not finding | <p>Im trying to use the string::find method to determine if the string " hello " (with space before and after) exists in a line of a .txt file. if it does, its supposed to print out the line number(position isnt important). the problem is, its not finding the string. please help.</p>
<pre><code>int main() {
string... | c++ | [6] |
5,071,996 | 5,071,997 | Treeview node disable | <p>I have a treeview and the nodes are populated from a table . I want to disable some particular node according to the name of that node</p>
| asp.net | [9] |
2,870,688 | 2,870,689 | test with httpcode in php | <p>I use this code in my application php</p>
<pre><code>$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_NOBODY, false); // remove body
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
$httpCode = curl_getinfo($ch, C... | php | [2] |
4,642,262 | 4,642,263 | Drag and drop lagging | <p>As part of a school project, I have DIVs that I need to be able to move. I have it working, and it works perfectly in Firefox. However, in other browsers, it doesn't really work that well. In IE9, it doesn't work at all. In Safari, it lags, even when only one div is up. In Opera and Chrome, it works fine when there'... | javascript | [3] |
1,034,113 | 1,034,114 | Drag and dropping row from the Table view on to Calendar view Android | <p>I have a requirement that needs to display info in table view and below calendar view. The requirement is to drag and drop the row from the tableview and drop it on to the calendar view. pls give me any link.</p>
| android | [4] |
664,376 | 664,377 | How to send email(Gmailsend,JSSEProvider) using wifi and 3g(HSDPA,GPRS) connection on android | <p>I created an automation application that send an email to a certain recipient, I use the emulator(eclipse indigo AVD) on my pc that has an internet connection and it will send an email and the recipient will received it, but my <strong>problem is this when I use my application on my device(phone) that has an Interne... | android | [4] |
5,884,601 | 5,884,602 | Maximum image size allowed to display in android app | <p>I am trying to display an image on an Android app using an ImageView, but I find that unless I use inSampleSize of at least 2, the app doesn't render the image at all; this is a real problem which I would love to solve.</p>
<p>The image I am trying to render is a png of 673KB and 2056x2039 in resolution.</p>
<p>So... | android | [4] |
552,519 | 552,520 | how to decompress http response? | <p>Can any one of you solve this problem !</p>
<p>Problem Description:</p>
<p>i have received content-encoding: gzip header from http web-server.
now i want to decode the content but when i use GZIP classes from jdk 1.6.12, it gives null.</p>
<p>does it means that contents are not in gzip format ? or are there some ... | java | [1] |
5,355,964 | 5,355,965 | How to change the classpath and run the code in Java? | <p>I was trying to execute the following code in java:</p>
<pre><code>import java.awt.*;
import javax.swing.*;
import org.fife.ui.rtextarea.*;
import org.fife.ui.rsyntaxtextarea.*;
public class TextEditorDemo extends JFrame {
private static final long serialVersionUID = 1L;
public TextEditorDemo() {
... | java | [1] |
5,127,757 | 5,127,758 | how to bind objects to gridview | <p>i am calling an webservice where my webservice is returing an object( which contains data like</p>
<pre><code>empid name
1 kiran
2 mannu
3 tom
</code></pre>
<p>WebApplication1.DBLayer.Employee objEMP = ab.GetJobInfo();
now my objEMP has this collection of data</p>
<pre><code>empid name
1 k... | asp.net | [9] |
3,718,757 | 3,718,758 | C# AJAX or Java response HTML scraping | <p>Is there a way in C# to get the output of AJAX or Java? What i'm trying to do is grab the specifics of items on a webpage, however the webpage does not load it into the original source. Does anybody have a good tutorial or a good place to start?</p>
<p>For example, i would want to get all the car listings from <a... | c# | [0] |
4,931,801 | 4,931,802 | Extracting data from JSON / dictionary with Python | <p>I have an output : </p>
<pre><code>result = {
"sip_domains":{
"prefix":[{"name":""}],
"domain":[{"name":"k200.com"},{"name":"Zinga.com"},{"name":"rambo.com"}]
},
"sip_security":{"level":2},
"sip_trusted_hosts":{"host":[]},
"sip_proxy_mode":{"handle_requests":1}
}
</code></pre>
... | python | [7] |
5,535,246 | 5,535,247 | I need to search through a list of classes to find the first that matches what I need | <p>I have the following class:</p>
<pre><code>public class TestClass {
public IList<TestClassDetail> TestClassDetails {
get { return _testClassDetails; }
}
private List<TestClassDetail> _testClassDetails = new List<TestClassDetail>();
public TestClass() {
this._testClassDetai... | c# | [0] |
157,495 | 157,496 | Fastest way to grab domain/host name using javascript | <p>I already have quite a bit of js on my site, so I want to have a function that grabs the domain name of the current url as efficiently as possible. </p>
<p>Example:</p>
<p>input : <a href="http://stackoverflow.com/questions/ask">http://stackoverflow.com/questions/ask</a></p>
<p>result : stackoverflow.com</p>
<p>... | javascript | [3] |
1,784,834 | 1,784,835 | Java Libraries Reuse | <p>In software development we are all using the libraries by software providers. Consider in class A there are four functions viz., x,y,z. I just want my development team to avoid using the function x. So instead of telling them not to use, I found an idea. Inherit the class and override all the functions and for the... | java | [1] |
4,698,122 | 4,698,123 | Column Click Issue | <p>I have two columns...the right column I want to open up and show the contents when either it's header is clicked, or it's corresponding value in the left column is clicked...and toggle off when another value is clicked. Thanks for the help.</p>
<pre><code><table>
<tr>
<th>1</th>
... | jquery | [5] |
4,695,368 | 4,695,369 | Never ending function problem | <p>Im trying to run a function that will never end (until the program is killed)</p>
<p>How would i start such a function and be able to continue on past that function, because at the moment the program will not run past the never ending function.</p>
<p>Regards</p>
<p>Paul</p>
| c++ | [6] |
5,734,923 | 5,734,924 | how do I slide these buttons on horizontal navigation menu with jquery? | <p><img src="http://i.stack.imgur.com/U6Tnw.png" alt="enter image description here"></p>
<p>I've this menu with ul li structure. It has hidden buttons in overflow: hidden; I want to be able to slide with next prev buttons through the hidden content. But since buttons are different size, I cannot think of a safe way to... | jquery | [5] |
4,406,500 | 4,406,501 | how to implement request timeout in android? | <p>friends,</p>
<p>I'm running into an issue when i try to call webservice and the server/internet is not available. It appears that the
connection is taking a long time to timeout</p>
<p>can i set timout manually to show error messgage to user?</p>
<p>any help would be appreciated.</p>
| android | [4] |
1,276,960 | 1,276,961 | How to write native newline character to a file descriptor in Python? | <p>The <code>os.write</code> function can be used to writes bytes into a file descriptor (not file object). If I execute <code>os.write(fd, '\n')</code>, only the LF character will be written into the file, even on Windows. I would like to have CRLF in the file on Windows and only LF in Linux. What is the best way to a... | python | [7] |
2,998,204 | 2,998,205 | How to get text from file into array in php | <p>I have text file with some stuff that i would like to put into array. That text file has one value per line. How do i put each line into array?</p>
| php | [2] |
402,156 | 402,157 | Killing an app on a jailbroken iPhone | <p>I am currently trying to build an app that will kill other apps on my jailbroken iPhone. I would like my app to be able to kill apps even when my app is in the background. I only have one problem though I can not find a kill command to do this. I am a newer programmer so as many details as you can give would be appr... | iphone | [8] |
2,620,965 | 2,620,966 | Using AlarmManager in Android, What's wrong with this? | <p>So, I'm trying to set up a simple alarm in an android program. Eventually, I want the user to be able to select a number of minutes and then receive a notification that many minutes later. Right now though, I'm just trying to set up a simple toast that goes off 5 seconds after the method is called. What am I doing w... | android | [4] |
1,419,304 | 1,419,305 | Printing list elements on separated lines in Python | <p>trying to print out python path folders using this</p>
<pre>
import sys
print sys.path
</pre>
<p>the output is like this</p>
<pre>
>>> print sys.path
['.', '/usr/bin', '/home/student/Desktop', '/home/student/my_modules', '/usr/lib/pyth
on2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/l... | python | [7] |
5,001,470 | 5,001,471 | how to read what I enter in address bar in php and getting data from it | <p>I want to enter <code>mysite.com/#test1</code> in address bar . My site is configed so that index.php will load. And I want to read <code>mysite.com/#test1</code> in php so php could work with that string getting <code>test1</code> out of the address. Is that possible ?</p>
<p>This </p>
<pre><code>echo $_SERVER['P... | php | [2] |
902,672 | 902,673 | Make it happen in a specific DIV | <p>I have a page with several <code>DIV</code> elements and each <code>DIV</code> contains two tables. One of them has <code>display:none</code> set and the other (let's call it the first table) has a dropdownlist (<code>DDL</code>). I'd like to <code>fadeIn()</code> for a short while the hidden table (over the first t... | jquery | [5] |
2,048,877 | 2,048,878 | How to capture magnetic swipe data using headphone jack on Android? | <p>If someone wants to write a android application that interacts with a physical device, specifically a reader using mobiles audio jack
(e.g. Like how Square Inc is doing ) how is this done?
Is there a api's to interact with the reader and get the cards data?</p>
<p>When a company creates a reader (physical device) ... | android | [4] |
5,720,492 | 5,720,493 | help with binding a local service | <p>I Need some help here, I have a service which I can start or stop whenever I want and using the onStart() command to pass some extras using putExtras() from my activity</p>
<p>But I need some serious basic instructions on how to interact with the already created service.</p>
<p>Please don't refer me to another we... | android | [4] |
711,096 | 711,097 | Can we have only Finally block with out Try and Catch? | <p>Can we have only Finally block with out adding Try and Catch block?</p>
| java | [1] |
5,025,183 | 5,025,184 | wkhtmltoimage-amd64 with php | <p>I am trying to use wkhtmltoimage on linux hosting that allows shell_exec and exec commands. system is Centos 64bit. i have download wkhtmltoimage-amd64 extension and upload to the server. when i execute commands nothing happened</p>
<p>I am failed to use this. </p>
<p>here it is my code
echo shell_exec("wkhtmltoim... | php | [2] |
5,135,001 | 5,135,002 | Cancel form submit based on which submit button is clicked using JQuery (IE) | <p>I have a form with multiple submit buttons. When one of those button is clicked, I would like to present a confirmation popup asking the user to confirm the chosen action. If he presses OK, allow the form post. If not, cancel it.</p>
<p>Problem is that I can't figure out the correct selector to use on the submit... | jquery | [5] |
1,802,671 | 1,802,672 | android animation glow effect on imageview | <p>I am working on a application, where in my home page i need to give glowing and fading effect animation to a logo (imageview) i tried a lot and could not find how to give glow effect animation and i know glow effect for onclick event please help me with this issue
Thanks in advance</p>
<pre><code>public class Custo... | android | [4] |
2,790,414 | 2,790,415 | PHP and ?? operator | <p>Like some people know, C# has very useful <code>??</code> operator which evaluates and returns expression on the right if expression on the left is null. It's very useful for providing default values, for example:</p>
<pre><code>int spaces = readSetting("spaces") ?? 5;
</code></pre>
<p>If <code>readSetting</code> ... | php | [2] |
3,493,297 | 3,493,298 | Printing two separate SQL table data on the dynamically populated table - PHP | <p>Can someone please help me on the following code? Simply put, I'm trying to get two separate SQL tables' data, one on the horizontal side (brands) and the other (distributors) on the vertical side of a dynamically populated table.</p>
<p>my issue is, if you go through the code I cant get the text boxes populated un... | php | [2] |
1,229,103 | 1,229,104 | TabWidget doesn't fill in HorizontalScrollView | <p>I want to show tabs width horizontal scrollbar. I tried to implement like this <a href="http://stackoverflow.com/questions/2492840/how-do-you-set-tab-view-to-scroll">How do you set tab view to scroll?</a></p>
<p>But the tabs doesn't fill the width. </p>
<p><strong>How to fix it?</strong> </p>
<pre><code><?xml ... | android | [4] |
3,153,179 | 3,153,180 | How can I display shared preference values in a list? | <p>I am using this code:</p>
<pre><code>SharedPreferences prefName;
prefName = getSharedPreferences("PREF_NAME", MODE_PRIVATE);
CharSequence c = pm.getApplicationLabel(pm.getApplicationInfo(packageInfo.packageName, PackageManager.GET_META_DATA));
prefName.edit().putBoolean((String) c, false).commit();
</code></pr... | android | [4] |
1,707,804 | 1,707,805 | what to put in cpp and what to h files | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/333889/in-c-why-have-header-files-and-cpp-files">In C++ why have header files and cpp files?</a><br>
<a href="http://stackoverflow.com/questions/1945846/c-what-should-go-into-an-h-file">C++ - What should go into a... | c++ | [6] |
1,902,421 | 1,902,422 | How to handle NullPointerException in Java | <p>How to handle <code>NullPointerException</code> in Java? Please provide details so I can get rid of this problem</p>
| java | [1] |
4,225,432 | 4,225,433 | does clipsToBounds = YES reduce my memory footprint? | <p>I have a pretty big view which is like 1000 x 1000. So I did clipToBounds = YES. Will this actually produce smaller bitmaps for the views?</p>
| iphone | [8] |
1,244,878 | 1,244,879 | android pop up menu | <p>I have followed this <a href="http://blog.pocketjourney.com/2008/03/15/tutorial-1-transparent-panel-linear-layout-on-mapview-google-map/" rel="nofollow">tutorial</a> to create a seek bar on a transparent background. How can I make it pop up on the screen when pressing a button ?</p>
| android | [4] |
1,388,906 | 1,388,907 | Java: how to upload files to server and handle authentication? | <p>I have a small linux vps. I have written a Java client application, which needs to connect and submit large string data and images. The string data will be stored as regular text files on the server, and will be parsed by another Java application that will run on the server and use this uploaded files and images.</p... | java | [1] |
1,541,499 | 1,541,500 | How should a local variable in a function be initialized? | <p>How should a local variable in a function be initialized? For performance reasons should I do it like this?</p>
<pre><code>Point2D point(1,2);
</code></pre>
<p>or like this?</p>
<pre><code>Point2D point = Point2D(1,2);
</code></pre>
<p>Does it even matter?</p>
| c++ | [6] |
630,792 | 630,793 | How to merge multiple applications into a single application | <p>i have developed some applications like making call, add contact ,send sms for blind people.</p>
<p>Now i want to merge them into single application like <a href="https://play.google.com/store/apps/details?id=es.codefactory.android.app.ma.vocalizerenudemo&feature=search_result" rel="nofollow">Mobile accessibil... | android | [4] |
828,452 | 828,453 | drag and drop using post/sendmessage | <p>I am trying to find a way to preform drag and drop using API function SendMessage() or PostMessage(), I am using the following code but its not working:</p>
<pre><code>API.Click(controlHandleStart, false, (ushort)RelativePointStart.X, (ushort)RelativePointStart.Y);//mouse down
System.Threading.Thread.Sleep(200);
... | c# | [0] |
4,433,990 | 4,433,991 | Need help splitting a string into 3 variables | <p>I would like to split a string of characters into 3 variables. When I just run a <code>.split()</code> I get <code>['AAA00000011']</code>. I would like this to be split like:</p>
<pre><code>var1 = AAA
var2 = 0000001
var3 = 1
</code></pre>
<p>The user is typing in these values into the command line on windows machi... | python | [7] |
5,219,118 | 5,219,119 | enable a textbox on the selection of no from the drop down menu | <p>I have a drop down menu where i have three options yes no and later.And when i select no option then the textbox must enable which was previously disable.so help me with some javascript script and explain me how can i call the script from the form.</p>
| javascript | [3] |
1,507,238 | 1,507,239 | Function for converting octal to hexadecimal in Java | <p>Is there a function I can use to convert octal to hexadecimal in java?</p>
| java | [1] |
1,625,440 | 1,625,441 | Android : playing back a song to caller? | <p>I gotta scenario, where i have to play a song to the caller, when someone calls to you then you need to programmatically answer the call and have to play a song. I think it is not possible with android sdk. Can anyone please give me an idea what is the way to do this task ? </p>
<p>Atleast give me what is possible ... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.