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 |
|---|---|---|---|---|---|
400,828 | 400,829 | Defining function that can accept different parameters | <p>I am writing a program that executes two operations on a structure distanceType which is compose of three integer members: feet, yards, and miles.The function convertYards takes a distance in yards that is greater than or equal to 1760 (because there are 1760 yards in a mile) and converts it to x miles, y yards, and... | c++ | [6] |
4,494,594 | 4,494,595 | Parse an xml file depending on the current language | <p>Is there a way to parse an xml file depending on the current language? For example, I have two countries.xml files. One in the values folder, and another one in the values-de folder. I want to parse the file specific to the current language.</p>
<p>Thanks a lot,</p>
<p>Gratzi</p>
| android | [4] |
658,249 | 658,250 | set sys.path for Python IDLE | <p><strong>How do I set sys.path</strong> for Python IDLE sessions?</p>
<p>I have tried adding a path to python path in <code>.bashrc</code> but this had no effect within IDLE when I tested it with using <code>import sys</code> and <code>print(sys.path)</code>.</p>
| python | [7] |
1,677,212 | 1,677,213 | Can you intercept the long press on menu? | <p>I'm using what should be pretty simple code, but it just doesn't want to work. Does the OS block intercepting this?</p>
<pre><code>@Override
public boolean onKeyLongPress(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU)
{
longOptionPress = true;
openOptionsMenu();
retu... | android | [4] |
2,804,364 | 2,804,365 | Is it possible that emulator runs out of memory? | <p>When i run an app, which was before some time getting installed in the emulator (though it was showing force close due to some error), now shows 'Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE' in the console. I know it's a vague question, but i want to know, why or when it occurs? Thanks in advance.</p>
<... | android | [4] |
3,299,333 | 3,299,334 | PHP Key value FOREACH | <p>Ok I have a file that is trying to retrive job numbers out of a database call and then put them into key value pairs to return to my jquery function that will export them to my page. I am getting a 500 error when I try to run the page and it is on this page. What am I doing wrong with this output/call?</p>
<pre><co... | php | [2] |
3,424,372 | 3,424,373 | Stream audio from website C# | <p>Hello im making an application to stream a "radio" from a website in C#. im not really sure that this language would support such a feat. To be specific im trying to stream from a listen2myradio page. Would this be something that can be accomplished and what libraries would be need if any?</p>
| c# | [0] |
4,092,783 | 4,092,784 | Display HTML of iframe in alert only once iframe HTML has value? | <p>Here's what I want to do w/ jquery: </p>
<pre><code>var content=$("#iframe01").contents().find("#content").html();
if(/*VARIABLE CONTENT RETURNS NULL*/){check again for its value)
//BUT as soon as it has value, alert('content');
</code></pre>
<hr>
<p>I DON'T want to use .load or .ready. I think I need to use a ... | jquery | [5] |
838,598 | 838,599 | script tag create with innerHTML of a div doesn't work | <p>here goes the js code </p>
<pre><code>var wrap = document.createElement("div");
wrap.innerHTML = '<script type="text/javascript" src="'+scriptUrl+'"></script>';
var wrapscript = wrap.childNodes[0];
document.body.appendChild(wrapscript)
</code></pre>
<p>the body did insert the script element,but the js ... | javascript | [3] |
1,333,445 | 1,333,446 | convert this string into decimal | <p>Sounds easy but when I tried to achieve i'm stock about how is the formatter to make this conversion this are some examples of strings that i need to convert to decimal</p>
<pre><code>00.24
48.34
01.24
</code></pre>
<p>Does anybody know how can i Accomplish this?? I tried like this</p>
<pre><code>try
{
decimal... | c# | [0] |
4,923,273 | 4,923,274 | Why is TYPE_ORIENTATION deprecated since API 8.0 ? | <p>Why is TYPE_ORIENTATION deprecated since API 8.0 for ANdroid? There's a cross in eclipse but the code runs perfectly fine. </p>
| android | [4] |
181,850 | 181,851 | How to write simple TCP listener that will be able to send packages ? | <p>I need to write simple TCP listener that will be able to listen TCP ( receive packages ) on one thread and in case i need to send some package i will be able to do it on some other thread</p>
<p>How can i do it ? </p>
| c# | [0] |
1,694,740 | 1,694,741 | how to place perviously selected value at UIPickerview bar | <p>i am displaying my array objects in a pickerview.</p>
<p>My array contains {one,two,three,four,five}</p>
<p>when i select value in picker view</p>
<p>i am getting that value using <code>- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {</code></p>
<p>i... | iphone | [8] |
5,712,184 | 5,712,185 | No Overload Method "Hit" takes 1 argument. Need to return two Lists | <p>I'm having trouble called a class function in my main because it needs to return 2 lists at the same time. The function adds a card from one list to another, and then deletes it from the original list. But when I try and call the function I get this error ... No Overload Method "Hit" takes 1 argument</p>
<pre><code... | c# | [0] |
5,676,786 | 5,676,787 | showing internet content on an intranet site | <p>I've an ASP.NET application hosted inside a local area network. The application host machine has access to the internet while the local area network clients do not. </p>
<p>There is one requirement where I've to show a web page with rich content (images) in an IFrame from internet (public network) address.</p>
<p>... | asp.net | [9] |
5,367,873 | 5,367,874 | Recreating "presentModalViewController"? | <p>I'm using a <code>UIImagePickerController</code> set up as a camera with an overlay view.</p>
<p>I want to present a modal view controller on top on this. When I do so, though, the camera view "closes". This would be okay, but when I dismissModalViewControllerAnimated, I see the closed camera, and there is a long a... | iphone | [8] |
1,372,695 | 1,372,696 | Is it possible to see which apps are currently on a users home screen? | <p>I'm wondering if it's possible to see which shortcuts and widgets are on a users home screen, and what size they are.</p>
<p><strong>I'm not trying to delete shortcuts or in any way change the users home screen.</strong></p>
| android | [4] |
4,746,684 | 4,746,685 | How does PDOStatement::fetchObject set properties before the class is constructed? | <p>When I call <a href="http://ca3.php.net/manual/en/pdostatement.fetchobject.php" rel="nofollow">this function</a>, and add a constructor to my class, all my class properties are already set. How is that possible -- I thought you had to construct a class before you could set its properties?</p>
| php | [2] |
5,962,637 | 5,962,638 | how to assign values to array | <p>how to assign database value to arrays. i tried like this...</p>
<pre><code> da = new SqlDataAdapter("select emname from emp", con);
ds = new DataSet();
da.Fill(ds, "emp");
if(ds.Tables [0].Rows.Count >0)
{
for(int i=0;i<ds.Tables [0].Rows .Count ;i++)
... | asp.net | [9] |
952,406 | 952,407 | print the first sentence of each paragraph in Java | <p>I have a text file and wish to print the <strong><em>first</em></strong> sentence of each paragraph. Paragraphs are separated by a line break, i.e. "\n".</p>
<p>From the BreakIterator, I thought I could use the getLineInstance() for this but it seems it is iterator over each word:</p>
<pre><code>public String[] e... | java | [1] |
5,500,220 | 5,500,221 | R.java was created, but bin\res is empty, and no errors. ODD | <p>I installed jdk 1.6, eclipse Indigo, android sdk r20 and adt plugin r20.
When I compile android project, even the 'hello, world' app, no apk was generated.
Then I found project-dir\bin\res was empty, but R.java was successfully generated.
Of course no _ap, apk file generated.</p>
<p>I firstly installed eclipse 4... | android | [4] |
5,844,352 | 5,844,353 | how to get the properties of a datasource in WAS 6.1 | <p>I am migrating an app from WAS4 to WAS6.1</p>
<p>A piece of code is as follows:</p>
<pre><code>javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup(JNDI_NAME);
dsvalue_data = new Hashtable();
confvalue_data = new Hashtabl... | java | [1] |
3,027,035 | 3,027,036 | Why is this NaN | <p>Im trying to run the following code</p>
<pre><code> int salespersons=0,weeks=0,days=5;
double weekly_sales[weeks][salespersons][days];
double total_weekly_sales[weeks];
for(int w=0; w < weeks;w++)
{
for(int d =0; d < days; d++)
{
for(int s=0; s < salespersons; s++)
{
... | c++ | [6] |
1,154,502 | 1,154,503 | search on 'id' which contains '/' + jquery | <p>I have DOM elements whose id may contain '/' in it.
I want to use following formate, as I need all elements having the id
for Ex: </p>
<pre><code>jQuery('[id=activities/_terp_count]') //returns null
</code></pre>
<p>Note that ,</p>
<pre><code>jQuery('#activities/_terp_count') //returns null
</code></pre>
| jquery | [5] |
2,332,452 | 2,332,453 | What is wrong with this PHP code - Unexpected T_CONSTANT | <p>I keep getting the following error in my log</p>
<pre><code>PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'
</code></pre>
<p>The error is related to this line but I'm not sure what's wrong with it</p>
<pre><code><?php
if ($num != null) {
$query_string = 'msisdn=... | php | [2] |
1,740,112 | 1,740,113 | Auto scroll or End less Scroll in Iphone | <p>I am developing iphone application.
need to display 5 records at a time
and when i reached page end then the next 5 records will need to load using automatic scrolling.</p>
<p>initial 5 records display done.</p>
<p>Scroll not working when i reach page end.</p>
<p>Can any one.</p>
| iphone | [8] |
660,735 | 660,736 | PHP : Post get method, need some advice | <p>I am new to php and need to understand how post get method could be useful for my code. My scenario is, I have 3 webpages, 1st webpage is an html form , I am using post method here then I take firstname and last name from form and enter in a sql query(for e.g. <code>$_POST[firstname]</code>) on 2nd webpage which gen... | php | [2] |
2,693,309 | 2,693,310 | Problem with vector of objects/pointers (Implementing composite design pattern) | <p>I'm trying to implement the composite design pattern for a uni practical, I have an abstract base class DocumentComponent, and two classes that inherit from it, TextBody and Word. It's supposed to represent a sentence that can contain additional sentences and/or words. My problem arises when I try to implement the T... | c++ | [6] |
2,969,842 | 2,969,843 | Beginning iphone development | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1081678/beginning-os-x-iphone-development-reference-texts">Beginning OS X & iPhone Development: Reference texts</a> </p>
</blockquote>
<p>I am struggling with beginning iphone development using Objective-C.
... | iphone | [8] |
3,878,434 | 3,878,435 | PHP Socket Programming - polling versus Interrupt | <p>I am new to Socket programming. I am writing an application on a client machine to occassionaly make a request for some data or send some data. This exchange will take place a-periodically and in-frequently once or twice a month at best. From the research I have been doing into socket programming, I need a script wh... | php | [2] |
1,738,144 | 1,738,145 | Get seconds until the end of the month in PHP | <p>I would like to set a cookie with PHP that has to expire at the end of the month. </p>
<p>How can I get the number of seconds until the end of the month?</p>
<p>Thank you.</p>
| php | [2] |
2,436,866 | 2,436,867 | Process tables by number of rows, row height, and alert if no tables exist in jquery | <p>I have this code right now:</p>
<pre><code>var table = $(source).children('table').map(function() {
if (this.rows.length >= 4) {
return $(this).outerHTML();
} else {
return null;
}
}).get();
</code></pre>
<p>This will get tables by number of rows, but how would I get the tables by row height (if height ... | jquery | [5] |
5,932,071 | 5,932,072 | Calculating longest path | <p>I have a n-ary tree which contains key values (integers) in each node. I would like to calculate the minimum depth of the tree. Here is what I have come up with so far:</p>
<pre><code>int min = 0;
private int getMinDepth(Node node, int counter, int temp){
if(node == null){
//if it is the first branch re... | java | [1] |
54,084 | 54,085 | Check if a string is of a string pattern | <p>I have the following string pattern:</p>
<pre><code>const string STRING_PATTERN = "Hello {0}";
</code></pre>
<p>How can I check a string is of the above string pattern?</p>
<p>For example:</p>
<p>string "Hello World" is of the above string pattern</p>
<p>string "abc" is not of the above string pattern.</p>
<p>... | c# | [0] |
1,483,245 | 1,483,246 | How to set Default action in Android from coding? | <p>Once my Home Screen app 'ABC' is installed on the device & when the user presses the Home Button, he is prompted with the Default Action Android dialog to choose between the Default Home & my ABC app.</p>
<p>My use case is to keep on prompting the user - a bit infrequently though, with this Default Action d... | android | [4] |
1,725,616 | 1,725,617 | how can i reduce the size of image in imageview | <p>hi i am new to iphone. what i am doing is displaying 20 images as grid and selected image is diaplyed as full image in imageview. when i rotate the simulator to landscape image is not adjusted correctly in image view. i am trying by changing the position of image but no use. now what i need is reduce the size of s... | iphone | [8] |
2,347,890 | 2,347,891 | Reach functionality from other class c# | <h1>update</h1>
<p>I'm writing a silverlight application and I have the following Class "Home", in this class a read a .xml file a write these to a ListBox. In a other class Overview I will show the same .xml file. I know it is stupid to write the same code as in the class "Home".</p>
<p>The problem is, how to reach ... | c# | [0] |
1,945,142 | 1,945,143 | How to include file from another directory | <p>In the root (www) I have two folders.</p>
<p>In the first folder, "folder1", I put a file called register.php.</p>
<p>In the next folder, "folder2", I put files called header.php and footer.php.</p>
<p>I need to include the header and footer files from folder2 in the register.php file.</p>
<p>How can i do this? ... | php | [2] |
3,350,109 | 3,350,110 | Unable to get FTP server directory listing from android ftp4j client | <p>Running following code on emulator. Connecting to filezilla server on windows development host using ip address 10.0.2.2.</p>
<pre><code>FTPClient ftp = new FTPClient();
try
{
ftp.connect("10.0.2.2", 21);
ftp.login(username, password);
String REMOTE_DEFAULT_INITIAL_DIRECTORY = ftp.currentDirectory();
... | android | [4] |
2,863,027 | 2,863,028 | Queued Tasks at a specific time | <p>So, I've got a WCF application that accepts requests to do work at a specific time. I could have a list of thousands of things to do in the future at varying times. Is there an existing framework that we can leverage to do this? The current implementation polls a database, looking for things to do based on a date... | c# | [0] |
5,700,254 | 5,700,255 | c++ error codes propagation | <p>I work on a legacy code in c++ which uses error codes instead of exceptions. </p>
<p>In this case, fn A() calls B() which calls C() etc. </p>
<p>Now if C() returns the error, i would like to exit at B() itself without having to pass it back to A() and have A() handle the error. However few other team members have ... | c++ | [6] |
3,177,037 | 3,177,038 | Inser <div> into Validation Summary? | <p>Does anyone know of a native ASP.NET way to insert a <code><div></code> into an asp:ValidationSummary?</p>
| asp.net | [9] |
3,481,260 | 3,481,261 | How to use functions and variables from different java class? | <p>I have to design a PDF document.
Initially my job was to design only 1st page(named "Form.java")
So I created methods with parameters defining the font, no. of cols & rows,...</p>
<pre><code>Function A(String staticdata, Font font, int colspan, int rowspan, int border)
</code></pre>
<p>It worked fine..
Now I ... | java | [1] |
2,377,460 | 2,377,461 | Android: Xml file, inflate | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7673911/andriod-inflate-listview-using-its-androidid">Andriod: Inflate listview using its android:id</a> </p>
</blockquote>
<p>With regard to the following qn : <a href="http://stackoverflow.com/questions/703898... | android | [4] |
4,558,573 | 4,558,574 | How to polulate a listview using the SimpleCursorAdapter in android? | <p>I am developing a small application. I hav a listview in it. I want populate the listview from the database using the SimpleCursorAdapter. please help me out in doing this. As I am new to android please provide with some codes if possible. Thanks in advance.</p>
| android | [4] |
2,923,091 | 2,923,092 | How do I verifying if site has javascript enabled and if user's browser is IE 8 | <p>How do I verify if a site has Javascript enabled and if user's browser is IE 8?</p>
| javascript | [3] |
1,669,326 | 1,669,327 | add class in the child element on the .hover effect | <p>i want to add a class name in a input field but don't know the all logic of jquery.<br>
html code is </p>
<pre><code><tr class="jp_contact"><td>text</td><td>text</td><td>text</td><td><input name="in_val" ></td></tr>
<tr class="jp_contact"><t... | jquery | [5] |
569,779 | 569,780 | PHP - How to show columns with min-max values | <p>I have this simple pricing table. I'd want to insert another 2 columns displaying MIN and MAX values from column <i>$przoff</i>.
Here's a screenshot that shows how columns should look like: </p>
<p><img src="http://i.stack.imgur.com/Hovkf.jpg" alt="enter image description here"></p>
<pre><code><?php
$i=0;
while... | php | [2] |
3,971,096 | 3,971,097 | PHP strtotime date today, which is better? | <p>I was wondering if one method is better than the other when it comes to getting the timestamp of the date today.</p>
<p>Which is better?</p>
<pre><code>$timestamp = strtotime("now");
</code></pre>
<p>or</p>
<pre><code>$date_today = date("Y-m-d H:i:s");
$timestamp = strtotime($date_today);
</code></pre>
<p>Is th... | php | [2] |
5,547,651 | 5,547,652 | Cannot convert String to Integer in Java | <p>I am newbie to Java and I have written function to convert string to integer</p>
<pre><code> if ( data != null )
{
int theValue = Integer.parseInt( data.trim(), 16 );
return theValue;
}
else
return null;
</code></pre>
<p>I have a string which is 6042076399 and it gave me errors:</... | java | [1] |
5,419,619 | 5,419,620 | How do you bind a combobox to a Database and show values from an enum, or is this the right approach? | <p>I have some comboboxes on a WinForm that have been populated by an enum:</p>
<pre><code>enum valueGenTypes
{
None = 0, Prefix = 1, All = 2, Abbreviation = 3, Number = 4
}
</code></pre>
<p>I have one combobox that is Bound to a field in the database that is a value of 0-4.</p>
<p>I've wired up the ... | c# | [0] |
4,259,466 | 4,259,467 | How can the size of a view change? | <p>I was wondering what the purpose of the function onSizeChanged() is while building custom components. I was going over the tic tac toe sample, and can't really seem to get why it is needed, and how the size of a view can change. Sorry if this is a stupid question :)</p>
<p>Thanks</p>
| android | [4] |
930,699 | 930,700 | Can't retrieve variables from url | <p>I can't seem to get the 'required_ids' array in my url to be passed into a php variable. Basically I just want to count the size of the array in php so I can put that number in a DB. The problem I have is getting the url string into a variable to pull the requested_ids out.</p>
<pre><code>http://www.somewebsite.co... | php | [2] |
2,281,541 | 2,281,542 | Error: Access Denied: (403) Forbidden? | <p>what is the solution of this type error</p>
<p>reply soon</p>
| asp.net | [9] |
4,041,343 | 4,041,344 | Android background graphics and color getting change with change in device type | <p>While using an image(plain fill color image) as background to say any view . The screen color changes by varying the devices and emulator.</p>
<p>I know that if we use images they should not be explicitly stretched in GUI design. I have used wrap_content only no GUI layout variations.</p>
<p>Also when I use color(... | android | [4] |
3,324,509 | 3,324,510 | How can I add elements to an ArrayList at even or odd positions? | <p>I have two methods that populate one ArrayList and I want one of the methods to add elements at even positions while the other adds elements in odd positions, so that I get an interleaved list of data.</p>
<p>How can I add elements in even or odd positions?</p>
<pre><code>for (int i = 0; i < mData.size(); i++)... | java | [1] |
578,641 | 578,642 | java - register problem | <p>When i try to register a person with the name Eric for example, and then again registrating Eric it works. This should not happen with the code i have. Eric should not be registrated if theres already an Eric in the list. Here is my full code:</p>
<pre><code> private Person findName(String name) {
for (... | java | [1] |
357,398 | 357,399 | handle number format exception | <p>when i am getting data after xml parsing and use it in my application i am getting number format exception so i add try and catch block between that code and now it is not force close but the problem is that after getting the exception it does not execute the code after that how to get over again and it takes some ... | android | [4] |
1,775,625 | 1,775,626 | Asp.net validator issue | <p>I am using a require field validator for a textbox in asp.net application. Problem is that when there is no value in textbox then no button on the web page do not works even page redirection button for back page also not performing function and validator gives err msg which i define
But if I put sum value in it then... | asp.net | [9] |
4,406,085 | 4,406,086 | synchronize method with progress dialog | <p>I have loadData() which used to load my Neuroph network.</p>
<p>I want to run it with a progress dialog but if part of loadData() execute i increase my progress dialog.</p>
<p>I need tutorial for it.</p>
<p>I know Thread with Handler, AsyncTask. but cannot do that with these two methods.</p>
| android | [4] |
3,712,807 | 3,712,808 | Android getting selected spinner text | <p>I am trying to get the selected item from a spinner, I want to then store this item into an array but at the moment I am just wondering how I can get the current selected item. Below is my current spinner code I have many spinners within the class.</p>
<pre><code>Spinner session = (Spinner) findViewById(R.id.spinne... | android | [4] |
299,682 | 299,683 | Can't get ID of clicked link | <p>Maybe I'm being crazy, but I can't get the ID of the <code><a></code> link that is being clicked. The <code>var</code> for security works fine, and there is definatly content in the ID attribute. I'm I missing something?</p>
<p>Here is the PHP -</p>
<pre><code><span id="<?php echo $load_post_content_no... | jquery | [5] |
3,705,820 | 3,705,821 | How to eliminate some part of text from string | <p>I am new to iphone.I have facing some issue.I have a list of strings such as
1.mp3
2.mp3
3.mp3
here i want to eliminate all .mp3 and get only the number 1,2,3 how it is possible.If any body know this please help me..</p>
| iphone | [8] |
3,550,185 | 3,550,186 | how to compile a jar file in source code | <p>Is it possible to compile class file to jar file not using jar -cvf options.</p>
<p>I want to compile jar files by source code.</p>
<p>Cant somebody show me some example codes</p>
| java | [1] |
2,963,239 | 2,963,240 | Manipulate the top property of Button | <p>I have a Button. On clicking, I want to change its top property by 25%. On clicking again, it should come back to the normal position. How can i do it?</p>
| jquery | [5] |
1,516,184 | 1,516,185 | Change the size of UIimage before set on the imageview | <p>There is a imageview of size 504x320 and image size 1080x1920 which is large than imageview, I want to change the size of this image same as imageview without changing the quality and content of image. I am using this method and this working good but this method little bit crop to actual image</p>
<pre><code> -... | iphone | [8] |
4,675,049 | 4,675,050 | A program with #include<iostream.h>, allows the use of string functions like strlen(). Why? | <pre><code>#include<iostream.h>
int main()
{
char name[] = "Mary Mon";
cout<<strlen(name);
return 0;
}
</code></pre>
<p>This program compiles normally without <code>#include<string.h></code>. Why?</p>
| c++ | [6] |
3,109,695 | 3,109,696 | How I can create treeview of html page with javascript? | <p>How I can create a treeview of my html page with all elements attributes with javascript?</p>
<p>Maybe somebody have example?</p>
| javascript | [3] |
4,277,929 | 4,277,930 | sys.webforms.pagerequestmanagerTimeoutException | <p>I deployed my application to windows server 2008. I tested my application on the server and everything is working fine on the server itself. The client machine attached to the server has wndows 7 on it. I went to the application by typing the IP address of the server and access the application</p>
<p><a href="http:... | asp.net | [9] |
2,426,241 | 2,426,242 | single character arithmetics? | <p>I need to invent my own conversion function because of some encoding issue.
I decided that for now I will create a conversion table for my characters.</p>
<p>I want to know how I can possibly do an operation like the following C code to print out characters 'a' to 'z':</p>
<pre><code>char a='a';
for(i=0;i<26;i+... | php | [2] |
3,296,587 | 3,296,588 | transfair folder share security between domains | <p>I have a windows server 2003 on a PC called "share" and I'm sharing some files to some users on a domain but I'm in the meddle of switching between tow domains and i want to change the domain on "share" PC to the other domain
how can I do that and keep the security on the file?</p>
<p>more info:</p>
<ul>
<li>the n... | c# | [0] |
268,243 | 268,244 | contributing to ASP .NET open source projects | <p>Does anyone know how i can start contributing to ASP .NET projects. I love to learn it but I cannot currently get experience on the job. </p>
<p>Just out of curiosity, is contributing to open source ASP .NET projects regarded as good professional experience?</p>
<p>Thanks in advance!</p>
<p>Subbu</p>
| asp.net | [9] |
6,006,383 | 6,006,384 | Why is pip unavailable when I install virtualenv? | <p>The documentation says that if I already have virtualenv installed, then pip is available by default on my system. However, there exists <code>/usr/bin/virtualenv</code> but no <code>/usr/bin/pip</code>. What am I doing wrong ?</p>
| python | [7] |
199,043 | 199,044 | Java—how can I dynamically reference an object's property? | <p>In javascript, I can do this:</p>
<pre><code>function MyObject(obj) {
for (var property in obj) {
this[property] = obj[property];
}
}
</code></pre>
<p>Can I do anything close in Java?</p>
<pre><code>class MyObject {
String myProperty;
public MyObject(HashMap<String, String> props) {... | java | [1] |
1,672,123 | 1,672,124 | difference about threadings in iphone | <p>I am working on thread in Iphone. Can anyone explain the difference between </p>
<pre><code>[NSThread detachNewThreadSelector:@selector(loadButtonInfo:) toTarget:self withObject:buttonInfo];
</code></pre>
<p>and</p>
<pre><code>[self performSelectorOnMainThread:@selector(loadButtonInfo:) withObject:buttonI... | iphone | [8] |
3,134,190 | 3,134,191 | Undefined symbols "vtable for ..." and "typeinfo for..."? | <p>Nearly the final step but still some strange erros....</p>
<pre><code>bash-3.2$ make
g++ -Wall -c -g Myworld.cc
g++ -Wall -g solvePlanningProblem.o Position.o AStarNode.o PRM.o PRMNode.o World.o SingleCircleWorld.o Myworld.o RECTANGLE.o CIRCLE.o -o solvePlanningProblem
Undefined symbols:
"vtable for Obstacle", re... | c++ | [6] |
5,726,386 | 5,726,387 | Change Checkbox value without raising event | <p>I want to change Checkbox value without raising the onCheck event.
I know there are work arounds like un registering ,changing the value then re- registering,
Inside the event method based on flag either skip or evaluating the method statements
or any other work arounds.
I am looking for a cleaner ways for it.</p>
| c# | [0] |
1,188,245 | 1,188,246 | Get left, right values with out px in jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/490508/left-function-in-javascript-or-jquery">Left() function in Javascript or jQuery</a> </p>
</blockquote>
<p>I have one div and i give style like below.</p>
<pre><code>#MainDiv
{
position:relative;
... | jquery | [5] |
5,870,035 | 5,870,036 | Emulate jQuery .detach() in older version? | <p>I'm using jQuery 1.3.2 and currently I'm not in a position where I can hope for an upgrade. Consider this code that works in 1.4.2:</p>
<pre><code>var some_elem = $('#some_element');
var other_elem = $('#other_element');
some_elem.detach();
other_elem.replaceWith(some_elem);
</code></pre>
<p>How should I rewrite t... | jquery | [5] |
2,490,169 | 2,490,170 | How read value from XmlNode | <p>I have a Xml file and I try to read value from node <code>Ticket</code>, but my output is still empty. Can somebody help me ?</p>
<p>Xml docmunet :</p>
<pre><code><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.... | c# | [0] |
1,711,573 | 1,711,574 | Searching a List | <p>Lets say I have a list and I am trying to look up a Class element in it, from which I only know one (unique) attribute.</p>
<pre><code>public static List<Achievement> listAchievements;
String idAchievement = "5764e35";
</code></pre>
<p>This is obviously not working</p>
<pre><code>listAchievements.indexOf(id... | java | [1] |
2,910,560 | 2,910,561 | Saving and parsing rules for rules based agent in Wumpus World | <p>I'm writing a rules based agent to solve an extended version of the Wumpus World game. What I'd like to do is allow the user to set his own rules, save them ( in a XML file) and load them when he wants.
Is there a way to apply those rules in C# in a "easy" way, or I have to parse every single rule and "translate" it... | c# | [0] |
2,642,227 | 2,642,228 | List.Sort() fails when the list has null values | <p>I have a user control in that a grid gets data using ObjectDataSource. All the columns in the grid are sortable. If the user clicks on a particular column name, the list is sorted based on that column (List.Sort(sortColumn)). </p>
<p>I am facing an issue when one of the column has blank / null value in their field.... | c# | [0] |
551,816 | 551,817 | mail() not working | <p>I am struggling to send mails through PHP, running on IIS7. I have an SMTP server running on the server which I can access through telnet and send a mail through with no problems, and php.ini is configured as follows:</p>
<pre><code>[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
</code></pre>
<... | php | [2] |
4,814,678 | 4,814,679 | How to install an APK file on an Android phone? | <p>I have a simple "Hello Android" application on my computer (<a href="http://en.wikipedia.org/wiki/Eclipse_%28software%29">Eclipse</a> environment), and I have built an <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29">APK</a> file. How do I transfer the APK file to my Android phone for testing?</p>
<p>My... | android | [4] |
2,447,855 | 2,447,856 | function in JavaScript | <p>I'm learning basics of JS and I wrote this script but it doesn't work as I aspected. It should add or subtract 10 value inside tag and inside tag value atribute depending on button click.</p>
<pre><code><!DOCTYPE HTML>
<html>
<head>
<title>Meter</title>
<script type="text/javascri... | javascript | [3] |
3,425,796 | 3,425,797 | how to remove last comma from the string using jquery | <p>I am storing multiple selected option value to the textbox and concatenate with comma but dont want to add in last of the string. hear is my code. </p>
<pre><code><!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
&l... | jquery | [5] |
474,920 | 474,921 | Formatting price | <p>i want to display my price value like after decimal point only two digits to display.
i try this.</p>
<pre><code>lblDiscount.Text = string.Format("{0:c} ", Convert.ToString(sDis));
</code></pre>
<p>but it is displaying three digits after point.
can you please tell me how to format price</p>
| asp.net | [9] |
5,114,122 | 5,114,123 | Javascript- document/window has focus? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/497094/how-do-i-find-out-which-javascript-element-has-focus">How do I find out which Javascript element has focus?</a> </p>
</blockquote>
<p>Is it possible to check in Javascript whether the current window has f... | javascript | [3] |
1,649,507 | 1,649,508 | I tried to remove \r \n \t but there are still tabs | <p>I tried </p>
<pre><code>str_replace(array("\r\n", "\r", "\n", "\t"), ' ', $text);
</code></pre>
<p>It could strip new lines but there are still some tabs as you can see below. what's the preblem?</p>
<pre><code>Metal Machine Music, Part I<br /> <br /> <br /> <br /> <br /> ... | php | [2] |
3,235,996 | 3,235,997 | Android Project Dependencies | <p>I need help with a project dependency issue in the Android SDK.</p>
<p>I have the following projects:
"Sync" (a Java only project)
"Agonis" (an Android Library project)
"Dragonis" (an Android application project)</p>
<p>Agonis has a project dependency on Sync, and Dragonis has a project dependency on Agonis, like ... | android | [4] |
4,646,496 | 4,646,497 | Converting Letters to Numbers 2 | <p>Refer to <a href="http://stackoverflow.com/questions/10644420/converting-letters-to-numbers">Converting Letters to Numbers</a></p>
<p>In the file <code>test.in.rtf</code>, I have 'abcd' typed. However, when I run the program, I get <code>??? ??????????? ???????? plus maybe a few more</code> in <code>test.out.rtf</... | java | [1] |
1,466,442 | 1,466,443 | why I can access private method from outside in C++? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4991267/why-is-it-allowed-to-call-derived-class-private-virtual-method-via-pointer-of-b">Why is it allowed to call derived class' private virtual method via pointer of base class?</a> </p>
</blockquote>
<p>R... | c++ | [6] |
3,304,682 | 3,304,683 | Error when compiling simple python program | <p>This script won't compile. I wanted to made a simple 21-style game for practice but I get an error: </p>
<pre><code>X@X:~/Desktop$ python 21.py File "21.py",
line 18
int(ptotal) = ptotal + newcard
SyntaxError: can't assign to function call
</code></pre>
<p><a href="http://pastebin.com/mfc64c2d" rel="nofollow">H... | python | [7] |
1,447,555 | 1,447,556 | Practicing Access Modifiers | <p>I am trying to make a project with packages of classes with different access modifiers to see all the characteristics of classes with different access modifiers. I tried having a package with a public class, one with a default class and then tried to have 2 other for protected and private classes but it said "Illega... | java | [1] |
5,761,743 | 5,761,744 | C# Concatenate strings using backslash | <p>I want to combine four variables like this :<br>
<code>
string a,b,c,d;<br>
string Qno = "a\b\c\d";</code></p>
<p>How to do for above result?</p>
| c# | [0] |
2,243,515 | 2,243,516 | How to request a secured connection (https)? | <p>Generally, we use http connection like this:</p>
<pre><code>try{
HttpClient httpclient = new DefaultHttpClient();
// final HttpParams params = httpclient.getParams();
// HttpConnectionParams.setConnectionTimeout(params, REGISTRATION_TIMEOUT);
// HttpConnectionPara... | android | [4] |
388,925 | 388,926 | jquery plugin change $('#somediv').foo to $.foo | <p>I'm writing a jquery plugin and its working well but it needs an outer->outer wrapper #id (#somediv) ie:</p>
<pre><code>$('#somediv').foo({
wrap : 'example',
one : 'red',
two : 'blue',
});
</code></pre>
<p>HTML:</p>
<pre><code><div id="somediv">
<<div id="example">
<!-- Do st... | jquery | [5] |
5,765,543 | 5,765,544 | looping through select tag jquery | <p>trying to create a loop through a select tag, with multiselect. I'm new to jquery and i found this code, however i need to loop through all checking whether the option is selected or not, as i need to do something in both cases.</p>
<pre><code>$(".multiselect").change(function () {
$(".multiselect option:sele... | jquery | [5] |
6,024,079 | 6,024,080 | get calendar application name prior to android API 14 | <p>I'm having difficulties to retrieve the names of all applications on my device that are calendar applications. My device runs android version 2.3.3 with API level 8. Therefore, the interfaces that permit to use the calendar intents aren't supported yet (supported only from API level 14).</p>
<p>I try to use a Curso... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.