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 |
|---|---|---|---|---|---|
2,976,720 | 2,976,721 | jquery marking values less than selected value as checked | <p>I have numerous checkboxes that are prices and what I've tried to do is the following</p>
<p>When someone selects a prices/checkbox, it will automatically check the values that are less than the selected value.</p>
<p><a href="http://jsfiddle.net/ppw5z/1/" rel="nofollow">JsFiddle</a></p>
<p><strong>HTML</strong><... | jquery | [5] |
361,422 | 361,423 | How can i get a client computer identifier in asp.net? | <p>all</p>
<p>Who can tell me how/whether I can get a client computer identifier in my asp.net/or javascript ? (The client is in network not local Intranet)</p>
<p>(What is the client computer indentifier? I think such as: Client computer MAC Address, or any hardware GUID (like CPU, Network Card, etc. ) ?)</p>
<p>O... | asp.net | [9] |
1,767,543 | 1,767,544 | jQuery hide if mouse not over element onload | <p>If I've got a menu, which for accessability reasons, is visible when the page loads (so if the EU doesn't have JS enabled then they can still navigate around), but I want to hide it if they do have JS enabled, then it's easy enough, just hide it. However I want it to stay open if the mouse is over the element when t... | jquery | [5] |
527,063 | 527,064 | Proper check to ensure scrollbars | <p>Ok, so I've got a pop up window from Javascript. However, this window has dynamically generated content - a person could add dozens of entries, which would fill the box, but because the box is frequently generated with little content in it, it does not naturally have a scrollbar.</p>
<p>How would I add a test in Ja... | javascript | [3] |
1,357,177 | 1,357,178 | Android check for empty int variable | <p>How can I make this work?</p>
<pre><code>int resId = getResources().getIdentifier("image" + passedVar, "drawable", "com.fnesse.beachguide");
if (resId == null) {
image.setBackgroundResource(resId);
} else {
image.setImageResource(R.drawable.defaultimage);
}
</code></pre>
<p>I’m getting the correct respons... | android | [4] |
3,465,716 | 3,465,717 | Else clause with for and while loop | <p>You can use the <code>else</code> clause with <code>for</code> and <code>while</code> loops (<a href="http://docs.python.org/2/reference/compound_stmts.html#for" rel="nofollow">docs</a>).</p>
<pre><code>def has_odd(l):
for num in l:
if num % 2 != 0:
print "odd's in the list"
break
else:
... | python | [7] |
2,992,098 | 2,992,099 | Use grep on file in Python | <p>I have searched the grep answers on here and cannot find an answer. They all seem to search for a string in a file, not a <strong>list of strings</strong> from a file. I already have a search function that works, but grep does it WAY faster. I have a list of strings in a file sn.txt (with one string on each line,... | python | [7] |
1,890,777 | 1,890,778 | How to create a list of all built-in PHP functions a project makes use of? | <p>Background: PHP allows providers to disable functions (directive "disable_functions"). So in order to get to know if your project is running on a specific server you'll have to check:</p>
<ol>
<li>What built-in (=excluding user-defined) functions is your to-be-deployed project using?</li>
<li>Are the functions avai... | php | [2] |
3,532,320 | 3,532,321 | Performance tips about list | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6961356/list-clear-vs-list-new-arraylistint">list.clear() vs list = new ArrayList<int>();</a> </p>
</blockquote>
<p>I have a list:</p>
<pre><code>List<Integer> l1 = new ArrayList<Integer>();
... | java | [1] |
5,418,010 | 5,418,011 | Android custom keyboard | <p>I've read the article how to implement an input service method from android website.
I want to develop a custom android keyboard with bigger keys. I've followed the SoftKeyboard example, everything is working well but something important is missing: the candidates view does not give me any candidate.
Does anyone can... | android | [4] |
3,223,467 | 3,223,468 | jQuery: change css color based on inline style width | <p>If I have this html, how would I change the color based on the width?</p>
<pre><code> <div id="progress_bar" class="meter-bg">
<div class="meter" style="width: 67%;">
</div>
</div>
</code></pre>
<p>For example, if the width is between 0 and 33%, green. If it's 33%-66%... | jquery | [5] |
5,141,877 | 5,141,878 | Java package - class not found, same directory | <p>I have two Java classes "giveMyOb" and "dataConn" declared in the same directory. Both are public classes. "giveMyOb" has a static method "getMine()". Inside dataConn, I called the static method as </p>
<pre><code>giveMyOb.getMine();
</code></pre>
<p>When I try to compile dataConn.java, the following error is retu... | java | [1] |
4,467,919 | 4,467,920 | Issue with sorting with collection in java | <p>I have a hashmap:</p>
<pre><code>HashMap<String,QuoteBean> map = new HashMap<String,QuoteBean>();
</code></pre>
<p>The <code>QuoteBean</code> is a normal bean:</p>
<pre><code>class QuoteBean{
String symbol;
BigDecimal price;
BigDecimal quoteprice;
//setter and getter methods
}
</code><... | java | [1] |
4,132,949 | 4,132,950 | Words, pdf document class/lib/jars to present Word, pdf format file to develop Android application | <p>I would like to build a fuction to read the format of Words,PDF or other types of document files and present it in my Android application.</p>
<p>Is there a widget, lib, class build inside Android? Or some 3rd org, that provides this for free?</p>
<p>Thanks for the help !</p>
| android | [4] |
3,856,157 | 3,856,158 | Android is this too old | <p>I have just started learning android, I downloaded a package called "android developer tools" which comes with eclipse.</p>
<p>I do exactly what he does. When I am using his code after editing the xml file and going to the main code, I get lots of red lines while he does not.</p>
<p><a href="https://www.youtube.co... | android | [4] |
1,208,387 | 1,208,388 | Android Menu Button on 4.0 Devices | <p>If my target SDK is set to 11 and I am using Theme.Holo.NoActionBar, is there any way to get my menu to appear? I am using Theme.Holo for larger screens such as tablets, but purely in the interest of saving screen space, I'd like to not show the Action Bar on smartphones.</p>
<p>However, I don't know if some sort o... | android | [4] |
4,225,532 | 4,225,533 | Getting rid of the dollar sign? | <p>Ok so i am importing a csv via a PHP script I am writing and the spreadsheet has values like $4090,00 and i need to insert these values in a mysql decimal field using PHP. Is there an easy way to get rid of the $ if its present in PHP</p>
| php | [2] |
3,203,951 | 3,203,952 | What is the "context" meaning in Android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3572463/what-is-context-in-android">What is Context in Android?</a> </p>
</blockquote>
<p>I think its a very interesting question:
What is the "context" meaning/concept in Android ?</p>
<p>Almost any things/obj... | android | [4] |
295,514 | 295,515 | how to remove unused javascript functions, variables, and elements | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/53249/are-there-any-good-javascript-code-coverage-tools">Are there any good Javascript code coverage tools?</a> </p>
</blockquote>
<p>is there a firefox addon or something that scans a web document and tells me ... | javascript | [3] |
2,953,126 | 2,953,127 | Is there a better way to specify named arguments when calling in Python | <p><code>template.render(current_user=current_user, thread=thread, messages=messages)</code></p>
<p>Is there a dont-repeat-yourself compliant way to do <code>whatever=whatever</code>? Like a magic symbol to prepend the variable name with or something like this <code>~whatever, ~something, ~etc</code>?</p>
| python | [7] |
1,364,737 | 1,364,738 | How to compare two files based on datetime? | <p>I need to compare two files based on datetime..I need to check whether these two files were created or modified with same datetime..I have used this code to read the datetime of files...</p>
<pre><code> string fileName = txtfile1.Text;
var ftime = File.GetLastWriteTime(fileName).ToString();
... | c# | [0] |
570,105 | 570,106 | Issue reading String | <p>I have an issue with my basic addition program everything works such as typing the value and testing if its not wrong but an issue occurs when i open my program and leave the TextView blank and press button check , the program terminates.<br>
Ive tried convert String =""; to an integer but then my program does not s... | android | [4] |
2,600,408 | 2,600,409 | python enums with attributes | <p>Consider:</p>
<pre><code>class Item:
def __init__(self, a, b):
self.a = a
self.b = b
class Items:
GREEN = Item('a', 'b')
BLUE = Item('c', 'd')
</code></pre>
<p>Is there a way to adapt the ideas for simple enums to this case? (see <a href="http://stackoverflow.com/questions/36932/whats-the... | python | [7] |
475,022 | 475,023 | Better Way To Append To A String | <p>When I use a <code>foreach</code> to add content to a string i always use <code>$x .= 'content'</code> but first I have the declare that variable <code>$x = ''</code> which seems like an extra line of code that isn't needed. Is there a better way to do this?</p>
<p>Here's a good example:</p>
<pre><code>$options = ... | php | [2] |
4,383,358 | 4,383,359 | Getting lat, long from iphone UDID only ...? | <p>how can i get lat,long information from my device UDID only ???</p>
<p>not using CoreLocation fromework , using device UDID only...!!!</p>
| iphone | [8] |
880,425 | 880,426 | Keychain in IOS | <p>please, can someone tell me in a few words whats is keychain ? what's based for ? or shrare e document where i can understand,</p>
<p>thanks</p>
| iphone | [8] |
4,005,346 | 4,005,347 | C# dynamically growing line graph | <p>Does anybody have a good example of a dynamically growing line graph, what i have is a program tracking users input and this input will grow varying amounts day to day but i need to graph it. Any tips of suggestions would be awesome.</p>
| c# | [0] |
3,319,508 | 3,319,509 | JAVA - find element in linked list | <p>I need to solve this problem:</p>
<p>Write a method <code>find()</code> that takes an instance of <code>Stack</code> and
a <code>String</code> <code>key</code> as arguments and returns <code>true</code> if some node in the list has <code>key</code> as
its <code>item</code> field, <code>false</code> otherwise. Test ... | java | [1] |
3,086,479 | 3,086,480 | calling google places api | <pre><code>//here is my code
public void performSearch() throws Exception {
try {
System.out.println("Perform Search ....");
System.out.println("-------------------");
HttpRequestFactory httpRequestFactory = createRequestFactory(transport);
HttpRequest request = h... | android | [4] |
5,025,002 | 5,025,003 | How to make my defer to work | <p>Need some helpt with my defer, tried to use .then and .done. But it doesnt work.
It write my console.log before my servercall is done.</p>
<pre><code>$.when(PersonAtlLawUpdate(personRef)).then(console.log('test'));
function PersonAtlLawUpdate(personRef, cbFunc) {
var selectionPanel = $('div#SelectionPanel'),
... | jquery | [5] |
3,863,135 | 3,863,136 | Not able to connect using imap_open () | <p>I am trying to connect and fetch messages of my hosting's email address using imap_open(), but its throwing errors.</p>
<pre><code>$server = '{mail.booksnearby.in:143/imap/ssl/novalidate-cert}INBOX';
$imap_connection = imap_open($server, $login, $password);
$mailboxinfo = imap_mailboxmsginfo($imap_connection);
$mes... | php | [2] |
1,340,419 | 1,340,420 | get html and text of highlighted (selected) elements (spans) and store text in hidden textarea | <p>I want to know how to get the html and text of spans that are selected. Example html:</p>
<pre><code><span>a</span>
<span>b</span>
<span>c</span>
<span>d</span>
</code></pre>
<p>so if I highlighted with my cursor (a-b)...I would get </p>
<pre><code>var storedHtml = ... | jquery | [5] |
5,053,838 | 5,053,839 | how to add and remove the selected checkbox id to and from arraylist in android? | <p>I am storing the selected checkbox value into arraylist when it is selected by the user and removing from the same arraylist when unchecked by the user. But I am having one problem with this. i.e for example I selected the checkboxes 0,1,4,6. Then I unchecked 0th checkbox. But from the arraylist 6 is removed. Next t... | android | [4] |
2,924,854 | 2,924,855 | Opening doc,docx,Excell files inline of Ie 7.0 | <p>Problem :-
I am dealing with doc,.docx,xls,.xlsx, Pdf, files with in a ASP.NET application.,</p>
<p>While I am clicking a button of Gridview, I need to open that file with in IE 6.0/7.0 BROWSER window., Office files like .docx, .doc, .xls, .xlsx , asking for <strong>open and save</strong> .. or Opening out side of ... | asp.net | [9] |
3,536,918 | 3,536,919 | Javacript not work on chrome while its enable in settings | <p>This script is working only on firefox and in chrome it gives me that error:</p>
<p><code>Uncaught TypeError: Cannot call method 'substring' of undefined</code></p>
<pre class="lang-html prettyprint-override"><code><script type="text/javascript">
function hidediv()
{
document.getElementById('... | javascript | [3] |
5,154,905 | 5,154,906 | Reading Unicode characters in Java | <p>I am using "FileInputStream" and "FileReader" to read a data from a file which contains unicode characters.</p>
<p>When i am setting the default encoding to "cp-1252" both are reading junk data, when i am setting default encoding to UTF-8 both are reading fine.</p>
<ol>
<li>Is it true that both these use System De... | java | [1] |
995,394 | 995,395 | How to pack existing database in iphone DocumentDirectory instead of resourcePath | <p>I want to pack my big database with iphone app and I don't want to copy a database from resource path to document directory for readonly problem. It's have other way to pack database to document directory or remove database from resource path after copy.</p>
<p>Thanks.</p>
| iphone | [8] |
4,862,727 | 4,862,728 | PHP, skip first and last line of a text file using fgets | <p>I'm trying to figure out how to skip the first and last line of a text file when I'm reading it while using <code>fgets()</code>. The first line could be solved with an <code>if(!$firstLine)</code>, but I'm not sure how to ignore the last line or if my solution for ignoring the first line is the best choice.</p>
| php | [2] |
1,570,588 | 1,570,589 | PHP: what is the easiest way to dump class constants into array | <p>I'm having a class with a list of constants. I want something like <code>get_object_vars</code> to dump constants into array. What is the simpliest way to do that?</p>
<p>Thank you in advance!</p>
| php | [2] |
50,787 | 50,788 | How do you refresh a window in Tkinter | <p>If I created Tkinter window with some text that filled the whole window and now wanted to replace the window with a new text, is there a way to refresh the window? </p>
<p>For Example:</p>
<pre><code> a= 100
win= Tk()
win.geometry("500x300")
while a > 0:
if a%2 == 0:
lbl = Labe... | python | [7] |
1,600,865 | 1,600,866 | In Jquery, how do I apply a class to every third (or fourth) instance of an element with a particular class? | <p>This is what I'm trying to do: <a href="http://jsfiddle.net/ZfwPT/" rel="nofollow">http://jsfiddle.net/ZfwPT/</a></p>
<p>i.e. make every first, sixth, eleventh, etc element with class "Noted" green,
and make every second, seventh, twelfth, etc. element with class "Noted" blue,
and so on. </p>
<p>I've been trying ... | jquery | [5] |
5,079,271 | 5,079,272 | C# for each ITERATION | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/13283184/c-sharp-column-formatting">C# Column formatting</a> </p>
</blockquote>
<p>well im in this tricky part of my code and is stuck for the time being so im asking for some help. I'm developing this in C# als... | c# | [0] |
2,387,508 | 2,387,509 | how to configure the php RAR Archive in php.ini in windows | <p>step1:</p>
<pre><code>; Windows: "\path1;\path2"
include_path = ".C:\Zend\ZendServer\etc\php\PEAR";
</code></pre>
<p>step:2</p>
<pre><code>extension_dir = "C:\Zend\ZendServer\etc\php.ini ";
; On windows:
extension_dir = "C:\Zend\ZendServer\etc\php.ini "
</code></pre>
<p>step3:</p>
<pre><code>extension=php_bz2.... | php | [2] |
2,447,869 | 2,447,870 | Detect relatives? | <p>i'm working on a virtual village project that is like this. there are 50 men and 50 woman they age and randomly marry with someone, they have kids and when they reach 80 they start to die.
i have a abstract c# class called human:</p>
<pre><code>abstract class Human
{
enum GenderType { Male, Female };
int A... | c# | [0] |
3,173,011 | 3,173,012 | array except other | <p>I have 2 arrays:</p>
<pre><code>arr1 = [a,b,c,d,e]
arr2 = [c,d,e]
</code></pre>
<p>I want to give array arr1 except arr2.</p>
| python | [7] |
1,011,782 | 1,011,783 | Meaning of statement class a(b) | <p>I have one doubt in C++ progaramming.</p>
<p>what is the meaning of statement <code>class a(b)</code> in c++ and also how to implement this?
Can we declare a class like this?</p>
| c++ | [6] |
139,175 | 139,176 | How can I hide ‘code behind’ files in asp.net? i.e. files with .cs extension | <p>And creates dlls for all code behind files.</p>
| asp.net | [9] |
2,486,413 | 2,486,414 | how to find out the vat from total amount and percetage value in javascript | <p>This following code for get back to vat value from percentage value and amount value using java script but its not accuracy.</p>
<pre><code>var vat=((25*100)/447);
vat=vat.toFixed(1);
</code></pre>
| javascript | [3] |
1,971,398 | 1,971,399 | Help needed on contains() | <p>Here is the HTML code of a radio button </p>
<pre><code><input type="radio" class="grgrgrtgxxxxfeegrgbrg">
</code></pre>
<p>I am trying to check whether radio button's name is having xx.<br>
Here is my jquery code i have written </p>
<pre><code>if($(this).prop('class').contains('xxxx'))
... | jquery | [5] |
2,582,678 | 2,582,679 | Put a Firefox window in full screen mode | <p>I've projected an Intranet Ajax application and I want put it in
a full screen mode so it seems as a real stand alone application.</p>
<p>My problem is that with Firefox 3 the <code>window.open</code> with options to
put the window in full screen mode not work well. I have always
the tile bar the url bar and the st... | javascript | [3] |
1,322,091 | 1,322,092 | Create wav to swf using swfdotnet library | <p>I am developing a <code>wav</code> to <code>swf</code> converter using the <code>swfdotnet</code> library. Are there any available samples of using it to convert <code>wav</code> to <code>swf</code>?</p>
| c# | [0] |
5,761,591 | 5,761,592 | ADO.net using VS2010 | <p>I am learning C# and I have succeeded in creating my own Windows Forms applications.</p>
<p>I tried many websites to learn something about ADO.NET, but everything failed.</p>
<p>I couldn't connect/create a database to my form.</p>
<p>Suggest me some easy tutorials.</p>
<p>It would be better if any .NET professio... | c# | [0] |
2,961,037 | 2,961,038 | What faults are there to coding a character sheet as an enumeration? | <p>I am working on creating a character sheet for a RPG I'm tinkering with. I figure out all the data I need the character sheet to keep, but I am not sure if the way I am doing it is most economical in the sense of speed and resources. Right now I have an enumeration with three types: NPC, MONSTER, PLAYER. Inside the ... | java | [1] |
1,439,124 | 1,439,125 | How to remove vibrate effect from the iphone device | <p>I am implementing chat application.I have implemented vibrate effect when user get bips.but i want to remove vibrate effect and implement sound effect.how it is possible?</p>
| iphone | [8] |
2,421,564 | 2,421,565 | Starting One Android App from Another App | <p>What is the best way to start one android app from another app? Is it to send custom broadcast event and have broadcast receiver of other app catch this event and do a start activity on something? Thanks</p>
| android | [4] |
4,184,172 | 4,184,173 | C# Void function return values to string | <p>I have this void function, and since a void function doesn't return values, how can I pass the strings to the below method when I click the search button?</p>
<p>I need to make the if else statement to return the correct value, but the return doenst work since it is void :(</p>
<pre><code>private void btnSearch_Cl... | c# | [0] |
414,825 | 414,826 | changing the default voice in android tts? | <p>hi is there a way by which one can change the default voice (female) in the android tts? like if i want some other voice (male)?</p>
| android | [4] |
5,207,338 | 5,207,339 | store user prefrences in jQuery | <p>I have the following code for my ad system: </p>
<pre><code> function showandhide()
{
if ($('.showandhide').html() == 'show ads')
{
$('.showandhide').html("show ads");
$('.ads').hide();
}
else
{
$('.showandhide').html("hide ads");
$('.ads').show();
}
}
</code><... | jquery | [5] |
3,495,281 | 3,495,282 | Aspx Page Level windows authentication? | <p>I have a document approval workflow application. The workflow sends emails to appropriate users with links for Accept/Reject the document. </p>
<p>When the user clicks on Accept or reject link, an aspx page is shown, where he can type a comment and submit.</p>
<p>Now the question is I want Windows Authentication o... | asp.net | [9] |
1,403,771 | 1,403,772 | WndProc assignment issue | <p>I am attempting to make a custom GLWindow class that includes all of my setting up of my OpenGL window. However, I also want to include the WndProc callback function for messages being sent to the window in my GLWindow class.</p>
<pre><code>GLWindow.h:
class GLWindow
{
private:
HWND hWnd;
HDC h... | c++ | [6] |
5,895,698 | 5,895,699 | C# compiler can't find interface Extension Method? | <p>I have an interface:</p>
<pre><code>public interface: IA { ... }
</code></pre>
<p>and I try to extend it into </p>
<pre><code>class public A : IA {
private static void foo(this IA a) {
a.foo();
}
}
</code></pre>
<p>but compiler says, that it can't find foo(), with first parameter of type IA.
How ... | c# | [0] |
220,538 | 220,539 | Create a new unique global variable each time a function is run in javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5117127/javascript-dynamic-variable-name">Javascript dynamic variable name</a> </p>
</blockquote>
<p>A very basic question. I want to create a new javascript global variable each time a function is called. The... | javascript | [3] |
3,779,499 | 3,779,500 | Button function not working correctly on dynamic content | <p>I am having a bit of trouble with an app i am building for an iPhone using phonegap and jQuery. i have found several threads that have told me to use <code>on</code> function for content created dynamically. However, i cannot get the buttons to work correctly. The follownig code creates the buttons from a loop state... | jquery | [5] |
6,010,813 | 6,010,814 | Android get contact number using name | <p>I am trying to make an application on android that takes the contact name as a string input and returns his phone number if that contact exists in the phone book...</p>
<p>I tried searching around but there is no clear tutorial as to how to do exactly that</p>
<p>input:contact name
outputs:the phone number</p>
<p... | android | [4] |
467,779 | 467,780 | How can I set a label form database | <p>I want to set a label with something out a database.<br>
This is my query:</p>
<pre><code> string strQuery = "Select * FROM Contacts Where User='" + strSelectedUser + "'";
SqlCommand command = new SqlCommand(strQuery, Global.myConn);
SqlDataAdapter da = new SqlDataAdapter(command);
... | asp.net | [9] |
1,632,288 | 1,632,289 | Javascript string.indexOf('') causing webpage to hang | <p>This line of code seems to make my webpage become unresponsive and I'm not sure why and it does run the code. This is Javascript. I am using Firebug on firefox to debug.</p>
<pre><code>i = response.indexOf(',');
</code></pre>
| javascript | [3] |
1,780,436 | 1,780,437 | jquery replace row in table with fadein/fadeout | <p>I have a table which I want to update a single row in after an ajax update has completed. The rows all have an id which is the line number of the order. I've tried a variety of things, but no joy.</p>
<p>This is the current command...</p>
<pre><code>wsHtml += '<tr id="idLine'+data[0].ORDS1_LINE+'">';
wsHtm... | jquery | [5] |
3,904,777 | 3,904,778 | How do I validate ajax delete with PHP | <p>I use ajax to POST a post id and current user id to a URL to delete this post, but i think it's not safe because anyone can post those parameters. How to make sure the user who send this Ajax POST is the post owner?</p>
| php | [2] |
3,771,583 | 3,771,584 | save and read a file on disk | <p>I have a matrix with double elements that is produced in my application, I want to save it on disk and in another application read it and access each elements in matrix. How Can I do this?</p>
| java | [1] |
5,741,286 | 5,741,287 | UITapGestureRecognizer not working | <p>UITapGestureRecognizer is not working for me, I wonder if anyone can help.</p>
<p>Here is my view definition:</p>
<pre><code>@interface MainDisplayView : UIView <UIGestureRecognizerDelegate>
</code></pre>
<p>In the implementation, I have this in a method which is definitely being called:</p>
<pre><code>UIT... | iphone | [8] |
4,709,324 | 4,709,325 | Char array to long to char array | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6370894/converting-a-four-character-string-to-a-long">Converting a four character string to a long</a> </p>
</blockquote>
<p>I want to convert a char array to a long and back again but I'm a bit stuck.</p>
<p>T... | c++ | [6] |
378,781 | 378,782 | Access the phone internal storage to push in SQLite database file | <p>I am developing my android application using Netbeans and java. When I am using the emulator I can access the File explorer and insert an SQLite database in to device internal memory by accessing the following path, <code>data/data/com.example.helloandroid/database</code></p>
<p>But I can not access this location t... | android | [4] |
1,331,702 | 1,331,703 | Solved - Android - cannot use external library | <p>I was asked to make a project work in Android and I am a complete noob in this aspect and, well... things are not working...</p>
<p>I have created a little code in Java which uses libraries - this code works perfectly. I am now trying to make this code work on Android but I have problems...
It seems I cannot use an... | android | [4] |
1,946,043 | 1,946,044 | python data types are classes or data structures? | <p>All I am new to python programming.I referred different tutorials in python,few Authors says In python like Numbers(int,float,complex),list,set,tuple,dictionary,string are data types some of theme says data-structure few are says classes.i am confused which is correct. </p>
<p>I'm doing an essay on Python and foun... | python | [7] |
4,763,946 | 4,763,947 | php writing to csv from an array | <p>Ive looked around and ive found similar examples and gave them a shot but I can't get mine to work...</p>
<p>Here is mine...It doesnt work..What am I doing wrong :S?
The type of POST is arrays so I guess I have to convert it to string to make it work..
The names and numbers look like this:
Array ( [0] => john Hartz... | php | [2] |
2,851,122 | 2,851,123 | Javascript window.scrollBy not working on particular page | <p>window.scrollBy is not working on the following page
<a href="http://www.resident.co.il/aspx/places.aspx?t=4&a=1" rel="nofollow">http://www.resident.co.il/aspx/places.aspx?t=4&a=1</a></p>
<p>Any idea what can be the problem ? </p>
| javascript | [3] |
769,931 | 769,932 | Xml Deserilization | <p>I have a control on aspx form. I select a xml file and deserialize it on localhost. It works fine. But I upload project files to my IIS server, select file and click deserialize button from client side, it gives me an error as below.</p>
<p>There is an error in XML document (0, 0). Root element is missing.</p>
<p... | asp.net | [9] |
5,831,744 | 5,831,745 | using IPC under Service | <p>Please can anyone tell me what is, and when would it be good to use "IPC" ?</p>
<p>thanks,</p>
<p>ray.</p>
| android | [4] |
2,884,763 | 2,884,764 | TypeError when assigning a random value from a list to a variable? | <p>I have a list and I want to assign a random element from that list to a new variable five times in order to generate a hand of cards. I've searched, and I can't seem to understand why my random.choice is causing errors.</p>
<pre><code>import random
cards = { '2' '3' '4' '5' '6' '7' '8' '9' 'J' 'Q' 'K' 'A' }
for n... | python | [7] |
5,267,267 | 5,267,268 | returning code of function instead of result | <p>I saved a function created in jQuery in clean.js file..</p>
<pre><code>jQuery.fn.singleDotHyphen = function(){
return this.each(function(){
var $this = $(this);
$this.val(function(){
return $this.val()
.replace(/\.{2,}/g, '.')
.replace(/-{2,}/g, '-');
});
});
};
</cod... | jquery | [5] |
4,406,816 | 4,406,817 | Cleanest way to combine two shorts to an int | <p>I have two 16-bit shorts (s1 and s2), and I'm trying to combine them into a single 32-bit integer (i1). According to the spec I'm dealing with, s1 is the most significant word, and s2 is the least significant word, and the combined word appears to be signed. (i.e. the top bit of s1 is the sign.)</p>
<p>What is the ... | c++ | [6] |
5,004,840 | 5,004,841 | Library types in Stanley Lipmann's "C++ Primer" | <p>Newbie to C++ but I am a Java programmer. Trying to learn C++ now. Reading the C++ Primer by Stanley Lipmann.</p>
<p>I don't understand this sentence in Chapter 3 about library types. He's talking about library type string and vector:</p>
<blockquote>
<p>These library types are abstractions of more primitive typ... | c++ | [6] |
1,575,083 | 1,575,084 | change image transition timeout | <p>I'm trying to work out some of the variables of a JQuery-based scripts I got here: <a href="http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html" rel="nofollow">http://www.dreamcss.com/2009/04/create-beautiful-jquery-sliders.html</a></p>
<p>Specifically I'm trying to work out how to change the delay... | javascript | [3] |
236,545 | 236,546 | Instance fields don't initialize if overridden base method is called during class initialization | <p>There's a base class <code>ServerAdapter</code>:</p>
<pre><code>public abstract class ServerAdapter {
public ServerAdapter() {
initGUI();
}
protected abstract void initGUI();
}
</code></pre>
<p>And a child class that inherits <code>ServerAdapter</code>:</p>
<pre><code>public abstract class Li... | java | [1] |
2,631,410 | 2,631,411 | Defining operators and testing for null | <p>I have a class in C# where I define the operator ==. The method I have currently throws an object is null exception when testing the following</p>
<pre><code>MyClass a = new MyClass(); if(a==null)....
</code></pre>
<p>This is frustrating because in the definition of the operator i can't ask if either parameter is ... | c# | [0] |
5,933,670 | 5,933,671 | using textfield of second view in first view | <p>I'm making a client-server program for iphone and i want to use my serverIP which is a part of my second view in the first view serverIP is a uitextfield. i use to enter the value of ServerIP in second View but i want to use the value of serverIP IN Firstview. </p>
<p>""secondview.h"" interface file</p>
<pre><code... | iphone | [8] |
641,555 | 641,556 | android target api not visible | <p>i have installed android sdk.
i have also downloaded and installed the adt plugin in my eclipse ide.
now when i go to preferences to set the path for android sdk, when i set the path and then press apply-- automatically the target api should be listed below. But they are not being listed below for some reason.
what ... | android | [4] |
6,000,465 | 6,000,466 | about savedinstances | <p>Simple app with a variable (x) and 3 buttons (previous, next, random).</p>
<p>Everything ok but when I change oriented of mobile x goes to previous value and I don't understand why.</p>
<pre><code> @Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R... | android | [4] |
229,645 | 229,646 | Window.open with Parameters Options not working | <p>I am using window.open as shown below </p>
<pre><code>window.open("<%=forHyperLink%>",'name_' + Math.random(),'height=600,width=800,resizable=0');
</code></pre>
<p>But i dont want to have Title Window and URL address Bar not to visible and also the Borders not to be visible . </p>
<p>Please help me , as ho... | javascript | [3] |
2,647,459 | 2,647,460 | Repeated execution of a java file | <p>I have a java file which i want to execute repeatedly on a machine. The file should be executed automatically as soon as the previous instance of the file execution is over. How to achieve this?</p>
| java | [1] |
3,357,167 | 3,357,168 | Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\html\Login\checklogin.php on line 23 | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2973202/mysql-fetch-array-expects-parameter-1-to-be-resource-boolean-given-in-select">mysql_fetch_array() expects parameter 1 to be resource, boolean given in select</a> </p>
</blockquote>
<p>Hello im trying to ... | php | [2] |
5,243,824 | 5,243,825 | Automatically Scroll down using php | <p>hi can anyone help me with this problem: i have a php page which has a lot of information in iy. i want to do something like in wikipedia. in wikipedia the table of contents are all links. so if the user decided not to scroll down just to read the topic, the user will just rely on the links on the table of contents ... | php | [2] |
3,403,445 | 3,403,446 | Android Game development error :Too many open files | <p>I am developing an android game and i tried to set a background of the MenuView of my game, how ever when i run it, after 1 min it will be force closed.
error messages: 1.Could not create 966656-byte ashmem mark stack: Too many open files
2.dvmHeapBeginMarkStep failed; aborting
3.VM a... | android | [4] |
1,792,880 | 1,792,881 | connecting PIC16f877A with Pyserial | <p>my project is a 3D application designed with blender 2.59(which uses python) and i need to connect it with an external hardware using PIC16f877a, and its my first experience with this kind of projects.
my Questions are:
For the Pic program, can i write it with C or i have to write it with Python ?
for the serial por... | python | [7] |
1,665,227 | 1,665,228 | How do you learn about new or less-known Java tools/libs? | <p>How do you learn about new or less-known Java tools/libs? For example where did you learned about Lombok or jDBI for the first time (if you use them at all)?</p>
<p>Some project like Guice, Guava, Mockito, Joda Time are very common to hear about but some are not.</p>
| java | [1] |
513,219 | 513,220 | hover over the button in android | <p>Is there anyway to change the appearance of a button when the user clicks on it? for example change the color or make it dark? Like using CSS in ASP.net to hover over a word or a link.</p>
| android | [4] |
1,147,998 | 1,147,999 | Creating a dynamic app in Android | <p>I am currently looking to create an application in Android where a user can answer a questionnaire and that information is saved. The questionnaire will be in a sqlite database and can have different set on answers, and their can be several questionnaires the user can choose to fill. how do i go about firstly having... | android | [4] |
4,868,310 | 4,868,311 | PHP - Problems calling a function with parameters | <p>I need to call a function, in PHP, that accepts 3 parameters, RGB Values. This function converts RGB color values to HSL values, so <code>(R,G,B)</code> is needed in the parenthesis.</p>
<p>This is my function:</p>
<pre><code>function RGBtoHSL($red, $green, $blue) {
// convert colors
}
</code></pre>
<p>Which, i... | php | [2] |
3,220,561 | 3,220,562 | confusion with encryption | <p>I'm trying to write a program that generates a list with the numbers from 1 to 26 in random order, then 'encrypts' a given word using that list so that the n'th letter of the alphabet is mapped to the n'th number in the randomized list. Example:</p>
<p>the randomized list is:</p>
<pre><code>[8,2,25,17,6,9,12,19,21... | python | [7] |
2,976,565 | 2,976,566 | My Application gives n ot responding message | <p>Hi all
i have made an application which send us email everytime we cross our speed to 20kmph but after few minutes it gives me Activity Not responding Message</p>
<p>what should i do for that?</p>
<p>its like i have used JAVA MAIL APIs for sending email and used location services to track my GPS Spees.
please hel... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.