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 |
|---|---|---|---|---|---|
2,707,808 | 2,707,809 | ViewPagers in ListView: onItemClickListener | <p>I have a <code>ListView</code> which shows <code>ViewPager</code>s as row elements. I want to use an <code>OnItemClickListener</code>, but the <code>ViewPager</code> prevents <code>onItemClick</code> from being called. How can I do this?</p>
| android | [4] |
5,442,519 | 5,442,520 | Programming Modular software | <p>I stand in front of a little problem; <em>I want to create a modular software.</em></p>
<p>Let's make it more general and not specific for my case. What I want to create is a software which loads dlls and those dlls adds features to the software.</p>
<p>Think of the dlls as xvid, divx or whatever additional codec,... | c# | [0] |
138,282 | 138,283 | python - while loop question | <p>Please look at the code. I'm using a robot car to draw a letter and in this code, when I type b, it will still draw small case a.</p>
<pre><code>import create
# Draw a:
def drawa():
#create robot
robot = create.Create(4)
#switch robot to full mode
robot.toFullMode()
for i in range(1280):
robot.go(20,30)
r... | python | [7] |
4,392,925 | 4,392,926 | Android: Refresh Activity | <p>I have a problem !
I have 3 Activities, DB, and WebServer. Let say that every 20 min server clean my DB and fill it up with new Data. Every Activity use data from DB. How to refresh active activity automaticaly when new refresh of DB was done. Thanks.</p>
| android | [4] |
1,735,996 | 1,735,997 | Order of list obtained by dictionary's keys() | <p>Can I expect the keys() to remain in the same order? </p>
<p>I plan to use them for a dropdown box and I dont want them to shift if I add or delete items from the dictionary.</p>
| python | [7] |
1,741,792 | 1,741,793 | Examples solicited: who is using C# for anything besides Windows front ends? | <p>As an outgrowth of "Why should I learn C++ rather than C# question, here is a poll: who is using C# for things that are not related to Windows GUI? Web programming qualifies, even if I think it's borderline. Ideal example would be a back-end application where you chose C# specifically because of its language feature... | c# | [0] |
4,112,074 | 4,112,075 | In the onDraw() method, why does the supplied Canvas already have scale? | <p>In a current test project I have a custom View, that I have named SVGView, that simply paints some vector graphics (Paths, etc.) to the Canvas. </p>
<p>The XML layout file consists of nothing more than a FrameLayout, which contains a single child SVGView. The <code>android:layout_width</code> and <code>android:layo... | android | [4] |
788,403 | 788,404 | Is file empty check | <p>how do i check if a file is empty in C#?</p>
<p>need something like:</p>
<pre><code>if (file is empty)
{
//do stuff
}
else
{
//do other stuff
}
</code></pre>
| c# | [0] |
1,909,552 | 1,909,553 | Should we use native API to share instead of Intent | <p>I experiment out with Intent, to share text and image both. However, I realize sharing through intent is almost unusable, although my image size is less than 100kb. I experiment the following problem.</p>
<ul>
<li>GMail - OK</li>
<li>Twitter - I can see there is text and picture in composer. However, I can never po... | android | [4] |
465,689 | 465,690 | BufferedReader.readLine is not working | <p>My program kind of gets stuck after the readLine call, the if statements don't work. What am i doing wrong? #java-first-timer</p>
<pre><code>import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
public class nums {
public static void main(String[] args) throws IOExceptio... | java | [1] |
3,523,837 | 3,523,838 | What's a good sleep time to avoid java.net.SocketExeption: Unexpected end of file from server? | <p>Okay, so I'm using over 300 threads that use buffer readers to get information from over 300 sites at a reasonable speed. So basically, it spams this exception a whole bunch of times each second. Meanwhile, it's only ending up getting less than 50% of the information from the sites. So, I was wondering what would b... | java | [1] |
4,235,739 | 4,235,740 | Delete a member of a structure, and remake it as a copy of something else without using new | <p>So I'm working with an API which really isn't as functional as it could be. (Quickhaptics to be specific) In order to make something that I have work, I need to delete an object within a structure, create it again, (without using new, because the constructor for the object doesn't work the way I need it to) then set... | c++ | [6] |
5,542,569 | 5,542,570 | When upgrade the iOS to 6.0 then local DB data get lost | <p>I have uploaded one iphone application on iTunes. There is one local SQlite database in the application.
When i upgrade the iOS of the device to iOS 6.0 then the database get blank. I didn't get the data which i have saved in older iOS version (i.e. 5.0).</p>
<p>Please help.</p>
| iphone | [8] |
3,702,549 | 3,702,550 | i need a little help on foreach | <p>This is my cats in mysql</p>
<pre><code>cats_id cats_position cats_parentid
1 1> 0
2 1>2> 1
3 3> 0
4 1>2>4> 2
</code></pre>
<p>and i am trying to create a navigation like: </p>
<p>index > c... | php | [2] |
4,785,464 | 4,785,465 | Retrieve sharedPreferences of another application | <p>I have an application( com.example.MyApplication ) which saves the current location like this</p>
<pre><code>SharedPreferences settings = getSharedPreferences(PREFERENCES, 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("City", city);
editor.co... | android | [4] |
3,362,924 | 3,362,925 | What is the purpose of the statement "(void)c;"? | <p>Sorry for the vague title, but not really sure how to phrase it. So I was looking through the innards of boost::asio (trying to track down some ridiculous delays), and I notice code like this dotted about:</p>
<pre><code> op_queue<operation> completed_ops;
task_cleanup c = { this, &lock, &compl... | c++ | [6] |
528,609 | 528,610 | How to use the !! expression? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/784929/what-is-the-not-not-operator-in-javascript">What is the !! (not not) operator in JavaScript?</a><br>
<a href="http://stackoverflow.com/questions/9549780/reference-what-does-this-symbol-mean-in-javascript">R... | javascript | [3] |
4,895,131 | 4,895,132 | Setting a cookie in an iPhone App | <p>Is it possible to set a cookie in an iPhone Application that persists, so that later when the user is in Mobile Safari, that cookie can be sent to a webserver?</p>
| iphone | [8] |
2,401,899 | 2,401,900 | Avoid permutations when searching for coincident data | <p>I have this data:</p>
<pre><code>1, 0., 0., 1500.
.
.
21, 0., 2000., 1500.
22, 0., 2100., 1500.
</code></pre>
<p>which I already appended to a list called nodes: nodes[node ID, coord. x, coord. y, coord. z].</p>
<p>Now I want to find ... | python | [7] |
4,935,159 | 4,935,160 | testing for element tag name | <p>When a user enters a bookmark using form['f3'] (a url and a title) it is immediately entered in via the dom - visually the title and the favicon are seen by the user. Each bookmark is a link and and image under div Bb1c. The insert is done alphabetically. Basically, I need to insert the new image and link after t... | javascript | [3] |
5,615,375 | 5,615,376 | Pass the data the user enters into our URL, receive the XML | <p>'pass the data the user enters into our URL, receive the XML ' How this can be implement</p>
| iphone | [8] |
2,332,992 | 2,332,993 | Are there apps that let you code ON the iPhone (not FOR the iphone)? | <p>I'm just wondering if anybody knows of any simple IDEs or interpreters or anything that lets you play around with code on your iPhone.</p>
| iphone | [8] |
471,344 | 471,345 | Fastest way to convert file from latin1 to utf-8 in python | <p>I need fastest way to convert files from latin1 to utf-8 in python. The files are large ~ 2G. ( I am moving DB data ). So far I have</p>
<pre><code>import codecs
infile = codecs.open(tmpfile, 'r', encoding='latin1')
outfile = codecs.open(tmpfile1, 'w', encoding='utf-8')
for line in infile:
outfile.write(line)
... | python | [7] |
5,618,954 | 5,618,955 | Generate integers with leading 0's | <p>I have a project where I have to generate random numbers from 00000 till 99999.
The randomizing isn't where I get stuck, but the fact that it always needs 5 characters is. So when it generates the number 14, I want it as 00014.</p>
<p>What is the best way to achieve this?</p>
| php | [2] |
5,445,975 | 5,445,976 | how to create url slug with certain words(root directory names) excluded? | <p>I am allowing my website user's to specify their own slug for the page they create for better seo purpose.
what I am trying to do is I want to restrict the user from specifying the directory names present in the root. e.g. I am having dir with name 'abc' then user should not be able to use this name as slug e.g. ww... | php | [2] |
2,798,601 | 2,798,602 | Handling Spaces in Application.ExecutablePath | <p>I am getting a string variable for the Application.ExecutablePath and then passing the variable to a command line via ProcessStartInfo with some arguments. My code works fine as long as the "ExecutablePath" does not contain spaces, but if it does such as C:\documents and settings\jsmith\desktop, C# processes the ... | c# | [0] |
5,427,491 | 5,427,492 | Pointer becomes NULL immediately | <p>I have the following LLVM code. The strange thing is that the <code>si</code> variable of type <code>StoreInst</code> becomes null(0) immediately after it is allocated with new instruction outside the if block, whereas I have declared it at an outer scope. What is going on here?</p>
<pre><code> Value *OldVal... | c++ | [6] |
3,093,807 | 3,093,808 | subclassing MatchObject in python | <p>I have been playing around with regular expressions and was trying to subclass the MatchObject that is returned from re.search.</p>
<p>I have had no luck getting access to the MatchObject class.</p>
<p>I assume enter code herethat the actual type of this object is not called "MatchObject":</p>
<pre><code>>>... | python | [7] |
1,564,414 | 1,564,415 | Accessibility: TYPE_NOTIFICATION_STATE_CHANGED state | <p>I've written an app using an accessibilityService.</p>
<p>I've found that I can detect when notifications appear in the notification bar, but cannot work out how to trigger when they get cleared.</p>
<p>According to the android api docs:</p>
<blockquote>
<p>TYPE_NOTIFICATION_STATE_CHANGED
"Represents the eve... | android | [4] |
4,598,787 | 4,598,788 | android - how to store images into local database | <p>In my app, one issue is there. i.e, downloading the images from the web and these images are stored in the local db. i am new to this concept. i don't know how to store these images into the local database. please can anybody help me</p>
<p>thanks</p>
| android | [4] |
1,516,463 | 1,516,464 | Reduce multiple image size | <p>Edit
I am young programmer with ability to learn more, I am create public site, where user can upload many picture at a time, the code function successfully and insert into mysql. as I improved the code further by reduce the size of many uploaded picture at once, only a picture was uploaded into the folder and mysq... | php | [2] |
2,371,346 | 2,371,347 | are the parameters in a function executed sequentially? | <p>in C# if I have function that prints the two values it gets assumed its called print...
in the following case what is the output </p>
<pre><code>int i=0;
public int current_I(){return i;}
public int next_I(){return ++i;}
//---------
print(next_I(),current_I());
</code></pre>
<p>in other words can we know which fun... | c# | [0] |
1,647,496 | 1,647,497 | Does it make sense to use === for string comparison in JavaScript? | <p>While it's clear how using the <code>===</code> operator for e.g. numbers is useful (<code>0</code>, <code>null</code> and <code>undefined</code> all being falsy values, which can lead to confusion), I'm not sure if there are benefits to using <code>===</code> for string comparisons. </p>
<p>Some of my team mates u... | javascript | [3] |
3,335,806 | 3,335,807 | Dynamic Marquee in asp.net | <p>How I can create dynamic marquee in c#.net? That means I want to display announcements in home page, direction from top to bottom in allotted space, only two announcenets at a time, it should come dynamically.Thanks.</p>
| asp.net | [9] |
4,613,151 | 4,613,152 | is there any other way of creating an object without using "new" keyword in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/95419/what-are-all-the-different-ways-to-create-an-object-in-java">What are all the different ways to create an object in Java?</a> </p>
</blockquote>
<p>as we can create array object without using "new" keyword... | java | [1] |
2,721,250 | 2,721,251 | jQuery: How to modify form field before submit | <p>But without the ugly effect that the new value is displayed in the the form.</p>
<p>if i do:</p>
<pre><code>$('#submit_button').click(function(){
$('#field1').val('newval');
$('#form1').submit(); });
</code></pre>
<p>The #field1 will display (for a split second) the new value which is kind of ugly..</p>
| jquery | [5] |
226,824 | 226,825 | Regular expression for replacement operation | <p>Is there any regular expression that will replace everything except alphanumeric?
My attempt (not working)</p>
<pre><code>string str = "This is a string;;;; having;;; and It also 5555 777has dot (.) Many dots(.....)";
Regex rgx2 = new Regex("^[a-zA-Z0-9]+");
string result1 = rgx2.Replace(str, "");
</code></pre>
| c# | [0] |
5,382,693 | 5,382,694 | Reply to multiple clients using server | <p>Here is the server code i put this under the button click event. How can i do this program is closed after sending data with one client and restart or refresh again and connect with next client.</p>
<pre><code>string val;
Process[] pname = Process.GetProcessesByName("chrome");
if (pname.Length == 0)
{
MessageB... | c# | [0] |
689,535 | 689,536 | How to add serach bar in navigation bar for iPhone | <p>How to add serach bar in navigation bar for iPhone? right now I added to table view?</p>
| iphone | [8] |
3,910,858 | 3,910,859 | strange behavior in PHP temp var | <pre><code>foreach ($arr1 as $v){
...
}
foreach ($arr2 as $v){
...
}
</code></pre>
<p>then, the two <code>$v</code> will have some strange behavior. If i replace the second <code>$v</code> with <code>$v2</code>, then everything is ok.</p>
| php | [2] |
2,775,990 | 2,775,991 | Test if collections.Mapping is equal to other mapping, or dict | <p>I have written a custom mapping class that inherits from collections.Mapping. Is there an easy way to test if an instance's data is equal to another mapping object, e.g. a dict?</p>
| python | [7] |
2,138,018 | 2,138,019 | How to delay mouse hover time? | <p>I'm making an application in C#. Whenever I hover cursor on a button message should be displayed. Also if I hover for about 3 seconds again a message should be displayed that 'Your mouse has been hovering for 3 seconds' on button.</p>
| c# | [0] |
4,071,379 | 4,071,380 | Why should I use references to a base class, I can't understand the difference | <p>Can someone explain what is the main difference between those two part of code, and why or when I should use a reference to a base class, as for me it is the same thing.</p>
<pre><code>internal class MyBaseClass
{
public string Field = "Hello";
public void Print()
{
Console.WriteLine("This is t... | c# | [0] |
3,609,574 | 3,609,575 | Can you set the internal [[Class]] property of an ECMAScript object? | <p>Can you set <a href="http://ecma262-5.com/ELS5_HTML.htm#Section_8.6.2" rel="nofollow">the internal [[Class]] property</a> of an ECMAScript object?</p>
| javascript | [3] |
649,424 | 649,425 | Javascript object name usage issue.. i think | <p>So i'm setting up an object with private and public methods. Basically using the following format:</p>
<pre><code>var Utility = function() {
var prive1, priv2, priv3;
function privateMethod1() { //do something }
return {
publicFunc1: function() { //do something different }
publicFunc2: ... | javascript | [3] |
3,080,747 | 3,080,748 | C# DynamicMethod Could not load type | <p>I am trying to use DynamicMethod with a Type from another assembly. The assembly is loaded and I can use the Type perfectly fine. But when I try to use it in a DynamicMethod it throws an exception.</p>
<p>Could not load type 'TheClass' from assembly 'SomeModule, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null... | c# | [0] |
5,355,742 | 5,355,743 | Sorting Associative Array in Javascript | <p>I am new to this board have been fishing for info here for a long time and this is my first time posting here. I am in sort of a jam right now I have an array in javascript that looks like this. Each ID is accociated with a persons name</p>
<pre><code> Array
(
[230] => Smith, Marc-And... | javascript | [3] |
1,921,369 | 1,921,370 | saving an image from the browser issue | <p>I'm using code to print an image without showing the real path for it. But I have a problem when I want to save that image to my computer because its always show the PHP file name as the name for the image.</p>
<pre><code>$id = intval($_REQUEST["id"]);
$getimage = $db->query("select id,img from bbup where id='$i... | php | [2] |
2,055,003 | 2,055,004 | jquery form validate not allow space for username field? | <p>I have used <a href="http://bassistance.de/jquery-plugins/jquery-plugin-validation/">http://bassistance.de/jquery-plugins/jquery-plugin-validation/</a></p>
<p>my form validate :</p>
<pre><code>$("#form_person").validate({
rules: {
username: {
required: true,
minlength: 2,
... | jquery | [5] |
4,576,960 | 4,576,961 | Can i have two DispatcherTimer objects in the same WPF app? | <p>I have a WPF app and i need update to timers in asynchronous way, one timers updates system time and the oder one updates the duration of an item both do this on the user interface. I implemented this with two DispatcherTimer for each, but sometimes i got an ObjectDisposedException. I do not have any idea about what... | c# | [0] |
4,221,149 | 4,221,150 | call generic handler in aspx without jquery | <p>Can i call Generic handler in aspx without using jQuery?</p>
| javascript | [3] |
5,639,634 | 5,639,635 | Why some variables are parameters and others aren't? | <p>What could be the reason for having this:</p>
<pre><code>public function __construct($host, $port, $timeout = 5){
$errnum = 0;
$errstr = '';
</code></pre>
<p>Instead of this:</p>
<pre><code>public function __construct($host, $port, $errnum = 0, $errstr = '', $timeout = 5){
</code></pre>
<p>?</p>
<p>Why... | php | [2] |
2,630,407 | 2,630,408 | craft custom network packets | <p>i want to craft 802.11s packets on android to send some data to another mesh network.
Since this is not nativly supported, i would like to know if it is even possible on android e.g. to alter a 802.11 packet to a 802.11s packet.</p>
<p>Thanks in advance.</p>
| android | [4] |
2,898,394 | 2,898,395 | What is wrong with this Python code? | <p>Can anyone tell me what is wrong with this? I'm getting a syntax error after the 2nd quote on the <code>print</code> line... It seems like this should work perfectly fine. Thanks</p>
<pre><code>def main():
print "blah"
return
main()
</code></pre>
| python | [7] |
4,937,970 | 4,937,971 | How would i set two coordinates for two different words on screen? | <p>I want to set two different coordinates for two words.
Im using <code>COORD pos = {20,20}</code> for one word
i tried using </p>
<pre><code>COORD position = {10,10}
SetConsoleCursorPosition(screen, pos)
cout << "word A" << endl
SetConsoleCursorPosition(screen, position)
cout << "word B" <<... | c++ | [6] |
674,930 | 674,931 | What is the best way to pass a method (with parameters) to another method in python | <p>What's the best way to pass a method and a method parameter to another method?</p>
<p>Is there a better way to do the following?</p>
<pre><code>def method1(name)
return 'Hello ' + name
def method2(methodToCall, methodToCallParams, question):
greetings = methodToCall(methodToCallParams)
return greeting... | python | [7] |
3,459,077 | 3,459,078 | How to validate a string which contains at least one letter and one digit in javascript? | <p>No matter how many letter and digits. But string should contains both.</p>
<p>Jquery function <code>$('#sample1').alphanumeric()</code> will validate given string is alpha numeric or not. I want validation like it contains both.</p>
| javascript | [3] |
1,977,720 | 1,977,721 | Filter incoming calls in iPhone | <p>Hi folks
Is there any ways to filter incoming calls in iPhone. Suppose I am getting a call from unknown number then I want that this call will go to my voice mail.If calls from any of group within my address book then busy ringtone.etc....
Is this possible in iPhone programatically. Any help.</p>
<p>Thanks in Ad... | iphone | [8] |
3,686,754 | 3,686,755 | Regarding Map having an value of type arraylist | <p>I have an method that return array list in a class named abc, as shown below,</p>
<pre><code>public List<abcinfo> getobjectslists(String fileId)
{
//return array list
}
</code></pre>
<p>Now I need to access this the contents return by this method in different class named bgh , so I need to invok... | java | [1] |
3,524,953 | 3,524,954 | max marks validation | <p>i have some problem in javascript validation...
My requirement is user sholud enter value in text box less than 5
he sholud not allow to enter value which is more than 5
he can enter 4.25
3.10
he should not enter 5.1 how to restrict user not to do this..
what is code for this.on which event we sholud call it</p>
| javascript | [3] |
141,879 | 141,880 | adapter.notifyDataSetChange() doesnt update my adapter | <p>This is my code:</p>
<pre><code>public class ListasCompra extends ListActivity {
private ArrayList<Lista> listaCompras = null;
private ListaAdapter adaptador = null;
private static ListasCompra instancia = null;
private static Context context = null;
private Button aceptar = null;
private Button nueva = nu... | android | [4] |
3,752,931 | 3,752,932 | Cannot Implicitly Convert Type to system.net | <p>I am having an error in my program when trying to download files from a remote server, I am using the System.Net Lib and it is having an issue converting to it.</p>
<p>I am getting the error Message "Cannot implicitly convert type 'System.ComponentModel.AsyncCompletedEventHandler' to System.Net.DownloadProgressChan... | c# | [0] |
897,114 | 897,115 | Add a new folder when uploading files using php | <p>I want to automatically create a folder, using the users email address, if one does not already exists. This action should occur when they upload a file. </p>
<p>SOLVED. I updated this code for anyone who might need it. Thanks!</p>
<p>Here is my code: </p>
<pre><code>if(isset($_POST["checkFile"]) && $_FIL... | php | [2] |
2,321,086 | 2,321,087 | PHP: linked list implementation issue with reference to object? | <p>I am creating a linklist class and have some confusion about reference to objects.</p>
<p>As per my understanding by default object is copied by reference. $Obj1 = $Obj2. $Obj1 is a alias of $Obj2.</p>
<p>Can someone please point out which one is correct in linkedlist implementation.</p>
<pre><code>$firstNode->... | php | [2] |
741,238 | 741,239 | Show Dialler : Problems | <p>I have an edit text.. I need to restrict the edit text with numbers. So i gave </p>
<pre><code> EditText phoneNumber
phoneNumber.setKeyListener(DialerKeyListener.getInstance());
</code></pre>
<p>But in some phones..when i click the edit text 2 characters are shown in the dialler 'p' and </p>
| android | [4] |
1,299,941 | 1,299,942 | how can i add a regular item to spinner adapter? | <p>i have a spinner like this:</p>
<pre><code>spinner = (Spinner) findViewById(R.id.spin);
_spinDb = new SpinAdapter(this);
Cursor names = _spinDb.open().getAllSpin();
_adapter = new SimpleCursorAdapter(this,
android.R.layout.simple_spinner_item,
names,
... | android | [4] |
1,722,540 | 1,722,541 | Is const_cast(iterator->second) safe? | <p>I want to know if this code is safe and doesnt have any undefined behavior.</p>
<pre><code> QueueMap::const_iterator it = m_3playersQueue.find(s->m_GameCode);
if(it == m_3playersQueue.end())
{
std::deque<Session*> stack;
stack.push_back(s);
m_3playersQueue[s->m_GameCode] = stack;
... | c++ | [6] |
3,360,796 | 3,360,797 | Pascal's triangle | <p>I am looking for a Pascals triangle using python script</p>
<p>I have done till here and have no idea how to add on</p>
<pre><code>numstr= raw_input("please enter the height:")
height = int( )
tri = []
row1 = [1]
row2 = [1, 1]
tri.append(row1)
tri.append(row2)
while len(tri) < height:
</code></pre>
| python | [7] |
3,949,540 | 3,949,541 | how to create many point of people same this picture | <p>how to create many point of people same this picture.
<a href="http://news.cnet.com/i/bto/20090203/Google_Latitude_map.jpg" rel="nofollow">http://news.cnet.com/i/bto/20090203/Google_Latitude_map.jpg</a></p>
<p>I want to create application same google latitude.
I wonder to find friend poisition ???</p>
<p>I want th... | android | [4] |
2,590,235 | 2,590,236 | What are `true` and `false` and 'null'? | <p>Why aren't they key words? What are they?</p>
<pre><code>true, false, null
</code></pre>
<p><strong>Update Quick Answer</strong></p>
<p>These are reserved words but they are not keywords.</p>
<p>Small technical distinction verified by spec - ES3 and ES5</p>
| javascript | [3] |
328,425 | 328,426 | ReflectionTypeLoadException: Unable to load one or more of the requested types(LoaderExceptions) | <p>I have a problem with my application where I load a list of assemblies (Assembly.LoadFrom) from a path (\ \ RemoteServerDir ...) and when I try to retrieve all types of each assemblies i get errors when calling assembly.GetTypes () method.</p>
<p>The message that i have is "ReflectionTypeLoadException: Unable to lo... | c# | [0] |
5,445,284 | 5,445,285 | what's wrong with this function? | <pre><code> function get_ibo_id() {
if($registerquery = $this->conn->query("SELECT ibo_id FROM fasttrack WHERE count <
8 && flag = 1 ")){
$this->increase_count();
while ($row = $registerquery->fetch_assoc()) {
return $row[ibo_id];
}
}
... | php | [2] |
1,172,845 | 1,172,846 | handleMessage not called | <p>I have a thread that attempts to get the user location.</p>
<p>When the location is received "handler.sendMessage(msg)" is called, and it returns true, but handleMessage is never called.</p>
<p>There are no errors or warnings in logcat.</p>
<p>The code:</p>
<pre><code>public class LocationThread extends Thread i... | android | [4] |
4,420,286 | 4,420,287 | selectSingleNode not supported in Safari | <p><strong>Suggest me an alternative for selectSingleNode to support in safari browser when using XMLHttpRequest</strong></p>
<pre><code>var tempNode=xmlSoapTemplate.selectSingleNode(pathString+"xmlDatasets");
</code></pre>
<p>Just give me Syntax.</p>
| javascript | [3] |
2,442,354 | 2,442,355 | JQuery miniColors:How do I get multiple miniColor in a web page to work properly? | <p>How do I get multiple miniColor in a web page to work properly?If I change one value all the values change?It takes the class name to change the value?
<a href="http://abeautifulsite.net/blog/2011/02/jquery-minicolors-a-color-selector-for-input-controls/" rel="nofollow">http://abeautifulsite.net/blog/2011/02/jquery-... | jquery | [5] |
4,226,567 | 4,226,568 | how to force a locale to widget | <p>I am working on an android app, so far I have added setting for changing the locale, so that a user can have the locale in the app different than that one on the device, now all activities are working well but the widget still uses device's locale not that one set to the app.</p>
<p>Is there a way to force the wid... | android | [4] |
5,305,032 | 5,305,033 | Unable to create linebreak | <p>I have been trying to create line break in the body of the message but its not working. All the text in the body is coming in one line.</p>
<pre><code><?php
if ($_POST["email"]<>'') {
$ToEmail = 'demo@localhost.com';
$EmailSubject = 'Site contact form';
$header = "MIME-Version: 1.0" . "\r\n";
... | php | [2] |
3,453,700 | 3,453,701 | Get the value of a select box | <p>I have multiple dynamically set select boxes on my page (like over 100). I am trying to get the values of each box individually on change, but when the change takes place it iterates over every select box since they all have the same class. How can I get the values of each select box individually then do something..... | jquery | [5] |
1,949,179 | 1,949,180 | back back to listing in asp.net | <p>Hello Friends i have a repeater control on which i have binded product and have custom paging on in.when user select on product next page open with all other details of that product. My problem is that when i go to 7 page from paging and then click any product the next page open with details and i want a link on det... | asp.net | [9] |
1,527,757 | 1,527,758 | file_get_html multiple times in the same script | <p>I am using simple html dom parser. When I am requesting a page like <code>file_get_html()</code> I am getting 2 values. One is title and the other one is an url. Within this I want to do <code>file_get_html()</code> again.</p>
<p>But I am getting similar data for the second traverse.</p>
<p>Like this script : </p>... | php | [2] |
2,149,560 | 2,149,561 | strip tags python | <p>i want the following functionality.</p>
<pre><code>input : this is test <b> bold text </b> normal text
expected output: this is test normal text
</code></pre>
<p>i.e. remove the content of the specified tag</p>
| python | [7] |
1,290,517 | 1,290,518 | std::transform behavior when iterating past container.end() | <p>Code:</p>
<pre><code>static int counter = 0;
int add(int x) {
counter++;
return ++x;
}
int main() {
vector<int> b;
b.push_back(1);
b.push_back(1);
b.push_back(1);
transform(b.begin(),b.end(),b.begin()+2,add);
for (vector<int>::iterator it = b.begin(); it != b.end(); i... | c++ | [6] |
703,393 | 703,394 | Pause scrollTop on hover | <p>Still somewhat new at jQuery, I am using the following to automatically scroll a div with the class name of .scroller when the page loads.</p>
<pre><code>$(".scroller").delay(2000).animate({ scrollTop: $('.scroller')[0].scrollHeight}, 50000);
</code></pre>
<p>However I would like to stop any scrolling upon hover o... | jquery | [5] |
2,370,013 | 2,370,014 | Pandora like database, used for finding lyrics that fit a certain mood | <p>I'm pretty new at all this stuff, I can program in php and have a decent understanding of SQL. What i'm looking to do is tag music with certain quality's, mainly the emotion that the music brings out. The bigger the database I could build the better.</p>
<p>My idea is that people seem to like to post song lyrics ab... | php | [2] |
3,016,978 | 3,016,979 | Python: confusions with urljoin | <p>I am trying to form URLs from different pieces, and having trouble understanding the behavior of this method. For example:</p>
<pre><code>from urllib.parse import urljoin
>>> urljoin('some', 'thing')
'thing'
>>> urljoin('http://some', 'thing')
'http://some/thing'
>>> urljoin('http://some... | python | [7] |
891,967 | 891,968 | How to highlight words in html using jquery | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/119441/highlight-a-word-with-jquery">Highlight a word with jQuery</a> </p>
</blockquote>
<p>I want to highlight certain words in html <code><body></code> tag, but I want to avoid highlighting those which a... | jquery | [5] |
5,437,645 | 5,437,646 | Specify function to be called in jquery | <p>I have come across this snippet in the jquery post documentation and i am not sure what it does</p>
<pre><code>$.post("test.php", { "func": "getNameAndTime" },
function(data){
console.log(data.name); // John
console.log(data.time); // 2pm
}, "json");
</code></pre>
<p>My thinking is that test.php has a fun... | jquery | [5] |
4,345,508 | 4,345,509 | Using JRE -Xms300m cut my execution time in half? | <p>Greetings all, I was wondering if someone could provide some sort of explaination or confirm my guesses.</p>
<p>I had a program with a for loop which executed several hundred of thousand times, each time adding numbers to a selection of ArrayLists. Confused as to why it was taking so long to execute I investigated ... | java | [1] |
2,225,780 | 2,225,781 | ImageButton text | <p>Hi there i am trying to do "simple" thing and cant manage to work it out</p>
<p>.net,
in my site i have a nav menu each item in the menu is an image</p>
<p>(like here in the upper "menu" Questions..Tags..etc.. but the background color in my case is an image)</p>
<p>i want to load an image and dynamically add text... | asp.net | [9] |
4,126,650 | 4,126,651 | Can the time on a CountDownTimer be updated? | <p>The CountDownTimer default Constructor takes the values millisInFuture and countDownInterval.
If the user stops the timer, changes his settings to a different millisInFuture length, how would I go about changing the millisInFuture value without creating a new CountDownTimer object?</p>
<p>I've tried making a getMil... | android | [4] |
2,123,706 | 2,123,707 | UnboundLocalError: local variable 'a' referenced before assignment | <p>if execute the following code will show error message:</p>
<p><strong>UnboundLocalError: local variable 'a' referenced before assignment</strong></p>
<pre><code>a = 220.0
b = 4300.0
c = 230.0/4300.0
def fun():
while (c > a/b):
a = a + 1
print a/b
if __name__ == '__main__':
fun()
</code... | python | [7] |
1,035,646 | 1,035,647 | Dynamicly loading js files (during runtime) | <p>I have been able to implant the function to load the js files, but my problem is that it seems that I can only access my variables not my functions (in the object that I load). anyone got any ideas on why this is?</p>
| javascript | [3] |
2,467,107 | 2,467,108 | What is better way to compare class of two objects | <p>I can compare two different objects to know whether they belong to same class or different using both <code>==</code> operator and <code>equals</code> method also. But which one is the better approach and how? Have a look on both approach that i followed. What is better way to compare class of two objects</p>
<pre>... | java | [1] |
5,291,889 | 5,291,890 | what is the role of ob_start() in here | <pre><code>session_start();
ob_start();
$hasDB = false;
$server = 'localhost';
$user = 'user';
$pass = 'pass';
$db = 'acl_test';
$link = mysql_connect($server,$user,$pass);
if (!is_resource($link)) {
$hasDB = false;
die("Could not connect to the MySQL server at localhost.");
} else {
$hasDB = true;
... | php | [2] |
1,357,829 | 1,357,830 | Would like to use isset(empty($sc)) | <p>I want to use a combination of this <code>isset(empty($sc))</code> but am receiving this error </p>
<blockquote>
<p>Parse error: syntax error, unexpected T_EMPTY in /var/www/html/find.php on line 9</p>
</blockquote>
<p>When someone posts from the form, then the <code>$sc</code> should be checked if empty only if... | php | [2] |
4,137,679 | 4,137,680 | python program to sort numbers from smallest to biggest | <p>I need to make it so that the user inputs the numbers from smallest to biggest; and then the program compares the one that the user had input with the one that it has worked out, and says whether it is right or wrong. </p>
<p>This is what I tried:</p>
<pre><code>import random
def main():
i = random.randint(1,... | python | [7] |
1,644,267 | 1,644,268 | add caption text using javascript and php | <p>I'm trying to add some caption text to a div position, named </p>
<pre><code><div id="slidecaption"></div>
</code></pre>
<p>So in my js here is the code:</p>
<pre><code>slides : [ <?php
//query
query_posts(array('post_type'=>'slider',
'posts_pe... | javascript | [3] |
1,241,952 | 1,241,953 | What does \u003C mean? | <p>I'm looking at twitter's javascript file, and I see this in the templates hash:</p>
<pre><code>Browse Interests{{/i}}\u003C/a\u003E\n \u003C/li\u003E\n {{#logged_in}}\n
</code></pre>
<p>What do those codes represent?</p>
| javascript | [3] |
5,972,218 | 5,972,219 | std::ostringstream woes | <p>I can do</p>
<pre><code>std::ostringstream oss;
oss << 1;
oss.str();
</code></pre>
<p>so why can't I do:</p>
<pre><code>((std::ostringstream()) << 1).str() ?
</code></pre>
<p>Thanks!</p>
| c++ | [6] |
1,451,271 | 1,451,272 | JavaScript to add table row onclick events | <p>I'm new to Javascript. I want to add onclick events to table rows. I'm not using JQuery.</p>
<p>I loop thru the rows and use a closure to make sure I have the state of the outer function for each row.
The looping works. Using alerts, I see the function being assigned for each iteration. But when I click the row, no... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.