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,507,049 | 1,507,050 | Height not setting to the actual height of the div | <p>I have a DIV that slides open to the height of the content, but for some reason on divs that have no content it's calculating the height wrong.</p>
<p>The 2nd blog entry down (Thoma) is a good example when expanded.</p>
<p><a href="http://dririser.co.uk/index.php" rel="nofollow">http://dririser.co.uk/index.php</a>... | jquery | [5] |
4,770,454 | 4,770,455 | How to start chronometer in reverse in android? | <pre><code>cmtr.setText(finalTime);
cmtr.setBase(SystemClock.elapsedRealtime());
timetest = SystemClock.elapsedRealtime();
Log.d("SETTIME: ", ""+timetest);
cmtr.start();
eltime = SystemClock.elapsedRealtime();
Log.d("ELapsed: ", ""+eltime);
</code></pre>
<p>Note: i want to start my chronometer in reverse order. like... | android | [4] |
5,551,319 | 5,551,320 | Python: Converting to str while keeping leading 0's | <p>So in python I'm trying to access a file path in the order of 000X</p>
<p>So I start by setting a string to </p>
<pre><code>path = '0001'
</code></pre>
<p>and then point to and open the file path</p>
<pre><code>filepath = open('/home/pi/Pictures' + path + '.JPG', 'rb')
</code></pre>
<p>so I do my business and n... | python | [7] |
679,044 | 679,045 | android answer telephone | <p>we can not use the java reflect to answer calls after android2.3.So another way found to acswer:</p>
<pre><code>private void answerPhoneHeadsethook(Context context)
{
// Simulate a press of the headset button to pick up the call
Intent buttonDown = new Intent(Intent.ACTION_MEDIA_BUTTON);
buttonDown.putE... | android | [4] |
2,284,431 | 2,284,432 | Adding zeros when length is less | <p>Is there a smart way to convert numbers to string and automatically add zeroes so the length is the same as the maximum?</p>
<p>like this:</p>
<pre><code>for (var i=0; i<30; i++) {
var c = i.toString();
if (c.length == 1) {
c = '0'+=c;
}
}
</code></pre>
<p>But smarter</p>
| javascript | [3] |
2,943,576 | 2,943,577 | HashMap synchronisation | <p>I have a map and i am synchronising it in between.Will there be any difference in behaviour of the map in insertion after the synchronisation?</p>
<pre><code>HashMap<String,String> myMap = new HashMap<String,String>();
myMap.put("abc","123");
myMap.put("efg","456");
Collections.synchronizedMap(myMap);
m... | java | [1] |
2,638,355 | 2,638,356 | preg_match help | <p>I was just helped in <a href="http://stackoverflow.com/questions/3692580/how-can-i-use-regex-to-solve-this">another thread</a> with a regex that has been verified to work. I can see it actually working on Rubular but when I plug the regex into preg_match, I get absolutely nothing.</p>
<p>Here is the regex with my p... | php | [2] |
2,525,146 | 2,525,147 | Simple text and image slider | <p>I've been looking for a slider that can slide whatever kind of content that I want to enter.
I tried out various Wordpress plugins, but most of them only can slide Wordpress posts or images only with a small caption.
I'm looking for something like the <a href="http://www.gopiplus.com/work/2011/06/02/wordpress-plugin... | jquery | [5] |
1,475,838 | 1,475,839 | slicing an array with offset and limit | <p>i'm migrating some data from SqlAlchemy selects into a cache of item ids.</p>
<p>i'm trying to figure out the best way to handle migrating functions that have a limit and offset attached.</p>
<p>the code i have below works fine. my worry is that it takes 7 lines - and usually when something like this takes a few l... | python | [7] |
3,126,761 | 3,126,762 | Why declare static classes as sealed and abstract in C#? | <p><a href="http://msdn.microsoft.com/en-us/library/ms229038.aspx" rel="nofollow">This MSDN article</a> states that static classes should be declared as sealed and abstract. I was under the impression that static classes were already sealed. Why would you also need to declare a static class as sealed?</p>
| c# | [0] |
1,227,026 | 1,227,027 | jquery find immediate parent of current element | <p>how can i get immediate parent of a given element ?</p>
<p>$(e.target).parent() ?</p>
| jquery | [5] |
2,752,283 | 2,752,284 | jQuery: Scroll down page a set increment (in pixels) on click? | <p>I'm trying to make a page scroll down 150px from the current position when an element is clicked. So lets say you're roughly halfway scrolled down a page. You click this link, and it will slide you down an additional 150 pixels.</p>
<p>Is this possible with jQuery?</p>
<p>I've been looking at scrollTop and the s... | jquery | [5] |
5,872,045 | 5,872,046 | Print data from column and row in matrix | <p>Suppose i have a matrix like this</p>
<pre><code>table = [
# grid: 4 by 9
['A','B','C','D'],
['E','F','G','H'],
['I','J','K','L'],
['M','N','O','P'],
['Q','R','S','T'],
['U','V','W','X'],
['Y','Z','1','2'],
['3','4','5','5'],
['7','8','9','0'],
]
</code></pre>
<p>If i want to print the the string thats two down o... | python | [7] |
2,661,870 | 2,661,871 | jQuery fadeOut & fadeIn not working properly | <p>I have the following code:</p>
<pre><code>$('#oldLoginProblem').fadeOut();
$('#newLoginProblem').fadeOut();
$('#newLoginProblem').fadeIn();
</code></pre>
<p>It runs each time I press a button.</p>
<p>In the beginning, it'll look like this:</p>
<p><code>foobar</code></p>
<p>But when I press my button and run tha... | jquery | [5] |
5,978,911 | 5,978,912 | In best case how can I check a link belongs to *.domain.com? | <p>How can I check a link belongs to a domain *.domain.com using javascript?</p>
<p>I mean that I ignore subdomain.</p>
| javascript | [3] |
1,398,393 | 1,398,394 | Importing a file from web | <p>I have a file in txt-format saved on an ftp server. The server does not require a username or password. </p>
<p>I want to import this into my android app so that I can use the text and numbers from it.</p>
<p>How do I do this, or where can I find more information regarding this?</p>
| android | [4] |
3,477,800 | 3,477,801 | to find and replace the string in php | <p>I have got a number of values by a foreach loop. Now I want to check each the values with a string.</p>
<p>My string is <code>"http://www.example.com/TantraProjects/Ranjit/nt_plugin"</code></p>
<p>I have the values like written below:</p>
<pre><code>http://blogsearch.google.com/blogsearch?scoring=d&partner=wo... | php | [2] |
839,433 | 839,434 | How can you check if something read in from a file is a valid integer? | <p>I'm trying something like:</p>
<pre><code>int integer;
cin >> integer;
if(!integer) {//do something}
</code></pre>
<p>but obviously this is a problem if integer = 0.</p>
<p>Are there more efficient methods for checking if something is an integer?</p>
| c++ | [6] |
11,305 | 11,306 | Intercept click event on a button, ask for confirmation, then proceed | <p>Based on a variable <code>SomeCondition</code>, I need to intercept a click event on a button, and ask for confirmation, if they say ok, proceed, otherwise ignore click.</p>
<p>So something like:</p>
<pre><code>if(SomeCondition) {
// disable click on button
var isOk = window.confirm("Are you sure?");
if(isOk) {... | jquery | [5] |
5,314,704 | 5,314,705 | how to get particular data from jsonarray? | <p>I want to get the CreateDate value from xml file
the xml file is like this way.</p>
<pre><code><d:CreateDate m:type="Edm.DateTime">2012-03-18T15:11:30.403</d:CreateDate>
</code></pre>
<p>I created JSONObject as</p>
<pre><code>JSONObject json=new WCFServices().getWhatsNew();//i get the json object WCFS... | android | [4] |
3,806,957 | 3,806,958 | Android HtmlGet trouble | <p>I want to get source of webpage. And for now only display.
I can't compile this code succesfuly. Eclipse saying Unhandled declaration type IOExeption. When i add "throws declaration" still have some problems. I'm sorry for my english. Thanks for answers. </p>
<pre><code>package com.html;
import java.io.Buffere... | android | [4] |
2,124,731 | 2,124,732 | changing jars order in classpath during runtime | <p>Is there an option in java to change the order of jars file during runtime depends on parameter to the application.</p>
<p>Case1:
Input parameter with value true: jar A will be before jar B in the classpath</p>
<p>Case2:
Input parameter with value false: jar B will be before jar A in the classpath</p>
<p>Thanks i... | java | [1] |
3,929,966 | 3,929,967 | Easiest way to convert two columns to Python dictionary | <p>How would I put the following information into a Python dictionary -- <a href="http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html" rel="nofollow">http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html</a>? Keys would be the country and values would be the two-character ISO code.</p>
<p>For example... | python | [7] |
4,606,200 | 4,606,201 | Android: "Conversion to Dalvik format failed with error 1" | <p>While running my application, I received the following error:</p>
<blockquote>
<p>Android: Conversion to Dalvik format failed with error 1</p>
<p>trouble processing "javax/net/SocketFactory.class":</p>
</blockquote>
| android | [4] |
2,599,601 | 2,599,602 | Offline spell checking api | <p>I'm building my own custom IME and want to include spell checking. Are there any offline spell checking api's that are available?</p>
| android | [4] |
3,061,282 | 3,061,283 | secure message in IE for ASP.Net webiste | <p>can anybody please tell me,why this no-secure message comes on my site's homepage in Internet Explorer
Following is message:</p>
<p>"The web page contains content that can not be delivered using secure HTTPS connection"
message box comes with yes/no option.</p>
| asp.net | [9] |
3,042,328 | 3,042,329 | Function pointer as a template | <p>How to write a function pointer as template?</p>
<pre><code>template <typename T>
T (*PtrToFunction)(T a);
</code></pre>
| c++ | [6] |
721,774 | 721,775 | fieldset form with Table-like layout with CSS? | <p>I have an application in which I'm currently using a two column table in order to get accurate cell alignment of the left column labels/descriptions with the right column form fields.</p>
<p>I'd like to convert it to css and use jQuery to expand/collapse specific sections.</p>
<p>I've seen some jQuery libraries, t... | jquery | [5] |
2,194,450 | 2,194,451 | How do I parse a templated string in Python? | <p>I'm new to Python, so I'm not sure exactly what this operation is called, hence I'm having a hard time searching for information in it.</p>
<p>Basically I'd like to have a string such as:</p>
<pre><code>"[[size]] widget that [[verb]] [[noun]]"
</code></pre>
<p>Where size, verb, and noun are each a list.</p>
<p>I... | python | [7] |
1,494,355 | 1,494,356 | maintaining continuous count in php | <p>I have a small problem maintain a count for the position. i have written a function function that will select all the users within a page and positions them in the order.</p>
<p>Eg:<br>
Mike Position 1<br>
Steve Postion 2..............<br>
....<br>
Jacob Position 30<br></p>
<p>but the problem that i have when i mo... | php | [2] |
5,437,044 | 5,437,045 | passing get variables without opening URL | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2259892/how-to-read-a-web-page-in-php">How to read a web page in PHP</a> </p>
</blockquote>
<p>I'm sure there is some simple way to do this. I need to pass get variables through to my cart software to record a c... | php | [2] |
4,148,866 | 4,148,867 | handling broadcast reciver | <p>I have an app which has MainActivity(without gui.. please just flow with it:) )</p>
<p>now this MainActivity running a service, this service using sendBroadcast() in order to comunnicate with the MainActivity..
now ofcourse i need to <strong>registerReceiver</strong> in the <strong>onResume</strong>() of the MainAc... | android | [4] |
4,467,351 | 4,467,352 | MenuItem#getTag() | <p>On subclasses of <code>View</code> there is <code>getTag()</code>, which returns the <code>android:tag</code> attribute's value from .xml.
I would like the same for a <code>MenuItem</code>... is it okay to just cast it to a <code>View</code>?
Because item elements also allow a tag attribute in .xml...</p>
<p><stron... | android | [4] |
1,471,144 | 1,471,145 | Convert multi-dimensional list to a 1D list in Python | <p>A multidimensional list like <code>l=[[1,2],[3,4]]</code> could be converted to a 1D one by doing <code>sum(l,[])</code>. Can anybody please explain how that happens?</p>
<p>Thanks,<br>
Sayan</p>
| python | [7] |
2,626,844 | 2,626,845 | C# numeric constants | <p>I have the following C# code:</p>
<pre>
byte rule = 0;
...
rule = rule | 0x80;
</pre>
<p>which produces the error:
<em>Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)</em></p>
<p>[Update: first version of the question was wrong ... I misread the compi... | c# | [0] |
3,971,926 | 3,971,927 | out of memory exception while reading large pdf files | <p>Following is my code.It reads the pdf file .It works fine with smaller pdf files but when i try to open large files it gives out of memory exception.can anyone help.</p>
<pre><code> public void nextPage() {
try {
if (i <= numberOfPages) {
s = extractor.getTextFr... | android | [4] |
1,288,602 | 1,288,603 | jquery disable parts of page | <p>I am displaying a modeless jquery dialog on top of a page. When the dialog is displayed I wish to only allow the user to interact with a certain portion of the page (mainly because I do not want them naving away or clicking other controls that cause postbacks). I thought it would work well to use the same mechanism ... | jquery | [5] |
2,592,579 | 2,592,580 | convert dd/mm/yyyy to mm/dd/yyyy in javascript | <p>I want to convert dd/mm/yyyy to mm/dd/yyyy in javascript.</p>
| javascript | [3] |
2,387,563 | 2,387,564 | Android textview multiple text colours | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1529068/is-it-possible-to-have-multiple-styles-inside-a-textview">Is it possible to have multiple styles inside a TextView?</a> </p>
</blockquote>
<p>I am using a textview to display some text and I would like d... | android | [4] |
2,745,495 | 2,745,496 | pass data to a site from android | <p>blahNow I am doing an ANdroid application.In my app I have to login using a url.Just like...www.blah.com/api/login/username/password.</p>
<pre><code>private void sendAccelerationData()
{
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(7);
nameValuePairs.add(new BasicNameVa... | android | [4] |
1,490,161 | 1,490,162 | how to know tables name in the connected database in c# | <p>i have database which is already created from sql and i make connection on it is there is any way by which i can know the names of the tables in this database from c# as i know the tables in it but i won't to display tables names using code and programming and c#</p>
| c# | [0] |
3,238,401 | 3,238,402 | How to make Javascript more specific? | <p>I am new at JavaScript so I think my problem may be simple.
This works:</p>
<pre><code>var convId = document.getElementById("wrapper");
convId.setAttribute("align","right");
</code></pre>
<p>But when I try to make it more specific:</p>
<pre><code>var convId = document.getElementById("wrapper");
var convIdDl = con... | javascript | [3] |
753,588 | 753,589 | getting data from edittext placed in listview | <p>I created a list with textview & edittext using holder... it looks like</p>
<pre><code> Textview Edittext
---------------------------------
Textview Edittext
---------------------------------
Textview Edittext
---------------------------------
</code></pre>
<p>but I cant get the data fro... | android | [4] |
5,545,375 | 5,545,376 | javascript validate uk date | <p>I am trying to validate a date in the format dd/mm/yyyy using a function I have found online, but I get this error : 'input is null'</p>
<p>Can anybody tell me where my syntax is wrong?</p>
<pre><code>if (validateDate($("#<%=StartDate.ClientID%>")) == false) {
alert("not date");
}... | javascript | [3] |
222,309 | 222,310 | statement that I don't quite understand ( setter = (o) => { }; ) | <p>Right, so I've got this piece of code that initializes default values for Properties in C#.
source: <a href="http://www.codeproject.com/KB/dotnet/DefValInit.aspx" rel="nofollow">http://www.codeproject.com/KB/dotnet/DefValInit.aspx</a></p>
<p>Now i've rewritten it to C++ code, which sadly does not support extensions... | c# | [0] |
1,601,140 | 1,601,141 | Getting the fram around the pharagraph when Export the CrestalReport in .net in to Word Document | <p>I got the Frame with dasheslines around the paragraph when I have exported the CrystalReport in to the word document.can you please find the solution for it....</p>
<p>latha..</p>
| asp.net | [9] |
5,636,991 | 5,636,992 | How to enter elemets in a hashmap and check for the existence of a particular key? | <p>I am trying to read a csv file and storing its contents in a hash map and checking the existence of a particular key in the hash map.</p>
<p>Here is my code,Please let me know where am i wrong because i m ant able to figure out my mistake</p>
<pre><code>import java.io.*;
import java.text.SimpleDateFormat;
import... | java | [1] |
5,940,142 | 5,940,143 | Intercept all current and future links | <p>Just wondering if there is a way with jquery to intercept a link when clicked. The problem is that some of the links on my page are not loaded when the page is first loaded. I have a vague recollection of hearing that jquery has a way of intercepting all current and future links. Here is the code I have. It work... | jquery | [5] |
2,535,352 | 2,535,353 | inserting multiple record at once | <p>Hello I have a form like below:</p>
<pre><code><form method="post" action="">
<fieldset><legend>Products List</legend>
<ul>
<li><input type='hidden' name='product[]' value='1'/>Product 1</li>
<li><input type='hidden' name='product[]' value='2'/>... | php | [2] |
4,065,388 | 4,065,389 | Localization of Resources | <p>I have a dataTable and a resx file with Name , Value , Comments as Columns.. I'm reading a resource with ResXResourceReader.. and assigning to grid.. I'm adding new values in the grid.. I want to reflect the new values in the resx file.. Can anyone help..After Looping and im writing to the corresponding resx!!! Whet... | c# | [0] |
4,768,816 | 4,768,817 | php question checking pics format | <p>I have problem to check picture format the code:</p>
<pre><code>// 0 means a successful transfer
if ($_FILES["fname"]["error"] > 0) {
$_FILES["fname"]["name"] = "holder.jpg"; // line 3
$imgData = $hyperlink.$_FILES["fname"]["name"]; // line 4
} else {
$imgData = $hyperlink.$_FILES["fname"]["na... | php | [2] |
2,353,747 | 2,353,748 | How much overhead is involved in creating a C# method? | <p>I'm new to C# still, so bear with me here.</p>
<p>If I want to run a simple algorithm with just 2 parameters, in other languages I would simply create a function outside of my <code>main()</code>. Instead, in C#, apparently I need to create a class and put the function (method) inside that class, and make the metho... | c# | [0] |
483,682 | 483,683 | Conditional Number Formatting In Java | <p>How can I format Floats in Java so that the float component is displayed only if it's not zero? For example:</p>
<pre>
123.45 -> 123.45
99.0 -> 99
23.2 -> 23.2
45.0 -> 45
</pre>
<p>Edit: I forgot to mention - I'm still on Java 1.4 - sorry!</p>
| java | [1] |
5,622,368 | 5,622,369 | Custom Analog Timer in Android | <p>Someone please help me in creating Custom Analog Timer.
Say if the time span is 30 minutes the clock should show only 30 minutes and start reducing as time reduces.</p>
<p>Thanks in Advance.</p>
| android | [4] |
2,578,405 | 2,578,406 | runonuithread is not working in android | <p>my working task is to read sd card files and i want to show all sdcard files with location on textview but,my code is reading successfully but,i can't update textview text while reading files is not working after i find solution runonuithread but,it's also not working.my code is shown below:</p>
<pre><code>public v... | android | [4] |
5,324,558 | 5,324,559 | Getting the names of executing functions in javascript | <p>Is there a way to get the names of all the javascript function executed on a page?</p>
<p>something like</p>
<pre><code>console.info(functionname)
</code></pre>
<p>As I am trying to fix some bugs on a customer's page and all javascript function are sepreaded all over the website withing PHP files.</p>
| javascript | [3] |
2,817,416 | 2,817,417 | How to update Android application through our application without go to android Market? | <p>I have android app, that version is 1.0. There are some updates so changed the version number to 1.1. I did not upload into android market. </p>
<p>It's a private application.
Normally update app happens like this: If there is version number which differs from installed app, then I should update. That time It don'... | android | [4] |
218,978 | 218,979 | Out Of Memory Exception | <p>In my app i am giving video file path to FileInputStream class after that i want it
to convert into byte Array but it throws Out of memory Exception Please suggest me how
to do it.Iam posting the code here thanks in advance.</p>
<pre><code>public byte[] readBytes(InputStream inputStream) throws IOException
{ ... | android | [4] |
4,838,816 | 4,838,817 | Android Unable to merge two wave files | <p>I am working in android. I want to merge two wave files and want to create third file. For this I create two input streams and then trying to write those input streams into one output stream file.</p>
<p>This is my code:-</p>
<pre><code> File file = new File("/sdcard/z.wav");
File file1 = new File("/sdcard... | android | [4] |
3,684,902 | 3,684,903 | How to decide parameters of the property of an instance variable in iPhone os | <p>I am noob in iPhone development..I have a query hope I you people will solve..</p>
<p>In every interface file(*.h file) we declare a property for every instance variable like this...</p>
<pre><code>#import <UIKit/UIKit.h>
@interface Fruit : NSObject {
NSString *name;
NSString *description;
}
@property... | iphone | [8] |
2,094,852 | 2,094,853 | Microsoft Visual C# Express Edition 2008 Question | <p>I completed a project, and after I finished it I saved and closed out.
When I reopen Microsoft Visual C# Express Edition it shows me all my recent projects. When I open one I can find the Form1.cs however I can not find the code that handles all my events and everything. Does anyone know what I am doing wrong?</p>
| c# | [0] |
15,525 | 15,526 | Python | How to create dynamic and expandable dictionaries | <p>I want to create a Python dictionary which holds values in a multidimensional accept and it should be able to expand, this is the structure that the values should be stored :-</p>
<pre><code>userdata = {'data':[{'username':'Ronny Leech','age':'22','country':'Siberia'},{'username':'Cronulla James','age':'34','countr... | python | [7] |
4,833,312 | 4,833,313 | ASP.NET Custom Error except 404 errors, | <p>I have setup custom error as follows..</p>
<pre><code>protected void Application_Error(Object sender, EventArgs e)
{
Exception ex = HttpContext.Current.Server.GetLastError();
if (ex is HttpUnhandledException && ex.InnerException != null)
ex = ex.InnerException;
if (ex != null)
{
tr... | asp.net | [9] |
4,685,780 | 4,685,781 | How to use onUserInteration method in my code? | <p>In my sample application in need find the user inactivity, ie if the user won't do anything for 5 minutes i need show a Alert Dialog. For this, initially i wrote my code in <code>onStart()</code> method in this method i include a thread with which is run 5 minutes delay but it doesn't meet the exact requirement, i s... | android | [4] |
4,134,558 | 4,134,559 | How to display these values using PHP? | <p>I want $amount to be displayed. But that's not happening.</p>
<pre><code>$amount = $_POST['amount'];
$message = "Thanks. We've got $amount from you.";
echo $message;
</code></pre>
<p>So now in the message displayed, $amount is not being displayed. Why?</p>
| php | [2] |
2,303,772 | 2,303,773 | set imagebutton after listview and before footer tabbar | <p><em><strong>Hi,
I want to place two imagebuttons between listview and footer tabbar. If listview contains 10items then the buttons appear at last of the listview after displaying 10items in listview.
Please help.
thanks in advance.</em></strong></p>
| android | [4] |
5,115,747 | 5,115,748 | horizontally scrolling image with zooming effect | <p>May anyone please help me for horizontally scrolling image view along with zoom in , zoom out effect. I was using Gallery for horizontally scrolling but unable to implement zooming with gallery. In web view zooming is there but how to use horizontally scrolling. </p>
| android | [4] |
5,626,722 | 5,626,723 | Writing string to a file in java | <p>I have a file which contains sql statements.
Now in this file, I want to add a word "collate" after every 'char()' and 'varchar()' in the file.
How do you do that?</p>
| java | [1] |
353,423 | 353,424 | Google Play Store warning about fewer devices supported by updated APK | <p>In the latest version of my app I updated the manifest file to include support for ICS version. When activating the APK file, I got a warning (that I apparently ignored) about newest version supports fewer devices than previous version. Later that day I saw couple of posts in forums where user saying that they are g... | android | [4] |
3,756,709 | 3,756,710 | I can't read from DB using java netbeans | <p>I have this code and I faced a problem to read information from MySQL database using java netbeans, data type inside database varchar</p>
<pre><code>import com.mysql.jdbc.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.util.Scanner;
public class NewData... | java | [1] |
24,916 | 24,917 | Passing a function as an argument in a javascript function | <p>I was wondering whether this is legal to do. Could I have something like:</p>
<pre><code>function funct(a, foo(x)) {
...
}
</code></pre>
<p>Where <code>a</code> is an array and <code>x</code> is an integer for another function called <code>foo</code>?</p>
| javascript | [3] |
2,099,666 | 2,099,667 | What's the difference between en_GB and en_GB.UTF8 in PHP's setlocale()? | <p>I have an issue with <code>setlocale()</code> in PHP when using functions such as <code>money_format()</code>.</p>
<p>In my localhost, such functions only work if my <code>setlocale()</code> value is <code>en_GB</code>. However, on my live server the same functions will only work if <code>setlocale()</code> is set ... | php | [2] |
1,233,832 | 1,233,833 | session time out when upload new code file | <p>Hey
I noticed that when I upload a new file code
For example: Class or aspx page
All sessions, expired, and all users are thrown out of the website
Is there a better way to update code?
Thanks in advance
Micah</p>
| asp.net | [9] |
4,922,762 | 4,922,763 | Image Caching Problem | <p>I am Storing the Image taken from UIImagePickerController and saving in the Directory
like:</p>
<pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask, YES);
NSString *path = [NSString stringWithFormat:@"%@/%@",
... | iphone | [8] |
3,656,685 | 3,656,686 | Is there a way to see what data stores each app in phone memory/on sd card? | <p>I want to track everything that apps store in phone memory/on sd card, so I can delete it if the app is uninstalled. Is this possible? If not, how can I get all the files from phone memory/sd card?</p>
| android | [4] |
5,292,871 | 5,292,872 | setting a default union member | <p>i'm using templated unions to both assure myself that i always get a 64-bit field for pointers (even on 32-bit machines since there is transmission of data to a 64-bit machine occurring) and to save both the user and myself casting.</p>
<pre><code>template <typename type> union lrbPointer
{
uint64_t intFo... | c++ | [6] |
5,233,686 | 5,233,687 | How to change jquery parameter with a submit form? | <p>I am a newbie at jQuery. I was trying some things but I need some help.</p>
<p>I have the following script </p>
<pre><code>jQuery(function($){
$("#query").whatever({
parameter1: 32,
parameter2: 4,
query: "something"
});
});
</code></pre>
<p>I need a script to ch... | jquery | [5] |
6,016,995 | 6,016,996 | How to find the course of multiple php-cgi process? | <p>I have a small wordpress blog on local zend server. Recently I felt my PC slow down and I found a lot of php-cgi.exe are running. Some said cron job is the course but I don't have any plugin running cron job. Where can I go to check the log of php-cig process?</p>
| php | [2] |
5,462,961 | 5,462,962 | On PopupWindowClose, mainpage redirect | <p>I'm working on the following scenario:</p>
<ul>
<li><p>A button got clicked in main page.</p></li>
<li><p>popupWindow show up.</p></li>
<li><p>A button got clicked in popupwindow.</p></li>
<li><p>The popupwindow would be closed and the mainpage redirect.</p></li>
</ul>
<p>How to do that?</p>
| asp.net | [9] |
1,448,865 | 1,448,866 | Problem in TrayIcon Java | <p>Hi I am developing a desktop application. I used TrayIcon to set the icon in tray. But icon is not being set. I even changed the size of image-icon to 16x16. But still not displayed. If anybody could help?</p>
| java | [1] |
2,132,930 | 2,132,931 | Random card generation | <p>I need to randomly generate three cards from array i have the array of 52 cards names from card1 to card52</p>
<pre><code>String rank[]=new String[52];
for(int i=0;i<rank.length;i++)
{
rank[i]= "card"+i;
}
</code></pre>
<p>Now i need to select three cards from the array and it should not be repetable.</p>
<p>c... | java | [1] |
1,279,743 | 1,279,744 | How do I let a user paste an image on a webpage? | <p>I want to give the user possibility to paste an image into a webform. I don't need to display the image, all I need is the image's location.</p>
<p>I know it's possible because the guys at CKEditor(and other editors) are doing it. </p>
<p>If you go here, <a href="http://ckeditor.com/demo" rel="nofollow">http://cke... | javascript | [3] |
2,422,555 | 2,422,556 | Accessing Android Files and Database Directly on the device if rooted? | <p>When developing for Android I prefer just working with a real device plugged in most of the time since the Android emulators are such total garbage. The one pain point is when I want to access files and sqlite databases though. I believe with the adb shell it is possible to pull the database across, but this isn't... | android | [4] |
1,895,247 | 1,895,248 | simplest way to create an extension function using Jquery | <p>What is the simplest way to create an extension function or method using Jquery. I am finding it really difficult to create my own property using Jquery.</p>
<pre><code>e.g
$("#selector").myproperty({para1:val1});
</code></pre>
| jquery | [5] |
5,235,790 | 5,235,791 | ASP.NET 4.0 on Windows Server 2003 64-bit | <p>Is there a step by step guide on how to enable .NET 4 on IIS 6 running under Windows Server 2003 64bit?</p>
<p>Thank you</p>
| asp.net | [9] |
736,627 | 736,628 | Hide Div on Window Maximize & Resize > 1600px - JQuery | <p>How would I hide a HTML div when the browser window is either maximized or resized greater then 1600px using jquery?</p>
<p>I currently have it set so the div hides when the page is greater then 1600px on load but cannot get it to hide when the window is maximized or resized after the page has loaded. Below is the ... | jquery | [5] |
5,047,310 | 5,047,311 | Javascript - Strategy Pattern suggestion required | <p>I have a Javascript form validator function something like</p>
<pre><code> switch (element.getAttribute('validationtype')) {
case 'text':
if (cic.visible(element)) {
if (cic.getValue(element).strip() == "") {
errors.push(element.getAttribute('validationmsg'))... | javascript | [3] |
4,961,383 | 4,961,384 | read text from file and apply some operations on it | <p>I have a problem on how to read text from file and perform operations on it for example</p>
<p>i have this text file that include</p>
<p>//name-//sex---------//birth //m1//m2//m3</p>
<pre><code>fofo, male, 1986, 67, 68, 69
momo, male, 1986, 99, 98, 100
Habs, female, 1988, 99, 100, 87
toto, male, 198... | c# | [0] |
2,609,718 | 2,609,719 | php delete multiple images from directory | <p>for some reason my php script doesn't delete multiple images, it just delete the thumbnail image then leaves the second one in the directory.</p>
<pre><code>if($_POST['pic_id']){
$pic_id = $_POST['pic_id'];
$pic_id = mysql_escape_String($pic_id);
# Select photo details from database
$query = mysql... | php | [2] |
676,763 | 676,764 | site is auto including some thing from other site | <p>my site is automatically getting download from other site when ever i try to open my site after opening my site it trys to download any thing from this address....</p>
<p>google-sk.pch.com.tagged-com.superore.ru</p>
<p>please help me what's going on....</p>
| php | [2] |
2,695,619 | 2,695,620 | How to make android:background="?android:attr/selectableItemBackground work in API level 8 | <p>I have a button code, where in i dont want border for this button, so for that i set propertie <code>"android:background="?android:attr/selectableItemBackground"</code>, but it will not work in API version 8 i.e in Froyo emulator. Please provide me the alternatives.</p>
<pre><code><Button
android:id="@+id/se... | android | [4] |
329,724 | 329,725 | how to calculate current age of person from birthdate to current date? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1116123/how-do-i-calculate-someones-age-in-java">How do I calculate someone's age in Java?</a> </p>
</blockquote>
<p>hi friends</p>
<p>i want to calculate total age of any registered person from birthdate t... | android | [4] |
5,803,655 | 5,803,656 | call function on iframe mouse move | <p>I have a function that i need to call on iframe mousemove(). But i didnt found anything like we have in body tag
We have <code><body mousemove="Function()"></code> Do we have anything like this for iframe??</p>
| javascript | [3] |
4,070,772 | 4,070,773 | Game Programming Library C++ | <p>Which is the best available, free, easy-to-learn game programming library for C++?</p>
| c++ | [6] |
2,250,199 | 2,250,200 | Why does my original object get affected after I "copied" it to a new object? | <p>I have this (sub)object called <code>products.original</code>.</p>
<p>which I then extract to a new object called <code>productArray</code>:</p>
<pre><code>var productArray = [];
productArray = products.original;
/*some calculations here*/
//sort the object by lowest score
productArray.sort(function(a, b) {retu... | javascript | [3] |
494,532 | 494,533 | How to set different images alternately in listView's row? | <p>I have a listview, in which I am fetching data from Twitter, I also show it in listView,
but I want to show different images in different rows of listView.</p>
<p>I used <code>convert-view.setBackGroundResource(R.drawable.strip1);</code>, it repeats this image in all rows, but I want to set it alternatively. How is... | android | [4] |
4,814,713 | 4,814,714 | Finding class source in android project (LinkedBlockingDeque) | <p>I'm looking for a class source added to the android sdk in version 9. The class is "LinkedBlockingDeque". I thought the android source was located at <a href="http://android.git.kernel.org/" rel="nofollow">http://android.git.kernel.org/</a>, but that site seems to be down at the moment. How do you go about finding t... | android | [4] |
4,099,971 | 4,099,972 | Kill another application in android? | <p>I am try to kill my another application. But this code is not able to kill my another application. I know kill another application is a bad idea. But I have learning purpose, I have tried to kill. My code part<br/></p>
<pre><code>Button runningApp = (Button) findViewById(R.id.runningApp);
runningApp.setOnClickListe... | android | [4] |
3,814,555 | 3,814,556 | How can i create encrypt method like md5 | <p>Please, any suggestion how to create encrypt method like md5 </p>
<pre><code>$pass = "abc";
$password = xyz($pass);
</code></pre>
<p>Above method i want to create it myself like md5 method</p>
<p>Please any help me, how can i create it. </p>
| php | [2] |
5,997,040 | 5,997,041 | Substring text with javascript including html tags | <p>i wanted to substring a string something like follow. And i have start position and length of the string .
i have checked this ques <a href="http://stackoverflow.com/questions/6003271/substring-text-with-html-tags-in-javascript">Substring text with html tags in javascript</a>. But in this substring is performing fr... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.