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,841,346 | 4,841,347 | Jquery moving bar and stopping 0-100 | <p>I am trying to find the right way to go about this i am trying to get a bar that move from 0 - 100 and you got a stop button and when you press it the bar will stop and display a number. i am trying to do this in jquery.</p>
| jquery | [5] |
5,379,995 | 5,379,996 | In what language is C# compiled | <p>Since I've been developing on c# this is a curiosity I have. Does anybody know that</p>
| c# | [0] |
4,095,357 | 4,095,358 | What is the scope of these variables? | <p>Please see the C++ code fragment below:</p>
<pre><code>#include .....
Class1 class1;
Class2 class2;
...
void Class3::foo() {
...
}
</code></pre>
<p>What are the variables: class1 and class2? Are they global variables? Static variables? What actually are these? In C++ OO programming, is it good practice t... | c++ | [6] |
3,367,897 | 3,367,898 | Use of python progress bar in script | <p>I want to show progress bar in my script because it takes a lots of time to execute while working on huge files.I gone through the <a href="http://code.google.com/p/python-progressbar/" rel="nofollow">python progressbar module</a></p>
<p>and examples also its good and very intresting to use but as per examples all ... | python | [7] |
2,202,431 | 2,202,432 | Expand/shrink image in a div with JQuery | <p>I'm using some images as banners on my site. They're full (960px) width and I initially show a portion of the image as a teaser (say 160px high). I do this now by using a separate image which is a slice of the full size image (which is 600px high). Complicating this are shadows that I apply in Photoshop at the top ... | jquery | [5] |
3,399,137 | 3,399,138 | How to get an outline path from an image in java? | <p>How to get an outline path from an image in java ?
I mean I want to get a a path iterator of the path surrounding the image Ignoring any transparent area in it .</p>
| java | [1] |
5,967,691 | 5,967,692 | how to print data inside a char pointer (c++)? | <p>I have a </p>
<pre><code>funtion(const char * data)
{
//how to print the data which is inside the data
}
</code></pre>
<p>when i debug i see only the address.If i print (*data) nothing is printed.</p>
<p>Any idea?</p>
| c++ | [6] |
3,253,903 | 3,253,904 | When should I use enumerations stored in the database and when an enum in the code? | <p>What is the best way to store enumerations?
For example, I have an entity Person that has a property Sex. The first option that I can think of is a table that stores the enumeration values and names (1 is for Male and 2 is for Female for example) and then in the Person table to store the int values. The second opti... | c# | [0] |
3,907,517 | 3,907,518 | how to bold day and time with javascript | <p>I'm trying to post hours on my website and I want the day and time to bold automatically based on javascript. Is it possible to setup some javascript so that on Monday would be bold and then on tuesday would be bold and so on?</p>
<p>Here is the code:</p>
<pre><code><div id="monday">Monday: 12:00-2:00</... | javascript | [3] |
5,760,440 | 5,760,441 | I'm trying to get a menu list with the effect fade to (jquery) | <pre><code>$(document).ready(function() {
$(".menu li a").hover(function() {
$(this).fadeTo("slow", 0.33);
});
});
</code></pre>
<p>I want to effect mouseover and mouseout but I can't do it :(</p>
| jquery | [5] |
689,373 | 689,374 | Get rid of the strip line under the TabWidget | <p>I'm using Android 3.0.</p>
<p>I've created <code>TabHost</code> with <code>TabWidget</code> in my layout and I add the tabs during runtime.
I want to get rid of the blue line under the <code>TabWidget</code> which also indicates on the active tab. I've tried to set the strip to disabled but it didn't help.
How can ... | android | [4] |
1,224,056 | 1,224,057 | Some More Program Logic Assistance Requested | <p>I have these partial listings of two classes. A CiscoSwitch object maintains a list of SwitchConnection objects to other switches. I am trying to write the code that will walk a list of switches and return the switches that have common connections, either to each other or to the same RemoteSwitchName listed in the... | c# | [0] |
3,341,867 | 3,341,868 | send email to a bunch of users class | <pre><code>class emailer
{
private $sender;
private $recipients;
private $subject;
private $body;
function __construct($sender)
{
$this->sender = $sender;
$this->recipients = array();
}
public function addRecipients($recipient)
{
array_push($this->recipients, $recipient);
}
public function setSubject($subject)... | php | [2] |
943,439 | 943,440 | String Operation to get particular value inside the string using java | <p>I have a string as below.</p>
<pre><code><employees>
<emp>
<name>yaakobu</name>
<sal>$20000</sal>
<designation>Manager</designation>
</emp>
<emp>
<name>daaniyelu</name>
<sal>$2000</sal>
<designation>Operator</designation&g... | java | [1] |
5,342,069 | 5,342,070 | Calculating inner product of an array | <pre><code>// Write a program to calculate the innerproduct of two arrays (ip of v,w = sum, for all i, of vi*wi)
var v = [1, 2, 3, 'x'];
var w = [1, 2, 3, 4];
vSum_total = 0;
wSum_total = 0;
// calculate sum of v
for(i=0; i<v.length; i++)
{
if (isNaN(v[i]))
v[i] = 0
else
vSum_total += Number(v[i]);... | javascript | [3] |
4,861,499 | 4,861,500 | Convert military time to standard time | <pre><code>function checkTime(item) {
if((item.value == "") || (doc.findItem('warning_checkbox').value == '1'))
return true;
if(fixtime(item,true,2)) {
if(item.value/1 < "0800" || item.value > "1700") {
item.value = "";
alert("between 8 AM and 5 PM.");
r... | javascript | [3] |
3,144,822 | 3,144,823 | I want to display only one item at a time in checkboxlist n provide scroll bar when we click on checkboxlist for multiselection | <p>i want a checklistbox as a dropdownlist with checkbox inside.
means it must provide scroll bars in checkboxlist n show 1 item at first.</p>
| asp.net | [9] |
3,786,978 | 3,786,979 | toggle between UIBarButtonSystemItemPlay and UIBarButtonSystemItemPause | <p>Have two UIBarButtonItems want to make it as one UIBarButtonItem and toggle between them </p>
<pre><code>UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemPlay
target:self
... | iphone | [8] |
2,996,824 | 2,996,825 | Java labels. To be or not to be | <p>Before I start this question I know the java 'goto' is a big no go.</p>
<p>So I've been writing a program and I have some indented Loops and statements and I need to <code>BREAK</code> multiple on command. Rather than having a load of <code>boolean</code> variables and <code>if(!<booleanName>) BREAK;</code> s... | java | [1] |
493,263 | 493,264 | can an iPhone application create more than one button on the applications screen? | <p>I'd rather write an application with two buttons on the applications menu than use just one - and have two paths through the app.</p>
<p>Can this be done?</p>
<p>Is there some way of creating buttons on the applications screen?</p>
<p>Thanks.</p>
| iphone | [8] |
4,775,741 | 4,775,742 | Closing a ByteArrayOutputStream has no effect? | <p>What does this statement, "Closing a <code>ByteArrayOutputStream</code> has no effect" (<a href="http://java.sun.com/javase/6/docs/api/java/io/ByteArrayOutputStream.html#close()" rel="nofollow">http://java.sun.com/javase/6/docs/api/java/io/ByteArrayOutputStream.html#close()</a>) mean?</p>
<p>I want to make sure the... | java | [1] |
3,914,663 | 3,914,664 | Display part in Android | <p>I am retrieving data from my database. In my database one field price with value. I retrieved data, I am displaying all data in a <code>ListView</code> (with a <code>TextView</code> inside it). I want display format as <code>Price:67787</code>. But it displaying only 67787. I searched, but I can't find the cor... | android | [4] |
2,501,415 | 2,501,416 | Why can I type into a disabled EditText? | <p>If I disable an <code>EditText</code> widget using</p>
<pre><code>editText.setEnabled(false);</code></pre>
<p>I can still type into it using the on-screen input method (in both the emulator and on the G1). Is this intended? How can I workaround this issue?</p>
| android | [4] |
474,691 | 474,692 | draw a rectangle using rect method from android graphics but i want the rectangle to fit any screen | <p>i want to draw a rectangle using rect method form android graphics but i want to specify the values in dp so that it can fix to any screen size. i presume by default its in pixel or just x,y coordinates.
how can i draw it to fit in any screen size using the rect method</p>
| android | [4] |
2,687,365 | 2,687,366 | How use dynamic image URl for Image button | <p>I have a Image button on the aspx page that is server side button.</p>
<p>Now I want to get image url for this from my code class. but this is not working.</p>
<pre><code><asp:ImageButton ID="total" runat="server" ImageUrl='<%=myappnamespace.Utility.GetImageURL("chckout_p.png")%>'>
</code></pre>
<p>Fu... | asp.net | [9] |
1,425,244 | 1,425,245 | Sort arraylist of letters and numbers | <p>I'm trying to sort an arraylist of strings made up of numbers and letters, an example of the list once sorted would be:</p>
<pre><code>name 1
name 2
name 3
name 11
name 12
name 13
</code></pre>
<p>But when I use collections.sort() it sorts this way:</p>
<pre><code>name 1
name 11
name 12
name 13
name 2
name 3
</co... | java | [1] |
5,069,738 | 5,069,739 | Using class methods as simple functions | <p>I have a class with many methods. How can I modify my methods so that they can also be accessed directly as a function without creating object of that class? Is it possible.</p>
| python | [7] |
1,746,265 | 1,746,266 | how to foreach the array in php? | <p>when i print_r($a); the output like this:</p>
<pre><code>Array
(
[0] => stdClass Object
(
[tid] => 3
[vid] => 1
[name] => cPanel
[description] =>
[format] =>
[weight] => 0
[depth] => 0
... | php | [2] |
1,237,629 | 1,237,630 | How to check for a string is equivalent to a user input in Python? | <p>I'd like to just read input from the user until a command is executed or a certain string is entered.</p>
<p>For example:</p>
<pre><code>while "!finish" is not line:
line = input(">")
file.write(line+"\n")
</code></pre>
<p>I'd like to end the input if the user types in !finish and only that string. How... | python | [7] |
2,271,559 | 2,271,560 | Changing image color takes too much time in android | <p>I am trying to change image color dynamically in android .but it takes to much time .</p>
<p>Below function is used for changing color.</p>
<pre><code> public void greenColor(ImageView imageView,String fileName){
System.out.println("in green color method");
//initialize the Bitmap Ob... | android | [4] |
3,610,683 | 3,610,684 | Could not find or load main class with a Jar File | <p>I'm trying to load a jar using</p>
<pre><code>@echo off
java -jar Test.jar
pause
</code></pre>
<p>With the manifest of </p>
<pre><code>Manifest-Version: 1.0
Main-Class: classes.TestClass
</code></pre>
<p>In the Jar directory, I can clearly see a classes\TestClass file when I extract it.</p>
<p>Edit: <code>class... | java | [1] |
4,173,671 | 4,173,672 | Reusing a property value from within an object initializer | <p>First of all sorry for the intriguing title of my question, hopefuly a code sample exposing my problem will clarify things.</p>
<p>Below you will find a code sample that does not compile (and I totally get why, no need to explain) but which expose what I am trying to achieve:</p>
<pre><code>public class Cmd
{
... | c# | [0] |
1,408,951 | 1,408,952 | Get All IDs Starting With "x" | <p>I'm trying to get an output of elements on a page with this:</p>
<pre><code>$('a#exportPage').on('click',function(){
ExportIds = $('[id^="appendHeading"]').attr('id');
ExportTexts = $('[id^="appendHeading"]').text();
$("#PrintIds").append("ObjectID:"+ExportIds+"Content:"+ExportTexts);
});
</code></pre>
<p>But It o... | jquery | [5] |
3,955,399 | 3,955,400 | How can I dynamically unload a javascript file? | <p>I am including pages using Ajax but I also need to include their respective javascript files, which requires removing the previous javascript files from memory at the same time.</p>
<p>How can I unload the currently-loaded javascript files (as well as their code in memory) so that I can load the new page's files? T... | javascript | [3] |
3,422,039 | 3,422,040 | First argument when doing onload=fn | <p>When I do : </p>
<p><code>img.onload=fn;</code></p>
<p>The function fn gets the <code>argument[0] [object Event]</code>.</p>
<p>How can I avoid that ?</p>
| javascript | [3] |
765,988 | 765,989 | Get a value from a string in python | <p><strong>Program Details:</strong></p>
<p>I am writing a program for python that will need to look through a text file for the line: </p>
<p>Found mode 1 of 12: EV= 1.5185449E+04, f= 19.612545, T= 0.050988.</p>
<p><strong>Problem:</strong></p>
<p>Then after the program has found that line, it will ... | python | [7] |
177,729 | 177,730 | searchings rows from table | <p>i want to select particular rows from the JTable which contains a particular string.. please help me for this..</p>
| java | [1] |
224,823 | 224,824 | Web.config 500 block ipaddress - Internal server error | <p>This is my web.config which has some tags for blocking Ipaddress</p>
<pre><code><system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Default.aspx"/>
</files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true"/&g... | asp.net | [9] |
1,704,403 | 1,704,404 | Android, synctask not showing the list after progressDialog | <p>I was using AsyncTask to display data on a List, But the loading is visible, but it dosen't show the list.. </p>
<pre><code> public void getLocations(){
Connect client = new Connect(SERVICE_URI + "/GetLocations");
client.AddHeader("Accept", "application/json");
client.AddHeader("Content-Type", "applica... | android | [4] |
3,279,617 | 3,279,618 | Displaying PDF file in ASP.NET without stopping the request | <p>I am providing a PDF file to the user in an ASP.NET application. I have included the code I am using the do this. This works great if that's the only thing I'm doing on that request. What I would really like to do is show provide this PDF file on Form Load without affecting any of the other stuff in the Form Load... | asp.net | [9] |
106,776 | 106,777 | Scroll in TextView on User Touch | <p>I have a TextView with some long text in it. All I want to do is that once the user touches the text and "scrolls" down, the rest of the text is scrolled into view. For some reason my TextView doesn't move at all once I touch it, even though there is more text. So far I have this:</p>
<pre><code> final TextView ... | android | [4] |
3,618,916 | 3,618,917 | Pass MotionEvent between views | <p>I have a dialog window with <code>ImageView</code>. When I'm touching image <code>Dialog</code> is dismissed, but user still pressing the screen. Problem is that this touch event isn't passed to window below my <code>Dialog</code> (for example an <code>Activity</code>).</p>
<p>Can I somehow pass this <code>MotionEv... | android | [4] |
2,086,503 | 2,086,504 | Read mail and SMS from my application | <p>I was wondering if it's possible to read emails and SMS from an android application I'm developing.
Or even have the chance to add a new menu button to the default mail app in order to pass that particular mail text to my background application that can use it to perform some syntax analysis.</p>
<p>Thanks in advan... | android | [4] |
2,306,006 | 2,306,007 | Printing in the console objects of an array | <p>Hi I have been trying to learn Javascript using codeacademy.com and I have reached an exercise that doesn't seem to make any sense when why the exercise I have written.This is my code:</p>
<pre><code> (function(){
var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777 ... | javascript | [3] |
465,916 | 465,917 | What options exist to update Android app setting remotely? | <p>I have an Android device that I'm using to monitor a couple of sensors with an app that I created. What useful ways are there to update the settings in my app (while it's running at a remote location) from my computer? I'm interested in sending a message to my app to tell it to email a screenshot, change sample ra... | android | [4] |
2,007,197 | 2,007,198 | find first occurance of class in div | <p>I have the below html structure, i want to find the inner html of first div with class as "popcontent" using JQUERY</p>
<pre><code><div>
<div class="popContent">1</div>
<div class="popContent">2</div>
</div>
</code></pre>
<p>thanks</p>
| jquery | [5] |
3,751,770 | 3,751,771 | Generating and adding a new class to an existing assembly in runtime | <p>According to MSDN it's possible to create a NEW assembly in runtime using, for example, <code>Reflection.Emit</code> and add a new class in it, I just would like to avoid such an overkill and create the class in an existing assembly. </p>
<p>Is it possible?</p>
| c# | [0] |
4,670,594 | 4,670,595 | HuffmanTree(java) | <p>The following method is part of HuffmanTree class. But It's a little different because it's not void. I wrote the following method but It doesn't print side way. Would you please help me? Thank you!</p>
<pre><code> public String printSideways() {
StringBuilder s = new StringBuilder("");
printSideways(... | java | [1] |
228,931 | 228,932 | Connect to remote database...online database | <p>Ive been looking for a week now...i need some help connecting to a remote database...i want my app to get data out of the database and update the database...
ive tried this <a href="http://www.helloandroid.com/tutorials/connecting-mysql-database">http://www.helloandroid.com/tutorials/connecting-mysql-database</a> bu... | android | [4] |
512,259 | 512,260 | Why there is no String<T> in System.Collections.Generic of C#? | <p>C++ STL <code>string</code> is implemented by template.</p>
<p>I am learing C# at the moment, just curious what's the reason the .net designers didn't provide a generic string in System.Collections.Generic?</p>
<p>How can I have a int's string, double's string in C#? </p>
| c# | [0] |
3,683,833 | 3,683,834 | Stripping out non-numeric characters in string | <p>Hey Im looking to strip out non-numeric characters in a string in ASP.NET C#</p>
<p>So i.e 40,595 p.a.</p>
<p>would end up with 40595</p>
<p>Thanks</p>
| asp.net | [9] |
2,123,492 | 2,123,493 | Passing POST values to an Element Value | <p>As the title says how am i able to perform that this is what i got:</p>
<p>This is the container :</p>
<pre><code> <select name="entrylevel">
<options> val </option>
</code></pre>
<p>And this is how i </p>
<pre><code><?php $lvl=$_POST['entrylevel']; ?>
<input type="text" readonly=... | php | [2] |
5,697,996 | 5,697,997 | uncertain variables in php | <pre><code>if($a == 4){
echo 'ok';
}
</code></pre>
<p>Now displays an error because $a variable is not defined.
my decision:</p>
<pre><code>if(isset($a)){
if($a == 4){
echo 'ok';
}
}
</code></pre>
<p>But maybe there are better solutions?</p>
| php | [2] |
3,969,039 | 3,969,040 | Releasing a code in visual studio 2010 C# | <p>I wrote a program in C# with visual studio 2010 an now need to ensure that my program will work on any system with XP or seven or vista windows version.
I used from .net & directX in my project.
How can i compact it with an installer on start up?</p>
| c# | [0] |
4,943,388 | 4,943,389 | modify environment variables from java | <p>Have you succeses in JNI approach in <a href="http://stackoverflow.com/questions/525212/how-to-run-unix-shell-script-from-java-code">http://stackoverflow.com/questions/525212/how-to-run-unix-shell-script-from-java-code</a>?? If yes, can you please provide me (or publish) sourcecodes for c and java?</p>
| java | [1] |
5,686,025 | 5,686,026 | c# Return value of function non-existent, when returning a dictionary | <p>I have an interesting problem, which is a function that returns a <code>Dictionary<String,HashSet<String>></code>. </p>
<p>The function converts some primitive structs to a Dictionary Class.</p>
<p>The function is called as follows:</p>
<pre><code>Dictionary<String, HashSet<String>> Myset... | c# | [0] |
519,508 | 519,509 | ArrayList: remove an object during for loop | <p>I have a little problem. I'm trying to remove an object from ArrayList, but the change doesn't occur. </p>
<p>Here is the code sample: </p>
<pre><code> List<Room> rooms = new CopyOnWriteArrayList<Room>();
rooms.addAll(fp.getRooms());
int counter = 1;
for(Room r: rooms){
for(Squ... | java | [1] |
1,036,576 | 1,036,577 | How to Handle Button Click Events in jQuery? | <p>I need to have a button and handle its event in jQuery. And I am writing this code but it'snot working. Did I miss something?</p>
<pre><code><!-- Begin Button -->
<div class="demo">
<br> <br> <br>
<input id = "btnSubmit" type="submit" value="Release"/>
<br> <br> ... | jquery | [5] |
5,432,051 | 5,432,052 | Having two different sessions in same domain | <p>I run foo.com. I have two different applications that live in foo.com: one is foo.com/bar, and the other is foo.com/example. I use sessions to track information about the user while they're logged in, but if the user goes from foo.com/bar to foo.com/example, foo.com/example sees the session the user started from foo... | php | [2] |
2,567,204 | 2,567,205 | Check a string for bad words? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8801486/efficient-way-to-test-string-for-certain-words">Efficient way to test string for certain words</a> </p>
</blockquote>
<p>I want to check if a string contains any of these words: <em>ban, bad, user, pass,... | php | [2] |
3,668,707 | 3,668,708 | Copying a file from withing a apk to the internal storage | <p>I would like to push a text document from the apk into the /system directory (Yes its a app for rooted users) and was wondering how i would do this :) My txt file is in the assests folder but it could be used if needed</p>
| android | [4] |
5,482,605 | 5,482,606 | why to use bind or on instead of direct event triggers in jquery? | <p>I have seen many people use bind or on functions instead of direct event triggers etc</p>
<pre><code> $(document).bind('click', function(){
alert('Fired');
});
</code></pre>
<p>instead of</p>
<pre><code> $(document).click(function(){
alert('Fired');
});
</code></pre>
<p>same thing for on function<... | jquery | [5] |
4,360,651 | 4,360,652 | Summing time in DateTime() objects | <p>I have an array of DateTime() objects in which I store some time duration (like "H:i")
How can I sum all elements in this array to get total time duration? </p>
<p>And it's also should be taken into account, that if total time duration is grater that 23:59, I have to be able to get nubmer of days.</p>
<p>is this p... | php | [2] |
662,232 | 662,233 | python issue regarding "LearnPythonTheHardWay" book, ex18 | <p>Im having some issues to get exercise 18 'Names, variables, code, functions' to work. And to be very honest, i dont quite understand it either, like I didnt fully understand couple previous ones, but yeah.
Here is the code i've writed:</p>
<pre><code>def print_two(*args):
arg1, arg2 = args
print "arg1: %r, ... | python | [7] |
1,058,076 | 1,058,077 | Return only text after last underscore in JavaScript string | <p>If I have a string like so:</p>
<pre><code>var str = 'Arthropoda_Arachnida_Zodariidae_Habronestes_hunti';
</code></pre>
<p>How can I get just the last part of the string after the last underscore?</p>
<p>And in the case there are no underscores just return the original string.</p>
<p>In this case I want just <co... | javascript | [3] |
534,247 | 534,248 | How do i find all drop down lists in a page using Jquery | <p>How do i loop thru all dropdown boxes in JQuery?</p>
| jquery | [5] |
4,150,951 | 4,150,952 | Available class events C# | <p>in c# how can I get the available events of a class in order to begin programming code inside of it. I know that in form or usercontrol you can select the control and click the events button and click on the selected event to begin coding, but I mean a derived class which I want to code its methods or events.</p>
<... | c# | [0] |
2,784,134 | 2,784,135 | What % and & in this code? | <p>I wonder what % and & in the following PHP code do.</p>
<pre><code>$num_one = rand() % 10;
$num_two = rand() & 10;
</code></pre>
<p>Thanks in advance.</p>
| php | [2] |
1,853,978 | 1,853,979 | windows notify icon c# change message without refresh | <p>How do I change the message displayed within the notify icon baloon tip without the baloon refreshing.</p>
<p>I want to show a countdown timer before the application carries out an event and I want to use the onclick to cancel the event when the user clicks it.</p>
<p>Thanks
Sp</p>
| c# | [0] |
3,652,921 | 3,652,922 | php variables comparison == vs === | <p>this is code:</p>
<pre><code>$s = 0;
$d = "dd";
if ($s == $d) {
var_dump($s);
die(var_dump($d));
}
</code></pre>
<p>result is:</p>
<pre><code>int 0
string 'dd' (length=2)
</code></pre>
<p>Please explain why.</p>
<p>why <code>($s == $d)</code> results as true?</p>
<p>Of course, if <code>===</code> is ... | php | [2] |
3,178,570 | 3,178,571 | unresolved external symbol error: not able to solve it | <p>I am getting below unresolved external symbol error while compiling the code. I am using third party library. so using third party library namespace while compiling the code.</p>
<blockquote>
<p>std_uss.obj : error LNK2019: unresolved external symbol "<code>__declspec(dllimport) void __cdecl os_std::os_throw_leng... | c++ | [6] |
426,561 | 426,562 | passing a function as a string in php | <p>I'm just starting to learn PHP and am using the W3 Schools tut. In the error handling section there is this code:</p>
<pre><code><?php
function customError($errno,$errstr) {
echo '<b>Error:</b> [$errno] $errstr<br />';
}
set_error_handler('customError');
echo($test);
?>
</code></pre>
<... | php | [2] |
1,370,854 | 1,370,855 | How to create a dynamic table from cs file | <p>I am fetching a data from sql.Result is like this.Country,State,City,Count.</p>
<pre><code>India Maharashtra Mumbai 30
India MahaRashtra Pune 20
India Maharashtra Nashik 28
</code></pre>
<p>But I want to show like this in table.I am have created table from cs file.From table I am able to put into 30 in mumbai but ... | asp.net | [9] |
87,128 | 87,129 | PHP fmod problem | <pre><code><?php
$i = 1;
$y = 5;
?>
<?php while (have_posts()) : the_post(); ?>
<?php
if (fmod($i, $y) == 0) {
echo '<tr>';
}
?>
</code></pre>
<p>What i'm doing wrong? I want every 5 time to show the <code><tr></code>,any help?</p>
| php | [2] |
1,265,464 | 1,265,465 | Bitmap parceling | <p>When trying to save a bitmap to parcel I get this</p>
<pre><code>java.lang.RuntimeException: Tried to marshall a Parcel that contained Binder objects.
at android.os.Parcel.marshall(Native Method)
</code></pre>
<p>Does anyone know why?</p>
| android | [4] |
4,418,768 | 4,418,769 | how to open gmail and send email to specific id in a android app? | <p>how to open gmail and send email to specific id ina android app?</p>
<pre><code> Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
startActivity(emailIntent);
</code></pre>
<p>but its not working for me ActivityNotFo... | android | [4] |
618,050 | 618,051 | pass argument to previous activity | <p>I would like to pass arguments from an activity B to A where B has been launched by A. Is this possible to do so ?
Thanks</p>
| android | [4] |
2,503,314 | 2,503,315 | is there a jquery plugin to show sign-up/registration progress? | <p>I'm looking for a quick and easy way of showing users position in the sign up page, in a nice way.</p>
<p>you see these things for stuff like basket->checkout->confirm details->payment, often they look a bit like a public transport map o----o----o----o if that makes sense?!</p>
<p>Any plugins to do this without me... | jquery | [5] |
5,629,718 | 5,629,719 | mobileconfig file and safari | <p>I've created a mobileconfig file and deployed it to webstore. To install mobileconfig file on iPhone i need to either send it in a mail or user can type webstore URL on iphone safari to install it. But my question here is: Will it be possible to create a webview interface or something else and install mobileconfig f... | iphone | [8] |
2,182,092 | 2,182,093 | How do I define a class that can only be instantiated via new (ie not on the stack)? | <p>I want to arrange things such that for a class Foo, this works:</p>
<pre><code>Foo *f = new Foo()
</code></pre>
<p>but this does not (preferably a compile-time error):</p>
<pre><code>Foo f;
</code></pre>
<p>Can this be done?</p>
<p>The specific reason is that Foo is actually a tracking class to make another hea... | c++ | [6] |
2,167,773 | 2,167,774 | Whats the difference between the comparison and logical "not" operator? | <p>I'm having a hard time understanding the difference between the comparison and logical "not" operators in Javascript. And I am confused about the syntax as well. My questions are:</p>
<p>Since they are both boolean operators, are there any real differences between the two?</p>
<p>And is the syntax for both like th... | javascript | [3] |
4,308,595 | 4,308,596 | How to read Varian hnd files using java | <p>I have these "Varian hnd" files in my computer and I want to know if there is a way that I can open these files using eclipse or netbeans in java?. I think that these files have some images and I want to show them on my computer but I have no idea how to proceed. Also, can anyone explain to me about the format/exten... | java | [1] |
2,995,822 | 2,995,823 | How to get current Region Name using Coordinates? | <p>Hi all
I just need current location details,</p>
<p>I have done the part of getting Current location Coordinates.</p>
<p>Now i want to get the region name, etc (No Maps) details using these coordinates.</p>
<p>How to do that? Any sample code available? </p>
<p>Thanks in advance.</p>
| iphone | [8] |
43,232 | 43,233 | Error in creating brand new package in android | <p>So I am fairly new to Android development so I am starting out by following <a href="http://developer.android.com/training/basics/firstapp/creating-project.html" rel="nofollow">http://developer.android.com/training/basics/firstapp/creating-project.html</a> to just get a foot hold. The problem is that when I create a... | android | [4] |
2,321,952 | 2,321,953 | android media - mediacontrol for playing audio as a service | <p>I want to play the audio in my android app as a service so it keeps playing while the user goes to other applications. I managed to develop the core parts of the service yet now i need controls on the side of the application to start/stop the audio. I would love to use the MediaControl class yet it seems to be bound... | android | [4] |
4,623,445 | 4,623,446 | Retrieve Field properties in JQuery | <p>I am new to JQuery.</p>
<p>I have created many textfields,textarea fields in a DIV. Inside that div I kept separate divs for every field(which includes a label tag, and the field(text/textarea)) in an orderly manner.</p>
<p>And now I am trying to retrieve the label names and the type,size of those fields ,when cli... | jquery | [5] |
103,367 | 103,368 | How to send data from server to android application to specific USER and to GROUP | <p>I want make an android application in which admin sends message from server.admin can select whom to send e.g. Specific User <strong>or</strong> All User Of Some Department <strong>or</strong> To All.i am thinking of <strong>google cloud messaging</strong>.i want solutions how it will be done.any help will be apprec... | android | [4] |
2,782,509 | 2,782,510 | Java SE - a small web server program | <p>I am just curious how to implement a small server program in Java SE? </p>
<p>The program is listening on port 80 and ready to retrieve an InputStream object, but is there any function I can use to convert an InputStream into an HttpRequest object (something like Servlet)? </p>
<p>After that, how can I craft an Ht... | java | [1] |
4,808,025 | 4,808,026 | Are there other used extension for JavaScript files other than .js? | <p>Does it happen in special cases that JavaScript file is not stored in a file with .js extension?</p>
| javascript | [3] |
3,117,704 | 3,117,705 | Expat Parser vs Dom Parser in php | <p>when should i go for Expat parser rather Dom Parser and vice versa ? What is the difference between these parsers ? </p>
| php | [2] |
1,995,917 | 1,995,918 | Maintaining dynamic textbox control values into an array in javascript onchange event | <p>I need to maintain text box values into an array in javascript <code>onchange</code> event. The text box control is created dynammically in javascript function. I have used below code. But at the end the array contains current element only. Previous values are not maintaining. How can I maintain textbox value each ... | javascript | [3] |
4,944,911 | 4,944,912 | How to receive javascript variable in another file? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/901115/get-query-string-values-in-javascript">Get query string values in JavaScript</a> </p>
</blockquote>
<p>I am simply passing a javascript variable via URL to another html file like ?id="javascript_variable_... | javascript | [3] |
5,517,650 | 5,517,651 | Is not a function in jquery | <p>I have a big problem, I can't execute my jQuery code correctly. </p>
<p>I edited the post to show the html...</p>
<pre><code><select id="corrector" name="availability" value="" onchange="escorrecto();" >
<option value="correcto"></option>
<option value="incorrecto"></option>
... | jquery | [5] |
961,889 | 961,890 | Is there a less tedious way of doing a deep copy in c#? | <p>So I have written a program in which I need to do a deep copy of several objects. In my case I cannot use serialization which would've solved this problem with ease. Is there another way to solve this problem without manually copying all the attributes in the classes?</p>
| c# | [0] |
156,300 | 156,301 | Is it possible to synchronize data members and not methods? | <p>After reading topics here about Java synchronized methods, I've tried to implement it in my multiplayer game because many threads are opened and trying to access the same resource.
I've made methods synchronized but that's doesn't help me since if I have a data member called ArrayList clientConnection; and the metho... | java | [1] |
1,519,509 | 1,519,510 | jQuery append() is broken in IE? | <p>Is jQuery 1.6.4 <code>append()</code> is broken in IE?</p>
<p>This code works everywhere but IE6+</p>
<pre><code>$('<xml></xml>').append('<test>hello world</test>');
</code></pre>
<p>Is there a way to fix that?</p>
| jquery | [5] |
4,017,199 | 4,017,200 | setContentView(R.layout.main); Gives error from start | <p>I'm just starting to develop with android, and a followed a tutorial on google to get everything set up. I'm using eclipse and I have both the android sdk and the eclipse plugin installed, but when I create a new Android Project, I get an error on this line from the start.</p>
<pre><code>public void onCreate(Bundle... | android | [4] |
2,436,971 | 2,436,972 | PHP lookup table | <p>I have a chart in my hand that looks something like the following. It's likely these values will never change.</p>
<pre><code>+----------------------+
|Rating | >= | <= |
+----------------------+
| 100 | 0.0 | 0.112 |
| 99 | 0.113| 0.156 |
| 98 | 0.157| 0.201 |
| 97 | 0.202| 0.309 |
| ... |... | php | [2] |
1,258,437 | 1,258,438 | JPicker opens up and gets stuffed in small viewing portal for accordion | <p>In summary, Jpicker is great; however, I have the small box button in a JQuery accordion, the window opens in the accordion and the issue is that the accordion is to small.</p>
<p>Is there a way to have the jpicker open up in the document window, NOT the accordion window?</p>
| jquery | [5] |
5,970,993 | 5,970,994 | try to end a program if file no found | <p>I am trying to terminate a program if the if statement returns that the file does not exist. At the moment the method is </p>
<pre><code>public static void calcMarks()
{
String Assessment1 = null, Assessment2 = null, Assessment3 = null;
int mark1 = 0,mark2 = 0,mark3 = 0,sum = 0;
try {
F... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.