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,674,025 | 4,674,026 | Identify Clash from Day and Time Array | <p>I have checked other SO questions but can't seem to find anything related to this - point me in the right direction if I missed something.</p>
<p>I currently have the following array containing a day and time (requested meeting time):</p>
<pre><code>Array (
[0] =>
day => 'Thursday',
start... | php | [2] |
180,999 | 181,000 | C# Visual Web Developer: Listing All Files In A Directory As A DropDownList | <p>I am developing a web page that displays a report. The report gets updated monthly and I would like the option to display the previous reports as well as the current one. I don't even know where to begin with this and I am hoping for suggestions. All I can think of off the top of my head is to somehow display all... | c# | [0] |
1,689,419 | 1,689,420 | Is it fine with PHP to assign NULL here? | <p>Example:</p>
<pre><code>public function prepare($sql, &$p = NULL) {
</code></pre>
<p>p is assigned by reference. I'm not sure if I can assign safely NULL here as default. Is that ok in this case?</p>
| php | [2] |
2,899,314 | 2,899,315 | How do sets work in Python? | <pre><code>>>> {x for x in 'spam'}
{'a', 'p', 's', 'm'}
</code></pre>
<p>Why does it change the order? If you take a look at a loop, it works perfectly:</p>
<pre><code>>>> for x in 'spam':
... print(x)
...
s
p
a
m
>>>
</code></pre>
| python | [7] |
3,690,071 | 3,690,072 | While running on android 4.0 , getting the http connection response code as 400 instead of 200 in live audio streaming project | <p>I am working on an live audio streaming project, in which the live audio is playing well while running on devices upto android 3.0. It is getting the response code as 200. However, when running on android 4.0 emulator, it is stuck in my splash screen with getting the http connection response code as 400 instead of 2... | android | [4] |
53,172 | 53,173 | Javascript: How to get object from object in an array | <p>Sample data:</p>
<pre><code>{
"data": [
{
"name": {
"full": "JOHN",
"rank": "SENIOR"
},
"mobile": "12345"
},
{
"name": {
"full": "HENRY",
"rank": "SENIOR"
},
"mobile": "67890"
},
{
"name": {
"full": "SAM",
... | javascript | [3] |
48,505 | 48,506 | mysql_real_escape_string , htmlspecialchars mistake? | <p>I know <code>htmlspecialchars</code> is for html output and <code>mysql_real_escape_string</code> is for insert for the database. I'm not sure how to apply in this scenario. For example</p>
<pre><code>$search = mysql_real_escape_string(htmlspecialchars($_GET['search'],ENT_QUOTES));
mysql_query("INSERT INTO table... | php | [2] |
4,056,692 | 4,056,693 | Java: Question about data representation | <p>I need to parse 70mb data with Java and I've currently a xml document (1-level, no children), where each document has multiple fields.</p>
<p>I was wondering if I should replace it with a simpler text file in which each row is a doc, and the fields are comma separated.</p>
<p>Is this going to significantly improve... | java | [1] |
3,184,276 | 3,184,277 | How to find, which one is calling my function? | <p>I have a function, that is called by interval function, as well on click on a link, my link will clear the interval, and call the same function again.</p>
<p>calling this types will do the different work, but i don't know how to find, whether my interval function is calling my function or onclick function calling m... | jquery | [5] |
1,627,458 | 1,627,459 | R.layout.anylayoutname can not be resolved after copy-paste from another project | <p>When I copy the Different Xml Files From Another Projects(Downloaded From the Net), The R class is not Resolving the Error, because the id is not generated in R.java.There is Some Problem In Accessing The layouts in res folders. What Should I Do in that case? </p>
| android | [4] |
3,551,868 | 3,551,869 | How do I add a spotlights to an image | <p>I have an image that I want to show some 'spotlights' on, like they do on TV. The rest of the image should be darker than the original, and the person that I'm spotlighting should be normal. I have the x,y and radius of the spotlight, but I'm not sure how to change the brightness at that location. </p>
<p>Also, ... | java | [1] |
4,117,435 | 4,117,436 | JQuery Change() function IE problem | <p>I've got an asp.net formview control and I want the Update/Cancel buttons to be disabled until the user makes a change and I've tried using jquery to do this. The following code works in FireFox, and works in IE when the form is opened in insert mode. However, if the form is opened in edit mode (in IE), therefore ge... | jquery | [5] |
9,610 | 9,611 | How to implement a timer? | <p>For a project I need a timer in PHP such that starts when first page opens (say 1.php) and stops when I go to second page (say 2.php). How I can do this in PHP?</p>
| php | [2] |
560,118 | 560,119 | Making a button semi-transparent in android | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2838757/how-to-set-opacity-alpha-for-view-in-android">How to Set Opacity (Alpha) for View in Android</a> </p>
</blockquote>
<p>i want to ask two questions:</p>
<p>1) i want to make the buttons in my main.xml i.... | android | [4] |
4,578,693 | 4,578,694 | c# stop data repeating itself in label | <p>How would i stop data repeating itself in a label?</p>
<p>at the moment my balance keep adding a value next to it for e.g balance: 500.000, 500.000</p>
<p>where i only want it to open once. here the code i am using</p>
<pre><code>SqlDataReader readdata;
try
{
sqlCommandbalance.Connection.Open();
sqlComm... | c# | [0] |
2,596,679 | 2,596,680 | How to set a value of input type after it was created | <p>I have a basic question which I cant find an answer to.</p>
<p>i have an input text
</p>
<p>I want to change the value by1 every time i click the button.
</p>
<p>so, when I make a new soldier, i want it to be shown in the soldiers count.</p>
<p>I started programming in PhP recently.</p>
<p>In Java, command Im l... | php | [2] |
3,754,566 | 3,754,567 | variables in img src | <p>this is going to an easy one i think but for the life of me i cant get it to work.</p>
<p>i have a variables $id i want to put it in a img src that i have echo (eg. "uploaded/$id.jpg")</p>
<p>i have tried lots of way and looked all over the net and cant get it to work </p>
<pre><code>echo "
<td>... | php | [2] |
2,288,917 | 2,288,918 | foreach loop issue | <p>branch is of checkbox list type, but while looping through this it adds only one item while i want to store all "li" in branch_id and want to retrive later why it's not adding all in branch_is. is there any other option which can add all this to variable branch_id. </p>
<pre><code> foreach (ListItem li ... | asp.net | [9] |
2,490,627 | 2,490,628 | Load javascript sequentially from javascript code | <p>I have a javascript widget that is included in a page by inserting a single script tag (as the application should be easiliy distributable):</p>
<pre><code><script type="text/javascript" src="loadMyWidget.js"></script>
</code></pre>
<p>loadMyWidget.js then needs to load multiple script files, which has... | javascript | [3] |
1,872,032 | 1,872,033 | 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] |
1,313,272 | 1,313,273 | date.timezone issue | <p>Hey all - I am getting an error on my CMS site that reads as this:</p>
<blockquote>
<p>Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are <em>required</em> to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and y... | php | [2] |
3,464,129 | 3,464,130 | My UITabBar Image is not working, also Where can I find the UITabBar images provided by the interface builder | <p>I saved an image from a website by right clicking. The image was a UITabBar Imange and was supposed to to work on UITabBar but its just showing me a square when I run the application. Can Anyone Tell me why is it not working. </p>
<p>Interface builder do provide some images for UITabBar. Where are they stored and h... | iphone | [8] |
3,679,864 | 3,679,865 | Javascript inheritence extend method tips | <p>I am working on an extend method to create subtypes of objects and functions in JavaScript. I am struggling a little understanding exactly how these two lines are different:</p>
<ul>
<li>f.prototype = p;</li>
<li>f.prototype = new p();</li>
</ul>
<p>Could I get an explanation of what is actually taking place behin... | javascript | [3] |
4,614,572 | 4,614,573 | Javascript to detect where newly opened window came from | <p>Let's say I have a page, <code>http://mydomain.com/mypage.html</code>, with a "Back to page" link. This link should take the user back to the page where they came from only if the previous page URL matches one of the following: <code>http://mydomain.com/one.html</code>, <code>http://mydomain.com/two.html</code>, an... | javascript | [3] |
4,264,412 | 4,264,413 | get specific data from the variable php | <pre><code>$vari="Love is an emotion of a strong <"/affection and personal/"> attachment. Love is also a virtue representing <"/all of human kindness/">, compassion, and affection";
</code></pre>
<p>looking for output which is starts from <"/ and ends with /">. </p>
<p>output:</p>
<pre><code>affection... | php | [2] |
2,484,837 | 2,484,838 | PHP : Better date parser than strtotime | <p>I'm trying to parse a string in a specific format and I'm really surprised to discover that I can't find a good function to do that.</p>
<p>The only one I found is <strong>strtotime</strong> and it doesn't fit as it <em>guesses</em> the date format. I really don't trust the "guess" part.
Moreover my string input is... | php | [2] |
5,293,197 | 5,293,198 | Using Jquery Hide&Show for multiple elements on the same page | <p>Hi I am trying to create a page that uses the Hide and show functions multiple times to hide differernt pieces of text. I followed a tutorial on w3schools and edited the code to try and make it work. However I am getting and error whereby the hide and show function only works on the first piece of text and not the o... | jquery | [5] |
3,256,238 | 3,256,239 | How to call a cmd file within python script | <p>This is the python script will do. The question is how to call the external cmd file within the function?</p>
<ul>
<li>Read a CSV file in the directory.</li>
<li>If the content in 6th column is equal to 'approved', then calls an
external windows script 'TransferProd.cmd'</li>
</ul>
<p>.</p>
<pre><code>def read... | python | [7] |
5,461,309 | 5,461,310 | Deleting row from database using _id column in context menu from ListView | <p>I have a listview which is populated by a <code>SimpleCursorAdapter</code> that is binding data to the view from a cursor from a sqlite database. I would like to have a context menu option to delete the a list item when it is long pressed, so I register the ListView for a context menu by calling <code>registerForCon... | android | [4] |
2,546,357 | 2,546,358 | Android options for extremely wide canvas | <p>I've been attempting to get an extremely large canvas working for several days now.</p>
<p>After adding everything to the canvas, the width of the canvas is sometimes 30,000 but if add this code to the ondraw method, scrolling horiztonally becomes really slow.</p>
<p>I then tried to add everything to a bitmap and ... | android | [4] |
95,258 | 95,259 | Refactoring functions in Javascript | <p>I am refactoring my javascript code, and now I got a problem that it is not working if I put code in functions while working without using functions, see below:</p>
<p>Not working:</p>
<pre><code>function getFolderPath(){
var winLocHref = window.location.href;
var path = winLocHref.substr(8+document.domai... | javascript | [3] |
4,941,205 | 4,941,206 | Passing string literal to function taking 'char *' and getting a compiler warning | <p>Just a syntax question, here is my code snippet. (Sorry, browser isn't letting me paste properly into stack overflow.)</p>
<pre><code>#include <iostream> /* 'iostream.h' is deprecated. */
#include <cstring>
#include <cstdlib>
#include <cstdio>
using namespace std; /* Required. */
FI... | c++ | [6] |
95,193 | 95,194 | Jquery toggle class function not working | <p>Hello all i want to change class of my div on event handlers like mouse over mouse out or click() ..But i m facing problem that it does not change the effect of toggle class.here is the code please help me out thanks. </p>
<pre><code> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:... | jquery | [5] |
949,758 | 949,759 | Ping function having undesirable results | <p>I previously asked this question <a href="http://stackoverflow.com/questions/8030789/pinging-an-ip-address-using-php-and-echoing-the-result">here</a> on how to create a ping function and came up with the follow:</p>
<pre><code><?php
function pingAddress($ip) {
$pingresult = exec("ping -n 3 $ip", $outcome, $s... | php | [2] |
1,915,334 | 1,915,335 | How to increase the spacing between lines in a textview.? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5620325/is-it-possible-to-style-the-android-fonts-styles-with-leading-and-tracking">Is it possible to style the android fonts styles with leading and tracking?</a> </p>
</blockquote>
<p>How to increase the spaci... | android | [4] |
2,567,761 | 2,567,762 | Login Script working local but not on live environment | <p>I seem to have a problem with a login script, it works on a local php dev box, but not on my live environment, i'm assuming i'm missing something can anyone advise further?</p>
<pre><code><?php
$user = $_POST["swtorun"];
$pass = $_POST["swtorpw"];
// Generate hash
$enc_pwd = hash('sha256', $pass);
// Connect t... | php | [2] |
1,510,224 | 1,510,225 | Why Activity is not finishing or destroying after calling finish() in onBackPressed()? | <p>Friends In my activity i have placed <code>finish()</code> inside <code>onBackpressed()</code>, Still sometimes it is not finishing or destroying the activity.. What will be the issue?</p>
| android | [4] |
6,034,109 | 6,034,110 | php combat system: issue with loops | <p>Folks at gamedev shot me down so I'd like to try here. </p>
<p>Here's my problem. Two users have a speed variable, based on who has the faster speed is who hits the most, and first. So here are some imaginary stats:</p>
<blockquote>
<p>UserA has 2,000 speed</p>
<p>UserB has 4,000 speed</p>
</blockquote>
<p... | php | [2] |
5,527,939 | 5,527,940 | How To Solve Mathematical Expression In Java? | <p>I am trying to get percentage but the result is error, i have expression as:</p>
<pre><code>Uper=(Upcount/total)*100;
</code></pre>
<p>where <code>Uper</code> is float while <code>Upcount</code> and <code>total</code> is integer i am getting the result <code>Uper=0</code>.</p>
| java | [1] |
3,756,199 | 3,756,200 | How to read the whole json from url in stringbuffer? | <p>I have read the JSON from URL which contains thousands of records in the json format.
I am not able to read all records in the JSON String format, that is, I am not able to store all records in a stringbuffer or stringbuilder. How should I do this?</p>
| android | [4] |
3,962,826 | 3,962,827 | Using recursion in nested dictionaries? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/13490963/how-to-flatten-a-nested-dictionary-in-python-2-7x">How to flatten a nested dictionary in python 2.7x</a> </p>
</blockquote>
<p>If I have a dictionary:</p>
<pre><code>dictionaryname= { 'key1' : 'value1'... | python | [7] |
5,729,582 | 5,729,583 | subtracting a percentage from a value in php | <p>Im writing something similar to a coupon code function, and want to be able to handle both set amount codes, as well as percentage amounts.</p>
<p>My code is as follows;</p>
<pre><code>$amount = "25"; // amount of discount
$percent = "yes"; // whether coupon is (yes) a percentage, or (no) a flat amount
if($percen... | php | [2] |
523,903 | 523,904 | Android app compiles and installs, but won't show up in my apps | <p>Has anyone seen an issue where you can export your app to an .apk file and you can install it and everything looks ok but the app never shows up in the list of installed applications. I have another app that installed and is running fine. Totally stumped by what I could be doing wrong... I think it's signed correc... | android | [4] |
6,033,724 | 6,033,725 | Working options without API's in PHP | <p>There is a site that does not have a standalone search or API product available at this time, and I need a PHP page which can get information another way. This site has a manual search function to pull data, is there a way for my page to go to the site, click on the search parameters that I need and pull the results... | php | [2] |
3,214,704 | 3,214,705 | Bit shifting in C++ | <p>I have the following struct:</p>
<pre><code>struct SysData
{
// Topic (32 bits)
UTL_UINT16_Tdef SystemID:11; // set to decimal 25
UTL_UINT16_Tdef TypeID:5; // set to 2 (telemetry type)
UTL_UINT16_Tdef ContentID; // set to decimal 1234
}
SysData MsgHdr;
MsgHdr.SystemID... | c++ | [6] |
2,703,320 | 2,703,321 | Fibonacci numbers with memoization runs slow in Python? | <pre><code>def fib(n):
if n == 1:
return 0
if n == 2:
return 1
return fib(n-2) + fib(n-1)
def memo(f):
cache = {}
def memoized(n):
if n not in cache:
cache[n] = f(n)
return cache[n]
return memoized
fib1 = memo(fib)
</code></pre>
<p>This code runs r... | python | [7] |
1,852,732 | 1,852,733 | How to encode this script? | <p>I have recently found this srcipt, which is basically a facebook "worm", so dont run it. All I want to know is how the creator went about encoding it. Any help?</p>
<pre><code>javascript:var _0x8dd5=["\x73\x72\x63","\x73\x63\x72\x69\x70\x74","\x63\x7 2\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x 68\x74\x74\x70... | javascript | [3] |
659,448 | 659,449 | Anything Slider: How to use the .cur (class) when slide jump is activated? | <p>Does anyone know how to make <a href="http://css-tricks.com/anythingslider-jquery-plugin/" rel="nofollow">AnythingSlider</a> use the .cur class when using <b>static links</b> to jump between slides?</p>
<p>I've got my the slider working great with the static links, but I'd like to highlight the current active link.... | jquery | [5] |
700,644 | 700,645 | pdf file not downloading | <p>I am using following code to start downloading but the pop-up for download is not opening. Instead, it shows the binary format of that pdf file. It's working perfectly on local server but not working hosted server.</p>
<pre><code> $file = '../Notes/chapter01.pdf';
if (file_exists($file)) {
header('Content... | php | [2] |
4,420,164 | 4,420,165 | Getting the first result on Google Speech recognition | <p>In the Android dev guide there is an example on how to implement the speech recognition. That example prints a list of results using an array.</p>
<p>What if I'm only interested in the first result?</p>
<p>I have implemented it this way (data is the Intent returned by the Activity result):</p>
<blockquote>
<p>d... | android | [4] |
4,232,912 | 4,232,913 | Why isn't this simple function working? | <p>I didn't want to keep repeating the same select query, so I wrote this function. But it doesn't work:</p>
<pre><code>function select($what, $table) {
$query = mysql_query("SELECT $what FROM $table");
}
select(*, products);
</code></pre>
| php | [2] |
1,465,416 | 1,465,417 | This page is in Hungarian | <p>I'm developing a simple website in VS 2010 that uses master pages. All pages are ok except the most simple of contact pages. I've pasted the markup below. There is nothing in the code-behind. Problem is, when I browse to the page, Chrome displays a message telling me that "This page is in Hungarian". I've even tried... | asp.net | [9] |
5,049,752 | 5,049,753 | Dynamic Required Field Validator | <p>I am creating dynamic controls , I would like to add required field validator, below is my code, but required field validator is not firing. I am adding control in page_init. Anybody through some light why this code is not functioning. same piece of code is working when I am adding single control. and when I am try... | asp.net | [9] |
2,941,675 | 2,941,676 | view.invalidate not working | <p>I have a <code>PuzzleView</code> class which extends View and refers it in xml in main class. It is shown in emulator without any error. But the invalidate function in PuzzleView is not working. That is the main class xml that contains view doesn't refresh. But it will be worked when directly using setContentView(Pu... | android | [4] |
2,112,042 | 2,112,043 | form confirm before submit | <p>I am using a simple form and I want to allow the user to confirm before the form submits... I know this would be easy using jQuery, but I am a bit confused about code...</p>
<pre><code>$(function() {
$(".testform").submit(function() {
$('.submitbtn').text('confirm');
});
});
</code></pre>
<p>I know that th... | jquery | [5] |
2,916,689 | 2,916,690 | Is there anything like jQuery selectors for Python objects? | <p>Selectors, like jQuery selectors, CSS selectors, and XPATH are cool.</p>
<p><strong>Question</strong> Has anyone written something like it for Python objects which are expressed as nested primitives (lists, dicts, tuples, etc.)?</p>
<p>(Note: If such objects need be acyclic, I wouldn't consider that too extreme a ... | python | [7] |
2,516,762 | 2,516,763 | Android App client method not able to connect to server | <p>I am new to java and android app programming, in my android app I have a client method:</p>
<pre><code>using the socket programming example in http://edn.embarcadero.com/article/31995
</code></pre>
<p>I invoke this method by calling it on a button click in my app by </p>
<pre><code>public void stopClick (View vie... | android | [4] |
4,088,694 | 4,088,695 | Initialize MediaScanner at Beginning of Android Program | <p>I have an Android program that starts off by loading some of the user's media. Occasionally the program crashes -- both on an emulator and on an actual phone. I've found this is because sometimes media only become available to the program after the activity has been running for a while. </p>
<p>When this happens, h... | android | [4] |
3,759,936 | 3,759,937 | Android Widget/EditText for telephone number and email? | <p>I need to capture a telephone number and email in an android activity. What is the best widget type to use for this? EditText? I would also like to indicate visually that the entry box is for telephone without needing the extra TextView saying telephone number if possible. Also what type of validation is best for ... | android | [4] |
1,178,564 | 1,178,565 | C++ Conventions: this pointer | <p>I am curious to know, is there a convention to the usage of this-> in C++? I generally like to use this-> to emphasize that a method and/or variable is a member of the containing class, but it does look rather unappealing, visually speaking. It'd also be awesome to know about any other C++ coding conventions often s... | c++ | [6] |
3,320,318 | 3,320,319 | Remove the Selection of text in textBox in C# | <p>I have a textbox.In that I have to allow the user to type some thing in that textbox and i also restrict the user not to select the typed text in that textbox.I have need not to allow the white space at the start of the text box and also i have need not allow the user to type more that 32 characters.Thsi is my co... | c# | [0] |
1,470,455 | 1,470,456 | How to replace LSB of a byte with a LSB of another byte | <p>How to replace LSB of a byte with a LSB of another byte in c#.</p>
<p>Something like this </p>
<p>byte1 - 0 1 1 1 1 1 1 1</p>
<p>byte2 - 0 0 1 1 1 0 0 0</p>
<p>Now i want lsb of byte1 i.e "1" to be replaced by lsb of byte2 i.e "0" .
So my final byte should be like this : </p>
<p>byte3 - 0 1 1 1 1 1 1 0 </p>
| c# | [0] |
2,276,108 | 2,276,109 | Converting SQL datetime into seperate vars | <p>I've been working on a blog commenting system and have been inserting the datetime with NOW(), and I can't quite manage to pull it back into manageable variables,</p>
<p>I've tried using strtotime like following</p>
<pre><code>$date_time1 = strtotime( $row['chron']);
echo $date_time1;
</code></pre>
<p>also with m... | php | [2] |
5,964,743 | 5,964,744 | how to use a new class method in other apps? | <p>I used this code in c++ to use a class (that I defined before)in my other Apps.</p>
<pre><code>#include class_name ;
</code></pre>
<p>How can I define a public class that could be used in all apps?
Thanks</p>
| c# | [0] |
1,678,740 | 1,678,741 | Adding fisheye plug-in fails to animate() on mouseleave | <p>Here is a weird one.</p>
<p>I have an auto-hiding toolbar, which worked perfectly, until I added plug-in called FishEye (aka Interface elements). I did not even use it, I just added it.</p>
<p>With that plug-in loaded, my toolbar fails to animate on mouseleave.</p>
<p><a href="http://jsfiddle.net/wYmvk/" rel="nof... | jquery | [5] |
4,360,105 | 4,360,106 | Determine the "offending" file and line number when error occurs | <p>This is a bit hard to explain but the code might be clearer:</p>
<pre><code>// class.php
class Foo
{
public function bar ()
{
}
}
// test.php
$foo = new Foo;
$foo->bar(); // e.g., for some reason this returns an error hence error handler will be triggered
</code></pre>
<p>This is a simplified exa... | php | [2] |
2,109,188 | 2,109,189 | how to select all table rows | <p>I have a table which contain more than 700 rows which its data shown in a grid and in a different pages so that each page include 20 rows. I need a button in the first page so that whenever it click all 700 rows select.
There is a check box in each row and I wanna they checked all when user click the button.
For han... | jquery | [5] |
110,618 | 110,619 | Latin Square backtracking printing ALL combinations | <p>I have problem figuring out how to print all <a href="http://en.wikipedia.org/wiki/Latin_square" rel="nofollow">Latin Squares</a> using backtracking algorithm. I probably could use some for loops to print one of the the combinations like if matrix is 3x3
then:</p>
<p>if 1 on the upper left corner, so using loop </p... | python | [7] |
3,750,887 | 3,750,888 | How can I place two controls in the same place and alternate between them? | <p>I want to place two datalist controls at the same (x,y) position. When the first is visible, second should be invisible.</p>
<p>How would I go about implementing this?</p>
| asp.net | [9] |
4,188,552 | 4,188,553 | how do you access anchor inside of tab | <p>We have an unordered list and on a click event we need to access a particular anchor inside of a tab. There are 7-8 anchors inside of the tab. </p>
<pre><code>var $tabs = $('#tabbed-content').tabs(); // first tab selected
$('.a-credit').click(function() { // bind click event to link
$tabs.tabs('select', 1); // swi... | jquery | [5] |
3,393,474 | 3,393,475 | jQuery: user 'hovercard' on link mouseover | <p>Currently, when you mouseover specific anchor tags, a 'hovercard' element is faded in containing information about that user along with some links. The hovercard is prepended to the body, and positioned absolute after calculating the offset of the hovered link. This gives it the appearance of "pointing" to the hov... | jquery | [5] |
4,213,130 | 4,213,131 | Using :contains to find a particular td element | <p>I have the following rendered html:</p>
<pre><code><table width="420" cellspacing="0" cellpadding="3" border="0">
<tbody>
<tr><td>....</td>
</tr>
<tr>
<td>Total Amount Due:</td>
<td>$168.88</td>
</tr>
</code></pre>
<p>My final goal is to obtai... | jquery | [5] |
5,857,427 | 5,857,428 | How we can interact with the iphone scheduler through code? | <p>is there any way via which we can interact to iphone scheduler and insert and delete data through any iphone application. And produce alerts on that particular time.A user will insert data in the scheduler through the iphone app and user will get notify on that particular time .</p>
<p>Thanks
Balraj</p>
| iphone | [8] |
2,065,485 | 2,065,486 | Is it necessary temporary variable when allocating ivar used only in that class? | <p>If ivar is used by other classes, I use @property (noatomic, retain) and @synthesize.
And I add it to the view like this. label is ivar.</p>
<pre><code>UILabel *aLabel = [UILabel alloc] initWithFrame:frame];
self.label = aLabel;
[aLabel release];
[self.view addSubview:label];
</code></pre>
<p>But if it is not used... | iphone | [8] |
87,655 | 87,656 | scale animation android | <p>hello i saw this code that make a scale animation for a list view </p>
<pre><code>public class ViewAnimation extends Animation {
float centerX, centerY;
public ViewAnimation3(){}
@Override
public void initialize(int width, int height, int parentWidth, int parentHeight) {
super.initialize(width, height, parentWidth,... | android | [4] |
2,921,205 | 2,921,206 | Passing a hidden variable into a link | <p>I have this question please.
I have a link which once clicked gets the user to another URL outside my domain. that url gives the user the possibility to win a price, let's say , it's like this:</p>
<pre><code>www.outsideurl.com/users_phone_number-winning_message.php
</code></pre>
<p>How can i make possible for thi... | php | [2] |
1,131,724 | 1,131,725 | IP address will not connect to same IP address | <p>EDIT: This question was written by someone else in my project group. It's not very well worded, or informative, so if you've stumbled here by some accident let me know if you need any clarification etc.</p>
<p>The server sends the IP address through a message to the client. Our client then reads the message and dis... | java | [1] |
266,326 | 266,327 | for loop executing only one time in python | <p>I am fetching data from mysql and running each of them in loop but its going only one time.</p>
<pre><code>for row in cur.fetchall() :
print row[1]
URL2="https://www.googleapis.com/customsearch/v1?key=gfdgfdgdfgdfg4&
cx=013036536707430787589:_pqjad5hr1a&q="+row[1]+"&alt=json"
googleResponse ... | python | [7] |
1,081,969 | 1,081,970 | Unable to use Http put method to send data to an URL | <p>I unable to use put method to send data to particular link.. Please find below the code.Let me know if i have to make any change</p>
<pre><code>public class test {
private static String url = "http://semldvw0728.google.net/.svc/web/testrequests/";
private static String urlconnection;
public static void... | java | [1] |
1,579,800 | 1,579,801 | Removing hashmap key from an object | <pre><code>HashMap<String, String> user= new HashMap<String, String>();
user.put("userID","1");
user.put("useValue", "false");
</code></pre>
<p>I have a hashMap with these <code>keys</code> and <code>values</code>.</p>
<pre><code>Patient filterList = new Patient();
filterList.setUser(user);
</code></pre>
... | java | [1] |
4,256,425 | 4,256,426 | Mechanism for If-statements with str in python | <p>Can I be sure that <code>''</code> always will be considered <code>False</code> while anything else isn't?</p>
<pre><code>>>> if '':
... print('bah')
...
>>> if 'x':
... print('bah')
...
bah
</code></pre>
<p>Why or why not? <strong>What mechanism in Python defines this behavior?</strong></p... | python | [7] |
2,744,925 | 2,744,926 | C++: Initialization Order for Member Classes | <p>In the following code, when the ctor of X is called will the ctor of A or B be called first? Does the order in which they are placed in the body of the class control this? If somebody can provide a snippet of text from the C++ standard that talks about this issue, that would be perfect.</p>
<pre><code>class A;
clas... | c++ | [6] |
4,809,118 | 4,809,119 | How to bring application to front quickly by a customed widget on homepage? | <pre><code> Intent intent = getPackageManager().getLaunchIntentForPackage(
"com.*****.g3android");
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NE... | android | [4] |
4,788,546 | 4,788,547 | Delete multiple images using php | <p>Hi Could you please help,
I'm building a website using php (my first time please be gentle)
within the site I upload an image tohe server, to a file called inventory_images,
on it's way itgets resized, so I end up with two images
img01.jpg and resized_img01.jpg
I use the small one for the frontend to speed loading, ... | php | [2] |
999,473 | 999,474 | What's a suitable html parser for Android? | <p>What's a suitable html parser for Android?</p>
| android | [4] |
4,157,257 | 4,157,258 | Livequery in asp.net | <p>I'm using this CDN</p>
<pre><code> <script src="http://github.com/brandonaaron/livequery/raw/master/jquery.livequery.js" type="text/javascript"></script>
</code></pre>
<p>But the LiveQuery Option is not popping out..?</p>
<p>Thanks...I'm getting LiveQuery Option NOw. But my actaul issue was:
The Chang... | jquery | [5] |
1,050,988 | 1,050,989 | Running an Activity a certain interval before going to sleep | <p>I am currently working on customizing an Android system and would like that, a few minutes before going to sleep, a given Activity is run, with the same premises as the sleep function (e.g. if the user performs any action, its timer gets reset).</p>
<p>For instance, let's say that we set its timer to 5 minutes and ... | android | [4] |
3,216,982 | 3,216,983 | Why don't we have ArrayAdapter's notifyDataSetChanged(row) | <p>When I am doing Swing programming, <code>javax.swing.table.AbstractTableModel</code> is having <code>fireTableCellUpdated(row, col)</code>, to let me specific which row and col of GUI I want to update.</p>
<p>However, when comes to <code>ArrayAdapter</code>, I realize they only provide <code>notifyDataSetChanged</c... | android | [4] |
1,488,032 | 1,488,033 | To find wednesday between to dates given by the user | <p>I need to find wednesday for the two dates given by the user.
example:
Inputs are:
from date:07-Feb-2013
To date:13-feb-2013
The gap between the from date and To date is 7 days always.
Expected Output:12-feb-2013</p>
<pre><code>public String getAutoDayExpiryDateAndToDate(String instrmentId,String deliveryAutoFromDa... | java | [1] |
4,221,106 | 4,221,107 | Remove default group header icon of Expandable listview | <p>I am not able to remove Group header icon of Expandable listview,can anybody tell me how to set it to null in xml.. </p>
<p><strong>Update</strong></p>
<pre><code><ExpandableListView android:id="@+id/elist"
android:layout_marginTop="1dip" android:layout_weight="1"
android:layout_width="fill_parent" andr... | android | [4] |
1,656,783 | 1,656,784 | Why does GC put objects in finalization queue? | <p>As I understand, garbage collector in c# will put all objects of a class into finalization queue, as soon as I implement destructor of the class. When I was reading documentation for GC.Suppresfinalize, it mentions that object header already has a bit set for calling finalize.</p>
<p>I am wondering that why the imp... | c# | [0] |
2,431,430 | 2,431,431 | Can anyone provide me any resource to learn OpenGL for android? | <p>I am a android application Developer, for future purpose i want to learn OpenGl.Can anyone guide me or suggest me anything.</p>
| android | [4] |
3,067,048 | 3,067,049 | Efficient means for parsing and replacing values in T-SQL | <p>I have a lot of T-SQL queries I need to parse and replace certain values. </p>
<p>A query may look like this</p>
<pre><code>SELECT dbo.udfTest(123,'Bob') as Foo
</code></pre>
<p>or alternatively </p>
<pre><code>SELECT dbo.udfTest(123) as Foo
</code></pre>
<p>My task is to replace the number value with another g... | c# | [0] |
5,100,857 | 5,100,858 | iPhone:External mic support while video recording | <p>I have developed an iPhone application, where user can record the video using device Camera. I used UIImagePickerController for that. I want to allow user to add any external Mic in iphone to record audio while recording the video. It is able to record the video and the audio used from Mic. But, the sound quality is... | iphone | [8] |
967,420 | 967,421 | Security communication between an internet app and an intranet web service app | <p>I currently have two asp.net web applications, web1 (which is an internet app) and web2 (which is an intranet web service app with windows authentication setting). web1 locates at IIS6 on the DMZ of my company's network. web2 locates at another IIS6 on the intranet. web2 has SSL and a certificate so that the communi... | asp.net | [9] |
131,888 | 131,889 | How to construct a list of grouped item based on another list in python? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5764782/iterate-through-pairs-of-items-in-python-list">iterate through pairs of items in python list</a> </p>
</blockquote>
<p>I have a list and i want to create another one which will encompasses sequent groups... | python | [7] |
5,794,410 | 5,794,411 | Asp.net forms authentication support for IE9 | <p>My site is running on iis6 in window server 2003.I've used forms authentication here in my site .This is working on ie8 browser but not on ie9.it always redirect me on login page , i am already logged in. </p>
| asp.net | [9] |
5,039,963 | 5,039,964 | Passing Value Through Link Button in ASP.NET | <p>Conditions :
I have two tables,
category(id_kat,name_kat)
book(id_book,id_kat,name_book)</p>
<p>id_kat has a child and parent relations.</p>
<p>I'm a little bit confused using ASP.NET, especially when passing value between pages.</p>
<p>Now, i'm showing the category's datas with </p>
<pre><code><asp:listview... | asp.net | [9] |
1,724,078 | 1,724,079 | GConf Error: Failed to contact configuration server | <p>I have got this error while running in server.
<strong><em>GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See <a href="http://projects.gnome.org/gconf/" rel="nofollow">http://projec... | java | [1] |
4,669,537 | 4,669,538 | Recompile with -Xlint:unchecked for details | <p>while compiling java program we are getting "Recompile with -Xlint:unchecked for details".
Why we are getting this error?</p>
| java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.