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,155,215 | 1,155,216 | How to put bundle in arraylist with hashmap vallue in android | <p>Hi friends
I am getting arraylist with hashmap like this <code>ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>()</code> I want to put it in bundle can anybody give example</p>
<p>Thanks</p>
| android | [4] |
1,613,910 | 1,613,911 | How can i get a list of my application's widgets that are active on the user's homescreen? | <p>From the docs:</p>
<p>AppWidgetManager.getAppWidgetIds(ComponentName provider)
Get the list of appWidgetIds that have been bound to the given AppWidget provider.</p>
<p>This returns a list of widget ids including widgets that have been deleted from the homescreen. Is there a way besides tracking the add/delete ev... | android | [4] |
2,896,544 | 2,896,545 | Force downloading an image via php script works but the image only opens in paint not photoshop | <p>Here is my php script which executes the download:</p>
<pre><code>$link = 'www.example.com';
$url = urlencode($link);
$image = "http://chart.googleapis.com/chart?chs=75x75&cht=qr&chl=$url&choe=UTF-8&chld=L|0";
$filename = file_get_contents("$image");
header("Pragma: public");
header("Expires: 0")... | php | [2] |
4,016,522 | 4,016,523 | How can I create a new class instance from a class within a (static) class? | <p>I'm new to Java (have experience with C#),</p>
<p>This is what i want to do:</p>
<pre><code>public final class MyClass
{
public class MyRelatedClass
{
...
}
}
public class OtherRandomClass
{
public void DoStuff()
{
MyRelatedClass data = new MyClass.MyRelatedClass();
}
}
</cod... | java | [1] |
6,012,233 | 6,012,234 | JQUERY: Image replacing problems | <p>Having an issue with my "hideText" image replacing my "showText"
Anyone know why? This works fine if show and hide are both text,
but not at all when show and hide are images.</p>
<pre><code>$payload .= '<script type="text/javascript"><!--
$(document).ready(function() {
var sho... | jquery | [5] |
1,253,971 | 1,253,972 | A generic error occurred in GDI+ in C# | <p>I am using a 3rd party control to read barcode from a bitmap file. Below is the code for my method.</p>
<pre><code>public void ShowBarcode(IntPtr img)
{
int nBarCode;
SoftekBarcodeLib2.BarcodeReader barcode = new SoftekBarcodeLib2.BarcodeReader();
barcode.ReadCode39 = 1;
barcode.... | c# | [0] |
4,470,404 | 4,470,405 | PHP Asset Packaging Library | <p>anyone know a great asset management/packaging library for PHP making asset (images, css, js) deployment and optimization super easy much like <a href="http://documentcloud.github.com/jammit/">Jammit for Rails</a>.</p>
| php | [2] |
4,759,032 | 4,759,033 | eq() method question | <p>For example, I have this HTML structure:</p>
<pre><code><ul>
<li><a class="ac_list_a">some text</a></li>
<li><a class="ac_list_a">some text</a></li>
<li><a class="ac_list_a">some text</a></li>
<li><a class="ac_lis... | jquery | [5] |
4,829,471 | 4,829,472 | Add jQuery results for form | <p>I am having an issue trying to add several variables together. The variables are results from other formulas and do not display as a form element. The code below is just a snippet of the whole program:</p>
<pre><code>//card 1 interest
$('#card_bal_1, #card_int_1').keyup(function() {
var card_mon_int_1 = parse... | jquery | [5] |
5,833,135 | 5,833,136 | syntax error, unexpected '[' | <p>hi im new to php and i have this error i don't know what is the cause and i tried to solve it but no luck ..
here is the error</p>
<pre><code>syntax error, unexpected '[' in C:\wamp\www\co\admin\modules\common\lib\classes\modules.php on line 169
</code></pre>
<p>here is my code </p>
<pre><code> f... | php | [2] |
3,047,203 | 3,047,204 | How to get month difference in jquery having only months and years | <p>How to get the month difference in jquery while my input contains just months and years, but not day? My input is from :(4-2011) To :(5-2015) .</p>
| jquery | [5] |
972,907 | 972,908 | Dynamically creating elements using jQuery | <p>I am building a list of checkbox items in jQuery based on an array returned from a handler.</p>
<p>The containing element is the <code>.listContainer</code> element below and then each dynamic element I want to add to this takes the form of the <code>.listContainerItem</code> element. Each item will have checkbox v... | jquery | [5] |
3,680,837 | 3,680,838 | jquery-ui-dialog-extra gives error when used with jQuery-ui-1.9.1 | <p>I am using jQuery-ui-dialog-extra to add minimize/maximize/restore buttons to a standard jQuery UI dialog. Its was working perfect when I was using jQuery-ui-1.8.16.Now I have upgraded the jQuery-ui from jQuery-ui-1.8.16 to jQuery-ui-1.9.1 .</p>
<p>Now the problem is when I click 'minimize' button of dialog, then d... | jquery | [5] |
5,073,918 | 5,073,919 | Generate 8-byte number in Java | <p>I'm a little bit confused, how to do this. I know I can use Random class to generate random numbers, but I don't know how to specify and generate 8-byte number?</p>
<p>Thanks,
Vuk</p>
| java | [1] |
3,707,585 | 3,707,586 | jQuery how to access JavaScript variable | <p>I know this is a very simple (rather stupid) quesiton </p>
<p>I have a javascript array <code>chart["Ref"]</code> how would access it in Jquery</p>
<p>can you access javascript variables from jquery and vice versa.</p>
<p>Yes I know jquery is JavaScript still ;-)</p>
| jquery | [5] |
5,552,797 | 5,552,798 | Javascript fade image in and out | <p>I am fairly new to JavaScript and i need a very simple script to fade an image in and out slowly on a loop. Any help would be much appreciated. </p>
| javascript | [3] |
1,636,793 | 1,636,794 | Android Application | <p>When i run the app. I am getting this error.
[INSTALL_FAILED_MISSING_SHARED_LIBRARY] when installing the application.</p>
| android | [4] |
3,770,598 | 3,770,599 | strpost can't find > character | <p>I need to find an image tag in a text entered in TinyMCE.
I'm triyng to find the position of 'img', and then, the first '>' starting on the position where appears 'img'.
So, I'm doing:</p>
<pre><code>strpos($text, '>')
</code></pre>
<p>but this don't return anything.
What I'm doin wrong?
thanks!!</p>
<hr>
<... | php | [2] |
2,123,530 | 2,123,531 | Android: how to center a button programatically created? | <p>I need to create a button programatically and have it centered on the layout, both horizontally and vertically. I am trying with the following code:</p>
<pre><code>LinearLayout ll = (LinearLayout)findViewById(R.id.layoutItem);
Button b = new Button(this);
b.setBackgroundDrawable(getResources().getDrawable(R... | android | [4] |
4,765,324 | 4,765,325 | Convert ObjectResult<string> to ObjectModel.Collection<string> | <p>One of the data member in my data contract is of type <code>System.Collections.ObjectModel.Collection<string></code>.
I am getting a result of type <code>ObjectResult<string></code> after executing a function import . How to convert <code>objectresult<string></code> to <code>ObjectModel.Collection&... | c# | [0] |
1,146,514 | 1,146,515 | Is C# going existential on me? | <p>For some reason an if(false) seems to be actually working. The ReferenceEquals call is in there as an extra test. Before it was just user==null which came out as false and yet the if statement still preceded to.. </p>
<p>[UPDATE]
This is a SharePoint/ASP.Net enviroment so yes it's multithreaded. However none of the... | c# | [0] |
3,499,325 | 3,499,326 | clean way to accomplish -- if x in [(0, 1, 2), (2, 0, 1), (1, 2, 0)]:? | <p>If not, then a canonical name for a function? 'Cycle' makes sense to me, but that's taken.</p>
<p>The example in the header is written for clarity and brevity. Real cases I'm working with have a lot of repetition.
(e.g., I want [1, 1, 0, 0, 0, 2, 1] to "match" [0, 0, 2, 1, 1, 1, 0])</p>
<p>This type of thing is ob... | python | [7] |
1,788,167 | 1,788,168 | Sending messages between threads in C# | <p>How can I sending and receiving message between threads?</p>
| c# | [0] |
4,691,869 | 4,691,870 | Building Dynamic jQuery Menu Using $(window).scrollTop(); | <p>I'm pretty new to jQuery but I'm trying to set things up so that when you scroll down past the global navigation at the top of the page a smaller menu with the same links pops out from the side. Here is the code I'm working with:</p>
<pre><code><script>
$(document).ready(function(){
$(window).scro... | jquery | [5] |
1,701,321 | 1,701,322 | How to convert an object to a byte array in C# | <p>I have a collection of objects that I need to write to a binary file. </p>
<p>I need the bytes in the file to be compact so I can't use BinaryFormatter. BinaryFormatter throws in all sorts of info for deserialization needs.</p>
<p>If I try byte[] myBytes = (byte[])myObject I get a runtime exception.</p>
<p>I ne... | c# | [0] |
2,215,583 | 2,215,584 | conversion of jpeg to svg in android | <p>I want to know how to convert jpeg files to svg files in android?
Thank you in advance. Or can I convert pdf into svg format?</p>
| android | [4] |
4,709,194 | 4,709,195 | Which screen size and density should I design Android for? | <p>I've been doing some reading on 4-screen sizes, and 4-densities for Android screen size suppor. I want to get a quick prototype app up and running. Is there any type of strategy for this or should I just (based on device size+density mostly used %'s) design for the normal screensize with med+high+xhigh dpi? Is the... | android | [4] |
5,511,534 | 5,511,535 | Python: Problems adding items to list in a class | <p>I've got a class defined with a method to add items to it:</p>
<pre><code>class ProdReg:
def __init__(self):
self.__PListe=[]
def addProdukt(self,pItem):
self.__Pliste.append(pItem)
</code></pre>
<p>When I instantiate a ProdReg object and try to add an object to it with the following code ... | python | [7] |
3,102,761 | 3,102,762 | Javascript checkboxes | <p>I want to know the number of checboxes checked in javascript. If only one checkbox is checked then it should show an alert message, otherwise it should do the processing. I tried <code>if(names[i].checked>2)</code> but it is not working.. Please help.</p>
<pre><code>function insert_slide(ed, height, width)
{ va... | javascript | [3] |
4,930,118 | 4,930,119 | Variable was not declared in this scope? | <p>I'm getting this error in several methods for several variables (all of which are vectors):</p>
<pre><code>error: ‘parent’ was not declared in this scope
</code></pre>
<p>I've tried wrapping my method implementations inside of "namespace DisjointSubsets { ... }", but that causes other problems. It seems to only do... | c++ | [6] |
2,090,039 | 2,090,040 | Where shall variables be defined within a method? | <p>Suppose, I have a method with a parameter of <code>Object</code> type.
The method returns nothing - <code>void</code>.</p>
<p>First it checks whether the parameter is not null (or any other check, like <code>objectParam.isEnabled()</code>)</p>
<pre><code>if (objectParam.isEnabled()) {
// ok
}
</code></pre>
<p... | java | [1] |
5,914,281 | 5,914,282 | How to set, search location in Google map to country specific | <p>I am working with Google map in my application. I need to set the search location for a specific country(eg India). For example If i search any place (eg. paris) it should search only in India. Is there any method to search, without passing country name India in the URL.</p>
| android | [4] |
74,970 | 74,971 | Displaying images from an array of drawtables in android | <p>I am new to android and experimenting with it.I have 3 pngs.I am setting the first png using
ImageView.setImageResource()
Now what I have to do is:
When the user touches the png on screen I have to display the remaing pngs as well.
I have tried :</p>
<pre><code>for(int i =0;i<treeArray.length;i++)
{
image1.... | android | [4] |
2,250,364 | 2,250,365 | "onModify" event for <select> | <h2>TL;DR</h2>
<p>How can I watch for changes in markup in <code><select></code> and, more importantly, <code><option></code> tags? </p>
<p>I <strong>don't</strong> want to listen for the <code>.change()</code> event (<code>onChange</code>), but I <strong>do</strong> want to listen for any changes in attr... | jquery | [5] |
2,853,094 | 2,853,095 | Python elif Statement acting unconditional | <p>Not sure why my code is defaulting to this elif. But it's never getting to the else statement. Even going as far as throwing index out of bound errors in the last elif. </p>
<p>Please disregard my non use of regex. It wasn't allowed for this homework assignment. The problem is the last elif before the else sta... | python | [7] |
2,189,721 | 2,189,722 | Numberofcomparison and nunber of item movements | <p>Im using c++ and is using insertion sort</p>
<p>Where in the insertion sort algoithm should we put a counter to monitor number of item movements and number of item comparison. I have included my setup below</p>
<pre><code>void InsertionSort::insertion_sort()
{
int key,i,count = 0;
for(int j=1;j<10;j++)
{
... | c++ | [6] |
4,195,838 | 4,195,839 | How can you stop a progress dialog running when network access drops? | <p>I have an app that goes out to a website to grab XML for processing. This process is in a separate thread and works fine when I have 3G or WiFi available. I also have code that checks signal before actually running the thread so it won't attempt with no connectivity.</p>
<p>During my testing I walked into a build... | android | [4] |
5,618,801 | 5,618,802 | Python string comparison with different case and float | <p>why python is giving output like this:</p>
<pre><code>>>> 'apple' > 'T'
True
>>> 'apple' > 't'
False
</code></pre>
<p>It should be True for both cases.right?</p>
<p>Edit:</p>
<p>I got the Idea of ASCII Table.Thanks!!</p>
<p>Now what about this.Is 11.1 is being treated as '11.1'?</p>
<pr... | python | [7] |
2,461,743 | 2,461,744 | PHP Split String After X Characters Into Separate Word | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9648019/php-str-split-without-word-wrap">PHP: str_split without word-wrap</a> </p>
</blockquote>
<p>Let's say I have this string :</p>
<pre><code>$string = "Lorem ipsum dolor sit amet";
</code></pre>
<p>and I ... | php | [2] |
4,752,943 | 4,752,944 | Checking bits in a byte using for loop | <p>I was recently studying C# where i came across following for loop</p>
<pre><code>// Display the bits within a byte.
using System;
class ShowBits {
static void Main() {
int t;
byte val;
val = 123;
for(t=128; t > 0; t = t/2) {
if((val & t) != 0)
Console.Write("1 ");
if((va... | c# | [0] |
3,822,863 | 3,822,864 | How do I return an elements class in jQuery? | <p>I would like to send the class of an element to a function. Basically, I need to tell showAjaxLoader() that it should show the loading icon for the element being clicked!</p>
<pre><code>jQuery(function($) {
var showAjaxLoader = function(selector) {
$(selector).empty().html('<img src="loading.gif" /&g... | jquery | [5] |
1,302,464 | 1,302,465 | android vedio recording with emulator | <p>1) is it possible to record vedios and audios using android emulator(using webcam) ? , and storing the recorded vedio or audio into the pc possibly as</p>
<p>recorder.setOutputFile("C:/test.mp4");</p>
| android | [4] |
3,377,558 | 3,377,559 | String [] Array Error | <p>When I used a String [] array, like this: </p>
<pre><code> import java.lang.String.*;
import java.text.DecimalFormat;
import java.text.NumberFormat;
public class JavaJoe
{
public static void main(String args[])
{
String [] day = {"Monday", "Tuesday", "Wednesday", "Thursday", "Saturday", "Sunday"};
</cod... | java | [1] |
3,396,162 | 3,396,163 | Error providing image from another site | <p>Basically what I want to do is have a section on my site, where you provide the username of a user, example: NOTCH </p>
<p>Where it then goes to the minecraft host and finds the user's skin. "Skin Stealer" if you like.</p>
<p>However I'm getting an error and have no idea how to get around it..</p>
<pre><code><... | php | [2] |
2,033,407 | 2,033,408 | MapView with button on bottom | <p>I'm trying to place a button at the bottom of my layout. Here's what I did</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.google.and... | android | [4] |
924,943 | 924,944 | Save as Ringtone from ContextMenu | <p>I have created a button that onClick plays a mp3 file.I have also create a context menu that when you press the button for 2 secs it prompts you to save it as ringtone.How can i save it somewhere in my sd?this is my code:</p>
<pre><code> public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
... | android | [4] |
4,144,739 | 4,144,740 | Search a word in a text file and return its frequency | <p>How to search for a particular word in a text file containing texts of words and return its frequency or occurrences ? </p>
| java | [1] |
1,376,514 | 1,376,515 | Listview and button with image inserted in one of tab (in Tab layout- Tabs are aligned at bottom) is overlapping | <p>I have aligned the Tabs at bottom. For each tab i have included the saperate layout. In one Tab i have used Relative layout and inserted the Table layout(with button and image) and list view . But list view is overlapping on bottom Tabs and table layout.</p>
<p>I have searched for this issue on forums but did'ent f... | android | [4] |
3,573,546 | 3,573,547 | is it possible to create the connectivity of android with ftp server | <p>is it possible to create the connectivity of android with ftp server. i am going to create an application where login information about user is placed on ftp server.</p>
| android | [4] |
3,781,539 | 3,781,540 | Unexpected T_FUNCTION? | <p>I've question about solving in php version 5.2.7, where i get an error Parse error: syntax error, unexpected T_FUNCTION in /home/ ... /mainMenu.php on line 56. The code is</p>
<pre><code>class MainMenu {
...
private static function toRec($arr) {
...
usort($newArr, function($a, $b) {//this w... | php | [2] |
3,861,942 | 3,861,943 | C++: malloc : error: invalid conversion from ‘void*’ to ‘uint8_t*’ | <p>I got this problem:</p>
<p>invalid conversion from ‘void*’ to ‘uint8_t*’</p>
<p>When doing this:</p>
<pre><code>int numBytes;
uint8_t *buffer;
buffer=malloc(numBytes); //error here, why?
</code></pre>
<p>or must I have to put it like this?</p>
<pre><code>buffer=malloc(numBytes);
</code></p... | c++ | [6] |
5,923,532 | 5,923,533 | Generate lists with exactly one item in common | <p>In Python, I'm poking around with an idea but I'm not exactly sure how to implement it correctly.</p>
<p>I have a pool of 26 letters ('A' - 'Z'), and each letter can be used as many times as needed. I want to create lists using these letters; each list will be 10 letters long with no repeats inside them, and I want... | python | [7] |
2,066,431 | 2,066,432 | how to create a PDF file uing javascript in IE | <p>I want to create a PDF file based on users' query result (in html table).
What is the best javascript/lib I can use for IE?
I found jsPDF but it does not support IE. </p>
| javascript | [3] |
1,181,174 | 1,181,175 | Background Color of a list item in ListView | <p>I am creating a audio player in android and showing a list of songs in a list view. I wants to change background color of currently playing song in list view. The song is changed when song is completed and in this case set background color of this song and remove background color from previous selected song in the l... | android | [4] |
2,126,354 | 2,126,355 | How to Zoom the image from bitmap stream | <p>I need to zoom the bitmap image. How to do that. I don't want to use from drawable folder.
Please advice me. Thanks in advance!</p>
| android | [4] |
5,539,590 | 5,539,591 | Issue with post method in jquery | <p>I am trying to send input using jQuery. Though I have succeeded and getting output but my issue is I am unable to perform action on output..</p>
<pre><code> $('#email').blur(function(){
var email = $('#email').val();
$('#emailrespond').show().html('<img width="80" height="27" src="images/dot.g... | jquery | [5] |
2,010,516 | 2,010,517 | PHP sanitization question | <p>I was wondering how would you sanitize the $_SERVER['REQUEST_URI'], $_POST['email'] and $url code in the code snippets below using PHP.</p>
<p>I'm using PHP Version 5.2.14</p>
<p>Code Snippets.</p>
<pre><code><form method="post" action="<?php $_SERVER['REQUEST_URI']; ?>">
</form>
$email = $_POS... | php | [2] |
3,223,424 | 3,223,425 | What does a static modifier on a constructor means? | <p>I saw this kind of code at work: </p>
<pre><code>class FooPlugin : IPlugin // IPlugin is a Microsoft CRM component, it has something special about it's execution
{
static FooPlugin()
{
SomeObject.StaticFunction(); // The guy who wrote it said it's meaningful to this question but he can't remember why.
}... | c# | [0] |
1,163,749 | 1,163,750 | How to implement such a view transition effect | <p>Suppose my app will display some text and thumbnail image on the screen. When the user tap the image, the app will display the larger image whose size is fit the screen, remains the same ratio, just like the UIImageView.contentMode = UIViewContentModeScaleAspectFit.
I want to implement such a view transition when di... | iphone | [8] |
3,891,615 | 3,891,616 | Turning my phone between vertical and horizontal is calling onCreate of the activity every time? | <p>How do I make it to where the activity persists through orientation change of the device? If I click in an edittext view, the keyboard comes up, but if I turn my phone sideways after that, the keyboard goes away.</p>
<p>I debugged the code and it's calling onCreate every time I change the orientation of my phone.<... | android | [4] |
3,716,920 | 3,716,921 | How to clone a TextView? | <p>Say I have a textview that I got from xml.</p>
<pre><code>final View popupView = getLayoutInflater().inflate(R.layout.popup, null);
final TextView tvPop = (TextView)popupView.findViewById(R.id.tvKeyPop);
</code></pre>
<p>But I want to have multiple <strong>tvPop</strong> 's, how should I clone them?</p>
<p>Tha... | android | [4] |
5,390,789 | 5,390,790 | Compare two objects that contain enum values of the same enum type | <p>I have an enum type defined: EnumType
Now imagine</p>
<pre><code>object A = EnumType.Value1;
object B = EnumType.Value2;
</code></pre>
<p>I would like to make the comparison ( A == B ) give me the correct result independent of the type of Enum used. In the comparison, the object will always contain enums, and both... | c# | [0] |
3,598,487 | 3,598,488 | Getting the approximated time of a web page to load in Java | <p>In a programme I am writing in Java, I generate random (existing) addresses. For each address, I want to calculate something.
I don't want to do this calculation if the page is very big, because then it would take much time.</p>
<p>So I thought, that if I know approximately how much time it would take to get the in... | java | [1] |
1,378,356 | 1,378,357 | Localization of windows form c# | <p>i have seen people localize their form using resource. put text data in resource file and show those text data in windows form apps fetch from resource file. but my requirement is different that when my apps will on any pc and that pc language is set Germany or french then all control caption of my apps will be show... | c# | [0] |
4,888,583 | 4,888,584 | Calling background service from BroadcastReceiver | <p>I am trying to call a push notification background service from BroadcastReceiver class, but my application crashes. The code is given below:</p>
<pre><code>public class AlarmReceiver extends BroadcastReceiver {
static int count=1;
@Override
public void onReceive(Context context, Intent intent) {
... | android | [4] |
356,003 | 356,004 | Offline language most similar to javascript? | <p>Just a quick query ...</p>
<p>I would like to ask people's opinions as to which language is most similar to javascript? I don't program for a living, but I have been learning javascript in my spare time. I would now like to have a shot at making a desktop application, and I think it would help to choose one which... | javascript | [3] |
2,880,830 | 2,880,831 | Animation with JQuery, please show me a better "way" | <p>Sorry but iam an JS Newbie (-: I have to animate some span tags inside an div, this code
works but it looks horrible..</p>
<pre><code>$('#div span.t1').fadeIn(1500, function() {
$(this).next().fadeIn(1500, function() {
$(this).next().fadeIn(1500, function() {
$(this).next().fadeI... | jquery | [5] |
3,992,542 | 3,992,543 | C# time in microseconds | <p>I am searching how to format time including microseconds.
I'm using class DateTime, it allowes (using properties) to get data till miliseconds, which is not enougth.
I tried using Ticks, but I didn't know how to translate it to microseconds.</p>
| c# | [0] |
5,226,349 | 5,226,350 | Checkbox .change() event not firing inside of jQuery .when() | <p>I have two ajax functions that fetch JSON objects using .getJSON and then build a table and drop-down menu using the contents of those objects. This much is working fine. Now I'm attempting to attach an event to each of the checkboxes located in the first column of the table. Naturally I want this to happen after... | jquery | [5] |
5,474,750 | 5,474,751 | WordPress 2.8.5 & 'Responsive Twenty Ten' - error | <p>So, According to the WordPress theme download page; the theme 'Twenty Ten' and it's child theme/plugin 'Responsive Twenty Ten' are compatible with 2.8+ </p>
<p><em>I'm stuck with using 2.8.5 at work, I don't have an answer to why - but am.</em> </p>
<p>I've uploaded both the plugin and the base theme manually - an... | php | [2] |
4,059,661 | 4,059,662 | how do I make this compile? | <p>This is my code snippet:</p>
<pre><code>import java.awt.*;
import java.net.*;
import javax.swing.*;
import java.awt.event.*;
class chatboxServer {
JFrame fr;
JPanel p;
JTextArea ta;
JButton send;
chatboxServer() {
fr=new JFrame("ChatBox_SERVER");
p=new JPanel();
ta=new JTextArea();
ta.se... | java | [1] |
4,948,435 | 4,948,436 | MPMusicPlayerController function stop causes crash | <p>I use codes below to play ipod audio library.</p>
<pre><code>if( musicPlayer==nil)
{
MPMusicPlayerController* playa=[[MPMusicPlayerController alloc]init];
musicPlayer=playa;
[ playa release];
}
musicPlayer = [MPMusicPlayerController applicationMusicPlayer];
[musicPlayer setShuffleMode: MPMusicShuff... | iphone | [8] |
177,022 | 177,023 | PHP Date Range Check | <p>I have 2 date ranges</p>
<pre><code>[contract_start_date] => 2011-10-20 [contract_end_date] => 2011-10-29
</code></pre>
<p>and I want to verify if the dates below are in range of the date range above</p>
<pre><code> 2011-05-05 and 2011-10-10
</code></pre>
<p>the dates given must not in any way exceed the r... | php | [2] |
2,370,918 | 2,370,919 | android.app.Application invoking ArrayAdapter.notifyDataSetChanged | <p>I have a static class which extends android.app.Application (<strong>HireApplication</strong>) which is doing a lot of my background work. I create AsyncTasks here, I store the largest data objects that my application uses. I'm writing this code in the Application class so that I can reuse it between separate activi... | android | [4] |
300,436 | 300,437 | Is file closed or still in memory? | <pre><code>lines = len(open(filename, 'r').readlines()) //or
open(filename, 'w').writelines(lines)
</code></pre>
<p>Does this lines in python, closes the opened file? If not how to close files which are not assigned to any variable? Also what these type of coding is called, is it "refcounting semantics"?</p>
| python | [7] |
5,543,983 | 5,543,984 | Can I do a timer loop and timeout for serial port communication in C#? | <p>I'm more familiar with C language and recently I've been ask to do C# for serial communication.
Below is my code for receiving data from COM port:</p>
<pre><code>public void RxData()
{
int i = 0;
int Data;
bool StartRx = false;
int timer;
while (true)
{
Data = sp.ReadByte();
... | c# | [0] |
4,265,810 | 4,265,811 | Reloading python module with flattened namespace | <p>I have a package with a similar structure as scipy/numpy, where you have a few main submodules, and each submodule contains functions from various files that have been flattened into the same namespace. Let's say</p>
<pre><code>package/
sub1/
__init__.py
file1.py
file2.py
</code></pre>
<p>And then <c... | python | [7] |
3,075,351 | 3,075,352 | Python: Converting a list into a dictionary? | <p>I have a list:</p>
<pre><code>['100 ug/ml', '50 ug/ml', '25 ug/ml', '12.5 ug/ml', '6.25 ug/ml', '3.125 ug/ml',
'1.5625 ug/ml', '0 ug/ml']
</code></pre>
<p>and I want to make it into a dictionary where these numbers are keys with empty values:</p>
<pre><code>growth_data = {'100 ug/ml': '', '50 ug/ml': '', '25 ug... | python | [7] |
3,117,449 | 3,117,450 | calling telerik report using report viewer in asp.net | <p>I have a telerik report.using this report we can filter data by selecting the dropdown value.when i see preview my report works fine.when i call this report using report viewer in asp.net web fom it is not working properly.</p>
| asp.net | [9] |
5,049,962 | 5,049,963 | Checking for input "0" (zero) with cin | <p>I'm trying to have a program loop, accepting input and producing output until the user enters "0" as the input.</p>
<p>The problem is, my program accepts two values for input, like this:</p>
<pre><code>cin >> amount >> currency;
</code></pre>
<p>So, I tried to have a while statement like this:</p>
<p... | c++ | [6] |
924,951 | 924,952 | Accesing a file outside my applicadtion data folder | <p>Where should I copy a file (in my case it is a sqlite database) to let my application copy it to its data folder? I have tried some locations with no luck. It seems I don't have enough permissions.</p>
| android | [4] |
3,949,229 | 3,949,230 | What is the best solution for collecting location info in the background? | <p>I want to make an application that gets the phone location each 30 min and save it to a DB (and transmits to a webserver).</p>
<p>The application should be running in the background for a few hours while the user can be doing other things with his phone (games, calls...)</p>
<p>Can someone please advice what is th... | android | [4] |
5,293,535 | 5,293,536 | Dropping data in range buckets | <p>I have two dimentional data stored in a sorted list of tuples, as follows:</p>
<pre><code>data = [(0.1,100), (0.13,300), (0.2,10)...
</code></pre>
<p>The first value in each tuple, the X value, only occurs once for the list of tuples. In other words, there can only be one value for 0.1 etc. </p>
<p>I then have a ... | python | [7] |
3,560,489 | 3,560,490 | Python nice print | <p>I have a string like this:</p>
<blockquote>
<p>G O S J A J E K R A L J</p>
</blockquote>
<p>I would like to print it like this:</p>
<blockquote>
<p>['G', 'O', 'S', 'J', 'A'....</p>
</blockquote>
<p>I tried with:</p>
<pre><code>print s,
print list(s),
</code></pre>
<p>Any ideas ?</p>
| python | [7] |
4,155,150 | 4,155,151 | How to fire an jquery action when a div is appended? | <p>I need to fire an jquery action when a div is appended.</p>
<p>Something like: </p>
<pre><code>if ($('div#myDiv').is_appended()) {
console.log('the div has been appended');
}
</code></pre>
<p>Is this possible?</p>
<p><strong>Why do I need this</strong></p>
<p>This question is related to this <a href="http://sta... | jquery | [5] |
3,422,496 | 3,422,497 | How to set digital clock font Android | <p>I am designing an app with digital clock. I have designed that except the font part. I want to show the clock font in "digital clock font"(like in digital watches) instead of normal font. Can someone tell me how to do this?</p>
<p>Thanks</p>
| android | [4] |
2,180,321 | 2,180,322 | How can I specify a null as an XML attribute for Android? | <p>I am a beginner in android.I m trying to run some of the examples in eclipse.I was able to do the simple ones but not database involved applications because they involve 2 .java files(databasemanager class and activity class).
I dont know which to copy where and run.I know it is silly...but consider me being a begin... | android | [4] |
1,147,794 | 1,147,795 | add these values in a list using python "app and a.b.c.d" Output in ["app", "and","a.b.c.d"] | <p>I am having Text to convert in a list </p>
<pre><code>"app and a.b.c.d"
</code></pre>
<p>Output should be </p>
<pre><code>["app", "and", "a.b.c.d"]
</code></pre>
| python | [7] |
2,563,477 | 2,563,478 | trouble converting image to a drawable, android | <p>I want to download an image and have it as a drawable in my object class</p>
<pre><code>for(int i=0;i<jArray.length();i++){
json_data = jArray.getJSONObject(i);
Programme Progresult = new Programme();
Progresult.name = json_data.getString("name");
Progresult.ev... | android | [4] |
4,761,322 | 4,761,323 | handling a compute intensive operation | <p>I'm writing a web based application (large cargo aircraft weight and balance) in which the user enters pallet weights. When an individual pallet weight is entered, a number of checks have to be made to determine if that weight can be accepted. The checks are all relatively trivial in terms of compute cycles required... | javascript | [3] |
5,634,089 | 5,634,090 | os.unlink multiple file in python | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/991279/deleting-files-by-type-in-python-on-windows">Deleting files by type in Python on Windows</a> </p>
</blockquote>
<p>How can I delete all files with the extension ".txt" in a directory? I normally just do</p>... | python | [7] |
260,748 | 260,749 | striking through the text | <p>I need to strike through the text of a multi-line label. Is there a way to do it?
Any suggestion would be greatly helpful. Thanks,</p>
| iphone | [8] |
45,303 | 45,304 | How to figure out which instance of java has a class loaded | <p>I'm trying to figure out how a system works. When I do a 'ps -A' I see several java processes. Is there a way to run a command that will examine a java instance and let me know what all jars or classes are loaded from that instance (preferably without stopping the instance)?</p>
| java | [1] |
4,462,702 | 4,462,703 | java design - user preset system | <p>I'm working on a pattern system where the user can store presets of all the parameters, and I want to include the possibility to interpolate between presets. We are talking about many parameters (80-100), so I guess it has to be as fast as possible. What would be a smart way to do this?
Some useful suggestions are v... | java | [1] |
1,131,818 | 1,131,819 | Check that word all words from one string exist in the other | <p>How can I check that all the words from string #2 exist in String #1? It should be case insensitive and I want exclude all punctuation and special characters during comparison of words.</p>
<p>Any help?</p>
<p>Thanks.</p>
| java | [1] |
5,280,518 | 5,280,519 | How to set Root View when using inflate method of LayoutInflater? | <p>After i looking up <a href="https://developer.android.com/reference/android/view/LayoutInflater.html#inflate%28int,%20android.view.ViewGroup,%20boolean%29" rel="nofollow">inflate</a>, i found it quit hard to understand what does the root view mean. Is it just the parent view of this generated xml hierarchy or the up... | android | [4] |
3,369,165 | 3,369,166 | store objects in $_GET | <p>how can i store an object in the $_GET array in PHP. i want to pass an object containing database information from one page to another page via the $_GET array, so there would be no need to access the database again.</p>
| php | [2] |
4,871,037 | 4,871,038 | Defining Files to a java program at runtime | <p>Hello all java newbie here...
I'm writing a java program that has to read from an external text file, (inquiries) and
then write out the responses to the inquiries to another external text file. </p>
<p>Now the program will not know the path name of the files until run time when the path name
for both the input a... | java | [1] |
3,921,450 | 3,921,451 | Most Instructive Open Source Android Projects? | <p>I'm looking to compile a list of instructive open-source Android projects.</p>
<p>My criteria for instructiveness:</p>
<ul>
<li>High code quality</li>
<li>Good API coverage, demonstrating how various parts of the API interact</li>
<li>Continually improved, showing that the designs are in fact maintainable</li>
<li... | android | [4] |
1,173,285 | 1,173,286 | Site root for backend and frontend | <p>Let's say that I have this website file root structure:</p>
<ul>
<li>frontend /home/username/public_html/</li>
<li>backend /home/username/public_html/admin/</li>
</ul>
<p>In frontend folder there is a file called config.php. In this file I get the site root of my website like this:</p>
<pre><code>define('ROOT', d... | php | [2] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.