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 |
|---|---|---|---|---|---|
3,349,200 | 3,349,201 | How do you cache a variable in jQuery? | <p>If I'm constantly referencing:</p>
<pre><code>$('#' + n + ':nth-child(2)').val()
</code></pre>
<p>then how do I cache $('#' + n) into a variable?</p>
<pre><code>$n = $('#' + n);
$n:nth-child(2)
</code></pre>
| jquery | [5] |
3,346,329 | 3,346,330 | How to determine whether a phone number has been posted? | <p>On one of my sites, I have a problem with too many NEW users not reading the rules and posting their phone numbers in public, which is against the rules.</p>
<p>So to put an end to this, I want to check whether a phone number has been submitted before making the post live. What is the best and most efficient way t... | php | [2] |
920,444 | 920,445 | What is the effect of using float loadfactor to a HashSet? | <p>Why float loadfactor affect to a HashSet? what is the significant of it?</p>
| java | [1] |
3,693,228 | 3,693,229 | Add reference in code with C#? | <p>I am looking for the equivalent of C++'s #pragma comment(lib, "name"); but for C# and adding assembly references. How can i do it?</p>
| c# | [0] |
4,957,281 | 4,957,282 | Does the use of Google APIs limit Android device support? | <p>My company has an Enterprise client/server application that runs on Android. I am adding a feature that will include a MapView. I am trying to decide if I should use Google Maps or some other mapping service.</p>
<p>My concern with Google Maps is that it requires Google APIs. These APIs appear to be included in ... | android | [4] |
5,361,439 | 5,361,440 | how to find out the path of the program using c# | <p>I found a snippet of code explaining how to use <code>System.Diagnostics.Process.Start</code> to run an external program in C#. The snippet shows running <code>cmd.exe</code>, which is in the path.</p>
<p>Let's assume that there is some external program (Beyond Compare for example). I don't know if it is installed ... | c# | [0] |
5,309,585 | 5,309,586 | Memory usage when passing by reference? | <p>I have an object (i.e. an image) that takes up 1MB of memory.
I pass this image into a function, which modifies it.
If I pass this image into the function by reference, would the entire 1MB be copied, or just its place in memory?</p>
| c++ | [6] |
4,097,526 | 4,097,527 | How to Call all of the XIB/NIB files properties? | <p>I created a TabBarController application for the iPhone that has a mainView.xib with a tabBar, Two tabBar buttons, and two additional views. The additional views have a UIMapkit and a UITableView. What I want to do is in the tableview, I want to invoke the UIMapKit view when ever a user tabs on a row. </p>
<p>What ... | iphone | [8] |
4,815,009 | 4,815,010 | garbage value is obtained | <p>this is a sample of my code. i am getting the value for maximum height. but my minimum height is a garbage value. what am i doing wrong</p>
<pre><code>#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <sstream>
using namespace std;
#define MAX 20
st... | c++ | [6] |
150,057 | 150,058 | How to parse Java code stored in a string | <p>How can I parse Java code stored in a String?</p>
<p>Example:</p>
<pre><code>String s = "int i = 2; System.out.println(\"the number is: \" + i);";
</code></pre>
| java | [1] |
2,041,134 | 2,041,135 | Should only 1 view go in 1 Activity, in Android? | <p>What is "best practice"?
Should each view have its own Activity? Never 2 views in 1 Activity?</p>
| android | [4] |
1,021,493 | 1,021,494 | Need Guidance on Server for Android App | <p>I have an app idea that will need to connect to a server to get account information, other users information, and some other stuff.</p>
<p>I am not savvy on the server side of things. </p>
<p>Do I need a website that is hosted and have the app connect to the website? </p>
<p>Can I use my own computer at home to h... | android | [4] |
1,436,303 | 1,436,304 | How to I pluralize in php? | <p>Ok so i have this chunk of code</p>
<pre><code><p id="number_of_stations" class="text left"><?php $_GET['count'] != "" ? print "{$_GET['count']} Stations" : print "Number of Stations" ?></p>
</code></pre>
<p>and $_GET['count'] will be either 1, 2, 3, 4 or 5 and i need to print out the following</... | php | [2] |
4,135,085 | 4,135,086 | How can I make an installer for a PHP application? | <p>I have a PHP application and would like to create an installer for it. Are there any existing frameworks I can use? Are there any good tutorials on this sort of thing?</p>
| php | [2] |
512,772 | 512,773 | Python - substitute inplace - removing .bak backup files with close()? | <p>When I run the following script, a .bak backup file is left in the filesystem.
How do I close() the files(s) properly so the backups are deleted?</p>
<pre><code>#!C:\Python27\python.exe
import os
myRelease = os.environ.get("BUILD_STRING")
myVersion = os.environ.get("VERSION_STRING")
import fileinput
import re
files... | python | [7] |
5,631,387 | 5,631,388 | Calender in Java Textfield | <p>I want to create a Java application and I want to create a calender in TextField, such as when users click on textfield, they will be able to see a calender to select one day from it.. can anyone help me please..</p>
<p>Please Help..</p>
| java | [1] |
4,698,841 | 4,698,842 | sending strings between two views? | <p>i want to know how to send string between two views of a tab bar controller?is it done the same way as with simple two views?
i have an application with tab bar controller with two tabs.there is a textfield in first view.i want to send the text to second view </p>
| iphone | [8] |
1,222,803 | 1,222,804 | How do i catch an error in a int parsed from string? | <p>I am having trubble finding a way that works and helps to catch an error input. I need to handle if the input is not a 1 or a 2. Like . or a - or just any letter. I have tried catch and well nothing seems to work :/ </p>
<p>Someone that have an idea for me to try? I am greatfull for any suggestions!! Thx in advance... | c# | [0] |
448,842 | 448,843 | custom delete button uitableview iphone sdk | <p>I wanted swipe a custom view into a UITableViewCell. I can set and use the swipe delete button but I want to have the same effect with any view.</p>
| iphone | [8] |
1,919,013 | 1,919,014 | jQuery validate : multiple form, single validation | <p>I have 2 forms, namely (ids mentioned) 'add_product' and 'edit_product'</p>
<p>Now I am using jQuery validation plug-in, both the forms have same validation (similar to mentioned in following example)</p>
<pre><code>jQuery("#add_product").validate({
rules: {
name:"required",
price:"number"
... | jquery | [5] |
2,139,233 | 2,139,234 | how to transfer data from array to function | <p>i need to transfer data from array to function in C#</p>
<p>the function:</p>
<pre><code> public void InsertData(params string [] DATA)
{
string MAC, ID_OLD, ID_NEW, Serial;
MAC = DATA[0].ToString();
ID_OLD = DATA[1].ToString();
ID_NEW = DATA[2].ToString();
Seria... | c# | [0] |
4,915,946 | 4,915,947 | Link to page with jQuery link selected? | <p>What I have so-far: </p>
<pre><code>$("#navigation li a[id]").click(function() {
$("#" + this.id.substr(1)).show(600)
.siblings('.toggleDiv').slideUp(600);
});
<!-- Begin Naviagtion -->
<div id="navigation">
<ul>
<li><a id="babout"&g... | jquery | [5] |
2,758,102 | 2,758,103 | alternative to 'this.variable' inside constructor functions's methods | <p>I have been trying to write a constructor function that would make an object chock full of complex methods. These methods process variables of their parents as-well as call on sibling methods. Here's the best example I can give you. It's for an improvised web-based console.</p>
<pre><code>function ConsoleCont(type,... | javascript | [3] |
1,879,262 | 1,879,263 | Is there any way to execute some code when a thread is killed via clearInterval? | <p>Is there anything like a "dispose" function or "thread shutdown hook" for a specific thread running via setInterval?</p>
| javascript | [3] |
1,944,671 | 1,944,672 | RadioButtonList selection IndexChanged | <p>My Scenario,</p>
<p>When i select the option in list i need to perform some action like Textbox should be disabled. But i don find my breakpoint pointing to that action to be performed.Pls help</p>
| asp.net | [9] |
3,530,283 | 3,530,284 | Is Python's Easy Install unprofessional to use? | <p>Is it unprofessional to use Easy Install to install Python modules?</p>
| python | [7] |
3,156,543 | 3,156,544 | Unable to instantiate a nested class ( extends broadcastReceiver ) when a sendBroadcast is made | <p>I am developing an application in Android and have an issue where Android framework throws java.lang.InstantiationException upon trying to instantiate a nested class.
Here is the scenario.</p>
<ol>
<li><p>Class A extending Activity with nested class B which extends BroadcastReceiver: </p>
<pre><code>public class ... | android | [4] |
2,886,031 | 2,886,032 | Android RSS reader GUI problem | <p>I have an RSS reader which display the titles of a RSS feeds in a list. on clicking the title the main source page of the title should open...
the following code works fine for a small list but if i have a long list which contains feeds from more than one website the application stops and i have to force close it.
c... | android | [4] |
1,858,257 | 1,858,258 | How to use Intents from a Service or Broadcast Receiver? | <p>I need to be able to handle/catch Intents while my Activity is closed. So I am looking at either a Service or a BroadcastReceiver. </p>
<p>Is it possible to "receive" intents to a service itself? I tried to search, but could not find anything helpful.</p>
<p>With a BroadcastReceiver, I am not exactly sure how t... | android | [4] |
4,309,341 | 4,309,342 | private home proxy server | <p>How do I make a proxy site for a home URL (EX: 192.168.1.190) to bypass the web filter we have set? Don't worry, I am in cahoots with the person that monitors this stuff, so this is for that person.</p>
<p>Thanks!</p>
| php | [2] |
1,752,583 | 1,752,584 | How to create variables dynamiccally in JavaScript | <p>I'm looking for a way to create variables dynamically in javascript</p>
<p>eg</p>
<p>I have a loop </p>
<pre><code>for (i=0;i<15;i++){
}
</code></pre>
<p>now I need to create variables dynamically eg var "a"+i for eavh value in the loop. Is this possible and how?</p>
| javascript | [3] |
2,629,558 | 2,629,559 | Android sdk not running | <p>I'm installed android sdk form <a href="http://developer.android.com/sdk/index.html" rel="nofollow">http://developer.android.com/sdk/index.html</a>
But i'm not able to run it... when i'm startring "SDK Manager" "AVD Manager" just one command prompt will open closing automatically...
I tried so many ways But i'm sti... | android | [4] |
5,959,726 | 5,959,727 | Python: how to share a variable between two modules | <p>I have viewed some other threads that address the problem but not quite get it. </p>
<p>Suppose I have a config file that contains a shared variable:</p>
<h3>Config.py</h3>
<pre><code>flag = False
</code></pre>
<h3>Test1.py</h3>
<pre><code>import config
while(1):
config.flag = True
print config.flag
</c... | python | [7] |
288,861 | 288,862 | where shall i get sun IDM? | <p>I want to learn Sun IDM. From where can I download?
Please give me suggestions.</p>
| java | [1] |
3,093,166 | 3,093,167 | Latitude/longitude vector to distance, strange problem with output | <p>I have this code to find the distance between two sets of GPS coordinates, I got the code from elsewhere on the net. </p>
<pre><code>function distance($lat1, $lon1, $lat2, $lon2, $unit) {
$theta = $lon1 - $lon2;
$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * ... | php | [2] |
3,084,822 | 3,084,823 | Simulate the 'new' operator in JavaScript | <p>I tried to simulate the 'new' operator in JavaScript in a code like this:</p>
<pre><code>Function.method('new', function ( ) {
var objPrototype = Object.create(this.prototype);
var instance = this.apply(objPrototype, arguments);
return instance;
});
</code></pre>
<p>However, in order to cover all the ... | javascript | [3] |
3,188,607 | 3,188,608 | problem with jquery each and swich between 2 things | <p><a href="http://stackoverflow.com/questions/2435547/jquery-and-swich-between-two-cases-problem">first see this post</a>
i got this code</p>
<pre><code>$('.yesno').click(function(){
$('.yesno').each(function(i, v){
$(v).removeClass('selected');
});
$(this).addClass('selected');
return false... | jquery | [5] |
4,286,211 | 4,286,212 | ArrayList in ArrayList<String> | <pre><code>ArrayList<ArrayList<String>> mainlist = new ArrayList<ArrayList<String>>();
ArrayList<String> childlist = new ArrayList<String>();
for (int i = 0; i < 3 i++){
String chlidtext = chlidlist + String.valueof(i);
String maintext = mainlist +String.Valueof(i);
chil... | android | [4] |
4,844,951 | 4,844,952 | How to get NaN when I divide by zero | <p>When I do floating point division in Python, if I divide by zero, I get an exception:</p>
<pre><code>>>> 1.0/0.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: float division
</code></pre>
<p>I'd really like to get <code>NaN</code> or <code>Inf</cod... | python | [7] |
3,108,168 | 3,108,169 | Get bitmap from layout | <p>I'm trying to inflate a layout and use that to set a bitmap on an image view. Then, I'm adding that imageview to a linear layout and displaying the linear layout. Here's what I've tried:</p>
<pre><code>public class TestActivity extends Activity {
private static Bitmap bitMap;
/** Called when the activity i... | android | [4] |
2,886,318 | 2,886,319 | is there such thing as resetting radio button? | <p>i would like to create a reset button that will unchecked the checked radiobutton in windows form.. can i just clear it by using radiobutton.Clear();?</p>
| c# | [0] |
5,941,797 | 5,941,798 | How to size android layout dynamically | <p>I need to size the top-most layout of my application dynamically (programmatically) based on information loaded from a configuration file.</p>
<p>Right now the in main.xml I have </p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/LinearLayout01"
... | android | [4] |
456,499 | 456,500 | Read write a java class file | <p>I have a rather strange requirement. I have property files in which same keys are added and a respective java constant is created in interface file.</p>
<p>I want to relive myself of adding into all the files again and again.I know how to read write property file. Is there a way to read / write java file. I mean no... | java | [1] |
312,835 | 312,836 | Tool for only combining JavaScript files, without compressing or uglyfying? | <p>I have a backbone app with over 50 small JavaScript files. Now I want to put all those in one single file, but it should still be readable, so:</p>
<p><strong>Is there a tool for combining JavaScript files without minifying or uglyfying them?</strong></p>
| javascript | [3] |
4,894,938 | 4,894,939 | Mysql query issue | <p>My database table (<strong>Name:Wall</strong>) structure is bellow:</p>
<pre><code>-----------------------------------------------------
id(type = int) like(type = int) wall_id(type =int)
-----------------------------------------------------
1 0 1
2 ... | php | [2] |
325,013 | 325,014 | Add additional object to variable in javascript? | <p>I have a variable that may contain objects or may be undefined. I wish to add additional objects to this variable. How do I do that?</p>
<p>code example when applicable:</p>
<pre><code>function(){
var comments;
if(fbposts[fbpost].comments.count){
for(var comment in fbposts[fbpost].comments.data){
... | javascript | [3] |
488,198 | 488,199 | how to convert image into bytes [] in c# | <p>this will be a noob question.
I'm new to c#</p>
<p>I have a file upload server control that I am using to save images to server.</p>
<p>I have, in my library, an image resize function with this parameter:</p>
<pre><code>byte[] resizeImage(byte[] image, int witdh)
</code></pre>
<p>that i am supposed to use.
now, ... | c# | [0] |
2,067,833 | 2,067,834 | Accessing std::vector data members of a class from its member functions | <p>I have a class which defines the following members in a header file (.hpp):</p>
<pre><code>public :
int loadData(char* filename);
private :
std::vector<vertex> vertices;
std::vector<triangle> triangles;
std::vector<frame> frames;
</code></pre>
<p>The <code>vertex</code>, <code>triangle</... | c++ | [6] |
5,759,710 | 5,759,711 | What is going Wrong? | <p>i want to submit form through jquery. so if there is error then form will not submit and if every thing is right then the form is submit.</p>
<pre><code>cForm.bind("submit", function(e){
if(validateName(e, cinputName) & validateEmail(e, cinputEmail) & validateMessage(e, cinputMessage)) {
ajaxS... | jquery | [5] |
5,584,299 | 5,584,300 | How to disable onclick and scrollbar of listview inside gridView | <p>I am using a ListView inside of a GridView but I want to disable the onClick handler of the ListView.</p>
<p>How can I do this?</p>
| android | [4] |
3,570,002 | 3,570,003 | Throwing ArgumentNullException | <p>Is it a good idea to throw ArgumentNullException() when having a null value? <a href="http://stackoverflow.com/questions/3400818/exception-to-throw-when-expecting-a-null-value">This</a> thread doesn't mention the most obvious exception to throw on a null.</p>
<p>Thanks</p>
| c# | [0] |
5,799,790 | 5,799,791 | Currency Convertor Web Service wont work | <p>I want to use the Currency Convertor at <a href="http://www.webservicex.com/CurrencyConvertor.asmx?wsdl" rel="nofollow">http://www.webservicex.com/CurrencyConvertor.asmx?wsdl</a>. But it isnt working I get nothing in the dropdownlist menus.</p>
<p>Here is my code:</p>
<pre><code>using System;
using System.Collecti... | asp.net | [9] |
3,269,537 | 3,269,538 | delegate and events | <p>Can someone give a practical example of delegate and events where delegate and events are the only solution of the problem ?</p>
| c# | [0] |
2,960,035 | 2,960,036 | Access of label text in the other class | <p>I got two <code>viewcontrollers. --> AViewController,BViewController</code>
</p>
<p><code>AViewController</code> need to create an object of <code>BViewController</code>.
And <code>presentmodalcontroller</code>: to go to the <code>BViewController</code>.</p>
<p>And <code>BViewController</code>
need to creat... | iphone | [8] |
3,761,641 | 3,761,642 | jQuery Code for click event | <p>I attach a click handler to a button on my page. Is there anyway to find out what code is using jQuery?</p>
<pre><code>$("#dreport").click(function() {
var str = "hello";
});
</code></pre>
<p>Is there a anyway to get the var <code>str = "hello"</code> in the firebug debugger, or anywhere?<br />
I've tried alert... | jquery | [5] |
3,891,631 | 3,891,632 | masked the pasword input to UITexfield | <p>I hope to mask the text input to UITextFiled as:</p>
<pre><code>"ABCDE" to
"*****"
</code></pre>
<p>below are my codes without function</p>
<pre><code>- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
int l=[textField.text length];
... | iphone | [8] |
1,351,854 | 1,351,855 | jQuery global context | <p>Assuming the following html structure :</p>
<pre><code><div id="anId">
<span id="1"> aSpan </span>
<span id="2"> anotherSpan </span>
</div>
<span id="3"> anOutsideSpan </span>
</code></pre>
<p>Is there a way to define a "global context" for jQuery selectors? ... | jquery | [5] |
1,570,075 | 1,570,076 | Is it possible to show all the resources that are being taken over by a single process in android? | <p>I use the activity manager in order to list all the processes. I can get the Pid and their name. That's fine. </p>
<p>Now my question is, what kind of information can I get about the resources that each of these processes uses?</p>
<p>I've tried getting some information about the memory from the MemoryInfo class b... | android | [4] |
2,780,591 | 2,780,592 | load images from ftp to asp web page | <p>i have hosted my website on ftp containing folder named photogallery,now what i need to do
is when my page is requested all images from ftp folder photogallery should be display in a sequence.Thanks in advance.</p>
<pre><code>string[] filesindirectory = Directory.GetFiles(Server.MapPath("~/Photogallery"));
List<... | asp.net | [9] |
4,180,363 | 4,180,364 | Scriptmanager error in datapager | <p>I have a datapager which is bind to a listview. The issue is whenever I paginate to the next set of page I get the following error. Initially I get the pages 1,2,3 when I click "..." I get the next set of page numbers 4,5,6. The error occurs when I click 5 or try to go back to the previous set (1,2,3) by clicking "F... | asp.net | [9] |
4,463,495 | 4,463,496 | based on template class | <p>where to use template class in c++ programming and what is its importance</p>
| c++ | [6] |
682,006 | 682,007 | Writing a python script that dosen't hog resources | <p>I have a script which does a lot of computational work and is very resource intensive. When I am running the script (which typically takes several hours to complete), I am almost unable to use my machine, because it grinds to a halt.</p>
<p>I remember in the old days of VB programming, there was a <code>yield()</co... | python | [7] |
3,379,887 | 3,379,888 | PHP Sessions Redirection | <p>I made a login system and want to create different sessions for different users and give them a personalized dashboard.</p>
<p>When logged in, users are redirected to dashboard.php. In dashboard.php, I want to check if username is "SARTHAK"(Should cross-check from database), the user should be redirected to file1.p... | php | [2] |
858,478 | 858,479 | how i should create a reference of a object of a class | <p>How i get address pointer of a object</p>
| c# | [0] |
4,609,561 | 4,609,562 | Simplifying code: classes as simple containers in Python | <p>I am trying to write a function <code>drag</code> which can be called as <code>drag('Object1').to('Object2')</code>. The code below works as I want, but it seems using a <code>class</code> simply as a container may be unnecessary:</p>
<pre><code>def drag(source):
class Container:
def to(self, target):
... | python | [7] |
5,575,857 | 5,575,858 | foreach KeyValuePair in NameValueCollection? | <p>I have this code:</p>
<pre><code>NameValueCollection nv = HttpUtility.ParseQueryString(queryString);
foreach (KeyValuePair<String,String> pr in nv) {
//process KeyValuePair
}
</code></pre>
<p>This compiles, but when I try to run it I get an <code>InvalidCastException</code>.</p>
<p>Why... | c# | [0] |
2,455,221 | 2,455,222 | jquery height() returns different values in Chrome and Firefox — on the api.jquery.com demo — why? | <p>If I go to</p>
<p><a href="http://api.jquery.com/height/#example-0" rel="nofollow">http://api.jquery.com/height/#example-0</a></p>
<p>and click 'Get Paragraph Height', I get '36px' in Chrome v25 and '34px' in Firefox v19.</p>
<p>I filed a bug (<a href="http://bugs.jquery.com/ticket/13538" rel="nofollow">http://bu... | jquery | [5] |
4,023,531 | 4,023,532 | Handlng python project and file organization | <p>I am developing python functions in different .py files (example DisplayTools.py, CollectionTools.py...) in order to import them as tools in a more general file Start.py. It works fine if all the files are in the same directory. I can say in Start.py "import DisplayTools" ...
But how to organize those in a more pro... | python | [7] |
3,797,255 | 3,797,256 | how to set two volume control in media player for two simultaneously playing sound in android | <p>i am making a media player apps in this apps i want to set two volume control seek bar for controlling two sound clip one is VOICE and another is BACKGROUND SOUND playing simultaneously by making two instance of media player.
i want to manage there volume separately</p>
| android | [4] |
1,590,498 | 1,590,499 | Android UI Crash due to kernel error | <p>When I return error from linux system calls like <code>create</code>/<code>open</code> etc. in order to fail such operations from my App, complete Android UI crashes. When I investigated more I realized that root cause is the system_server crashing because of my errors from system call. </p>
<p>I tried using errors... | android | [4] |
3,713,677 | 3,713,678 | Convert decimal to binary in python | <p>Is there any module or function in python i can use to convert a decimal number to its binary equivalent ?
I am able to convert binary to decimal using int('[binary_value]',2),so any way to do the reverse without writing the code to do it myself ?</p>
<p>Thank You</p>
| python | [7] |
2,980,471 | 2,980,472 | There are two buttons | <p>Android 2 buttons are defined in xml</p>
<p>AbsoluteLayout.LayoutParams</p>
<p>Using the two buttons was placed overlapping each other.</p>
<p>param1 = new AbsoluteLayout.LayoutParams (LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, 10, 20);</p>
<p>param2 = new AbsoluteLayout.LayoutParams (LayoutParams.WRA... | android | [4] |
3,236,830 | 3,236,831 | is there a c# qualification I can go for? | <p>I was wondering if there was any qualifications for c# , kind of like the Zend Qualification for PHP that would be recognised by an employer?</p>
| c# | [0] |
4,458,437 | 4,458,438 | python web service for a network appliance | <p>As there are so many options to write web service in python, I am a bit confused. I have developed a network appliance, its about Private VLANs. </p>
<p>I want to add to it authenticated web service over HTTPS. </p>
<p>It won't be accessed by regular users. It will be accessed just by other systems looking for som... | python | [7] |
2,181,215 | 2,181,216 | Android: app manager | <p>Is there way to manage other apps installed on the device. For example block or suspend app for some time or set a password for it launch.</p>
| android | [4] |
739,478 | 739,479 | Can someone explain this Jquery | <pre><code>$(document).ready(function () {
if ((screen.width >= 1024) && (screen.height >= 768)) {
alert('Screen size: 1024x768 or larger');
$("link[rel=stylesheet]:not(:first)").attr({
href: "style2.css"
});
} else {
alert('Screen size: less than 1024x7... | jquery | [5] |
415,193 | 415,194 | Python dictionary values merging based on specific key | <p>I want to merge two CSV files that I have read into python using the following code,</p>
<pre><code>a = csv.DictReader(csv1)
b = csv.DictReader(csv2)
aMap = {}
bMap = {}
for row in a:
aMap[row['id']] = row
for row in b:
bMap[row['id']] = row
</code></pre>
<p>Now I should have two dictionaries whose keys... | python | [7] |
4,139,325 | 4,139,326 | Can i query a List? Java | <p>Say i have </p>
<pre><code>List<SomeObject> objList = new ArrayList<SomeObject>();
</code></pre>
<p>If someObject contains a field named id. Can we find it through some query like</p>
<p><code>objList.filter('id=2');</code> </p>
<p>wihout looping through the list? If not, then why? This can be so use... | java | [1] |
18,334 | 18,335 | Exporting Excel with .xlsx extension | <p>I am exporting a grid to excel file, It has extension <code>.xls</code>. Now client want the excel with <code>.xlsx</code> extension.I am reading about <code>Open xml</code>,but does any one know any other way.Please let me know</p>
| asp.net | [9] |
1,401 | 1,402 | Parse .php and return as variable | <p>So say I have a file page.php</p>
<pre><code><html>
Hello <?php echo $world;?>
</html>
</code></pre>
<p>I want to create a variable and assign it 'Hello world' using page.html</p>
<p>Something like</p>
<pre><code>$world = 'world';
$mypage = parse_file('page.php');
</code></pre>
<p>I suppose I ... | php | [2] |
4,438,275 | 4,438,276 | javascript - how to insert a script tag to div? | <p>How to do that:</p>
<pre><code>document.getElementById('target').innertHTML = "&lt;script&gt; alert(1); &lt;script&gt;";
<div id="target"></div>
</code></pre>
<p>script will be print on browser like a string.How to do is as script ?</p>
| javascript | [3] |
5,683,219 | 5,683,220 | Why the global variable is not working in the different functions in Python? | <p>I'm beginner in Python. I wrote the code like as below just for practice.. Please look on it</p>
<pre><code>i=1
def wrte():
global i
while i<5:
print "%s .Line..\n" %i
i+=1
def appnd():
j=i
while i in range(i,j+3):
print "%s .Line..\n" %i
i+=1
def Main():
wrte()
appnd()
Main()
... | python | [7] |
2,143,778 | 2,143,779 | Python: An iterating function | <p>I am trying to write a program that iterates for me in the form of x<sub>n+1</sub> = x<sub>n</sub><sup>2</sup> + c. How do I do this?</p>
<p>For example, for c = 1 and x<sub>0</sub> = 1/2</p>
<p>(1/2)<sup>2</sup> + 1 = 5/4,<br>
(5/4)<sup>2</sup> + 1 = 25/16 + 1 = 41/16<br>
... etc</p>
<p>My code doesn't work here... | python | [7] |
6,025,474 | 6,025,475 | Check difference in seconds between two times | <p>Hi all I am currently working on a project where when a certain event happens details about the event including the time that the event occurred is added into a list array. </p>
<p>Once the method has finished I then pass on the list to another method that checks its values. Before I go through the loop I check the... | c# | [0] |
5,436,691 | 5,436,692 | what is the 'decimal.getcontext().copy()' mean | <pre><code>import decimal # Decimals
a=decimal.getcontext().copy()
print a
</code></pre>
<p>thanks.</p>
<p>what is the useful of a.</p>
| python | [7] |
319,591 | 319,592 | Calling a javascript function from a link | <p>I have the following:</p>
<pre><code> <li><a id="register"
class="access button red"
data-action="Register"
title="Login"><span class="smaller">REGISTER</span></a></li>
<li><a id="login"
class="access button red"
data-act... | jquery | [5] |
4,326,395 | 4,326,396 | jquery tab not working | <p>i am creating the tab by jquery and my code is bellow</p>
<p>jquery</p>
<pre><code>$("document").ready(function() {
$("#tabs").tabs();
});
</code></pre>
<p>and the html</p>
<pre><code><div id="tabs">
<ul>
<li><a href="#tabs-1">Nunc tincidunt</a></li>
<li... | jquery | [5] |
1,361,462 | 1,361,463 | Android Content Provider tied to external storage (text file) | <p>I'm trying to code a system for running user studies. I have a webpage and a webservice on top of a user DB.
My Android app is a client to run the studies on. I'm use the Account Manager to store user credentials authenticated via the webservice. The point is to then implement a sync adapter that will send a text fi... | android | [4] |
4,342,877 | 4,342,878 | Compiling .cs from .Net Applications | <p>Is there a managed API to compile C# applications (to memory or disk)? I assume one exists because SharePoint compiles ASP.NET pages in memory. We want to use it to, at runtime, generate Linq <code>DataContext</code>s and compile those against various projects. </p>
| c# | [0] |
4,085,544 | 4,085,545 | How do I run multiple functions on text in jQuery? | <p>I am ajaxing in some text from a PHP script and trying to have it fade in to the page. However, I can't get the fadeIn() function to behave. Here's where I am:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$("#generate").click(function(){
$("#quote p").lo... | jquery | [5] |
3,137,167 | 3,137,168 | Split Multiple character in C# | <p>I want to split each words in this string?</p>
<p>I write a code </p>
<pre><code>String s1=" welcome to our website,thanku."
string s2= s1.Split(",-.".ToArray());
</code></pre>
<p>But this isn't working.</p>
| c# | [0] |
1,505,944 | 1,505,945 | What is the best way to properly test object equality against an array of objects? | <p>My objective is to abort the NSXMLParser when I parse an item that already exists in cache. The basic flow of the program works like this:</p>
<p>1) Program starts and downloads an XML feed. Each item in the feed is represented by a custom object (FeedItem). Each FeedItem gets added to an array.</p>
<p>2) When t... | iphone | [8] |
3,202,042 | 3,202,043 | HOW to show Select Input Method Dialog | <p>Do u have any idea How to show Select Input Method Dialog in an Activity
I have been searching for it for hours and having no luck.
Any idea?</p>
| android | [4] |
4,871,655 | 4,871,656 | Checkbox selectAll\DeselectAll in tableLayout | <p>I have List of route in tablelayout.
CheckBox & TextView created dynamically.
I set the checkbox id.</p>
<p>I want to do the selectall & deselectAll . How we can implement?</p>
<p>I created checkBox using coding.then How can call this <code>CheckBox cb = (CheckBox)view.findViewById(R.id.????);</code></p>
... | android | [4] |
1,769,757 | 1,769,758 | Notification library in javascript | <p>Some weeks ago I found a small JS notification library like <a href="http://www.notifyjs.com/" rel="nofollow">notify.js</a>, I've googled for 30 minutes but I can't find it again. </p>
<p>It's a small library with the examples in top, left and a list between 5&10 examples in his homepage.</p>
<p>Help, hints ar... | javascript | [3] |
2,640,665 | 2,640,666 | How copy part of int array to another int array in C/C++? | <p>please can you help me?
How can I copy part of one int array to another int array?</p>
<p>Example:</p>
<pre><code>typedef struct part {
int * array;
} PART;
int array[] = {1,2,3,4,5,6,7,8,9};
PART out[] = new PART[3];
for (int i = 0; i < 3; i++)
{
memcpy((char *)array[i * 3], (char *)out[i].array, 3 * siz... | c++ | [6] |
877,154 | 877,155 | What happens if a HttpClient.execute() is interrupted? | <p>I am calling HttpClient.execute() in a background thread. Does it throw an IOException, when I interrupt the thread?</p>
| java | [1] |
2,389,597 | 2,389,598 | Programmatically Create Collection of Property Accessor Functions | <p>What I want to do is take any class type and create a list of 'get' accessors to all of the properties in the object graph. </p>
<p>The exact format, order, etc of the collection doesn't matter, I just don't quite know how to start off identifying and creating accessors to all of the properties. It might take the f... | c# | [0] |
4,399,161 | 4,399,162 | tileMode repeat in drawable won't work | <p>I have this drawable resource: </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/bg_stripe"
android:tileMode="repeat"
android:antialias="true"
android:dither="false"
android:filter="false"
... | android | [4] |
3,201,039 | 3,201,040 | pass from interface a to interface b with android | <p>Hello
I'm beginning with android development
I created two interfaces, the first a.xml and the second b.xml.</p>
<p>In the first I have an ImageButton. My goal is to switch to interface b when the user clicks on the ImageButton (button.setonclicklistner).</p>
<p>How can I use the activity and intent to navigate be... | android | [4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.