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,651,004 | 1,651,005 | PHP fgetcsv error - How can I arrange it? | <p>I am getting the following error:</p>
<p>"Notice: fgetcsv() [function.fgetcsv]: delimiter must be a single character" in my browser</p>
<p>My PHP Code is as follows - can someone rearrange it please?</p>
<pre><code>$fh = fopen('notes.txt', 'r') or die('Unable to open notes.txt');
while(($line = fgetcsv($fh, 0, '... | php | [2] |
3,277,620 | 3,277,621 | Android Business app development according to website Database | <p>I have a website in which orders, reviews, n new users are submitted. So i want to develop a android app to notify admin that user, android or reviews are submitted on to web site. So is it possible? If yes, can you please give me some brief answer about my question?</p>
| android | [4] |
6,001,386 | 6,001,387 | Get image width of images in divs with jquery | <p>Is it possible to get the width of all images the divs and then set #content css to that value with jquery? Im using a horizontal layout for a project and need to add images from time to time. </p>
<pre><code><div id="content">
<div class="entry">
image
image
</div>
<div class="en... | jquery | [5] |
3,877,310 | 3,877,311 | JavaScript - I get an error in Firebug | <p>I am searching through a string trying to count the number of occurrences of @@ (two @ signs in a row). My code works well when the count is greater than 0, but I get an error in Firebug when the occurrence is zero.</p>
<p>This throws an error:</p>
<pre><code>var str = "This string has no at signs!";
var pcount =... | javascript | [3] |
5,492,629 | 5,492,630 | Replacing variables in text with random values | <p>I have a block of text that contains a variable:</p>
<pre><code>Hello my name is john #last#
</code></pre>
<p>I have 20 different last names in a array that can be used, how can I replace #last# with a random last name from the array? Meaning how can I read between the #'s and get "last" then use that to determin... | php | [2] |
5,900,436 | 5,900,437 | Is it possible to determine if an object is being referenced by another object? | <p>I have a memory leak in my C# program and cannot determine who is holding the reference to my object. Is there a way at runtime to determine which objects are holding a reference to a specific object?</p>
<p>In this economy my budget is zero, so a native or free solution is my only choice.</p>
| c# | [0] |
1,512,381 | 1,512,382 | iPhone - defining a conditional variable without a method | <p>I have a file called myConstants.h that I use to put all the constants used by the app. This file is imported in any class that needs to access one of the variables.</p>
<p>I am building a universal app and I have variables that I need to have different values if they are running on iPad or iPhone.</p>
<p>I give y... | iphone | [8] |
4,040,966 | 4,040,967 | XML parsing in android | <p>Hello
I have parsed the xml file. now aim is to display contents using list view as dynamiclly..
How it is possible?</p>
| android | [4] |
3,426,042 | 3,426,043 | Get the name of the variable which has the highest/biggest value with PHP | <p>I have 4 variables and each of those have an integer assigned to them. Could anybody please let me know how I can get the name of the variable which has the highest value?</p>
<p>Thanks in advance.</p>
| php | [2] |
969,181 | 969,182 | Error while printing a string at the console | <pre><code>for i in table.keys():
if table[i]==18798965:
first=i
if table[i]==12738624:
second=i
>>> print ("the encyrpted word is: %s%s") %(first,second);
the encyrpted word is: %s%s
Traceback (most recent call last):
File "<pyshell#31>", line 1, in <module>
print ("the encyrpted word is:... | python | [7] |
941,015 | 941,016 | Creating of multiple instance of the same Activity? | <p>I am creating a chat application & for that purpose i have used TabHost.</p>
<p>In that first tab contains List of Buddies, and as soon as user clicks on any of the buddy </p>
<p>from buddy it should create another tab for that buddy in order to chat.</p>
<p>I am completed up to this but my problem is I am us... | android | [4] |
5,297,402 | 5,297,403 | How to make a connection between Android device and printers via USB | <p>I am trying to take a print of some pdf file from my android phone.I want to use cable to connect device with printer(USB port). </p>
<p>How can I start to achieve this task? Are there any api's for doing this?</p>
<p>I searched in SO but didnt find any thing.</p>
<p>please help</p>
<p>Thanks in advance</p>
| android | [4] |
1,246,328 | 1,246,329 | How to write javascript to div that self executes | <p>My application is retrieving content from an XML file that has javascript in it. I am taking the javascript and placing it into my DOM, but the script is not executing.</p>
<p>How do I write javascript onto my page that will then execute?</p>
<p>My app goes something like this...</p>
<pre><code>var javaScriptFrom... | javascript | [3] |
4,358,301 | 4,358,302 | imageview not set full screen | <p>I set image view to full screen but it doesn't work: there is some space in between left and right side. How to set the <code>imageview</code> to full screen?</p>
<p>this is my XML code:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res... | android | [4] |
2,492,629 | 2,492,630 | Pulling data from ELM327 | <p>am developing an application where I can get data from ELM327 and display it on an android device.But I have a doubt,the ELM327 is not controllable,I mean it cant keep sending data automatically to the android device,so how would I be able to pull data from the ELM327.I am really stuck here.So help would be apprecia... | android | [4] |
487,030 | 487,031 | Update rss feed with Informa? | <p>I am very new to using the Informa library. I cannot seem to figure out how to update my feed. </p>
<p>Whenever I start my app for the first time it loads the feeds just fine. Then then I restart my app it loads the same (non-updated) feed.</p>
<p>How do I force it to update every time I start the app?</p>
<p>Her... | java | [1] |
1,951,811 | 1,951,812 | Difference between undefined and not being defined in Javascript | <p>See <a href="http://jsfiddle.net/FDhQF/1/" rel="nofollow">http://jsfiddle.net/FDhQF/1/</a> for a trivial example.</p>
<p>What's the difference between something being undefined and something not being defined in Javascript? For instance, trying to access a property for an object (effectively, trying to access a var... | javascript | [3] |
2,611,991 | 2,611,992 | 2d games in openGL | <p>hai I am new to iphone development. I used NSTimer scheduledTimerWithTimeInterval 0.01 seconds for game loop. The game consists drawscreen function inwhich I use CGContextClipToRect to clip the large images for animation. But the speed 0.01 seconds is working in simulator only not in the iphone(device). How can i ov... | iphone | [8] |
5,375,108 | 5,375,109 | save object after installation | <p>I'm developing an app in with all functionalities are done over an object
this object is constructed after heavy , time consuming data processing. This heavy processing is needed just once after installation and no more. How can I save this object in background in order not to construct it with each application lu... | android | [4] |
881,240 | 881,241 | what is the difference between calling function with () and without(). When we assign functions to variables? | <p>I want to know what is the difference , when we call function with round Brackets() and without brackets (). Suppose if i have a function like</p>
<pre><code>function($) {
var hideAnswers = function() {
$('#faqGrid tr td').each(function(){
var $td = $(this);
$td.children('div ... | jquery | [5] |
504,073 | 504,074 | Modifying a JSON object by creating a New Field using existing Elements | <p>I have a javascript object that goes like this:</p>
<pre><code>var obj = {"data":
[
{"name":"Alan","height":1.71,"weight":66},
{"name":"Ben","height":1.82,"weight":90},
{"name":"Chris","height":1.63,"weight":71}
]
,"school":"Dover Secondary"
}
</code></pre>
<p>How do I create a new field called BMI using ... | javascript | [3] |
3,173,258 | 3,173,259 | Removing the last digits in string | <p>I have a string that looks like this:</p>
<pre><code>[APPLE PIE] Sei Shoujo Sentai Lakers 3 Battle Team Lakers 3 (100% FULL-PIC)_20121104_032834
</code></pre>
<p>I want to remove the digits at the end of the string, basically the 16 digits at the end of the string. In the end it should look like this:</p>
<pre><c... | javascript | [3] |
319,133 | 319,134 | To get a value of a TD using JQuery | <p>I got a very simple Table with only two rows. <br/>
I was thinking what is the best way to get the value from the TD with ID "row2".<br/></p>
<pre><code><Table id="testing>
<tr>
<th>
</th>
<td id="row1">hello</td>
</tr>
<tr>
<th>
</th>
<td id="row2">... | jquery | [5] |
4,706,384 | 4,706,385 | enabling '&' and special characters in url | <p>How could i enable '&' and some others specials characters like '*,@,%' in url without changing registry value to allow restricted characters in iis. Is there any solution that can be solved through web.config file in asp.net?</p>
| asp.net | [9] |
3,608,813 | 3,608,814 | tictactoe and copying an array | <p>Hello I am working on a tic-tac-toe project on my own. I am not taking a programming class so its not homework. </p>
<p>I have written pretty much the rest of the code and am now working on the AI. </p>
<p>For the AI i am going to have it take a copy of the (2 dimensional array) and it check if it can win in a mo... | c++ | [6] |
1,302,448 | 1,302,449 | How to construct multipledata in a excel cell using Java | <p>I am reading an excel sheet in netbeans using Java. In ONE CELL, i have multiple values in each line, like : 39N
98N
99N
12N and so on..</p>
<p>I did this,</p>
<pre><code>for (Row row : sheet) {
if(row.getCell(0) != NULL) {
..... // get all the 4 values... | java | [1] |
250,785 | 250,786 | How to parse byte using bits value | <p>I have to get values from a byte saved in three parts of bit combination.</p>
<p>Bit Combination is following</p>
<p>| - - | - - - | - - - |</p>
<p>first portion contains two bits
Second portion contains 3 bits
Third portion contains 3 bits </p>
<p>sample value is</p>
<p>11010001 = 209 decimal</p>
<p>What I w... | c# | [0] |
2,029,609 | 2,029,610 | problem with angles | <p>Hi
this a part of my code :
I have a list which its size is three and I consider that 2 last items are in one line (p and q) I need to get the angle between the first item of this list and these two points (p,q)</p>
<pre><code> private Point partition(List<Point> list, Point p, Point q) {
double x1 ... | java | [1] |
2,602,912 | 2,602,913 | Datetime conversion in JavaScript or jQuery | <p>How to convert 10/jan/2010 to 10/01/2010 using JavaScript or jQuery</p>
<p>Kindly help me</p>
| javascript | [3] |
5,038,643 | 5,038,644 | How to make a countdown timer run in background in android? | <p>I am revoking a timer in android using intent now if i want to put that timer in a background when user clicks on directly back button then how do i do that? and then when i see background apps running it should be working and can be brought to front.</p>
| android | [4] |
2,588,990 | 2,588,991 | Web Site Thumbnail? | <p>I posted a link of my website on facebook, but it uses an image for a thumbnail that
I don't want(it is an image inside my website). How can I govern which thumbnail is used for my web site on any web page(facebook etc) ?</p>
<p>Thank You</p>
| asp.net | [9] |
1,170,230 | 1,170,231 | Why are certain elements of this python list ignored? | <p>I'm new to Python, and i'm struggling to understand the output of this simple program:</p>
<pre><code>list = os.listdir(os.getcwd())
print(list)
print()
for element in list:
print(element)
if 'txt' not in element: list.remove(element)
</code></pre>
<p>Which gives me this output :</p>
<pre><code>['examples... | python | [7] |
3,081,960 | 3,081,961 | Python 3.1 books still directly applicable to learning Python 2.7? | <p>I need to learn Python (v2.7) for my job, and looking for the best intro book for professional programmers.</p>
<p>I found (via amazon) that "The Quick Python Book" is the best, but it's for Python 3.1</p>
<p>I know there's a lot of similarities in 2.7 and 3.1, and somewhere read that you can mostly use 3.1 synt... | python | [7] |
1,348,377 | 1,348,378 | In ASP.Net, what is the difference between <%= and <%# | <p>In ASP.Net, what is the difference between <code><%= x %></code> and <code><%# x %></code>?</p>
| asp.net | [9] |
5,151,038 | 5,151,039 | Android: dynamically change ActionBar icon? | <p>I would like to dynamically change the "home" icon in the ActionBar. This is easily done in v14 with ActionBar.setIcon(...), but I can't find anyway to accomplish this in previous versions. </p>
| android | [4] |
369,648 | 369,649 | can not import the module deepcopy | <p>i've ran into this wierd error since few days where most of the applications/frameworks/modules will refuse to run , because of of the unavailability of the module deepcopy i can't understand why is that so ? </p>
<pre><code> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
... | python | [7] |
3,357,140 | 3,357,141 | How to Inheried Interface methods through to the subclasses in C# | <p>I have:</p>
<p>I:</p>
<pre><code>public interface I
{
void Something();
}
</code></pre>
<p>A:</p>
<pre><code>public class A : I
{
public void Something()
{
}
}
</code></pre>
<p>B:</p>
<pre><code>public class B : A
{
}
</code></pre>
<p>Why isn't B forced to implement (the decired) Something met... | c# | [0] |
409,134 | 409,135 | How can I delete files in Python | <p>I have several *.dbf files in a folder. Their names are of 8 digits such as 00043232.dbf, 00458283.dbf, 32349999.dbf, 83721092.dbf, 12139999.dbf, 48729999.dbf, ...</p>
<p>I want to delete files that end with 9999. So, in this case, I want to erase 32349999.dbf, 12139999.dbf, 48729999.dbf.</p>
<p>I can I do that in... | python | [7] |
3,347,753 | 3,347,754 | UTF-8 encoding vs Base-64 Encoding | <p>I want to encode a file it may be image or any pdf and send it to server. Which type of Encoding and decoding I have to follow. (Both server and client is in our company. we can write logic in both place). <strong>UTF-8 Encoding</strong> is by default supported in java. and to use <strong>Base-64</strong> encoding I... | java | [1] |
2,868,155 | 2,868,156 | How to check null condition for the boolean variable | <p>I have a class as shown </p>
<pre><code>package com;
public class Person {
boolean registered;
public boolean isRegistered() {
return registered;
}
public void setRegistered(boolean registered) {
this.registered = registered;
}
}
</code></pre>
<p>The Data to Person Object will be set based on the Data p... | java | [1] |
1,523,230 | 1,523,231 | Native language problem in text() and html in jQuery | <p>There is native language problem text() and html in jQuery :</p>
<pre><code>$("li p span").html("");
$("li.checked p span").html('çşğü : ' + myVar);
</code></pre>
<p>The output is not similar to html() and look like unknown characters.</p>
<p>Im not using any serverside language and meta charset is <code>charset=... | jquery | [5] |
2,356,901 | 2,356,902 | How can I get the date and version of drivers in C#? | <p>This is my code, I can get name, description...</p>
<pre><code>ManagementClass MgmtClass = new ManagementClass("Win32_SystemDriver");
foreach (ManagementObject mo in MgmtClass.GetInstances())
{
name=mo["Name"];
Dis=mo["Description"];
...
}
</code></pre>
<p>How can I get the date and version of drivers?</p>
| c# | [0] |
2,277,264 | 2,277,265 | Why we call always base class method like base.OnInit() | <p>Hi
I am new in asp .net.I am not able to undestand why we call base class method when we
override methods/events.Like automatically visual studio will put base.OnInit() if you are overriding OnInit.</p>
<pre><code> protected override void OnInit(EventArgs e)
{
base.OnInit(e);
}
</code></pre>
<p>... | asp.net | [9] |
2,437,919 | 2,437,920 | webView loads in simulator but not on the device | <p>The following line works in the device and simulator just fine:</p>
<pre><code>[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.myURLgoesHere.com"]]];
</code></pre>
<p>The following lines (in various versions) works fine in the simulator, but won't load the page in the device. A... | iphone | [8] |
834,608 | 834,609 | How can I get the next (x) number of children/siblings of a particular element in jQuery? | <p>This is just an illustrative example, but say I had a list of divs containing elements:</p>
<pre><code><div>
<p></p>
<p></p>
<p></p>
</div>
<div>
<p></p>
<p></p>
<p></p>
</div>
<div>
<p></p>
<p>... | jquery | [5] |
4,689,076 | 4,689,077 | Calculate with Integers | <p>So I got to a site where it says Integers don't allow Calculate with it, + - * / % ^ etc.</p>
<p>But I tried </p>
<pre><code>Integer n=new Integer(8);
n+=2;
Integer m=new Integer(10);
System.out.println(n+m);
</code></pre>
<p>and it prints out 20. So I am a little confused. I know this is a noob quest... | java | [1] |
2,008,096 | 2,008,097 | how to get songs from sd card and store the songs in database | <p>how to get songs from sd card and i have to store the songs in database and play the song. how to do that please assist me. how to store the songs from sd card to database.</p>
| android | [4] |
1,089,951 | 1,089,952 | jQuery using .html & then window.scrollTo | <p>I'm doing the following:</p>
<p>First, inject HTML into the page (a lot) which then increases the window scrollbar:</p>
<pre><code>$("#XXXX").html("LOTS OF HTML").show();
</code></pre>
<p>Then i want to scroll down to the end of the page:</p>
<pre><code>window.scrollTo(0,$(document).height());
</code></pre>
<p>... | jquery | [5] |
3,066,366 | 3,066,367 | Using existing cookies from outside the browser | <p>Ii want to download a file from site that need to be log-in. </p>
<p>So i think if i use my browser to log-in and store cookie on hdd.</p>
<p>Is it possible to download file with that cookie ?</p>
<p>(its impossible to get cookie with program, anti-bot, etc)</p>
| c# | [0] |
1,317,206 | 1,317,207 | If statement wont execute even though evaluation is true | <p>In the following code, the block under <code>if(timesout[entry] == "exit")</code> will never execute. I have verified <code>timesout[entry]</code> for the current loop is set as "exit" in debugging mode, as well as by printing out the variable before the if statement is evaluated, but no matter what, the block never... | java | [1] |
5,810,551 | 5,810,552 | get Idictionnary from Ilist | <p>How to get a IDictionnay form a IList </p>
| c# | [0] |
2,433,202 | 2,433,203 | How to add Tabs in the mid of screen | <p>I would like to know, how can i add Tabs in the mid of screen of Android. I am using Actionbarsherlock to get the look and feel of ICS. Here i can add tabs on top or at the bottom. </p>
<p>Is there any way or sample example you know to add tabs in the middle of screen.</p>
| android | [4] |
1,090,013 | 1,090,014 | what is the [object Window]? | <p>Google Translate, has some bookmark let for translate with 1 click, for example:</p>
<pre><code>javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.cr... | javascript | [3] |
1,499,593 | 1,499,594 | How can we open a jpeg or an audio file in a c++ program | <p>I'm working on a C++ project. I need to include a .jpg file in my program and then display it on the output screen.
For that we need to first read the data from the file. But i'm not getting that how to actually code the whole thing.
Please help me.</p>
| c++ | [6] |
1,779,291 | 1,779,292 | What does this syntax mean? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1771786/question-mark-in-javascript">Question mark in JavaScript</a> </p>
</blockquote>
<p>I've seen this around a few times but I never knew what it meant. What is the name of it and how does it work?</p>
<p>H... | javascript | [3] |
530,327 | 530,328 | How to write c++ functions by returning parameters? | <p>Need help in figuring out how to write function and returning parameters. Wrote the question below and answer from solution manual, not sure how to write the function though very confused :( </p>
<p>Here's what I've tried:</p>
<pre><code>#include <iostream>
using namespace std;
char Answer;
void max();
... | c++ | [6] |
2,399,159 | 2,399,160 | Trimming string removes more than needed | <p>The below code is meant to trim my string. Unfortunately it's removing more than the 'conf' value.</p>
<p>Did I do this correctly?</p>
<p>What this is doing is adding a double html response address, so i'm removing the first url which is 'conf'</p>
<pre><code>String pageIdUrl = response.getRedirectUrl();
if(page... | java | [1] |
5,502,189 | 5,502,190 | i can't understand "key=>value" this code in php? | <p>I got a question about the "$key => $value" in the code below... I looked it up in google but it didn't returned any results.. All I know is that "=>" is used in arrays like x = array('a' => 'b'). </p>
<pre><code>function _stripslashes_rcurs($variable,$top = true)
{
$clean_data = array();
foreach($variable as ... | php | [2] |
2,037,810 | 2,037,811 | Error in my existing android project | <p>error:</p>
<p>The project was not built due to "Resource already exists on disk: '/Project/bin/default.properties'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent Project Unknown Java Problem</p>
| android | [4] |
3,307,437 | 3,307,438 | C# ISerializable question | <p>I am planning to use serialization to do clone. I have to make my class ISerializable. But how about its super classes and all referenced variable classes? do I need to make them all ISerializable?</p>
<p>If I use ISerializable. I have to implement the GetObjectData(), what I should put inside that method? leave i... | c# | [0] |
2,626,324 | 2,626,325 | upload or copying files / deleting | <p>I am using a file in my main folder, httpdocs to execute this operations ( php ) on a "subdomain" folder that is outside the main folder.</p>
<p>The problem is I can't copy files, delete into that folder... the following error appears:</p>
<blockquote>
<p>Warning: opendir() [function.opendir]: open_basedir restr... | php | [2] |
2,266,148 | 2,266,149 | jet.OLEDB.4.0 provider Error that i get | <p>i try to install my C# program on Windows 7 64bit</p>
<p>i installed Access too</p>
<p>and i got this error:</p>
<pre><code>The Microsoft.jet.OLEDB.4.0 provider is not registered on the local machine
</code></pre>
<p>that can be the problem ?</p>
<p>thank's in advance</p>
| c# | [0] |
3,365,464 | 3,365,465 | How to list all media in Android? | <p>I'm building a specialized media player for android and need a way to select a song from the device. I like how the builtin music player groups everything by artist/album, is that something I would have to write or is there something I can just plug in to get that functionality for free? </p>
<p>What is the easie... | android | [4] |
3,602,825 | 3,602,826 | Javascript - SendKeystrokes | <p>Is there a way I can send a key stroke to the browser from JavaScript? For example: I would like to trigger the key F11 through JavaScript so that my browser goes to theater mode.</p>
| javascript | [3] |
534,992 | 534,993 | convert array to string in javascript | <p>I want the text to be printed without commas.</p>
<pre><code><html>
<head>
<title>Reverse</title>
</head>
<body>
<form name="rev">
Enter the string : <input type="text" name="str"/>
<input type="button" value="click" onclick="rev1()" /><br>
reverse of give... | javascript | [3] |
4,937,319 | 4,937,320 | Using this() in code | <p>I am new to CSharp.I have seen "this()" in some code.My question is Suppose if i call</p>
<p>Paremeterized constructor ,am i invoking the paremeterless constructor forcefully?.But According to constructor construction ,i believe parameterless constructor will be executed first.Can you please explain this with simpl... | c# | [0] |
3,375,979 | 3,375,980 | Filter duplicated items from enumerable | <p>I have an unordered enumeration that may contain duplicates, and I want to remove ALL items that have duplicates, and keep only those that occur only once in the original enumeration.</p>
<p>Example: A and C are removed since they occur more than once:</p>
<p>input {A,C,B,A,C,D,A}<br>
output {B,D}</p>
<p>A quick ... | c# | [0] |
834,407 | 834,408 | array_unique causing undefined offset error | <p>I have been trying to use array_unique to remove duplicates from the search results I am populating. However, I am getting an undefined offset error. I was wondering if anyone knows what is causing this error and what I can do to fix it? As you can see below I am populating search results from two different places a... | php | [2] |
3,628,940 | 3,628,941 | Is document.location.protocol ever invalid? | <p>I want to construct URLs with the same scheme (presumably, "http:" or "https:") as the page that loaded the currently-running JavaScript. Modern browsers support simply omitting the scheme (for example, <code>src="//example.com/test.js"</code>), but this isn't fully cross-browser compatible. (I've read that IE 6 is ... | javascript | [3] |
284,455 | 284,456 | Preload & Cache Images then Delete Older Images from Cache | <p>I'm building an Android app that displays a series of images. </p>
<p>I want to preload the images in the background and put them in the cache. </p>
<p>When a user sees an image, there is no need to continue caching the images since the user cannot go back to it so I want to remove them from the cache.</p>
<p>Can... | android | [4] |
4,038,181 | 4,038,182 | cufon is not a function | <p>Offff dont understand why I get cufon.font is not a function error. I followed all the instructions at its website.</p>
<pre><code><script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/Futura_Lt_BT_400.font.js"></script>
<script type="text/... | jquery | [5] |
3,840,029 | 3,840,030 | ConfigParser and 2 config files | <p>I want to split my config file to 2 config files: common.conf and particular.conf. It's possible parse 2 config files as one config ?</p>
| python | [7] |
601,563 | 601,564 | Are the following structs the same type? | <p>I have a struct defined as the following:</p>
<pre><code>typedef struct {
string foo;
} A, B;
</code></pre>
<p>I also have a set of functions as follows:</p>
<pre><code>void Init(A *p) {
p->foo;
}
void Init(B *p) {
p->foo;
}
</code></pre>
<p>The gcc complains that Init is being redefined. Can I... | c++ | [6] |
3,009,112 | 3,009,113 | iPhone:Google Maps and pin | <p>I am developing a map screen. I want to have a pin on the place of map, when particular latitude and longitude is selected. Also, clicking on a pin, it has to show an small view with some labels. Please share me some sample, so i can read and make us it.</p>
<p>Thank you!</p>
| iphone | [8] |
2,928,368 | 2,928,369 | Calling Method represented by string | <p>I am being passed a string similar to below.</p>
<pre><code>"Users_Controller.login"
</code></pre>
<p>"Users_Controller" represents the object below.
And "login" a method within it.</p>
<pre><code>var Users_Controller = ( function () {
return{
login : function(vo, callback)
{......}
}
})();
</code></pre>... | javascript | [3] |
5,967,953 | 5,967,954 | get the values of a form field and save in database | <p>I have a form in which i use two dimensional array for field names.The fields names are below</p>
<p>myform[message][]</p>
<p>myform[name][]</p>
<p>myform[add][]</p>
<p>it means there are three arrays.Every array has arrays inside it.when i var_dump my form after putting values and submitting it.I get the below ... | php | [2] |
2,930,650 | 2,930,651 | Image on every page in iPhone application | <p>How can I add an image to the top of every page in an iPhone application?</p>
| iphone | [8] |
1,255,676 | 1,255,677 | Showing of image in a word doc | <p>I am trying to convert HTML to WORD file. Able to convert text and download it, but unable to insert image in word file.</p>
<p>I tried by giving physical path of image. Then image is included, but if the file is moved (downloaded in another system), then image is not displayed.</p>
<p>How to include image in word... | php | [2] |
3,536,523 | 3,536,524 | onActivityResult() will not be called if call for camera | <p>My simple structure:</p>
<ul>
<li>List.java (Activity A)</li>
<li>New.java (Activity B)</li>
</ul>
<p>Steps:</p>
<ol>
<li>Start A and use <code>startActivityForResult()</code> to turn to B by a button.</li>
<li>Then in B, use <code>Intent it = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);</code> and <code>startAc... | android | [4] |
4,364,785 | 4,364,786 | Backend server for Android clients - Possible to verify that the customer has bought the application? | <p>Scenario: Server providing a rest-api to Android clients. There are no subscriptions involved, but customers have to pay for the application in order to get access to the rest-service. </p>
<p>Does Google offer an API the back-end server can use to query Google whether the given client has paid for the application?... | android | [4] |
1,173,727 | 1,173,728 | using jquery function to change tab selected | <p>is it possible to add a .click event inside a function which is called when something happens. </p>
<p>for example if some one clicks a button other than the tab navigation that button function will change the select tab.</p>
<p>how can I add it to this function function() { }</p>
| jquery | [5] |
3,710,508 | 3,710,509 | Forms with a variable number of fields | <p>I'm attempting to create a sort of marketplace. Each item on the market has a type (i.e. the item being sold), a value, a quantity, a seller name, and an id, and all of this information is stored in a MySQL database.</p>
<p>When the user views the market, all entries in the market are returned. In addition, an inpu... | php | [2] |
1,273,093 | 1,273,094 | Downloading Android source code | <p>I am new to Android. I wanted take a look at the Andriod source and started the download process. I am having a problem in initialising the repo. I am getting a below error:</p>
<pre><code>$ repo init -u https://android.googlesource.com/platform/manifest
Traceback (most recent call last):
File "/bin/repo", line 6... | android | [4] |
2,150,478 | 2,150,479 | How do I get the current screen cursor position? | <p>My objective is to get current position on the screen (out side the form), and save X, Y coords by press "C" for example. </p>
<p>I google and found some suggestion to use api hooks, but i wonder are there a way we can do this task purely in C# code (.NET Lib) ? </p>
<p>Please give me quick sample if possible beca... | c# | [0] |
3,367,991 | 3,367,992 | Basic Java - Please help a stressed noob with a method? | <p>My name's Ali, I have just started two units of study with the Open University, so I am entirely fresh-faced to Java. I am trying to get the following code to compile but the lack of support i'm getting from my tutor is horrendous and the several books I have splayed out across my room aren't helping me get going.</... | java | [1] |
2,539,715 | 2,539,716 | How to configure interactive python to allow blank lines inside methods | <p>Is it possible to test methods inside interactive python and retain blank lines within them?</p>
<pre><code>def f1():
import random
import time
time.sleep(random.randint(1, 4))
</code></pre>
<p>This gives the familiar error</p>
<pre><code>IndentationError: unexpected indent
</code></pre>
<p>So, yes a work... | python | [7] |
1,031,630 | 1,031,631 | In c++ how can I make class to recognize structures without including the header? | <p>Hello
I have class AA.h and inside I have defined structure: </p>
<pre><code>#include "BB.h"
Struct foo{
};
Class AA
{
…
void funa()
{
BB bb;
foo f;
bb.func(f);
}
….
};
</code></pre>
<p>My question is do I have to include the AA.h also in the BB.h file so it will recognize the foo struct or t... | c++ | [6] |
2,533,271 | 2,533,272 | Exposing namespace from an assembly in C# | <p>I have a C# project which has a namespace A. The output of the project is a library(dll). When I try to add a reference to this dll file from another project, I am not able to see the namespace A present in the dll. Is there anything that I should do while creating the dll file so as to see the namespace? Please hel... | c# | [0] |
2,865,029 | 2,865,030 | How to set onTouchEvent on Bitmap image using canvas. | <p>i'm new in android development. I wanted to set onTouchEvent particularly for an image. so that i can do some work ,like increase score etc....</p>
<p>Here is the sample code i tried..</p>
<pre><code> @Override
protected void onDraw(Canvas canvas)
{
canvas.drawBitmap(image1, random.nextInt(455), rand... | android | [4] |
1,393,462 | 1,393,463 | Errors on uploading file images to server | <p>I want to upload file images to server but I get errors. I can't identify the problem</p>
<p>I use this line of code to upload using asp.net <code>fileupload</code> control </p>
<pre><code>FileUpload1.PostedFile.SaveAs(Server.MapPath("products_images/")
+ FileUpload1.Post... | asp.net | [9] |
80,131 | 80,132 | String comparison C++ | <p>I want to check <code>szDir</code> in <code>szSelectedDir</code>. I want the function to consider the below inputs are different. My sample function is not handling the scenario, please let me know the good solutions.</p>
<pre><code>string szSelectedDir ="C:\\Windows1\Test";
string szDir="C:\\Windows";
void IsWind... | c++ | [6] |
3,272,320 | 3,272,321 | can any one explain how uksort() in php works? | <p>I have read it in php manual ..and on may other website...but it is very difficult to understand.</p>
<p>Can any one help me out? </p>
<p>this is the example.</p>
<pre><code> <?php
function my_sort($x, $y)
{
if ($x == $y) return 0;
return ($x > $y) ? -1 : 1;
}
$people = a... | php | [2] |
648,370 | 648,371 | java programming - dynamic variable names | <p>I had a question regarding this program I was trying to write.</p>
<pre><code>fin = new FileInputStream (args[0]);
BufferedReader d = new BufferedReader(new InputStreamReader(fin));
String str;
while ((str = d.readLine()) != null) {
String [] string = str.split("... | java | [1] |
5,302,436 | 5,302,437 | replace urlpath in php | <p>I am new to php.</p>
<p>I am getting default image path as \xampp\htdocs\Sample\tmp/one.jpg</p>
<p>and i have to replace \xampp\htdocs with http:\localhost </p>
<p>If i use in this way i am getting required output</p>
<pre><code>$absolute = "\xampp\htdocs";
$relative = "http:\\localhost";
$imagepathurl = "\xampp... | php | [2] |
3,325,496 | 3,325,497 | Is there a way in JavaScript which clicks an anchor | <p>Is there anyway in JavaScript which emulate user clicks an anchor?</p>
<p>Mozilla(Firefox ) does not implement that.
<a href="https://developer.mozilla.org/en/DOM/element.click" rel="nofollow">https://developer.mozilla.org/en/DOM/element.click</a></p>
<p>But is there any browser which does?</p>
| javascript | [3] |
4,349,477 | 4,349,478 | Function argument as filename | <p>Addig a file to MediaPlayer is easy:</p>
<pre><code>mp = MediaPlayer.create(Myctivity.this, R.raw.sound);
</code></pre>
<p>But what if I have the filename as an argument coming from a function like this?</p>
<pre><code> public void CreateSound(String filename, float volume)
{
mp = MediaPlayer.create(... | android | [4] |
1,524,769 | 1,524,770 | How to have PHP boolean FALSE to be output as FALSE only | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/10290278/transfer-a-variable-from-php-to-js">transfer a Variable from php to js</a> </p>
</blockquote>
<p>This might seem trivial. I am setting a PHP variable's value as false. Then after some processing I am ou... | php | [2] |
4,808,636 | 4,808,637 | help with show/hide jquery script | <p>I need a js script show / hide with only shown one div at time others closed. By default any (only one) must be shown.</p>
<p>I have got this script: <a href="http://jsfiddle.net/kolxoznik1/BFV9k/" rel="nofollow">http://jsfiddle.net/kolxoznik1/BFV9k/</a>.</p>
<p>I want to add some class like <code>show</code>: </p... | jquery | [5] |
4,506,057 | 4,506,058 | How to get if item exist in IEnumerable using Linq | <p>How would you refactor this method?</p>
<pre><code> private bool IsTermExist(string word)
{
var query = from term in m_xdoc.Descendants("Term")
where term.Attribute("Name").Value.ToUpper().Contains(word.ToUpper())
select term;
return query.Any();
}... | c# | [0] |
5,836,761 | 5,836,762 | implementing Equals but not GetHashCode in c# | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/371328/why-is-it-important-to-override-gethashcode-when-equals-method-is-overriden-in-c">Why is it important to override GetHashCode when Equals method is overriden in C#?</a> </p>
</blockquote>
<p>I dont implem... | c# | [0] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.