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,309,564 | 4,309,565 | How to return array of Strings in java | <p>I need to initialize and return an array of Strings.
I did the following:</p>
<pre><code> public static String[] pickString(int choice)
{
String pickedString[];
if (cipherChoice==0)
{
pickedCipher[0]="strin1";
pickedCipher[1]="strin2";
... | java | [1] |
4,424,401 | 4,424,402 | Date() Get 3 Work Days ago? | <p>I wish to get a php date for three working days ago.</p>
<p>I've found numerous examples for getting dates by all sorts of textual methods, but the closest I found was <a href="http://stackoverflow.com/questions/12855585/how-to-check-if-a-date-is-three-days-before-today">this one</a>, but it returns three dates (no... | php | [2] |
3,122,927 | 3,122,928 | How do I access individual words after splitting a string? | <pre><code>std::string token, line("This is a sentence.");
std::istringstream iss(line);
getline(iss, token, ' ');
std::cout << token[0] << "\n";
</code></pre>
<p>This is printing individual letters. How do I get the complete words?</p>
<p>Updated to add:</p>
<p>I need to access them as words for doing ... | c++ | [6] |
3,470,150 | 3,470,151 | Is it possible to use win32 DLLs in C#? | <p>I have win32 DLL named VssSdkd.dll. It contains two classes with names VssSdkServiceLogin and VssSdkMsg.</p>
<p>I need to import the VssDskServiceLogin class, in C#. I am setting few properties of <strong>VssDskServiceLogin</strong> object and passing this to <strong>VssSdkMsg</strong> which in turn invokes some ot... | c# | [0] |
5,051,385 | 5,051,386 | I give...where is the "activitycreator.bat" file? | <p>I'm very new to Android programming...well, programming in general! </p>
<p>Almost every tutorial out there for Android programming says to run "activitycreator.bat". But where the heck is it? It's not in the tools directory on my machine. I've searched the whole drive and I don't have it. Help!</p>
| android | [4] |
5,421,398 | 5,421,399 | Does making a struct volatile make all its members volatile? | <p>If I have:
<Pre><code>struct whatever {
int data;
};<br>
volatile whatever test;</code></pre>
will <code>test.data</code> be volatile too?</p>
| c++ | [6] |
5,147,002 | 5,147,003 | Learning PHP from beginner to advanced | <p>I've dabbled with PHP for a few years now and I'm capable of most of the basic things, building login forms etc but from my time on here I've noticed there's so much more I need to learn, like best practices, security issues etc and so I want to learn everything from the very basics. </p>
<p>In the past I've used f... | php | [2] |
922,764 | 922,765 | Open sqlite database failed | <p>I put my sqlite database file in the "assets" folder And i write a DAO calss to get data from database,But the information from log.e means i can not open the database. </p>
<p>public class GetData {</p>
<pre><code> private static String DB_PATH = "/data/data/com.SGMalls/databases/mallMapv2.sqlite";
private stati... | android | [4] |
758,713 | 758,714 | shorthand way to create dictionary key if it does not exist | <p>I have a dictionary of zoo animals. I want to put it into the dictionary in a nested dictionary but get a KeyError because that particular species has not been added to the dictionary.</p>
<pre><code>def add_to_world(self, species, name, zone = 'retreat'):
self.object_attr[species][name] = {'zone' : zone}
</cod... | python | [7] |
4,317,563 | 4,317,564 | android: How to insert a bottom aligned view without layout.xml? | <p>I want to insert views dynamically by using addView method, like this.</p>
<pre><code>TextView view = new TextView(this);
view.setText("foo");
ViewGroup parentView = (ViewGroup) findViewById(R.id.main_layout);
parentView.addView(view);
</code></pre>
<p>How can I align bottom the inserted view?</p>
| android | [4] |
3,977,601 | 3,977,602 | C# MVC Windows application | <p>for developing a application in C# windows application which one is better MVC or creating class file for each form</p>
| c# | [0] |
4,837,363 | 4,837,364 | How to tell if JQuery Error Means Call Was Interrupted | <p>Suppose I have a somewhat long-running jQuery Ajax call (say 5 seconds) as follows:</p>
<pre><code>$.ajax({
url: '/LongCall',
type: 'POST',
async: true,
cache: false,
datatype: 'json',
success: function(data) {
alert('Success!');
},
error(xhr, textStatus, errorThrown) {
a... | jquery | [5] |
1,836,324 | 1,836,325 | adding new web service under framework 4.5 | <p>file -> new -> website -> asp.net empty website (under .net framework 4.5) -></p>
<p>right click on the website name in the solution explorer -> add new item -></p>
<p><strong>cant find Web Service</strong>.</p>
<p>when doing the exact same thing on a web site that was built under framework 4.0 <strong>i do find ... | asp.net | [9] |
868,808 | 868,809 | When declaring a variable in C++/C | <p>When I declare a variable, such as:</p>
<pre><code> int x = 6;
</code></pre>
<p>What exactly is <code>x</code>? an address in the memory is usually hexadecimal..<br>
Also, when I'm calling X</p>
<pre><code>x = 2;
</code></pre>
<p>How does the compiler know where <code>x</code> is? <code>x</code> isn't an address... | c++ | [6] |
4,990,624 | 4,990,625 | how to get only contact numbers from the contact list without names? | <p>hi all i used below code it shows all contact details contact numbers and names but i need to get only contact numbers from the the contact list without names how can implement code without using android widget for solve the problem so give solution any one of you </p>
<p>context.startActivity(new Intent(Intent.A... | android | [4] |
5,237,515 | 5,237,516 | How can I concatenate a string and a number in Python? | <p>I was trying to concatenate a string and a number in Python. It gave me an error when I tried this:</p>
<pre><code>"abc" + 9
</code></pre>
<p>The error is:</p>
<pre><code>Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
"abc" + 9
TypeError: cannot concatenate 'str' and ... | python | [7] |
2,825,441 | 2,825,442 | Why am I getting an error in my main.xml? | <p>See image here : <a href="http://i.stack.imgur.com/dS4wt.jpg" rel="nofollow">http://i.stack.imgur.com/dS4wt.jpg</a></p>
<p>I get error in <code>setContentView(R.layout.main);</code> Where is my problem?</p>
| android | [4] |
1,939,715 | 1,939,716 | Android phone calls from an application | <p>In android programming, is it possible to make a phone call within a service without showing the 'phone call screen'? Any example would be very helpful. Thanks in advance.</p>
| android | [4] |
3,801,322 | 3,801,323 | PHP - Where should I call ini_set? | <p>I am looking for a best practice for where I should place the statement
ini_set.</p>
<p>For example,</p>
<pre><code>ini_set('session.use_only_cookies', 1);
</code></pre>
<p>Thank you</p>
| php | [2] |
412,323 | 412,324 | Relative path to config file in PHP project | <p>I'm new to PHP. I'm developing a new PHP website. My website folder structure is as below, </p>
<pre><code>-SystemRoot
+Code
+Data_Access
-Public_HTML
+css
+js
+Templates
-resources
config.php
</code></pre>
<p>There I have a config file in resources directory, I need... | php | [2] |
1,667,703 | 1,667,704 | How would I reduce nesting for form validation in PHP? | <p>This is function is taking up a lot of lines on my Functions page. </p>
<p>I can't figure out on how to take it down unless putting them into an array, then using a <code>foreach</code> loop. But I want it to be specific on what is not allowed to be blank.</p>
<pre><code>if ($EmployeeID === "")
{
echo "EmployeeI... | php | [2] |
1,319,726 | 1,319,727 | What does this code do? | <pre><code><a href="http://www.google.com/search?q='.urlencode(current(explode('(', $ask_key))).'" target="_blank">
</code></pre>
<p>I can't understand what <code>urlencode(current(explode('(', $ask_key )))</code> does.<br>
Can anybody explain me what that code does?</p>
| php | [2] |
5,387,190 | 5,387,191 | My JavaScript Object is too big | <p>I am creating a really big JavaScript object on page load. I am getting no error on firefox but on Internet Explorer I am getting an error saying:</p>
<blockquote>
<p>Stop running this script ?
A script on this page is causing your web browser to run slowly. If it continues to run, your computer might become u... | javascript | [3] |
3,452,998 | 3,452,999 | how to start coding and setting up a web server with java? | <p>so now i think i have learned all basics and terminology for java. but what i don´t know is how to code and display a web page with Netbeans in Java.</p>
<p>the most tutorials contains lots of talks about different technologies "Java uses Java Beans, JSP and servlets" and so on. Where can i find short practical tut... | java | [1] |
5,221,070 | 5,221,071 | mail server in localhost in php | <p>how can mail server be implemented on localhost using php.i mean to say that how is it possible to send a mail from local client and response it from local host i.e. client and server both are on same computer.please give me the code for it in php.i am new to stackoverflow so please forgive me if my question is not... | php | [2] |
4,747,020 | 4,747,021 | Finding image link in comment and add html tag to it | <p>I have web application i need to add new function to it.</p>
<p>I allow user to post comment. Now what i want is if any user just post image url it should turn into proper with html tag. I am using php.</p>
<p>For example if user post just plan link of image, now i want it to add html tag to it itself.</p>
<pre><... | php | [2] |
3,408,182 | 3,408,183 | Find specific comments in HTML code using python | <p>I cant find a specific comment in python, in example the <code><!-- why --></code>.
My main reason is to find all the links inside 2 specific comments. Something like a parser.
I tried this with <code>Beautifulsoup</code> :</p>
<pre><code>import urllib
over=urlopen("www.gamespot.com").read()
soup = BeautifulS... | python | [7] |
3,020,774 | 3,020,775 | Where is the optimal place to implement SQL retry logic when using ASP.Net TableAdapters? | <p>I'm using Visual Studio 2010, TableAdapters, and writing my code in C#. I'm currently venturing into debugging my code after having written some data population code and I'm looking through what SQL issues I'm encountering. At this point I want to implement some SQL retry code to handle retrying any queries if the... | asp.net | [9] |
2,255,087 | 2,255,088 | Change JavaScript NaN Message to Something Else | <p>I've got an <code>input[type="text"]</code> that throws up a NaN error until another box is filled. I know why the message is appearing, that's not a problem, it's correct. I'm just wondering if I can change 'NaN' to something more descriptive for the user.</p>
| javascript | [3] |
3,572,736 | 3,572,737 | Attempt to get HTML from website using PHP cURL does not work | <p>I am attempting to write a script that can retrieve the HTML from my school's schedule search webpage. I am able to visit the web page normally when I visit it using a browser, but when I try to get it to work using cURL, it gets the HTML from the redirected page. When I changed the </p>
<pre><code>CURLOPT_FOLLOWLO... | php | [2] |
3,368,239 | 3,368,240 | Cloning a JavaScript object? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3474697/how-to-clone-js-object">How to clone js object?</a> </p>
</blockquote>
<p>This is another way to create a javascript object (using object literal notation instead of function):</p>
<pre><code>user = {
... | javascript | [3] |
4,920,487 | 4,920,488 | Retrieving GPS coordinates when location services are not enabled | <p>Assuming the device's "Use Wireless networks" and "Use GPS satellites" settings under Location is not enabled, is it possible to still retrieve the location coordinates.</p>
<p>Currently, the best is to redirect the user to the settings page is not enabled. I find this disruptive as needs to navigate away from the ... | android | [4] |
630,580 | 630,581 | Is initalization of string in java necessary...? | <pre><code>class TestMe{
public static void main (String args[]){
String s3;
System.out.print(s3);
}
}
</code></pre>
<p>why the compiler is giving a error,refernce object has a default value of null,why it is not the output...??</p>
<p><code>error: variable s3 might not have been initiali... | java | [1] |
4,765,699 | 4,765,700 | using jquery mousemove and setTimeout and clearTimeout to reveal/hide a menu | <p>I pasted some code below of what seems to be a common approach to reveal a menu on mousemove. It seems that as the mouse continues to move, the duration of the timeout increases. What's up with that? Is there a reason why the cleartimeout would not be working?</p>
<pre><code>var timer;
$(document).mousemove(fun... | jquery | [5] |
3,043,551 | 3,043,552 | how to implement undo operation in painting app | <p>I am doing a painting app. In that, I draw some image. But I want to add undo operation to remove the previous drawn item. How can I implement that undo operation?</p>
| iphone | [8] |
5,342,220 | 5,342,221 | Problems fading in and hiding div | <p>Im having an issue with some jquery im using. I want to be able to hover a songs album cover which will then display a play button and allow me to play a song. At the moment though when I hover the album cover all the divs containing the same div name for the play button seem to show on the page. How can I icolate t... | jquery | [5] |
3,848,342 | 3,848,343 | What is the Exact Meaning of the "System.out.println()" in java | <p>Can any one explain exactly what the below means::</p>
<pre><code>System.out.println()
</code></pre>
<p>I know that : </p>
<p>System : Is a class</p>
<p><strong>I don't know about "out"</strong> </p>
<p><code>println</code> : Static Method.</p>
| java | [1] |
4,548,252 | 4,548,253 | Android Layout for the Scenario | <p>I got a scenario where I need your help to point me out what layout or the combination of layout available in android can accomplish this.</p>
<p>I have <strong>n</strong> number of buttons to be added to the screen in some layout. The layout would be of <strong>wrap_content</strong> height and <strong>fill_parent<... | android | [4] |
172,662 | 172,663 | is there any Significant benefit or using Dynamic Fragment over Static Fragments android | <p>OK, Quick question. Apart from dynamically adding a layout on the fly like in the pulse app, any other significant benefit of using dynamic fragments over static fragments or is it just a preference thing? if you have a multiple defined layouts, no need to use dynamic fragments right?</p>
| android | [4] |
2,877,891 | 2,877,892 | How to start activity in another application? | <p>I have application A defined as below:</p>
<pre><code><application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name="com.example.MyExampleActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name=... | android | [4] |
1,428,973 | 1,428,974 | Hide UITabBarController? | <p>I have root view with both tab bar and navigation bar visible at the beginning. When the view is moved to the next level, I would like to hide the tab bars, and when the view is moved back, I would like the tab bar visible. Is there any way to do that? </p>
| iphone | [8] |
4,398,286 | 4,398,287 | echo in an echo | <p>I have the 2 following echos :</p>
<pre><code><?php echo $data->county; ?>
</code></pre>
<p>This one gives me datas like "florida", "california"... from the database</p>
<p>and</p>
<pre><code><?php echo lang(california); ?>
</code></pre>
<p>This one gives me a translation from a lang.php file, fo... | php | [2] |
1,385,400 | 1,385,401 | Does javac optimize object files (*.class)? | <p>I'm trying to limit changes from a jar file. I introduced a fix on the code, a very small fix in a single file. Javac compiler generates the new .class file and I plan to replace <strong>ONLY</strong> this single file in the jar (we had problems with the build and are unsure if the current build matches the producti... | java | [1] |
430,143 | 430,144 | Calculate number of lines in a div with its width in PHP | <p>is there a way in PHP to count the lines a string will give with a given width and a given line-height? </p>
<p>For example, if I have this text:<br>
Sed eget lorem lorem. Pellentesque tristique, quam vel fringilla porttitor,<br>
neque elit suscipit nisl, id posuere magna libero congue ante.<br>
= 2 lines</p>
<p>S... | php | [2] |
4,154,987 | 4,154,988 | Got -1 from HttpURLConnection getResponseCode() | <p>In my code I use</p>
<pre><code>mHttpConnRespCode = mConnection.getResponseCode();
</code></pre>
<p>to get http response code, where mConnection is HttpURLConnection type.</p>
<p>Sometimes I got -1 as response code. Under what circumstances, mConnection.getResponseCode() returns -1?</p>
<p>Thanks.</p>
| java | [1] |
4,603,782 | 4,603,783 | Convert string 10/29/2010 according to users culture | <p>How can I convert the english date 10/29/2010 or any language date to user culture date format</p>
<p>I am using the following code </p>
<pre><code> CultureInfo cultureInfo = System.Threading.Thread.CurrentThread.CurrentCulture;
cultureInfo.DateTimeFormat.
string lng = cultureInfo.TwoLetter... | asp.net | [9] |
5,737,227 | 5,737,228 | Add script to page from user control .ASP.NET | <p>how can i add a javascript file to the page head from a user control?</p>
<p>Thanks</p>
| asp.net | [9] |
3,135,690 | 3,135,691 | How do I get Python to notice a change in the system timezone while running? | <p>If I change my computer's timezone while a Python program is running, that program continues to use the old timezone for calculations and conversions unless I restart the program.</p>
<p>This causes trouble in situations such as parsing the output of commands which use local time, such as <code>net stats svr</code>... | python | [7] |
5,850,480 | 5,850,481 | How to check which UIViewController is active | <p>I need to check which UIViewController is active so I have implemented some cases depending upon the result.</p>
<pre><code>[self.navigationController.visibleViewController className]
</code></pre>
<p>This always returns null. </p>
<p>I am checking with this statement: </p>
<pre><code>if([iDetailController isKin... | iphone | [8] |
250,857 | 250,858 | What's the difference between declaring a function by itself or attaching it to window? | <p>Sorry, that title probably doesn't make much sense, but what I want to know is the difference between:</p>
<p><code>window.myfunc = function(){}</code></p>
<p>and</p>
<p><code>function myfunc(){}</code></p>
<p>With jsfiddle, the functions only seem to work when attached to window. I'm assuming this is something ... | javascript | [3] |
1,895,706 | 1,895,707 | Is MD5 guaranteed to be available for use with MessageDigest in Android? | <p>I want to know if the MD5 digest algorithm is guaranteed to be available in all Android devices before I bluntly ignore the checked exception that <code>MessageDigest.getInstance("MD5")</code> can throw.</p>
| android | [4] |
3,942,105 | 3,942,106 | Is $_SERVER['SERVER_ADDR'] safe to rely on? | <p>My site relies heavily on <code>$_SERVER['SERVER_ADDR']</code>. Can I trust the data retrieved? There is a possibility of finding an empty string?</p>
| php | [2] |
214,839 | 214,840 | Remove an imported python module | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3105801/unload-a-module-in-python">Unload a module in Python</a> </p>
</blockquote>
<p>After importing Numpy, lets say I want to delete/remove numpy import reference</p>
<pre><code>import sys
import numpy as n... | python | [7] |
4,973,414 | 4,973,415 | How to override method and event in WinForm UserControl in C#? | <p>I have a custom control in C# WinForms called <code>BaseControl</code> and there I have a property called <code>Selected</code>.</p>
<p>I want to have an event <code>SelectedChanged</code> and virtual method <code>OnSelecteChanged</code> in the base control and they should behave in the same manner as we have in <c... | c# | [0] |
3,233,293 | 3,233,294 | Detect additional text on url | <p>I have php condition basically static if the page is "biz-los-angeles.php" show specific html. I would like to add another condition for example "retail-biz-los-angeles.php". What would be the easiest way to do this. Basically i just want to script to pick up "retail" text at the beginning of the url and return spe... | php | [2] |
2,827,827 | 2,827,828 | How do I get a specific value from a jQuery object? | <p>If I have an object like this:</p>
<pre><code>var item = {
id: '1',
description: 'something'
}
</code></pre>
<p>then how do I extract one of these values? If I do</p>
<pre><code>alert($(item.id));
</code></pre>
<p>then I just get an alert saying 'Object object'. I had a look at this post: <a href="http:/... | jquery | [5] |
2,246,832 | 2,246,833 | How to stop or pause php execution? | <p>I want to do some basic debugging with print_r. When PHP hits that line I want it to stop or end whatever people usually do so I can see the output.</p>
<p>Thanks</p>
| php | [2] |
847,551 | 847,552 | AsyncTask won't stop even when the activity has destroyed | <p>I have an AsyncTask object which starts executing when the activity is created and does stuff in the background (downloads upto 100 images). Everything works fine but there is this peculiar behavior which i'm not able to understand. </p>
<p>For eg: when the android screen's orientation changes then the activity is ... | android | [4] |
4,939,344 | 4,939,345 | File Browser in android | <p>I need a good file browser application.
How can i list down the files available in a directory?</p>
| android | [4] |
5,779,612 | 5,779,613 | Jquery animation after complete page loaded | <p>How to do an animation after a page(images and everything) completely loaded with Jquery.( like please wait screen before a page is loading)</p>
<p>Thank You</p>
<p>Update:</p>
<p>I need to hide everything in the page and once everything loaded then only the page has to be show.</p>
| jquery | [5] |
5,861,328 | 5,861,329 | how to recover python 2.6.1 that was pre-installed in my macbook pro? | <p>I download python 3.2 and my first thought was that I need to uninstall the python 2.6.1 pre-installed in my computer. But later I found in python.org <strong>"You should never modify or delete these, as they are Apple-controlled and are used by Apple- or third-party software"</strong>. I used <strong>"sudo rm -rf /... | python | [7] |
3,165,638 | 3,165,639 | Recommended C++ logging library | <p>I am currently in need of a logging library. I have used JAVAs Log4j which I absolutely love. While searching online for a reliable and a not so complicated library I narrowed my search down to log4cplus,log4cpp and log4cxx. Most of my suggestions were obtained from <a href="http://stackoverflow.com/questions/308405... | c++ | [6] |
4,493,340 | 4,493,341 | Unable to run java program using command prompt | <p>How I can run java program using command prompt? I already run my program using command prompt but i get this error <code>Could not find or load main class ReadWriteTextFile</code></p>
| java | [1] |
4,460,142 | 4,460,143 | javascript run a bunch of functions | <p>How do i execute a bunch of functions without knowing their names?</p>
<pre><code>var theseFn = function () {
func1 : function () {},
func2 : function () {}
}
</code></pre>
<p>I want to run everything in theseFn. How do I do this? Thanks.</p>
| javascript | [3] |
3,587,778 | 3,587,779 | Android: Gapless playback of a looped audio file in MediaPlayer | <p>I am playing a setLooped enabled audio file in my app, but every time the audio file loops, there is a noticeable, though very brief, gap in the audio playback... is there any way to get around this?</p>
| android | [4] |
927,728 | 927,729 | Make a python property with the same name as the class member name | <p>Is it possible in python to create a property with the same name as the member variable name of the class. e.g.</p>
<pre><code>Class X:
...
self.i = 10 # marker
...
property(fget = get_i, fset = set_i)
</code></pre>
<p>Please tell me how I can do so. Because if I do so, for the statement at marker ... | python | [7] |
5,494,400 | 5,494,401 | Android open server to send datas over inner network, to my PC (over WIFI) | <p>I have an android phone, i d like to send some stream's, to my computer. (192.168.1....:8080)</p>
<p>What is the best way of it?</p>
<p>So i d like to run a test: </p>
<ul>
<li>i'd like to "look" all my windows files on my phone,</li>
<li>i'd like to send maybe a camera stream to my browser, or other program.</li... | android | [4] |
2,971,049 | 2,971,050 | Finding CRLF in string | <p>I have a file and I want to read in the string on each line. If the line does not end in CRLF (\r\n), I want to to print something. I made this file by redirecting output from print commands similar to the following.</p>
<pre><code>System.out.println("Test\r\n");
</code></pre>
<p>But when I read this line in from ... | java | [1] |
2,227,023 | 2,227,024 | How to load rdlc and datasource dynamically in ASP.net reportviwer? | <p>Need you urgent reply...</p>
<p>I am trying to load the report on the report viewer of ASP.net web application. The thing is that I have two project , class library and web application. In the web application I have .edmx and wcf Data service ( that referring the edmx). Inside the class library I have referencing t... | asp.net | [9] |
4,445,581 | 4,445,582 | Exectuing service jp.co.omronsoft.openwnn/.openWnnJAJP | <p>when run my app, it stop and in logs it show" Exectuing service jp.co.omronsoft.openwnn/.openWnnJAJP"
what's mean? who can help me?</p>
| android | [4] |
480,158 | 480,159 | How to develop an Screen-Lock/Unlock functionality in my application in Android? | <p>actually i am developing one application...in my application i am trying to develop screen-lock n unlock application functionality..
So please help me to develop it...</p>
<p>Thanks in Advance--</p>
| android | [4] |
3,347,732 | 3,347,733 | How to start a new navigation based application to work only in Ipad? | <p>I want to create a new navigation based application that needs to be work with only i pad?How can i do that.when i start the navigation based iphone application and then try to upgrade the target to ipad.then there is two target files,and two main window xibs ,it is confusing me ,i need this application to be work o... | iphone | [8] |
2,010,843 | 2,010,844 | Best Practice for site-wide testing and reacting to logged-in status | <p>I'm working on a small, very application-specific CMS. There's nothing financial going on, and the content isn't sensitive really (it's mostly managing relationships between pieces of art), so security isn't a high priority, but still we're using a login system with a controlled group of users for each installation... | php | [2] |
5,303,189 | 5,303,190 | How to change C drive to F drive using python Script | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/1810743/how-to-set-the-current-working-directory-in-python">How to set the current working directory in Python?</a> </p>
</blockquote>
<p>How to change <code>C:\></code> to <code>F:\></code> using Python</... | python | [7] |
3,931,629 | 3,931,630 | How to stretch a UIImage into a UIImageView? | <p>I have a UITableViewCell with a image in it. For some reason whatever UIImage I assign to it, it will not resize. </p>
<p>So I have some simple code like this:</p>
<pre><code>((BubbleCell *)cell).bubbleImage.image = newUIImage;
</code></pre>
<p>Here bubbleImage is a UIImageView, a member of BubbleCell(UITableView... | iphone | [8] |
4,837,467 | 4,837,468 | error in asp.net page? is not valid Virtual path? | <p>I developed one application in asp.net and it is working fine in locally. when i upload in online it is giving error like this.</p>
<p><code>~/User/News/CompleteNews.aspx?newsid=-<span-style="font-weight:-bol.html'</code> is not a valid virtual path.</p>
<p>My code is like this in indiex page</p>
<pre><code>if... | asp.net | [9] |
2,919,038 | 2,919,039 | Checkbox is selected and not assigning a new value | <p>No matter what is selected it is still assigning a value of 1 to all the checkboxes and not changing the selected checkbox to a value of 0. Here is the code that is correct from a syntax standpoint but defaults to 1 no matter what I do not see why its not changing the selected box value to '0' </p>
<pre><code>//... | php | [2] |
781,873 | 781,874 | Grouping averages of students scores | <p>I have student list like below</p>
<pre><code>public class Student
{
public string First { get; set; }
public string Last { get; set; }
public int ID { get; set; }
public List<int> Scores;
}
List<Student> students = new List<Student>()
{
new Student { First = "a", La... | c# | [0] |
1,453,478 | 1,453,479 | ignore empty <p> </p> tags in jquery | <p>I have jquery code that puts borders around <code><p></code> tags but it is also doing so for <code><p></code> tags with no text or child nodes in them. I was wondering if I could ignore <code><p></code> tags that have no content inside them. Would "not has" be considered here? </p>
<p>p tags wit... | jquery | [5] |
6,017,097 | 6,017,098 | PHP best method to affect variables in a function | <p>I'm playing around with hooking into functions, the hook will call the method of another object, what is the best way of changing the value $price in the parent function before it is returned?</p>
<pre><code>function _product_price ($price,$taxable = true)
{
$shop->_hook('PRODUCT_PRICE_BEFORE');
$price =... | php | [2] |
3,757,533 | 3,757,534 | Simple syntax for bringing a list element to the front in python? | <p>I have an array with a set of elements. I'd like to bring a given element to the front but otherwise leave the order unchanged. Do folks have suggestions as to the cleanest syntax for this?</p>
<p>This is the best I've been able to come up with, but it seems like bad form to have an N log N operation when an N op... | python | [7] |
3,592,045 | 3,592,046 | How about this programming style in javascript? | <pre><code> var RootComponent = {
init: function(options){
options = jQuery.extend({name: 'Root'}, options);
this.run('ContainerComponent.init')(options);
}
}
</code></pre>
<p>To this is then applied a new method, called "run". And this run the method found in the pat... | javascript | [3] |
5,000,800 | 5,000,801 | how to send parameter from.aspx page to.cs file[in #eval method in gridview] | <p>in my gridview item template filed i am calling an method <strong>CheckValue</strong></p>
<pre><code> <asp:Label ID="Label1" runat="server" Text='<%# CheckValue(Eval("Imagespath")+","+Eval("Imagesname")%>'>
</asp:Label>
protected string CheckValue(string strValue1,string s... | asp.net | [9] |
3,011,439 | 3,011,440 | How to delete line from the file in python | <p>I have a file F, content huge numbers e.g F = [1,2,3,4,5,6,7,8,9,...]. So i want to loop over the file F and delete all lines contain any numbers in file say f = [1,2,4,7,...].</p>
<pre><code>F = open(file)
f = [1,2,4,7,...]
for line in F:
if line.contains(any number in f):
delete the line in F
</code><... | python | [7] |
5,661,986 | 5,661,987 | how to receive an event while moving through buttons | <p>I am trying to implement a piano app in android. I have just 8 notes and 8 buttons for each note. I implemented onTouch for every button, and there is no problem when I just touch one button. But when I touch a button and move my finger to the next one, than the onTouch function for that button is not called and it ... | android | [4] |
4,364,523 | 4,364,524 | switch on / off flash light programmatically on android smartphones (without using the camera) | <p>I saw your question about <a href="http://stackoverflow.com/questions/6068803/how-turn-on-only-camera-flash-light-programmatically-in-android">How Turn on only Camera flash light programmatically in android?</a>"How Turn on only Camera flash light programmatically in android?".
I'm trying to do the same.</p>
<p>The... | android | [4] |
3,949,673 | 3,949,674 | Android 4.1 AcousticEcho Canceler - is it a complete solution? | <p>In Android 4.1, is the AcousticEchoCancel preprocessor an actual echo canceler or just a call to a separate non-Android code or hardware module? I am building a speakerphone that needs an acoustic echo canceler and need to clarify whether running Android 4.1 gets me a complete version of this function.</p>
| android | [4] |
655,597 | 655,598 | Is the list of Apps on my iphone available for reuse in a different display? | <p>I have an idea to use the apps on my iphone as a list for a different way to launch the program. But I have no idea if I can see the apps in something I can display? Is this possible? If it is possible, can I launch the listed app from my app? What do I need to access to get this done?</p>
| iphone | [8] |
1,341,212 | 1,341,213 | Android device information | <p>Is there an API for programmatically extracting information regarding the current Android device? For example, properties like "model", "OS" etc.</p>
<p>This would be an analogue of iOS's <code>UIDevice</code> class and instance properties.</p>
| android | [4] |
2,730,748 | 2,730,749 | KeyDown in jquery not updating when pressed | <p>I am trying to get the div to change the font size and update it on the screen. The following code works but there is a problem when you press a key you need to press another key to register the last key was pressed i dont know want that to happen. How would i make it update as soon as you press a key? </p>
<pre><c... | jquery | [5] |
4,086,314 | 4,086,315 | How to loop through properties of objects in c#? | <p>I have a method which gets the values of the properties of an object and appends some commas to it. I want to make this generinc so i can use it with other objects.</p>
<pre><code> foreach (var row in rows.ToList())
{
sbResult.Append(
delimiter + row.MediaN... | c# | [0] |
2,063,815 | 2,063,816 | How to display a jquery grid on clicking on row in the other grid? | <p>How can I display a second grid on clicking on a row from the first grid?</p>
| jquery | [5] |
2,738,550 | 2,738,551 | How to pass command line argument to python using eclipse | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4355721/passing-command-line-argument-to-python-script-within-eclipsepydev">Passing command Line argument to Python script within Eclipse(Pydev)</a> </p>
</blockquote>
<p>I have a python script that contains the... | python | [7] |
3,676,415 | 3,676,416 | Is there a rule of thumb size limit to the javascript libraries/plugins I want to include on my website pages? | <p>I often have the jquery library included for my page, roughly 75kb or so. Lately, I'm looking into the need to add more javascript libraries/plugins I found online, which I'm looking at adding another 25kb. In doing so, I would be concerned of adding sizes will increase the loading time for my site. Is there a 'rule... | javascript | [3] |
5,013,170 | 5,013,171 | Deleting Application Temp File from ASP.Net | <p>I have a WebPage where I am giving the option to to Export the Form data to PDF. I am creating the PDF at run time and store the PDF in a "PDF" folder which is under my application directory. After creating the PDF with the SessionID name I Call following function to show the PDF file in the new browser window:</p>
... | asp.net | [9] |
4,049,273 | 4,049,274 | C#, Is there a map structure? | <p>In c# is there a structure like c++ map? I have a group of numbers like this:</p>
<p>1.234 1<br>
5.789 0<br>
3.445 1<br>
...</p>
<p>where the I need to sort the data based on the smallest number in column one, but I need column one numbers to stay with each respected number in column two. So after sorting it wou... | c# | [0] |
5,698,314 | 5,698,315 | How can I use open hardware monitor source code in c# ? I tried anything doesn't work | <p>I have this code in Form1:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OpenHardwareMonitor.Hardware.HDD;
using OpenHardwareMonitor;
namespace OpenHardware... | c# | [0] |
4,290,425 | 4,290,426 | Apply style resource in drawable xml | <p>I have this in res/values/styles.xml</p>
<pre><code> <style name="ListViewRowBorder" >
<item name="android:width">1dp</item>
<item name="android:color">@color/listview_row_stroke_color</item>
</style>
</code></pre>
<p>I am able to access color resources.Ho... | android | [4] |
957,232 | 957,233 | Load from multiple remote pages? | <p>I'm trying to make a code that automatically counts the members in a particular member group of my forum (Proboards to be exact). Member names are in tags labeled with classes of group0, group1 and so forth. So, what I did was to call all the names from the View All Members page to automatically gain a member count... | jquery | [5] |
5,845,555 | 5,845,556 | incrementing eq() with jquery | <p>Somewhat related to what what is being discussed here:
<a href="http://stackoverflow.com/questions/4190331/jquery-eq-loop">jQuery eq() loop</a></p>
<p>I have any number of elements that can be added to a page:</p>
<p>instead of doing this:</p>
<pre><code>$('.taskName a:eq(1)').addClass('fixme');
$('.taskName a:eq... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.