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,845,261 | 4,845,262 | Item wont add to list box | <p>Im converting this simple program from vb to c# it updates, displays, create and delete items from a little access database. Bellow is the PopulateListBox() function in VB it goes through every row in the data set and see if it is deleted, not deleted or has errors. I am getting 2 errors here both on the lines
... | c# | [0] |
2,356,177 | 2,356,178 | radio buttons and javascript | <p>i have a form with a radio button group(6 radio buttons),</p>
<p>id's are r1,r2,r3,r4,r5,r6 </p>
<p>and there are 6 hidden tables(display=none;) in this page, </p>
<p>tables id's are t1,t2,t3,t4,t5,t6 .</p>
<p>i want to change the table's dispaly property as inline if a radio button checked,</p>
<p>if,</p>
<p>... | javascript | [3] |
637,805 | 637,806 | Is "localhost" a constant in Java? | <p>Is "localhost" a constant anywhere in Java SE 6? It's not terribly difficult to type out, but it might be nice to have a constant in many places rather than the String. Are there standard practices around this?</p>
<p>Edit: I know how to create a constant. In the past, I've found constants such as org.apache.http.H... | java | [1] |
2,331,974 | 2,331,975 | Why Does My Generic Method Require a Cast? | <p>I have a service layer method that I want to expose that should return an instance of an object that extends CMSContent (e.g. Delivery Time, Price). However, in method <strong>getCMSContent</strong>, the compiler is insisting that I do a cast to <strong>T</strong>. Is this cast below acceptable, or am I defeating ... | java | [1] |
4,314,009 | 4,314,010 | Can't using append and appendChild in a jQuery? | <p>I have a sample code:</p>
<pre><code>jQuery(document.body).append('<div id="wrapper-1"></div>').appendChild('<div id="wrapper-2"></div>');
</code></pre>
<p>How to get this result, how to ideas?</p>
<pre><code><div id="wrapper-1">
<div id="wrapper-2"></div>
</div>... | jquery | [5] |
3,414,613 | 3,414,614 | How to close a external application with java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/62418/knowing-which-java-exe-process-to-kill-on-a-windows-machine">Knowing which java.exe process to kill on a windows machine</a><br>
<a href="http://stackoverflow.com/questions/4633678/how-to-kill-a-process-in-j... | java | [1] |
3,510,783 | 3,510,784 | Exception not thrown in an async Task configuration | <p>I have the following method</p>
<pre><code> public async Task<bool> Connect()
{
lock (_connectingLock)
{
if (_connecting)
throw new IOException("Already connecting");
_connecting = true;
}
try {
await tcpClient.Connec... | c# | [0] |
5,891,400 | 5,891,401 | convert Graphics to Image in c# | <p>How to convert Graphics to Image?</p>
| c# | [0] |
3,458,229 | 3,458,230 | How to define a class in Javascript | <p>I want to create a class in Javascript.
This class should have </p>
<ol>
<li>private and public variables and functions.</li>
<li>static and dynamic variables and functions.</li>
</ol>
<p>How this can be done ?</p>
| javascript | [3] |
2,215,759 | 2,215,760 | How to assign very large numbers to variable in java? | <p>I'm getting "integer number too large: 1000000000001" for the following code line. How do I make it so that maxValue can hold 1 quadrillion or 1 trillion?</p>
<pre><code>long maxValue = 1000000000001; //1,000,000,000,001
</code></pre>
| java | [1] |
4,476,474 | 4,476,475 | $.ajax callback function is inside another function | <p>I am having one function which will be called when ever my custom controls get loaded. please refer below code.</p>
<pre><code>function load()
{
getdata();
}
function getdata()
{
$. ajax({
url://remote url,
type:"get",
success:function(data)
{
//going to set the data to my control
}
});
}
</code></pre>
<p>so... | jquery | [5] |
317,351 | 317,352 | how to direct output into a txt file in python in windows | <pre><code>import itertools
variations = itertools.product('abc', repeat=3)
for variations in variations:
variation_string = ""
for letter in variations:
variation_string += letter
print (variation_string)
</code></pre>
<p>How can I redirect output into a txt file (on windows platfor... | python | [7] |
1,880,655 | 1,880,656 | how do i configure my android emulator to start running in intelij? | <p>I am getting this error whenever I try to run my emulator:</p>
<blockquote>
<p>Failed to start emulator: Cannot run program "/home/sypher/android-sdk-linux/tools/emulator": java.io.IOException: error=2, No such file or directory</p>
</blockquote>
| android | [4] |
2,995,866 | 2,995,867 | Resources$NotFoundException exception for drawable - but it does exist? | <p>I'm starting to see an odd set of stack traces from the marketplace crash reports interface. I'm being told a drawable resource does not exist. The xml in question:</p>
<pre><code><ImageView
android:layout_width="13dip"
android:layout_height="12dip"
android:src="@drawable/foo"
/>
</code></pre>
<p>cau... | android | [4] |
5,260,738 | 5,260,739 | Javascript position two elements on top of each other | <p>I have two divs one above the other. The second on is absolutely positioned below it (an absolute div inside a relative div).</p>
<p>I want to move the second div on top of the other div, so it appears in the middle.</p>
<p>The procedure for this is to set the style.top of DIV2 to be the same as DIV1, this should ... | javascript | [3] |
3,652,570 | 3,652,571 | Jquery .ui-widget :active { outline: none; } behaviour in firefox | <p>Hi in one of xhtml page containing select box having more that 10000 option list I am facing one issue select box opening at slow speed in firefox3.5 working fine in IE 7/8</p>
<p>When I remove this class .ui-widget :active { outline: none; } from JQuery UI CSS </p>
<p>its started to work fine in Firefox 3.5. Any... | jquery | [5] |
3,589,527 | 3,589,528 | how to turn a tuple to a string and back in python / how to edit an associative array on a web page | <p><strong>The problem I'm really trying to solve:</strong></p>
<p>I have a square table of true/false values, with rows and columns labelled by strings.</p>
<p>I want to display this as an html form with checkboxes, allow the user to tick and untick elements, then submit the form, and then I want to reconstruct the ... | python | [7] |
3,094,817 | 3,094,818 | Using a PropertyGrid to input method parameters | <p>I'd like to use a PropertyGrid to input method parameters.</p>
<p>I have some application that will dynamically load user's DLLs and invoke methods with specific signature (a known return type).</p>
<p>I'd like to present the user the option to input the arguments to the called method easily with a PropertyGrid co... | c# | [0] |
2,655,156 | 2,655,157 | EditText problem | <p>I want to get a character of a string from a EditText and at the same time want to show the current location's latitude and longitude.</p>
<p>here shown a part of the code</p>
<pre><code>Button btn=(Button)findViewById(R.id.format);
btn.setOnClickListener(new Button.OnClickListener() {
public void onClick(... | android | [4] |
2,911,776 | 2,911,777 | SEL as a instance property or as static variable | <p>I want to keep track of a callback method in one of my class instance... so that i can call this method later on.
How can i do this ..? i thought of storing the reference of call back method in one of the instance variable(SEL datatype). if i am using SEL as the datatype what attributes should i give for the @proper... | iphone | [8] |
3,224,256 | 3,224,257 | How to Create an XML Serializer for More than One Type? | <p>I am using the XmlSerializer like this,</p>
<pre><code>XmlSerializer xs = new XmlSerializer(typeof(myType));
</code></pre>
<p>Now I have 5 different "myType". How do I pass the specific type dynamically so I don't have to repeat the same code 5 times?</p>
| c# | [0] |
5,206,136 | 5,206,137 | Building C# console project without Visual Studio | <p>I need to create a script that produces an executable from a C# console project.
The client system where the script will be run doesn't have Visual Studio, but has the .NET framework installed. How can it be done using minimum/no software installation at the client place.</p>
<p>EDIT: Does C# compiler (csc.exe) co... | c# | [0] |
3,102,393 | 3,102,394 | BraodcastReceiver gets called whenever app loses focus. Any way to suppress this? | <p>I have an app that downloads info from a particular website, currently set to do this once a day. The problem I have is that if I have the app open and I receive a text message, as soon as the pop up appears the download kicks in on my app. I have no idea of where to start trying to solve this. Any ideas?</p>
<p>Cu... | android | [4] |
2,786,724 | 2,786,725 | A clean installation of Android and its related components | <p>I have Windows 7 64-bit. What versions of Java, eclipse, Adroid SDK, etc I need to install. Also I would like to buy a cheap android device to test my applications instead of virtual one, do you know of any one that is good and easy for testing. Any point/guide to a clean installation and settings would be also help... | android | [4] |
2,863,883 | 2,863,884 | On InMobi Addtracker My application is not getting reported | <p>I am using inmobi in my android application.
For that i am using InMobiAdTrackerAndroid.jar with this jar i am following documentation.</p>
<p>1: We are using following codes inmy application Launcher class
IMAdTrackerUtil.setLogLevel(LOG_LEVEL.VERBOSE);
IMAdTrackerAnalytics.getInstance().startSession(getApplicati... | android | [4] |
4,199,116 | 4,199,117 | Best Practice to return responses from service | <p>I am writing a SOAP based ASP.NET Web Service having a number of methods to deal with Client objects. e.g:</p>
<ul>
<li>int AddClient(Client c) => returns Client ID when successful</li>
<li>List GetClients()</li>
<li>Client GetClientInfo(int clientId)
In the above methods, the return value/object for each method co... | c# | [0] |
3,560,589 | 3,560,590 | Handling onActivityResult in Android app having more than one activity | <p>In my android app, I have a main activity which creates two other sub activites through intent. Now, both the sub activity return result to the main activity. In my main activity,
how do I handle two "onActivityResult(int requestCode, int resultCode, Intent data)" since it cant have two methods with same name in a g... | android | [4] |
3,163,256 | 3,163,257 | Why misspelled android:name do not have a warning or error? | <p>I hava a receiver</p>
<pre><code> <receiver android:name=".AlarmReceiver" />
</code></pre>
<p>But the receiver's class name is AlarmReciver (misspelled)</p>
<p>why android-sdk show this mistake or show this when running?</p>
| android | [4] |
5,794,302 | 5,794,303 | query execution error check | <p>hello please help me out regarding this function </p>
<pre><code> function delete($serviceid)
{
$result = $this->query=("delete from service where service_id='$serviceid'");
$exe=$this->executeNonQuery();
if ($exe){
return $success = "Record deleted successfully.";
} else {
retur... | php | [2] |
3,238,689 | 3,238,690 | Abstract class and operator!= in c++ | <p>I have problem implementing the operator!= in a set class deriving from an abstact one. The code looks like this:</p>
<pre><code>class Abstract
{
public:
//to make the syntax easier let's use a raw pointer
virtual bool operator!=(const Abstract* other) = 0;
};
class Implementation
{
SomeObject impl... | c++ | [6] |
3,478,825 | 3,478,826 | Java - Convert Unix epoch time to date | <p>I need to convert some epoch time stamps to the real date and have used some of the methods I found on stack overflow, but they give the wrong answer.</p>
<p>As an example, one date is "129732384262470907" in epoch time, which is "Mon, 20 Jan 6081 05:24:22 GMT" using <a href="http://www.epochconverter.com/" rel="no... | java | [1] |
1,394,012 | 1,394,013 | Why does this rock-paper-scissors almost always returns "tie(draw)"? | <p>This program almost always returns "It's a draw(or tie)". Is it just me or is something wrong?
It is a Rock Paper Scissors program that does 10 rounds and shows the results in the end.</p>
<pre><code>#!/usr/bin/python
# RockPaperScissors from Python
import random;
i = 1;
c = 0;
u = 0;
d = 0;
while i <= 10:
... | python | [7] |
4,885,309 | 4,885,310 | How to add own OMX_decoder in Android? | <p>I want to add my own <code>OMX_Decoder</code> to <code>android</code>, I want to understand that, how much important it is to understand Opencore and Stagefright for same. </p>
<p>Say, I go ahead with Android 2.1 which has opencore,what will be the rework I need to do for <strong>Android 2.3</strong> or further and... | android | [4] |
5,021,598 | 5,021,599 | Android 2.1: How do I bring the soft keyboard manually? | <p>I've a form that occupies upper half of the screen and I want to show the keyboard
at the bottom half all the time. How do I do that?</p>
<p>(Android 2.1, NexusOne)</p>
| android | [4] |
4,614,739 | 4,614,740 | How can I find the element that caused another element to fire the focusout event? | <p>i bind an eventhandler to the focusout-event of my text-inputfield.
this handler hides a div with some searchresults as soon as the inputfield losts its focus. </p>
<p>following my markup and a screenshot of the situation:</p>
<pre><code><li class="search">
<input type="text" id="searchbox" />
... | javascript | [3] |
2,178,292 | 2,178,293 | a question about eval in javascript | <p>thank you. here is the correct question:</p>
<pre><code>{
"VID":"60",
"name":"\u4f1a\u9634",
"requireLevel":"20",
"levelMax":"5",
"venationRequirement":"0",
"description":"\u6c14\u6d77\u4e0a\u9650\u63d0\u9ad8[Affect1]\u70b9",
"cost":{"1":"240","2":"360","3":"400","4":"600","5":"720"},
... | javascript | [3] |
4,450,580 | 4,450,581 | variable scoping in javascript | <p>My code is as follows:</p>
<pre><code>jQuery(document).ready(function() {
var pic = 0;
FB.init({appId: '1355701231239404', status: true, cookie: true, xfbml: true});
FB.getLoginStatus(function(response) {
if (response.session) {
pic = "http://graph.facebook.com/" + respon... | javascript | [3] |
3,763,857 | 3,763,858 | creating virtual hard Drive | <p>how can I create Virtual Hard Drive (like Z:) that store it's files on physical hard drive (Like C:\Files).</p>
| c# | [0] |
1,963,701 | 1,963,702 | Returning random numbers in Python using random.py | <p>Basically I need to write a function that returns a list of x random numbers between 0 and y. I need to use the random.py module in Python.</p>
| python | [7] |
3,982,604 | 3,982,605 | Attaching the source of an external jar file | <p>I want to attach the source code to an external <code>jar</code> file that I have. Normally I would just got to <code>configure build path</code>, expand the jar file and edit the source attachment. But since the jar file is an <code>Android Dependency</code> it does not give me that option.</p>
<p>so I have 2 ques... | android | [4] |
1,898,358 | 1,898,359 | passing float variable as parameter | <p>I am trying to write a method with float parameter and call it using performselector but i am getting error in doing this. Following is my code:</p>
<p>[sender performSelector:selector withObject:progress/total];</p>
<p>here progress and total both are float variabal.</p>
<p>I am trying to call following method i... | iphone | [8] |
306,397 | 306,398 | How do I access the value of this JavaScript object? | <p>What type of object is <code>container</code>?</p>
<pre><code>var pname = "apples";
var extVal = "oranges";
var container = {};
container =
{
presName: pname,
presVal: pname
};
</code></pre>
<p>I want to compare the value of <code>presVal</code> (from inside <code>container</code>) to the value of <code>e... | javascript | [3] |
2,499,406 | 2,499,407 | How can i loop thorugth a HashTable keys in android? | <p>I have a hashtable filled with data, but I don't know the keys
How can I loop througth a HashTable keys in android?
I'm trying this, but it doesnt work:</p>
<pre><code>Hashtable output=new Hashtable();
output.put("pos1","1");
output.put("pos2","2");
output.put("pos3","3");
ArrayList<String> mykeys=(ArrayLis... | android | [4] |
4,702,611 | 4,702,612 | Why can't one object's property value be used as a property name in another object? | <p>The following gives me an error in my JS console (firebug):</p>
<pre><code>var obj1 = {name:'king', val:20}, obj2, objName = obj1.name;
obj2 = {obj1.name:obj1.val};
</code></pre>
<p>But the following works just fine:</p>
<pre><code>var obj1 = {name:'king', val:20}, obj2, objName = obj1.name;
obj2 = {objName:obj1.... | javascript | [3] |
3,090,058 | 3,090,059 | Why won't this super simple jQuery work? | <pre><code><style type="text/css">
#box { background: red; width: 100px; height: 100px; color: #fff; line-height: 100px; }
</style>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$('a#clickMe').click(function(e) ... | jquery | [5] |
3,698,602 | 3,698,603 | Point3D and NumberFormatInfo | <p>I am trying to print a list of Point3D. However I don't want them to be printed with the maximal number of decimal digits. I want to be able to control this.</p>
<p>So I tried</p>
<pre><code>Point3D loc = new Point3D(x,y,z);
var formatter = new NumberFormatInfo();
formatter.NumberDecimalDigits = 2;
return loc.ToSt... | c# | [0] |
114,175 | 114,176 | How to Log into file in resource folder? | <pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console2.log"];
freopen([logPath cStringUsingEncoding:NSASCIIStringEnc... | iphone | [8] |
4,050,370 | 4,050,371 | PHP - memory limit | <pre><code>max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M ; Maximum amount of memory a script may consume... | php | [2] |
3,616,717 | 3,616,718 | jquery get generated id with the same class | <p>Here is my code.</p>
<pre>
//generate a id
$(".slide_img_a").each(function(){
$(this).attr("id","img"+(Math.round(Math.random()*100)))
});
// get id
var img_id = $(".slide_img_a").attr("id");
// alert the id
$(".slide_img_a img").hover(function(){
alert(img_id);
});
</pre>
<p>The problem of this is I have... | jquery | [5] |
4,280,959 | 4,280,960 | How to become a good Python coder? | <p>EDITED
ALL GREAT COMMENTS - THANK YOU</p>
<p>I started with c++ but as we all know, c++ is a monster. I still have to take it and I do like C++ (it takes programming a step further) </p>
<p>However, currently I have been working with python for a while. I see how you guys can turn some long algorithm into simple o... | python | [7] |
5,581,180 | 5,581,181 | get column name of an excel sheet into a combo box | <p>Im using c# .net windows form application. I have an excell workbook that has three sheets.Sheet1 has data which has 4 columnsand many rows . i haved named them. Now when i click on a button, i should populate the combobox with the column names that i have assigned.</p>
| c# | [0] |
3,886,856 | 3,886,857 | Object Oriented Design for iPhone | <p>So I've run into this a few times, and am new to OOD so not sure if there is a good way to do this or not. </p>
<p>But basically, I have a MainViewController, and then I push a new DetailViewController. In my MainViewController, I have a Reset method that basically resets everything to their default values. </p>... | iphone | [8] |
2,019,832 | 2,019,833 | Show a hidden div relative to the hovered element on click with jQuery | <p>I'm trying to get a hidden div to display relative position (directly to the right of the hovered div.)</p>
<p>On the fiddle, when the cursor hovers over the div it enlarges and repositions. What I want to achieve but can't figure out... is how to display the div details for 'this' element only, relative to the hov... | jquery | [5] |
3,522,488 | 3,522,489 | Listbox1 to Listbox2 with button click | <p>I have some information stored in a listbox (listBox1) and want to do something like this:</p>
<ul>
<li>Click on an item in listBox1</li>
<li>Click a button</li>
<li>All information is transferred in listBox1 to transferred to listbox2</li>
</ul>
<p>BUT, I also want to have something else added at the end of the t... | c# | [0] |
4,877,014 | 4,877,015 | Iphone simulator 4.0 Could not find my current location | <p>I installed sdk version 4.0 in mac my friend also installed version 4.0 in his mac.In my iphone simulator 4.0 ,it could find current location.But my friend machine iphone simulator 4.0 had find the current location.</p>
<p>What is the problem ? we both connected with wifi network.Both mac machine having ability to ... | iphone | [8] |
5,899,733 | 5,899,734 | how can i add a regular item to spinner adapter? | <p>i have a spinner like this:</p>
<pre><code>spinner = (Spinner) findViewById(R.id.spin);
_spinDb = new SpinAdapter(this);
Cursor names = _spinDb.open().getAllSpin();
_adapter = new SimpleCursorAdapter(this,
android.R.layout.simple_spinner_item,
names,
... | android | [4] |
5,205,112 | 5,205,113 | function to return a variable of type of another class | <p>I need a function to take a name and return the details of the record associated with that name.How do i do this? I have all the info. in my result set, but i need a way to pass it to one variable and return the value in java. I am using eclipse-juno under CentOS</p>
| java | [1] |
4,857,230 | 4,857,231 | Verify that a column exists in the DataRow before reading its value | <p>How do I write code that reads a DataRow but, if filed in DataRow isn't there, it just skips it and moves on, like this for example:</p>
<pre><code>string BarcodeIssueUnit;
if (dr_art_line["BarcodeIssueUnit"].ToString().Length <= 0)
{
BarcodeIssueUnit = "";
}
else
{
BarcodeIssueUnit = dr_art_line["Barcod... | c# | [0] |
3,121,499 | 3,121,500 | Which is the better place to declare variables, inside Try block or outside.? | <p>Which is the better place to declare variables, inside the try block or outside?</p>
<pre><code>string myString = string.Empty;
try
{
myString = "mytext";
}
</code></pre>
| c# | [0] |
5,912,132 | 5,912,133 | Background service not running when screen is off | <p>I am using WakeLock but it consues a lot of battery. Is there any alternate solution??</p>
| android | [4] |
1,146,392 | 1,146,393 | Is there a way to make a user-defined Python function act like a built-in statement? | <p>Is it possible to make a user-defined Python function act like a statement? In other words, I'd like to be able to say:</p>
<pre><code>myfunc
</code></pre>
<p>rather than:</p>
<pre><code>myfunc()
</code></pre>
<p>and have it get called anyway -- the way that, say, <code>print</code> would.</p>
<p>I can already ... | python | [7] |
2,002,757 | 2,002,758 | error: /SourceCache/GoogleMobileMaps_Sim/GoogleMobileMaps-263.5/googlenav/mac/Loader.mm:231 server returned error: 403 | <p>I'm working as iphone developer. i've a problem that in my mapview when ever I want to show location in google map it show me error: /SourceCache/GoogleMobileMaps_Sim/GoogleMobileMaps-263.5/googlenav/mac/Loader.mm:231 server returned error: 403 with square box screen. I got this question in stack overflow but that a... | iphone | [8] |
3,863,493 | 3,863,494 | Swapping <div> in a continous JQuery loop | <p>I am working on having a single div animate right to left through the header. Once the div goes off screen and finishes animation I would like to loop the animation but swap the div for another containing a new image. The code is below but not functioning properly. Any help would be greatly appreciated.</p>
<pre><c... | jquery | [5] |
3,058,706 | 3,058,707 | make array index 1 instead of index 0 based | <p>How can I make an array start at subscript 1 instead of subscript 0 in python?</p>
<p>Basically to solve this <a href="http://www.mathworks.com/support/solutions/en/data/1-8G5UD6/index.html?product=EL&solution=1-8G5UD6" rel="nofollow">problem</a> in python.</p>
| python | [7] |
3,418,969 | 3,418,970 | How to user Ajax UpdateProgress with Iframe in ASP.NET | <p>I ame trying to show a UpdateProgress image with iframe. But it is not working. I am using this iframe to display several pages. My code is as following..</p>
<hr>
<p>
</p>
<pre><code> <iframe
runat="server" id="Iframe2" height="565" width="100%" scrolling="no"
style=... | asp.net | [9] |
1,539,140 | 1,539,141 | Jquery function onclick add class and remove class | <p>I am doing jquery function to enable and disable input type text</p>
<p>the first function is working fine and change the class of the a href but the secound function that related to the new class is not working</p>
<p>here is the full code</p>
<p><a href="http://jsfiddle.net/RcLgz/1/" rel="nofollow">http://jsfid... | jquery | [5] |
33,255 | 33,256 | Unable to start service after setting alarm | <p>Can you please help me out in resolving this issue...</p>
<pre><code> Calendar schedCalendar = Calendar.getInstance();
schedCalendar.clear();
schedCalendar.set(nYear, nMonth, nDay, nHour,nMinute,0);
Intent myIntent = new Intent(this,SMSService.class);
PendingIntent pendingIntent = PendingInten... | android | [4] |
2,658,799 | 2,658,800 | How to convert MVS C++ code into executable application? | <p>So I've made a small program in Microsoft Visual Studio C++ (2008 edition) and I want to convert it to .exe format.</p>
<p>I know that I can find the .exe in my project directory, however it only runs fine on my own PC. When I send it over to someone else (who doesn't have Visual Studio installed or anything), it d... | c++ | [6] |
2,936,142 | 2,936,143 | Why is my key not getting pushed inside the array | <pre><code>var arr = [{
key: "key1", value: "z"
}, {
key: "key2", value: "u"
}, {
...
}];
var sorted = arr.sort(function (a, b) {
return a.key === b.key ? 0
: a.key < b.key ? -1 : 1;
});
sorted.unshift({key:"Unknown", value:"0"});
var StateArr = [];
for(i=0;i<sorted.length;i++){
Stat... | javascript | [3] |
1,788,554 | 1,788,555 | Inserting a valid html link into a string for an email | <p>I'm building a string that will be sent over email. In the string I'd like to include a link, like so:</p>
<pre><code>String mailstring = "Blah blah blah blah. Click here for more information."
</code></pre>
<p>and I'd like the "here" to be a link in the email, such as putting it <a href="http://madeuplink.com" re... | c# | [0] |
5,512,402 | 5,512,403 | URL rewriting when site is migrated to .net to PHP | <p>The present site is on .net and the new site is on PHP. Google has everything as.net pages. what are the options for URL redirecting/rewriting.</p>
| php | [2] |
1,009,425 | 1,009,426 | Does python have a shorthand for this simple task? | <p>I've just started to learn the long-heard python language. I've been working with C before. And I find python, as a modern script language is much concise on various tasks.</p>
<p>So I was wondering, if I have a list <code>foo = [1, 2, 3, 4, 5]</code>, and I want to pick all the odd numbers out of it into <code>bar... | python | [7] |
143,377 | 143,378 | JavaScript support for OO Polymorphism? | <p>I would like to understand if JavaScript really support Polymorphism ? With function arguments function overloading appears ok but function overriding in classical OO using inheritance ? Is it also supported by JavaScript
Any input pointers would be helpful.</p>
| javascript | [3] |
4,974,156 | 4,974,157 | convert string to preexisting variable names | <p>How do i convert a string to the variable name in python?</p>
<p>e.g. </p>
<p>if the program contains a object named, self.post,that contains a variable named, i want to do something like,</p>
<pre><code>somefunction("self.post.id") = |Value of self.post.id|
</code></pre>
| python | [7] |
1,840,301 | 1,840,302 | Question related to APNS | <p>Whenever I get a pop-up through the iPhone OS for <a href="http://en.wikipedia.org/wiki/Apple_Push_Notification_Service" rel="nofollow">APNS</a> testing
there are 2 conditions:</p>
<ol>
<li>application is running</li>
<li>application is not running</li>
</ol>
<p>If I click on the view button of the popup through t... | iphone | [8] |
4,856,919 | 4,856,920 | Converting keystrokes gathered by onkeydown into characters in JavaScript | <p>I try to convert keystrokes into chracters.
In other question someone recommand to use the onkeydown function because onkeypress gets handeled differently by different characters.</p>
<p>I don't know how to handle special chracters like ´ ` ' ( ) that might be different in different keyboards around the world.</p>
| javascript | [3] |
4,411,495 | 4,411,496 | Delete a view and recreate it | <p>Is there a way to remove a view that was set with</p>
<pre><code>setContentView(R.layout.set_map_center);
mapView = (MapView) findViewById(R.id.mapview);
</code></pre>
<p>If I call this view again then I get an error saying:</p>
<blockquote>
<p>java.lang.IllegalStateException: You
are only allowed to have a s... | android | [4] |
1,913,984 | 1,913,985 | deleting the appended data - jquery | <pre><code>select: function (event, ui) {
var staffItem = new Object();
staffItem.StaffId = ui.item.id;
staffItem.Name = ui.item.name;
staffItem.Photo = ui.item.image;
staffItem.Email=ui.item.email;
staffItem.Mobile=ui.item.mobile;
var data = "... | jquery | [5] |
5,085,950 | 5,085,951 | Difference between break and continue in PHP? | <p>What is the difference between <a href="http://php.net/manual/control-structures.break.php" rel="nofollow"><code>break</code></a> and <a href="http://php.net/manual/control-structures.continue.php" rel="nofollow"><code>continue</code></a> in PHP?</p>
| php | [2] |
2,743,821 | 2,743,822 | what are the essential things that an android developer needs to know? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2828185/interview-questions-for-an-android-developer">Interview questions for an Android developer</a> </p>
</blockquote>
<p>Hi all
what are the essential things that a mid level android developer needs to know.... | android | [4] |
2,857,982 | 2,857,983 | How to compare elements and merge if condition satisfies within arraylist? | <p>i have list of trades, each trades has some attributes like source now, from the list of trades, i want to get all trades that have same source value and combine them together into one trade, for example </p>
<pre><code>tradeName quote source quantity price
Google GOOG ... | java | [1] |
2,456,758 | 2,456,759 | JQuery- add css for each img element having a class | <pre><code>$(document).ready(function() {
$("img.resizeImage").each(function(){
var img = $(this);
var width = $(this).width(); // Current image width
var height = $(this).height(); // Current image height
// alert("give image size ....."+width+", "+height);
var pic_real_... | jquery | [5] |
376,239 | 376,240 | jquery form validate not allow space for username field? | <p>I have used <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/" rel="nofollow">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a></p>
<p>my form validate :</p>
<pre><code>$("#form_person").validate({
rules: {
username: {
required: true,
min... | jquery | [5] |
2,008,221 | 2,008,222 | can any one give me the code for sample registartion page with validations in android | <p>Hai all,
I preapared one registration page with the fields like username ,password,email and mobilenumber.It runs successfully.But i want to validate all those fields now...any one help me how to validate...thanks in advance</p>
| android | [4] |
3,635,439 | 3,635,440 | Finding all calls to a specific android sdk level | <p>I need to port an Android app to an older version. That is, the app now runs in 4.0, but not in 2.2, so I need to find all API calls incompatible to 2.2 and do a workarround.</p>
<p>Is there any tool to do that easilly? That tool whould be theorically simple, it just had to find all function calls and check it's "@... | android | [4] |
2,309,502 | 2,309,503 | C# close StreamWriter | <p>Im trying to close a text file that I have created and then read this back into a HTMLDocumentClass.</p>
<p>This is the code</p>
<pre><code>StreamWriter outfile =
new StreamWriter(StripHTMLComps.Properties.Settings.Default.TempFileName);
outfile.Write(HTML);
outfile.Close();
HTMLDocumentClass doc = null;
doc... | c# | [0] |
1,464,519 | 1,464,520 | Android WebView when Wifi off | <p>I have a WebView on my activity and I'm simply setting his url in code from assets like this:</p>
<pre><code>wv.loadUrl("file:///android_asset/" + requestedHtmlPath);
</code></pre>
<p>all works fine when the wifi is on, but when it's off.. nothing happens..</p>
<p>The question is: Is the Wifi on is must for the W... | android | [4] |
751,233 | 751,234 | Is it possible to swap two variables in Java? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1363186/is-it-possible-to-write-swap-method-in-java">Is it possible to write swap method in Java?</a> </p>
</blockquote>
<p>Given two values x and y, I want to pass them into another function, swap their value a... | java | [1] |
4,868,057 | 4,868,058 | How to create a unique ID in PHP from a long string of user info | <p>I am reading some data from a user's badge via a magnetic swipe. It brings back a long unique text string that includes the user's badge number, their name, and a few other pieces of information. I want to be able to pull up the user's information through their swipe. I was thinking of making an MD5 hash out of t... | php | [2] |
2,845,684 | 2,845,685 | show a window every few seconds in home screen in Android | <p>I`m new to android.</p>
<p>I want to write an alarm system in android.</p>
<p>I want to show a window (or dialog) every few seconds (or hours) in home screen and i want to hide it after a few second.</p>
<p>how can i do it?</p>
| android | [4] |
2,580,013 | 2,580,014 | generic algorithm to force range to go through zero | <p>I'm looking for a generic algorithm which, given the range values <code>start</code> and <code>end</code> will generate a list of numbers, but <strong>the numbers must go through zero.</strong>.
Here's my current code:</p>
<pre><code>end = 78
start = -1 * end
step_size = 16
numbers = range(start, end+step_size, ste... | python | [7] |
5,617,604 | 5,617,605 | adjust div position according to window scroll bar movement | <p>my page content is big and there is a link. when user mouse over the link then a div is popup but when i scroll the browser window then div position should change when it appears. how to write and show the div by jquery in such a way that div should open and adjust position when user drag the scroll bar top & do... | jquery | [5] |
5,358,737 | 5,358,738 | Storing Db in asset folder or create via code | <p>In my android projects I need database to store data for offline usage.</p>
<p>For that I am looking at two options 1)Creating the empty db and copying it to asset 2)Creating the db via code </p>
<p>which option will be good as my app is handling secure data.
weather it will cause any security vulnerability if we ... | android | [4] |
2,790,686 | 2,790,687 | Multiple web deploys for asp.net | <p>I have an application that is installed at several different client's servers. They each have different web.config files and different virtual folders. At the moment I am compiling, manually copying over, setting up IIS, changing web.config and adding virtual folders for each install and also again when updating.<... | asp.net | [9] |
5,145,967 | 5,145,968 | convert image to byte array | <p>i want convert image into byte array in php.actually i am accessing web service in dot net.where i want to pass image as byte array.i tried this code</p>
<pre><code> $data1 = file_get_contents("upload/1311677409gen1.jpg");
$byteArr1 = str_split($data1);
foreach ($byteArr1 as $key=>$val)
{
$byteArr1... | php | [2] |
3,535,640 | 3,535,641 | python: print i for i in list | <p>When I printed a list, I got a syntax error when using this method:</p>
<pre><code>print i for i in [1,2,3]
</code></pre>
<p>I knew this is ok when using this method:</p>
<pre><code>for i in [1, 2, 3]:
print i
</code></pre>
<p>and I knew that </p>
<pre><code>(i for i in [1, 2, 3])
</code></pre>
<p>is a gen... | python | [7] |
2,556,425 | 2,556,426 | NSString problem on iphone while displaying on UILabel | <p>i have a issue , i am asking as new question as previoes one was messed </p>
<pre><code>NSString *s=@"hi\nhello\n\nwelcome to this world\ni m jhon"
label.frame = ...//big enough height
label.numberOfLines = 0;
label.text = s;
</code></pre>
<p><strong>this code helps me to separate string based on \n</strong></p>
... | iphone | [8] |
389,641 | 389,642 | github API, fork a repo | <p>I'm trying to use the github API with python, but got stuck when wanting to fork a repo.
My script so far is:</p>
<pre><code>#!/usr/bin/python
import json
import getpass
from restkit import Resource, BasicAuth, request
from socketpool import ConnectionPool
user= raw_input( "Github user:" )
password=getpass.getpas... | python | [7] |
4,778,519 | 4,778,520 | Include $_POST, $_GET, $_SERVER values in PHP Error Log | <p>I have code like this</p>
<pre><code>try {
header("Location: http://www.google.com\n-abc");
}
catch (Exception $e) {
error_log(print_r($_POST, true));
error_log(print_r($_GET, true));
error_log(print_r($_SERVER, true));
}
</code></pre>
<p>Without the try {} catch {} block, I can see the POST, GET a... | php | [2] |
4,895,915 | 4,895,916 | How to handle NullpointerException in this case | <p>This is my for loop function inside the servlet </p>
<p>Here i have a question .
The Data will be passed from the USER Interface to this .</p>
<p>In some conditions , some information (For example symbol or side ) may not be passed , then in those conditions , i am getting NullPointreException as null would be su... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.