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 |
|---|---|---|---|---|---|
4,596,952 | 4,596,953 | deque<bool> iterator compile error | <p>how to use deque to print its items?</p>
<p>fatal error LNK1000: Internal error during IncrCalcPtrs</p>
<pre><code>deque<bool> mandy3;
mandy3.push_back(true);
mandy3.push_back(false);
mandy3.push_back(true);
for(deque<bool>::iterator it=mandy3.begin(); it!=mandy3.end(); it++)
printf("mandy3 : %d" ... | c++ | [6] |
3,803,127 | 3,803,128 | How to terminate a call programmatically under Android? | <p>I am using the following code for dialing programmatically under Android. </p>
<pre><code>try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
} catch (Exception exception) {
log.e("dialing-example", "Call failed", Excep... | android | [4] |
1,113,595 | 1,113,596 | Python: how to change (last) element of tuple? | <p>The question is a bit misleading, because a tuple is <em>immutable</em>. What I want is: </p>
<p>Having a tuple <code>a = (1, 2, 3, 4)</code> get a tuple <code>b</code> that is exactly like <code>a</code> except for the last argument which is, say, twice the last element of <code>a</code>.</p>
<p>=> b == (1, 2, 3,... | python | [7] |
3,064,475 | 3,064,476 | Prevent from type converting of "this" during a call to a function with apply | <p>Servus Ninjas,</p>
<p>this is what ecmascript 5 spec. (page 118) in the section <code>Function.prototype.apply(thisArg, argArray)</code> says:</p>
<blockquote>
<p>NOTE: The thisArg value is passed without modification as the this value. This is a change from Edition 3, where a undefined or null thisArg is replac... | javascript | [3] |
1,643,163 | 1,643,164 | disable scroll bar on the div | <p>I have a div. </p>
<p>I want that user should not be able to scroll the page if the height is more than 350px.
Also the scroll bar should be visible in disable mode in that case.</p>
<p>I want to achieve this using javascript.</p>
<p>Thanks</p>
| javascript | [3] |
5,082,451 | 5,082,452 | Detect when screen is scrolling? | <p>Here on my app I've got a small surfaceView that displays the camera preview. This surfaceView is put in a FrameLayout that is put in a ScrollView, alltogether with other components (like buttons, textViews and such). The thing is, that when i scroll the screen, the surfaceView leaves a black hole where it was, an... | android | [4] |
5,260,810 | 5,260,811 | if statement with img.src | <p>The problem: whenever, if i have the single '=' the variable will show up and be fine.. but it completely ignores the if statement. if i only do the double '=='.. the variable doesnt show up, and it goes to the else state. lemme know if u see anything wrong.</p>
<pre><code>var pic1 = document.getElementById('team... | javascript | [3] |
526,660 | 526,661 | Android loading in images of with different dpi, some do not appear | <p>I'm loading external images from a url, which they are all the same resolution. However, the images that are below 100dpi do not appear. The rest are 100 dpi and they do appear.</p>
<p>I can't wrap my head around this dpi resolution concept, and why I can't use these images even though they are the same resolution ... | android | [4] |
5,148,198 | 5,148,199 | Difference between File.renameTo and Files.move: Which is faster? | <p>Both <code>File.renameTo</code> and <code>Files.move</code> in Java can move a file. What's the difference between the two? And which has a better performance?</p>
| java | [1] |
3,754,498 | 3,754,499 | C++ Pointers to Pointers in Java | <p>I am a Java noob. I have been able to grasp the concept of converting C/C++ pointers into Java references and this has gone fairly smoothly.</p>
<p>I hit a piece of code that has pointers to pointers (ie **ptr). I need to dereference the pointer and change the value of the pointer it is pointing to (ie *ptr = &n... | java | [1] |
388,557 | 388,558 | how to store php array data into mysql database | <pre><code><?PHP
// primarily a method for storing data
// arrays are counted from 0
$hosts = array(
array("ronmexico.kainalopallo.com/","beforename=$F_firstname%20$F_lastname&gender=$F_gender","Your Ron Mexico Name is ","/the ultimate disguise, is ([^<]+)<\/b><\/u>/s"),<u><b>([^<... | php | [2] |
2,477,311 | 2,477,312 | Frustratingly simple jQuery problem | <p>I'm trying to do something very simple in Jquery which i just cant get to fire properly.</p>
<p>The thing is, i'm writing this code in a separate HTML file on the same server and using PHP "include" to use it, the jQuery src is held on Google and referenced in the main index.php head tag.</p>
<pre><code><script... | jquery | [5] |
267,913 | 267,914 | Search in a two dimensional array and return the array list as a array | <p>How can I search in a two dimensional array and return the array list as a array?</p>
<pre><code>var dataSet = new Array(new Array());
function searchAsset(){
dataSet.length = 0;
var fileName = document.getElementById("fileName").value;
var arr = new Array(["view_page.psd","test"],["ok_test.jpg","yes","... | javascript | [3] |
4,045,106 | 4,045,107 | What's the point of "var t = Object(this)" in the official implementation of forEach? | <p><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/forEach" rel="nofollow">According to the MDC</a>, the ECMA-262, 5th edition gives the implementation of forEach as:</p>
<pre><code>if (!Array.prototype.forEach)
{
Array.prototype.forEach = function(fun /*, thisp */)
{
"use s... | javascript | [3] |
1,611,281 | 1,611,282 | Website potential file lock issue | <p>I am writing a blog where I upload text documents to a directory that contain HTML. Using the code below, do you anticipate I will have any issues with file locking or other problems I am not seeing? I am most concerned about the File.ReadAllText().</p>
<p>The directory will contain a list of files ex:</p>
<p>201... | c# | [0] |
4,323,748 | 4,323,749 | jQuery - Why won't select box info duplicate but the rest will | <p>I'm using the code below to try and duplicate information from one set of address fields to another set when a checkbox is checked. All of it works except for the state select box (drop down box). It's driving me crazy. </p>
<pre><code> //on page load
$(document).ready(function() {
//when the checkbox is checked ... | jquery | [5] |
4,362,424 | 4,362,425 | GPRS connection still connected while receiving phone call? | <p>Suppose one application is running which is using GPRS connection. If in between that if call comes what will happened with that GPRS connection?? It still persist or it is get disconnected??</p>
<p>Thanks </p>
| android | [4] |
1,135,429 | 1,135,430 | How can I create HTML database driven menubar in asp.net | <p>I have already menubar and database developed in Classic ASP & SQL Server 2005. How can I convert this menubar in asp.net?</p>
| asp.net | [9] |
4,431,399 | 4,431,400 | iphone customizing UIButtons | <p>how to customize the UIButton so that it will display other than the default button style.</p>
| iphone | [8] |
930,455 | 930,456 | image resize from small to big without strech is possible? | <p>i want to script image size resize from small to big</p>
<p>any idea?</p>
<p>i used some script but when image size changed to big image is strech</p>
<p>it is possible change image size without strech in php</p>
| php | [2] |
3,584,051 | 3,584,052 | Dynamic change of the global clock in javascript | <p>I have to solve a problem that the user must change dynamic from global clock the time,day,date,city. Can someone help me.The different ways are:
Sun
Sunday</p>
<p>28th March 2010
28 March 2010
28th Mar 2010
28 Mar 2010
28/03/2010
28th March 10
28 March 10
28th Mar 10
28 Mar 10
28/03/10
28th March
28 March
28th Ma... | javascript | [3] |
4,211,963 | 4,211,964 | how to create a fragment in android 3.1? | <p>I want to create a fragment for my application. I have a book that talks about it but the activity is not good at all. I was wondering could anyone write up a small tutorial on how to create one and how to show information from a sqlite database in a list view in it? </p>
| android | [4] |
3,950,910 | 3,950,911 | jQuery not working, need some serious help! | <p>i was working on a facebook like website
and i had a modal window,curvy corners,auto grow-text area and a facebook like footer admin panel.but the modal window and auto grow-text area is not working since i added facebook like footer admin panel.im only using jQuery,no anyother famework
and i dont know jQuery,i impl... | jquery | [5] |
4,224,294 | 4,224,295 | C# windows application not closing | <p>my post is same like <a href="http://stackoverflow.com/questions/465306/c-windows-application-not-closing">This</a>... but that post didn't solve'd my question, so my question is.</p>
<p>m building a win app in c#, and in that im using <code>backgroundworkder thread</code> and <code>Application.DoEvents</code>. her... | c# | [0] |
939,455 | 939,456 | asp.net disconnected architecture | <p>can some one give me add new record program in sql database which include disconnected architecture?
i want vb code not c#</p>
| asp.net | [9] |
5,683,401 | 5,683,402 | open and save file dialog | <p>i use an openFileDialog to read from a text file and print the values in a listbox and a saveFileDialog to save the changes in textfile.i wrote this code but it doesn't work.if a change the listbox with a textbox works fine.But i need to print and save the items into a listbox.any suggestions?</p>
<pre><code> pr... | c# | [0] |
1,891,322 | 1,891,323 | iphone - Interface Builder not loading custom class? | <p>I generally don't use Interface Builder (I hate it). But I am being forced to use it, because I was invited to a project where people are using it. I am trying to create a custom UISlider.</p>
<p>I have created a UISlider custom class, with my own images for the slider parts.</p>
<p>If I add a new object to my mai... | iphone | [8] |
605,188 | 605,189 | how to check device is ipod when send sms inapps in iphone | <p>how to check device is ipod when send sms inapps in iphone.
i want to diasable sending sms when device is ipod touch
here is my code</p>
<pre><code> smsComposer = [[MFMessageComposeViewController alloc] init];
smsComposer.navigationController.navigationBarHidden = NO;
smsComposer.wantsFullScreenLayout = Y... | iphone | [8] |
5,338,857 | 5,338,858 | jQuery - Targeting specific ID's | <p>I have the following code:</p>
<pre><code><script type="text/javascript" language="javascript">
$(document).ready(function() {
$("input:checkbox").click(function(){
var group = "input:checkbox[name='"+$(this).attr("name")+"']";
$(group).attr("checked",false);
$(this).attr("checked",true);
});
});
... | jquery | [5] |
1,484,778 | 1,484,779 | How to do something before applicationDidFinishLaunching | <p>Apple allow us to define our own Logo image from simulator launch to execute applicationDidFinishLaunching end.
Now I want to do something between Logo on screen to IPHONE display the first view. I don't know how to do this.
Thanks everybody who help me</p>
| iphone | [8] |
2,855,648 | 2,855,649 | Is it possible to let mouse events pass through a canvas layer? | <p>I have a grid of images and a canvas layer on top of it, I would like to do some animations on the canvas tag once the user rolls over a thumbnail image from the grid, so I wonder if is possible to let mouse events pass through the canvas layer?</p>
| javascript | [3] |
4,156,075 | 4,156,076 | how to break chaining selectors in jquery | <p>I have some doubts in break the <code>jquery chaining selectors</code>.</p>
<p>For example, Consider this is my sample code,</p>
<pre><code><script>
$("#button1, #button2, #button3, #button4, #button5, #button6 ").show();
</script>
</code></pre>
<p>I want to change like this format,</p>
<pre><c... | jquery | [5] |
829,589 | 829,590 | The roadmap to an Android development expert | <p>I just start to learn Android development.</p>
<p>My previous experience is majorly about .NET framework in C#. Some experience with Linux. And basically no idea of Java.</p>
<p>So, which is the good way to be an Android development expert? Some books? Study roadmap? Anything would be appreciated. I am all ears to... | android | [4] |
5,737,357 | 5,737,358 | processMessage(Chat chat, Message message) not working in Android | <p>I am using aSmack-2010.05.07 XMPP library for writing down chat application on android,</p>
<p>Here is my associated code,</p>
<pre><code>chatManager = LoginScreen.getConnection().getChatManager();
System.out.println("Chat Manager created .......");
chat = chatManager.createChat(JID,new MessageListener() ... | android | [4] |
3,099,308 | 3,099,309 | Stack over flow in java script inheritance! | <p>i have the below prog</p>
<pre><code> Object.prototype.inherit = function(baseConstructor) {
this.prototype = (baseConstructor.prototype);
this.prototype.constructor = this;
};
Object.prototype.method = function(name, func) {
this.prototype[name] = func;
};
function StrangeArray(){}
StrangeArray.inherit(Arr... | javascript | [3] |
4,148,798 | 4,148,799 | How can I use GLG toolkit in Java? | <p>Hello Everyone is Stack Overflow! =)</p>
<p>I am doing my 3d transformation of an arm. After looking at one example in the Internet, I found out that the programmer is using GLG Toolkit to draw the robot arm he made, then connect(?) it to Java, to code the transformation.</p>
<p>When I tried the code to my version... | java | [1] |
1,445,846 | 1,445,847 | Accessing application data folder path for all Windows users | <p>How do I find the application data folder path for all Windows users from C#?</p>
<p>How do I find this for the current user and other Windows users?</p>
| c# | [0] |
1,055,303 | 1,055,304 | Integrate program on webserver | <p>I would like to make use of the tool "PDFToHTML" which you can find <a href="http://www.articlediary.com/article/php-script-for-pdf-to-html-conversion-125.html" rel="nofollow">here</a>.
Unfortunately, I have no idea on how I need to install this and execute this on my webserver.
I would like to know if some people a... | php | [2] |
3,925,360 | 3,925,361 | Write to specific line in PHP | <p>I'm writing some code and I need to write a number to a specific line. Here's what I have so far:</p>
<pre><code><?php
$statsloc = getcwd() . "/stats/stats.txt";
$handle = fopen($statsloc, 'r+');
for($linei = 0; $linei < $zone; $linei++) $line = fgets($handle);
$line = trim($line);
echo $line;
$line++;
ech... | php | [2] |
1,746,374 | 1,746,375 | jQuery animate height in different class | <p>Is it possible to have height of animate in different class as is in my case ".bar1"???</p>
<p><code>$('.bar1').animate({'height':'58%'},1000);</code></p>
<p>Just to get idea what I mean: <strong>'.bar_graf'</strong></p>
<p><code>$('.bar1').animate({'.bar_graf'.'height':'58%'},1000);</code></p>
| jquery | [5] |
5,006,705 | 5,006,706 | Store plus and minus in a variable PHP | <p>How can I solve this problem:</p>
<pre><code>if ($variable == 1) {
$math = "-";
} else {
$math = "+";
}
$numberOne = 10;
$numberTwo = 10;
$result = $numberOne $math $numberTwo;
</code></pre>
<p>This doesn´t work, is there any way to solve this?</p>
| php | [2] |
337,631 | 337,632 | Access to Compiler's errors and warnings | <p>i'm developing a simple C# Editor for one of my university courses and I need to send a .cs file to Compiler and collect errors (if they exist) and show them in my app. In other words i want to add a C# Compiler to my Editor. Is there anything like this for the debugger?</p>
| c# | [0] |
4,518,161 | 4,518,162 | Combining List<Base> with List<Derived> | <p>How can I do the follwing:</p>
<pre><code>public class BaseItem
{
public string Title { get; set; }
}
public class DerivedItem : BaseItem
{
public string Description { get; set; }
}
class Program
{
static void Main(string[] args)
{
List<BaseItem> baseList = new List<BaseItem>()... | c# | [0] |
4,396,948 | 4,396,949 | Jquery Animate DIV | <p>Hi
Am using Jquery animate function to animate div content am trying to move div to -top,The problem is not able to stop function its moving to exteme top=-10px i wanna move it to in intervals that is onscrolling it should move to -10px of existing height in next interval again it should move to further -10px on mo... | jquery | [5] |
1,547,061 | 1,547,062 | log IP with php | <p>I found this script online:</p>
<pre><code><?php
$v_ip = $REMOTE_ADDR;
$v_date = date("l d F H:i:s");
$fp = fopen("ips.txt", "a");
fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");
fclose($fp);
?>
</code></pre>
<p>Creating the entry works. However, the IP is not displayed. The entries created look like this:</... | php | [2] |
883,265 | 883,266 | Losing Session Variables during internet reconnection | <p>I have looked for help on this problem, but not found anything quite like it.</p>
<p>I have an asp.net web site which 1 user (that I know of) is getting problems with being logged out (forms auth) and losing session variables.</p>
<p>I think basically what is happening is the user is using a mobile internet connec... | asp.net | [9] |
5,046,585 | 5,046,586 | Prepend a DIV already hidden so I can animate a slide in | <p>I use an ajax call to retrieve a div that I want to prepend to my results DIV. I don't want to add the style display:none to the div before it is returned because I use the same code elsewhere and don't want that style attached.</p>
<p>That being said how do I prepend an element to a div already hidden so I could ... | jquery | [5] |
3,505,022 | 3,505,023 | Protecting JavaScript? Or use Something else? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript">How can I obfuscate JavaScript?</a> </p>
</blockquote>
<p>I have been working on a web app in JavaScript. Nearing complete.</p>
<p>How do I protect me JavaScript code from... | javascript | [3] |
3,487,257 | 3,487,258 | C++ class type copy-initialization | <p>If I write </p>
<pre><code>T t = T();
</code></pre>
<p>T is a class.</p>
<p>I think this is calling T's default constructor and then the copy assignment operator.
But the compiler is allowed to get rid of the assignment.</p>
<p><strong>I'm trying to find the description of this behavior written in the C++ standa... | c++ | [6] |
239,217 | 239,218 | Why can't an anonymous class have a lambda property, but it can have a Func<> property? | <p>I'm trying to learn C#'s restrictions on an anonymous type. Consider the following code:</p>
<pre><code> var myAwesomeObject = new {
fn1 = new Func<int>(() => { return 5; }),
fn2 = () => { return 5; }
};
</code></pre>
<p>So we've got two properties that are actually functions:</p>
<ul>... | c# | [0] |
2,415,011 | 2,415,012 | limit on string size in c++? | <p>I have like a million records each of about 30 characters coming in over a socket. Can I read all of it into a single string? Is there a limit on the string size I can allocate?</p>
<p>If so, is there someway I can send data over the socket records by record and receive it record by record. I dont know the size of ... | c++ | [6] |
2,414,701 | 2,414,702 | more space appears between spinner and EditTExt | <p><br>
I am writing an android where I need to display Spinner and EditText . I am using LinearLayout with vertical orientation. I am getting lot of space between spinner and EditText.
Can anyone help me in sorting out this issue.
<br>
Thanks in Advanvce</p>
| android | [4] |
3,729,659 | 3,729,660 | Numberofcomparison and nunber of item movements | <p>Im using c++ and is using insertion sort</p>
<p>Where in the insertion sort algoithm should we put a counter to monitor number of item movements and number of item comparison. I have included my setup below</p>
<pre><code>void InsertionSort::insertion_sort()
{
int key,i,count = 0;
for(int j=1;j<10;j++)
{
... | c++ | [6] |
891,768 | 891,769 | my app killed by android system when it running in background | <p>I want to create application that can play a streaming music . When I press home my app can running in background but when I open another application that use more memory my app will stop and killed by android system . Anyone have another idea to run my music player app in background? </p>
<p>thank you</p>
| android | [4] |
5,681,513 | 5,681,514 | converting binary string into float | <p>I have an object that I am storing bits in. </p>
<pre><code>class Bitset:
def __init__(self, bitstring):
self.bitlist = []
for char in bitstring:
self.bitlist.append(int(char))
def flipBit(self, index):
val = self.bitlist[index]
val = (val + 1) % 2
self.b... | python | [7] |
1,628,358 | 1,628,359 | why there is no Center() method for Rectangle class in c#? | <p>previously, there is such method for Rectangle in MFC, i dont know why there is not for the c# version.</p>
| c# | [0] |
4,829,709 | 4,829,710 | What effect does FireBug, Inspection Tools etc. Have on the window? | <p>I have a rather bizarre issue. I'm modifying the jQuery BookBlock plugin;</p>
<p><a href="http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/" rel="nofollow">http://tympanus.net/codrops/2012/09/03/bookblock-a-content-flip-plugin/</a></p>
<p>To work with a full-screen page flip effect & a si... | jquery | [5] |
1,930,002 | 1,930,003 | Weird PHP Behavior | <pre><code><?php
$dog[] = "12";
$dog[] = "3";
for ($i = 0; $i < 2; $i++) {
$dig = $dog[i];
echo $dig;
}
?>
</code></pre>
<p><code>$dig</code> is always null. Why?</p>
| php | [2] |
721,895 | 721,896 | Abstract Base Class with Data Members | <p>If I'm creating an abstract base class, and the classes derived from it are going to have some of the same data members, is it better practice to make those members private in the abstract base class and give protected access to them? Or to not bother and just put the data members in the derived classes. This is in ... | c++ | [6] |
3,480,964 | 3,480,965 | slider gallery with touch recognition | <p>HI
i was following this example to create a slider gallery</p>
<p>"http://lievendekeyser.net/index.php?module=messagebox&action=message&msg_id=1351"</p>
<p>But i stuck at one point. what i am trying to do is, when user double tap on current image, it should navigate to another view, like to view B.</p>
<p... | iphone | [8] |
1,251,414 | 1,251,415 | logical operators in java | <blockquote>
<p><strong>Possible Duplicates:</strong><br>
<a href="http://stackoverflow.com/questions/684648/a-clear-laymans-explanation-of-the-difference-between-and-in-c">A clear, layman's explanation of the difference between | and || in c# ?</a><br>
<a href="http://stackoverflow.com/questions/96667/whats-... | java | [1] |
2,676,497 | 2,676,498 | Killing the Background running Activities such as Messaging, Browser, Contact etc in Android | <p>I am trying to Kill the Background running Activities such as Messaging, Browser, Contact etc in Android. I have written the following code.</p>
<pre><code>amm=(ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<RunningTaskInfo>task1=amm.getRunningTasks(20);
for (ActivityManager.RunningTaskInfo a... | android | [4] |
788,136 | 788,137 | Carriage return and new line with Java and readLine() | <p>I am using the following code to establish a HTTP connection and read data:</p>
<pre><code>con = (HttpURLConnection) new URL("http://stream.twitter.com/1/statuses/sample.json").openConnection();
...
con.connect();
while (line = rd.readLine()) {
if (line.contains("\r\n")) {
System.out.println("Carriage ret... | java | [1] |
1,026,988 | 1,026,989 | what is the pregmatch to retrieve these values using javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8355422/what-is-the-reg-expression-for-this-using-javascript">What is the reg expression for this using javascript</a> </p>
</blockquote>
<p>How to retrieve the value 100003119917070 and XgXELcliKMkSCcS from bel... | javascript | [3] |
5,368,695 | 5,368,696 | how to fetch image path from database using byte array in android | <p><strong>W/System.err(15366): android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1</strong> </p>
<pre><code>byte[] bytes = cur.getBlob(cur.getColumnIndex(imgarr.get(i)));
ByteArrayInputStream input = new ByteArrayInputStream(bytes);
Bitmap bit =... | android | [4] |
993,078 | 993,079 | How to create custom action for an object? | <p>I have an object, let's say FOO, with a variable, percent...</p>
<p>I need to create an Action percentChanged, which will be triggered when the variable percent is changed, which will handled by an ActionListener in another object ...</p>
<p>How to do it in java ?</p>
| java | [1] |
209,353 | 209,354 | Question about the android .finish() method | <p>whats the difference between MyActivity.finish() and MyActivty.this.finish()? I see an example where MyActivty.this.finish() is called from hitting the OK button on a dialog asking if you want to exit the app. isn't the ".this" part redundant?</p>
| android | [4] |
2,691,626 | 2,691,627 | Deleting table view cell without a red default delete button at left side | <p>how to delete cell of table view without a red default delete button at left side (peforming delete action on anoher button) so can any one help me </p>
| iphone | [8] |
1,465,910 | 1,465,911 | C++ nested classes accessibility | <p>Given the following code <strong>without considering friendship</strong> between two classes:</p>
<pre><code>class OutSideClass
{
...
public:
int i_pub;
protected:
int i_pro;
private:
int i_pri;
class InSideClass
{
...
public:
int j_pub;
protected:
... | c++ | [6] |
3,058,197 | 3,058,198 | How to implement expandable view (window shade) in Android? | <p>Does anybody know how to implement an expandable view which behaves like the status bar?
I've seen it in many apps, so I assume it's not too difficult :)</p>
| android | [4] |
936,064 | 936,065 | How can I bind distinct playlist title from database to checkbox list | <pre><code>private void chkDeletePlaylistBind()
{
chkDeletePlaylist.DataSource = objEntities.Playlists.OrderBy(del => del.PlaylistTitle).Distinct();
chkDeletePlaylist.DataTextField = "PlaylistTitle";
chkDeletePlaylist.DataValueField = "PlaylistID";
chkDeletePlaylist.DataBind();
}
</code></pre>... | asp.net | [9] |
159,976 | 159,977 | check for undefined variable | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2559318/how-to-check-for-undefined-or-null-variable-in-javascript">How to check for undefined or null variable in javascript</a> </p>
</blockquote>
<p>I want to check for an defined variable in javascript. Pleas... | javascript | [3] |
2,751,720 | 2,751,721 | It is possible to get keys from $_GET in php? | <p>I just ask if it is possible to get keys from $_GET ...</p>
<p>I want to do a switch statement like</p>
<pre><code>switch($_GET key) //here I don't know
{
case "login": .... break; //if "login" key exists in $_GET then show page.
....
}
</code></pre>
<p>Sorry for idiot question</p>
| php | [2] |
5,164,384 | 5,164,385 | How to set style for spinner programmatically? | <p>I have spinner with a style selection (I set the spinner style in <code>strings.xml</code>) and it's works well if I set the style in <code>main.xml</code>. But I want to know how to set the style programmatically in which the style already defined in <code>strings.xml</code>.</p>
<p>Refer my code below</p>
<p><st... | android | [4] |
2,289,051 | 2,289,052 | jQuery disable all button of a css class and input type button | <pre><code><input class="submit2" type="button" name="submit2" value="Submit" id="submit1" onclick="">
</code></pre>
<p>I want to disable the button on my page after clicking it. to avoid double click.</p>
<p>i have tried following code</p>
<pre><code>$(document).ready(function() {
$('.submit2').click(fu... | jquery | [5] |
3,188,623 | 3,188,624 | How a parent view can control the drawing of it's children when they are not aware of each other but must share a common canvas | <p>My apologies if the question title is not very clear. Difficult to describe in a sentence!</p>
<p>I have a view which contains a custom view which implements a graph plot. It also contains a cursor which the user can drag over the graph to get further data about the points of the graph. Imagine a sine wave with ... | android | [4] |
1,281,466 | 1,281,467 | execute flush javascript before finishing | <p>i've written a function which waits x milliseconds before executing another function. now i have problem with that it won't execute any change until it finishes.</p>
<pre><code>this.changeColor('#99FFCC');
this.pausecomp(this, 'changeColor','#FFFFFF', 1000);
changeColor = function (color)
{
this.inputElem.styl... | javascript | [3] |
3,706,874 | 3,706,875 | How to use Android-Wheel into my project | <p>I have zip file of Android-wheel but dont know how to use it into my project.What possible things can i do, Please suggest me.</p>
| android | [4] |
2,605,409 | 2,605,410 | Start a windows service and launch cmd | <p>Do I need to enable Interactive desktp for it to work and what is the correct code to start an EXE or cmd window? I'm still unable to start the service even when I had enable it to interact with desktop.</p>
<p>I would be using an chat engine so it is easier to manage as a windows service. </p>
<p>What wrong with ... | c# | [0] |
1,602,165 | 1,602,166 | General question about iPhone programming | <p>I have a question regarding nibs and how detail views are created in professional apps. I want to make an app that loads different uitextfields for each nib that is selected from a table. These textfields contain some logic that is different from each. I wanted to ask if it's possible to make one nib and change the ... | iphone | [8] |
3,540,618 | 3,540,619 | Where is the SKU Number Iphone App | <p>Where do I find the SKU number for my iphone app? Is it in xcode somewhere?</p>
| iphone | [8] |
3,542,718 | 3,542,719 | Java won't recognize defined variables? | <p>In <code>actionPerformed</code> it seems that all variables (submit, msg, input) "cannot be resolved" according to Eclipse. In my experience (of which I have very little) this means that I have not defined the variables. But, as you can see in the code, I have defined them. Submit is a JButton, msg is a string, inpu... | java | [1] |
3,211,957 | 3,211,958 | Should you always refer to local class variables with "this" | <p>In C# you can refer to values in a class using the 'this' keyword.</p>
<pre><code>class MyClass
{
private string foo;
public string MyMethod()
{
return this.foo;
}
}
</code></pre>
<p>While I presume the answer will likley be user preference, is it best practice to use the this keyword with... | c# | [0] |
861,027 | 861,028 | What is most beneficial to use? $(this) vs. this | <p>When is it most beneficial to use <code>$(this)</code> and when should I use the plain old <code>this</code> (<code>$(this)[0]</code>)?</p>
<p>I have posted on <a href="http://stackoverflow.com">SO</a> before, where someone told me I shouldn't use <code>$(this)</code> so much in my function but rather <code>this</c... | jquery | [5] |
4,710,857 | 4,710,858 | Java: having files containing only general methods? | <p>I was wondering if there was a way to have methods separated from the main and class files (like how in c you can have .c & .h with just methods that you can import into projects).</p>
<p>Specifically I have a 'logical exclusive or' function that I want to use across several classes and I thought it would be go... | java | [1] |
773,701 | 773,702 | how to place geopoints on the image as map in android | <p>hi this raju iam new to android. i created a small project in that project i displayed a image as map with custom view.
I have latitude and longitude point then how to show geopoints on image by using my latitude and longitude points please anyone help me.
if any one knows please provide some samples.</p>
| android | [4] |
4,279,508 | 4,279,509 | Circle voice animation in Android | <p>Does anybody know how to build the growing circle animation like the "Talk now" in Android?</p>
<p><img src="http://i.stack.imgur.com/vb8hj.png" alt="Animation"></p>
| android | [4] |
1,110,166 | 1,110,167 | Permission denied in Android terminal Emulator | <p>i always get <strong>permission denied</strong> when i open the android terminal emulator?
I want to change the hosts for android , but I cant because the permission denied ?
How can I fix it ?</p>
<p><strong>I want to change the host to point on another pc so i see the request there and check if there the service... | android | [4] |
2,204,085 | 2,204,086 | Android - some code executes after the phone went to a different Activity | <p>I have a strange scenario here. </p>
<p>I have this code:</p>
<pre><code>// For checking if the person is logged in.
first_time_check();
setContentView(R.layout.main);
// ...next lines of code
</code></pre>
<p>and the first_time_check() function checks if the user is logged in for the first time. If their user... | android | [4] |
4,322,494 | 4,322,495 | What is the "double tilde" (~~) operator in JavaScript? | <p>I'm seeing this in some code, and I have no idea what it does:</p>
<pre><code>var jdn = function(y, m, d) {
var tmp = (m <= 2 ? -1 : 0);
return ~~((1461 * (y + 4800 + tmp)) / 4) +
~~((367 * (m - 2 - 12 * tmp)) / 12) -
~~((3 * ((y + 4900 + tmp) / 100)) / 4) +
d - 2483620;
};
</co... | javascript | [3] |
2,455,052 | 2,455,053 | Validating extra letter in encrypted text in php | <p>Here is the method i am using encrypt and decrypt in php.</p>
<pre><code>function ecrypt($str){
$key = "ABCDEH";
for($i=0; $i<strlen($str); $i++) {
$char = substr($str, $i, 1);
$keychar = substr($key, ($i % strlen($key))-1, 1);
$char = chr(ord($char)+ord($keychar));
... | php | [2] |
3,774,849 | 3,774,850 | Service state is reported incorrectly | <p>I installed my c# application as windows service using the following command,</p>
<p>Installutil.exe</p>
<p>The installation is done in 32 bit machine.And the c# application is using 8088 port.
After installing the service the service property has changed to Automatic.
When the system restart the service also will... | c# | [0] |
1,617,450 | 1,617,451 | saving a pdf to the filesystem | <p>How can i save a pdf from a url using NSData in my iphone resources, and then call those up after every app launch to load.?</p>
| iphone | [8] |
5,410,973 | 5,410,974 | CryptographicException is thrown on new MailMessage() | <p>I have the following code in an ASP.NET site</p>
<pre><code>using (MailMessage mailMessage = new MailMessage())
{
...
}
</code></pre>
<p>throws System.Security.Cryptography.CryptographicException: The handle is invalid. exception.</p>
<p>The SMTP setting in my web.config file is:</p>
<pre><code><system.ne... | asp.net | [9] |
2,928,820 | 2,928,821 | Creating a regex for parsing screens resolutions | <p>I have a string of text that somewhere will contain the resolution to my vid in the format <code>###x###</code> or <code>####x####</code> (ex. 320x240 or ex. 1024x1280 ex. 320x1024 etc.) or any combo in between. I am not great at regexes yet and I was wondering if anyone could point out where I am going wrong.</p>
... | php | [2] |
381,797 | 381,798 | add column title | <p>is it possible add column title in case of multicolumn autocomplete</p>
| jquery | [5] |
1,228,582 | 1,228,583 | IE 8 not executing JQUERY slideDown/Up() Properly | <p>I'm trying to apply jquery functions to a drop down menu and for some reason it only works with Firefox 3.5.7. Below is the HTML for the Dropdown Menu:</p>
<pre><code><select name="Delivery" id="Delivery" class="pulldown" tabindex="24">
<option id="pick_up" value="Pick up">Pick up</option>
... | jquery | [5] |
2,090,742 | 2,090,743 | Auto logoff while closing the winform | <p>I want to make auto logoff while closing the winform without timer access. How do I do that?</p>
| c# | [0] |
5,473,071 | 5,473,072 | Sorting an object? | <p>How to sort this object lexicographically by its keys:</p>
<pre><code>var obj = {'somekey_B' : 'itsvalue', 'somekey_A' : 'itsvalue');
</code></pre>
<p>so that it outputs like this:</p>
<pre><code>for (k in obj) {
alert(k + ' : ' + obj[k]); //first "somekey_A : itsvalue"; then "somekey_B : itsvalue"
}
</code></p... | javascript | [3] |
1,335,129 | 1,335,130 | C++ compilers implementing dynamic initialization after main | <p>The C++ standard section 3.6.2 paragraph 3 states that it is implementation-defined whether dynamic initialization of non-local objects occurs after the first statement of main().</p>
<p>Does anyone know what the rationale for this is, and which compilers postpone non-local object initialization this way? I am mos... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.