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,531,505 | 3,531,506 | PHP array_diff weirdness | <p>This is such a simple problem but the PHP doc does not explain why it is happening.</p>
<p>I have this code:</p>
<pre><code>var_dump($newattributes); var_dump($oldattributes);
var_dump(array_diff($newattributes, $oldattributes));
</code></pre>
<p>For briefity I am going to omit large parts of the structure I am a... | php | [2] |
3,035,677 | 3,035,678 | .net DirectoryInfo wild card pattern to handle exclusion | <p>The following method call returns all xml files in the given directory. </p>
<pre><code>FileInfo[] Files = Directory.GetFiles("*.xml");
</code></pre>
<p>I would like to get all XML files in the directory where the fileName does not end with "_update.xml"</p>
<p>for example.... if I have the following files</p>
<... | c# | [0] |
3,734,020 | 3,734,021 | Export a html page to pdf with everything that's written on it, after submit button | <p>I need to export html page to pdf file with everything that's written in it, after I press submit button. It will open new page, with info, and I need for script to automatically make .pdf file (already uploaded to webserver), and get the link from file. Could you give me some easy example (if available, without any... | php | [2] |
5,615,972 | 5,615,973 | Application force closes on call | <p>I have This application that "runs it the background" well its supposed to. the problem is when I get a phone call the application forcecloses. How would I get it to truly run in background?</p>
| android | [4] |
2,152,348 | 2,152,349 | Using an array to set variable name | <p>I'm trying to use some mysql data in creating part of a variable name to refer to another variable already declared elsewhere. Basically how can I get the $damage_name be part of the if statement boolean check?</p>
<pre><code>$conditions = array(
'bent_num' => 0,
'spine_torn' => 0,
'pa... | php | [2] |
1,358,053 | 1,358,054 | Kinetic JS func is not return object | <pre><code>function create(x,y,imagePath,imageWidth,imageHeight) {
return new Kinetic.QImage({
x: x,
y: y,
image: images.Grid,
width: imageWidth,
height: imageHeight,
});
}
var a = create(100,100,images.Grid,96,96);
</code></pre>
<p>Why didn't this work?</p>
| javascript | [3] |
1,200,177 | 1,200,178 | Progressbar togther with asyncTask | <p>I want to use a progressbar on my screen isntead of progressDialog.</p>
<p>I have inserted a progressBar on my XML-view file, and I want to make it show when it loads and when disable it when not loading, </p>
<p>so I was using visible, but it takes place, so rest of the data comes down, </p>
<p>How should I use ... | android | [4] |
3,237,568 | 3,237,569 | PHP mkdir: Permission denied problem | <p>I am trying to create a directory with PHP mkdir function but I get an error as follows: <code>Warning: mkdir() [function.mkdir]: Permission denied in ...</code>. How to settle down the problem?</p>
| php | [2] |
700,546 | 700,547 | Google Play Developer Console dashboard, where is it? | <p>I've been searching on stackoverflow and other places, but all I find is that the dashboard has been updated and it's accessible from developer console listings page. All I see next to my app is "x total installs" etc, no link to any dashboard?</p>
| android | [4] |
5,487,838 | 5,487,839 | php array help. Getting the correct content | <p>I have an array like so:</p>
<pre><code>Array
(
[level] => Array
(
[0] => Array
(
[lvlName] => name
[lvlEnt] => ent
)
)
[title] => Array
(
[0] => Array
... | php | [2] |
4,582,880 | 4,582,881 | Java select a file location | <p>I'm not sure if this is even possible as I can't find anything about it after quite a few Google searches.</p>
<p>What I would like to do is on event open up a file dialog box and allow the user to select a folder and then store that folders full directory in a string. So if a user selected a folder in C:\Windows\E... | java | [1] |
80,143 | 80,144 | Java Remote File Options | <p>I've recently started an internship and I'm having some issues with Java in the enterprise environment. I've been assigned the task of porting the functionality of an old windows shell script to java so it may be ran on one of our JVMs.</p>
<p>The shell script runs on one of the Windows servers and grabs the previo... | java | [1] |
3,221,121 | 3,221,122 | Associative array - move an element to first position | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/5783750/php-add-item-to-beginning-of-associative-array">PHP - add item to beginning of associative array</a> </p>
</blockquote>
<p>have associative array:</p>
<pre><code>$myarray=array("key1"=>"value1","key2... | php | [2] |
940,575 | 940,576 | shorthand way to create dictionary key if it does not exist | <p>I have a dictionary of zoo animals. I want to put it into the dictionary in a nested dictionary but get a KeyError because that particular species has not been added to the dictionary.</p>
<pre><code>def add_to_world(self, species, name, zone = 'retreat'):
self.object_attr[species][name] = {'zone' : zone}
</cod... | python | [7] |
1,954,204 | 1,954,205 | Fastest way to remove all multiple occurrence items from a list? | <p>What is the fastest way to remove all multiple occurrence items from a list of arbitrary items (in my example a list of lists)? In the result, only items that occur a single time in the list should show up, thus removing all duplicates.</p>
<p>input: [[1, 2], [1, 3], [1, 4], [1, 2], [1, 4], [1, 2]]</p>
<p>output: ... | python | [7] |
2,189,345 | 2,189,346 | Receiving an ACTION_SEND intent from the Gallery | <p>I am trying to receive an image from the Android Gallery via an ACTION_SEND intent. I have set the proper intent filters and the Gallery opens my app. Now I want to know how to get at the image data. I can't find any examples on the internet of how this is done. I figure the path is somewhere in intent.getData() but... | android | [4] |
2,806,369 | 2,806,370 | Efficient programming | <p>What are some examples of increasing efficiency, improving performance?
This is a broad question, so feel free to talk about any examples of where you rewrote code and made it run faster...</p>
| c++ | [6] |
1,924,428 | 1,924,429 | PHP Zip File Empty? | <p>I have a script that creates a zip files from files in a certain directory. After Download, for a lot of users - the zip file is empty. However, for other users - the file isn't empty. Is it something I'm doing wrong?</p>
<pre><code>header('Content-type: application/zip');
header('Content-Disposition: attachment; f... | php | [2] |
739,948 | 739,949 | Which of these are getting called? | <p>Say I have the following code:</p>
<pre><code>struct date {
int day;
int month;
int year;
};
class mydateclass {
public:
int day;
int month;
int year;
};
mydateclass date;
date.day;
</code></pre>
<p>Which <code>date</code> variable is being referred to? The <code>date</c... | c++ | [6] |
260,676 | 260,677 | The operation could not be completed.Access is denied | <p>I have formatted my computer and windows 7 enterprise edition is installed.
<br/>I installed Microsoft visual studio 2005.<br/>
Now while opening my old asp.net programs it shows </p>
<p>"<code>The operation couldn't be completed.</code><br/><code>Access is denied."</code></p>
<p>Please help me</p>
| asp.net | [9] |
4,512,313 | 4,512,314 | how to make software faster | <p>It seem that when I re run my .net application , it became much faster than before , why ?</p>
<p>Also is there anyway for my software to be run faster on startup ?</p>
<p>regards</p>
| c# | [0] |
649,246 | 649,247 | how to bind the asp.net dropdownlist items to the datatable columns of sql server? | <p>Below is my code...</p>
<pre><code>SqlCommand da = new SqlCommand("select time_stamp,'" + DropDownArray[i].SelectedItem.ToString() + "' from data_104 where time_stamp between '" + FromTime_DropDown.SelectedValue.ToString() + "' and '" + ToTime_DropDownList.SelectedValue.ToString() + "' order by time_stamp", con);
S... | asp.net | [9] |
4,427,000 | 4,427,001 | C# text formating problem | <p>What I have is a text file that contains lines in the following format</p>
<pre>Apple000010095|C:\il_ig\IMPED_IMS\AR001\AR\00\01\|00\{95-99}.TXT; 01\00.TXT; 01\00.TXT|7</pre>
<p>Format is:
Begining File | Location | files ;=multi entry| total files for all entries </p>
<p>so for the above text I would need to ... | c# | [0] |
4,561,858 | 4,561,859 | Selected Listbox item to be displayed in textbox using jquery | <p>I have a task to Append Selected multiple items being selected from a listbox to a Textbox.
I have tried Implementing the code using Jquery as:</p>
<pre><code>$("#<%= ListBlankToken.ClientID %>").change(function () {
var SelectedITem = $("#<%= ListBlankToken.ClientID %>").select.toString();
... | jquery | [5] |
4,855,653 | 4,855,654 | Newbie in jQuery - focusIn and out on textareas | <p>I'm stuck with my code. I use the focusin() function to detect the user interaction on a textarea. My concept: </p>
<ul>
<li>first init => all are collapsed with auto-height (50px)</li>
<li>first focus-in => the focused element will be expanded to more pixels (150px)</li>
<li>and now, I know, every time I get a new... | jquery | [5] |
147,379 | 147,380 | viewport tutorial | <p>I am making a game on Android and have created the 3D objects from blender.The object has been loaded perfectly with the help of Min3D (3ds format) but the following problem arises:
1. the texture is not loaded and the problem arises.</p>
| android | [4] |
605,850 | 605,851 | how to GetType of List<String> in c#? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/721870/c-how-can-i-get-type-from-a-string-representation">C# How can I get Type from a string representation</a> </p>
</blockquote>
<p>how can i get the type of <code>"List<String>"</code> in c# using <cod... | c# | [0] |
288,279 | 288,280 | Derived from a base class that implements an interface | <p>I get from <a href="http://rads.stackoverflow.com/amzn/click/0321245660" rel="nofollow">Effective C#</a> Item 23 that the following code should print: <code>MyDerivedMessage</code></p>
<pre><code>namespace ConsoleApplication1
{
interface IMsg
{
void message();
}
public class MyMessage : IM... | c# | [0] |
2,513,238 | 2,513,239 | jquery - troubleshooting this jquery code | <p>I am writing this routine where users can click on 3 buttons and the help divs will appear.</p>
<p>If the users click on any of the 3 buttons, the help divs will toggle and appear accordingly. This appears to be done correctly with the code.</p>
<p>If the users click on the "close" button inside the help div, the... | jquery | [5] |
1,166,735 | 1,166,736 | Java Scope: Returning an object instantiated inside a method - Is it dangerous? | <p>I'm a student in Java class and learned something about Java today that made my gears turn. When I asked the teacher how and why, he wasn't sure about the behavior. Can anyone explain why the following example works?</p>
<pre><code>class Example {
public int ex_val;
public Example (int a) {
this.ex... | java | [1] |
5,179,239 | 5,179,240 | javascript storing key value inside object | <p>I have some json strings that look like that:</p>
<pre><code>var TheJson = "{Key:[array of objects]}"
</code></pre>
<p>Key is actually a date and the json contains arrays of objects. I want to add this object to another object <code>HistoryOfData</code>, sort of like the <code>.push</code> method on arrays. Basica... | javascript | [3] |
3,731,012 | 3,731,013 | Capturing image from Camera, it stores at sdcard/dcim folder | <p>I am capturing image by using camera in my app.</p>
<p>1) it saves image at sdcard, with the name which i passed in intent.</p>
<p>2) also saving the image at sdcard/dcim folder</p>
<p>I do not want camera to save image at location mentioned in # 2.
i am deleting image from the location in #1. and want to delete ... | android | [4] |
2,326,963 | 2,326,964 | Calculating future date using php strtotime() not give right answer | <p>I want to get future date after specific date
for this i use <code>strtotime()</code> function but it not work for me</p>
<p>then I use following code</p>
<pre><code>$d1='2012-11-08';
$d2=date($d1, strtotime('+3 days'));
echo $d2;
</code></pre>
<p>output is
2012-11-08
2012-11-08</p>
<p>not
... | php | [2] |
1,003,527 | 1,003,528 | jQuery, .empty() and memory | <p>my application (ASP.NET MVC) shows a page which loads data constantly, at certain intervals.</p>
<p>The jQuery script calls a controller and this one renders a different partial view, based on certain conditions.</p>
<p>This partial view is the appended to the DOM with jQuery; previous elements are removed with th... | jquery | [5] |
5,258,697 | 5,258,698 | URL rewriting in ASP.NET turning http://site.com/abcd into http://site.com/page.aspx?id=abcd | <p>I have a problem in my web forms ASP.NET app where I would like to rewrite a url from</p>
<p><a href="http://site.com/abcd" rel="nofollow">http://site.com/abcd</a> </p>
<p>into </p>
<p><a href="http://site.com/page.aspx?id=abcd" rel="nofollow">http://site.com/page.aspx?id=abcd</a></p>
<ul>
<li>the <strong>abcd</... | asp.net | [9] |
3,130,758 | 3,130,759 | Monitor applications | <p>how to monitor external applications(like notepad/word/exce/media players..) from java</p>
| java | [1] |
4,776,373 | 4,776,374 | Serialize FileOutPut stream | <p>I have 2 classes: One that simulates a "server" and a second one.
The idea is the server writes a file away with all the required data (usernames, psw, friends, etc...).</p>
<p>Basicly the check login and register user code is all located in the server class and works just fine.</p>
<p>But the problem occurs when ... | java | [1] |
2,907,014 | 2,907,015 | I am having abc.mdf database in D drive and i want to use in my website using web.config? | <p>I am having abc.mdf database in D drive and i want to use in my website and i have tried as in web.config</p>
<p></p>
<p><strong>and i got following error</strong></p>
<blockquote>
<p>An attempt to attach an auto-named database for file D:\abc.mdf
failed. A database with the same name exists, or specified fil... | asp.net | [9] |
2,991,978 | 2,991,979 | modified BufferedReader to ignore last line | <p>I want to use something like BufferedReader to read lines from a file but if the last line in the file does not end with a newline character, I would like it to be ignored. The standard BufferedReader will return the last line up to EOF, which is not what I want. So far, the best thing I've come up with is to copy t... | java | [1] |
2,925,716 | 2,925,717 | Invoke a constructor with the help of typeof | <p>I'm attemping a bit of a dance to get some classical polymorphism in javascript; something like</p>
<pre><code>function Inherit(base, sub) {
var baseType = typeof base;
sub.prototype = new baseType();
}
</code></pre>
<p>Anyone have a clue as to how to do this without having to new up base prior to passing it... | javascript | [3] |
2,953,349 | 2,953,350 | Did Android Stop your thread when your device turn to sleep | <p>I am using </p>
<pre><code>HandlerThread bThread = (new HandlerThread("backendHandler_thread",
Process.THREAD_PRIORITY_BACKGROUND);
bThread.start();
backendHandler = new Handler(bThread.getLooper());
</code></pre>
<p>then </p>
<pre><code>backendHandler.postDelay(xxx, xxxx);
</code></pre>
<p>and found ... | android | [4] |
5,016,137 | 5,016,138 | Button after click doesn't work | <p>I have a strange problem. When I run app and click button (btn_eng or btn_pl) i see log in logcat ("Erase dialog" or "Erase dialog PL") but next time when i click it does't show up and button doesn't do their onClick action.
I tried to make buttons to change language. In my app I have a dialog with data form Resourc... | android | [4] |
1,988,577 | 1,988,578 | Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive | <p>I'm trying to up load my site and I'm getting this error message:</p>
<blockquote>
<p>Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.</p>
</blockquote>
<pre><code><compilation debug="true" targetFramework="4.0">
</code></pre>
<p>The site works fine on my local pc bu... | asp.net | [9] |
5,189,525 | 5,189,526 | Music Player in android | <p>I have a music Player activity which receives stream url in onCreate method.
While clicking on radio name it will play it.
But how I can navigate to this running Music Player, onClick of Button from anywhere without sending intent to it.</p>
<p>Help me.....</p>
| android | [4] |
2,304,679 | 2,304,680 | Python Balanced sports schedule generation | <p>I have the following code sample</p>
<pre><code>import itertools
import random
set_size = 2
schedule = set()
teams = range(10)
for comb in itertools.product(teams, repeat=set_size):
comb = sorted(list(comb))
if len(set(comb)) == set_size:
schedule.add(tuple(comb))
schedule = list(schedule)
random.s... | python | [7] |
805,809 | 805,810 | Is there a way to make an android app respond to hardware buttons while phone locked? | <p>I'm working on my first android app. So far I have an activity that reacts to clicks on the hardware volume controls. That's was easy to do, but I'm wondering if there is a way to make it so the app responds to these events from the hardware buttons even while the phone is locked?</p>
<p>I'm really looking for a ... | android | [4] |
619,741 | 619,742 | How to properly use global variables inside of class methods | <p>Currently I am re-vamping some code that I currently have written something like this:</p>
<pre><code><?php
global $foo;
$foo = "foo";
class foo{
function bar(){
global $foo;
return $foo."bar";
}
}
$class = new foo();
echo foo->bar();
//returns 'foobar';
?>
</code></pre>
<p>This works,... | php | [2] |
4,742,999 | 4,743,000 | PHP Datetime::format | <p>I would like to create a function which validates a date string.</p>
<p>My module displays a date, and in the backend there are some example formats the user can use to display the date on the frontend, and also an advanced date format input where he can specify a date format string like 'H:i:s' or whatever he want... | php | [2] |
533,030 | 533,031 | On static and non-static initializing blocks in Java | <p>I originally thought that static blocks were for static variables but the compiler allows both A and B to compile and run, what gives?<br />
<strong>A</strong></p>
<pre><code> private static final Map<String,String> m = new HashMap<String,String>();
{
m.put("why", "does");
... | java | [1] |
4,253,380 | 4,253,381 | How can I read the JSON data element value? | <p>I guess this html is right </p>
<pre><code><span id="tag_8" data-translations="{&quot;en&quot;:&quot;cat&quot;}" class="myTag selected">chat</span>at
# generated with :
# %span.myTag{:id => "tag_" + tag_id.to_s, :'data-translations' => translations(tag_id).to_json}= tag
</code><... | jquery | [5] |
2,257,907 | 2,257,908 | Dealing with two DateTimePicker too error prone? | <p>So often, I want the user to select a start date and a finish date. But just selecting date is not enough, we also have to alter the data.</p>
<p>By default, the <code>DateTimePicker.Value</code> are like</p>
<pre><code>Value 1: 2012-01-01 10:12:09
Value 2: 2012-01-02 10:12:09
</code></pre>
<p>When the user selec... | c# | [0] |
5,111,551 | 5,111,552 | Thread-safe setting of a variable (Java)? | <p>Given the following code:</p>
<pre><code>public class FooBar {
public static volatile ConcurrentHashMap myConfigData = new ConcurrentHashMap();
}
public class UpdaterThread implements Runnable {
run {
//Query the Data from the DB and Update the FooBar config Data
FooBar.myConfigData = ConfigDataDAO.ge... | java | [1] |
4,873,315 | 4,873,316 | Making copies of Objects in Java | <p>I have this Java code:</p>
<pre><code>boolean[][] defaultBoard = {{false, false, false},
{false, false, false},
{false, false, false}};
Board board = new Board(defaultBoard);
Board nextBoard = new Board(defaultBoard);
nextBoard.getBoard()[1][5] = true;
board.p... | java | [1] |
1,190,116 | 1,190,117 | Android application as server and Web application as Client | <p>Need to create the android emulator as a server and the web application as a client. Is it possible to invoke the application in the emulator from the web app client. </p>
| android | [4] |
117,314 | 117,315 | Can I use Process class to start a process on another machine | <p>I want to start a Java service on another machine using C# programming.</p>
<p>Can I use Process class for this?</p>
<p>If it is not possible to use Process class, can any body suggest the right way of doing it.</p>
<p>I can start the service by executing a batch file. But I am not sure how to run a batch file re... | c# | [0] |
1,342,476 | 1,342,477 | How to create a social network app on Android | <p>I want to build a social network app for Android.
But, I don't know where to start. I tried to search in <a href="http://developer.android.com" rel="nofollow">http://developer.android.com</a> and many other tutorials. But, I didn't understand in data storage.
In web development (PHP) for example, we need server and... | android | [4] |
3,241,111 | 3,241,112 | Playing Audio file | <p>I use the following code to play audio from sdcard. But it doesn't play, even doesn't throw error. My file is in the following path /sdcard/media/blueeye.mp3. Any suggestions.</p>
<pre><code>public void audioPlayer(){
//set up MediaPlayer
MediaPlayer mp = new MediaPlayer();
try {
mp.setData... | android | [4] |
502,574 | 502,575 | how to disable the flash button using javascript | <p>In my application i'm using swf upload library to upload the images.
Now i need to disable that flash button.any suggestions would be appreciative.</p>
<p>thanks mani</p>
| javascript | [3] |
3,300,537 | 3,300,538 | How to delete an element from an array in php without array search? | <p>Delete an element from an array in php without <code>array_search</code></p>
<p>I want to delete an array element from array, but I dont know the array <code>key</code> of that element only value is known</p>
<p>It is possible by <code>array_search</code> with value, first to find the key and then use <code>unset<... | php | [2] |
2,271,926 | 2,271,927 | Variable Scope in JavaScript | <pre><code>var obj = {
Variable: 1,
Name: function() {
Variable += 1;
}
return this.Variable
}
var obj = {
Name: function() {
var Variable = 1;
Variable += 1;
}
return Variable
}
</code></pre>
<ol>
<li>Now what is the difference between these two? </li>
<li>Does th... | javascript | [3] |
1,512,625 | 1,512,626 | checking resources in xml and displaying icons for the resources in android | <p>hai every one. i am new to android. in my project i had some problems reading xml files. In my xml i have included some audios and videos paths and i want to read the xml file through the code and i want to display some images n my view if there are some audio or video files. can any body tel how to read the xml f... | android | [4] |
5,124,351 | 5,124,352 | org.apache.commons.net.ftp.FTPClient.storeFile freezing interaction and animations | <p>I'm using org.apache.commons.net.ftp.FTPClient to communicate with an ftp server via an android app I'm making that records video and then uploads it to the ftp server. Everything is fine until I call storeFile at which point the app prevents any interaction until the uploading is completed. Is there any way around ... | android | [4] |
5,116,101 | 5,116,102 | Alternative to ImageList Tag | <p>I asked this question earlier <a href="http://stackoverflow.com/questions/6409097/get-image-from-list-view">Get image from list view</a></p>
<p>To which i got a reply of "Use the tag field". However after spending all morning trying to do this and the Tag field always being null i got curious and stumbled across th... | c# | [0] |
3,474,855 | 3,474,856 | How to calculate mouse coordinate based on resolution c# | <p>i am trying to develop a remote desktop apps with c#. so i have couple of question regarding mouse coordinate calculation based on picture box</p>
<ol>
<li><p>suppose i have picture box and i want to capture mouse coordinate when i will move my mouse
on that picture box in c#?</p></li>
<li><p>if i click at locatio... | c# | [0] |
4,785,827 | 4,785,828 | Extends Android APIs | <p>I work with Eclipse and implement some applications using the Android Emulator.</p>
<p>I'd like to know:</p>
<ol>
<li>is it possible to extend Android APIs with other .jar file?</li>
<li>If it's possible, how can I extend the APIs? I just have to add libraries to the project or do I copy it to the $ANDROID_HOME/pl... | android | [4] |
4,548,405 | 4,548,406 | Encryption using rijndael | <p>I'm quite new in programming .I wrote the below code in order to prompt the user for a password to encrypting a file, But it just work when the length of password is 8, What can I do on order to accepting any number of characters for the password?</p>
<pre><code> string pass = textBox2.Text.ToString();
... | c# | [0] |
113,451 | 113,452 | Service Unavailable 503 when trying to update to ASP.NET 4 | <p>I am trying to update my web application from 3.5 to 4.0. I've changed to ASP.NET 4.0 Integrated application pool and removed from web.config all the unnecessary tags.</p>
<p>When I try now to access my site it says:</p>
<blockquote>
<pre><code>Service Unavailable
</code></pre>
<p>HTTP Error 503. The service ... | asp.net | [9] |
456,097 | 456,098 | Key keeps the old name after renaming it | <p>This is my code:</p>
<pre><code>foreach ($all_orders as $order){//the $all_orders array contains a number of arrays, so it's a multidimensional array
$order["Order Rank"]=$order[0];
unset($order[0]);
}
</code></pre>
<p>after renaming the key with the new key and when i print the array:</p>
<pre><code>print_r($al... | php | [2] |
632,977 | 632,978 | How to enable userinteraction in tableview when coming back to tableview | <p>In my app I am doing tableView. By clicking row, the new view will navigate. Before navigation of new view, application is processing data from server. Until processing of data finished, view will not navigate. In this time period I want to disable userinteraction of tableview, so user can not select further rows.</... | iphone | [8] |
4,893,633 | 4,893,634 | Refactoring a method picker class | <p>I'm working on some existing code. After a few hours, I've boiled this problem down to a method picker class. I find this class to be difficult to follow. Is it possible to achieve this type of method picking functionality in a simple way?</p>
<pre><code>public class MethodPicker
{
private delegate s... | c# | [0] |
1,024,888 | 1,024,889 | C++ compilers implementing dynamic initialization after main | <p>The C++ standard section 3.6.2 paragraph 3 states that it is implementation-defined whether dynamic initialization of non-local objects occurs after the first statement of main().</p>
<p>Does anyone know what the rationale for this is, and which compilers postpone non-local object initialization this way? I am mos... | c++ | [6] |
3,765,967 | 3,765,968 | related to php arithmetic | <pre><code>$y = 013;
echo $y + 5; //this result in 16
</code></pre>
<p>I can not figure it out how its ans is 16? Can any one help?</p>
| php | [2] |
2,851,415 | 2,851,416 | create moving text for android | <p>is there any way to implanted way to create a moving text [ croos text ] </p>
<p>for example open meida o\player , in status bar you can see music titile will be move under buttons .</p>
<p>It is good idea for showing large texts , </p>
<p>how can I do this .</p>
| android | [4] |
4,362,624 | 4,362,625 | Why is PackageInfo.requestedPermissions always null? | <p>I'm trying to enumerate all the permissions used by all the installed packages, however when I check the <a href="http://developer.android.com/reference/android/content/pm/PackageInfo.html#requestedPermissions" rel="nofollow">requestedPermissions</a> property for each of my installed packages it is always null.</p>
| android | [4] |
5,802,406 | 5,802,407 | Any body Help me ...I need xml as back end | <p>Any body Help me ...I need xml as back end..then search the xml file for username and password
and then login ...</p>
| php | [2] |
4,670,109 | 4,670,110 | Error"Cannot implicitly convert type 'string' to 'System.Type' | <p>I am getting an error for the sorting in the format "dd-mmm-yyyy" it should sort date,month,year wise when binding to grid</p>
<p>"Cannot implicitly convert type 'string' to 'System.Type'" </p>
<pre><code>DataView dw = PurchaseRequestDetails.Tables[0].DefaultView;
DateTime NowDate = System.DateTime.Now;
string Ne... | c# | [0] |
2,477,642 | 2,477,643 | are virtual destructors in novtable interfaces okay? | <p>I have a Visual Studio 2008 C++03 project where I have an interface class that is declared <code>_declspec( novtable )</code>. For example:</p>
<pre><code>class _declspec( novtable ) IFoo
{
public:
virtual void FooDo() const = 0;
};
class Foo : public IFoo
{
public:
~Foo() { printf( "~Foo()\r\n" ); };
... | c++ | [6] |
3,789,791 | 3,789,792 | Xcode Organizer - Devices showing yellow light | <p>Got the developer certificate to test app on iphone entered device identifier, connected iphone as a device in the organizer it shows yellow light. In software version it shows 5.1 as installed on iphone device. It displays that it does not match any of the versions of iOS supported for development with this instal... | iphone | [8] |
4,199,646 | 4,199,647 | UIwebview loader on iphone | <p>this code works fine , its show activityIndicator loading and hide after loading
but lets say <strong>if its on loading stage and then i go back then my apps quit</strong> , so how to avoid this</p>
<p>if i go back quickly withiut site fully loaded then it quits ( i think activityIndicator is culprit)</p>
<p>**</p... | iphone | [8] |
2,400,124 | 2,400,125 | c++ passing string to varargs | <pre><code>#define LOG(format,...) Logger::Log(format,__VA_ARGS__)
#define STRIP(netIp) GeneralUtils::inet_ntop_(netIp)
string GeneralUtils::inet_ntop_(unsigned int netIp){
char strIP[INET_ADDRSTRLEN];
in_addr sin_addr;
sin_addr.s_addr = netIp;
inet_ntop(AF_INET, &sin_addr.s_addr, strIP, sizeof strI... | c++ | [6] |
3,911,710 | 3,911,711 | Android: TabActivity, Creating Menu | <p>i have created 3 tabs using the TabActivity. The class declaration is like this.</p>
<p><em><strong>public class ABTM extends TabActivity</em></strong> {</p>
<p>........ some code ..........</p>
<p>}</p>
<p>now i want to create a Menu with three menu items. but the problem is that the </p>
<p>**@Override public... | android | [4] |
3,487,305 | 3,487,306 | How to find out the month from a date when the date format is - day-month-year? | <p>Would you please kindly tell me how to find out the month from a date when the date format is like following?</p>
<pre><code> 01/12/2011
Day-Month-year
</code></pre>
<p>Thanks :)</p>
| php | [2] |
719,435 | 719,436 | Where can a JavaScript be located in a web page? | <p>I'm very new to JS and I'm wondering how it can work with in the web page and the HTML document.</p>
| javascript | [3] |
1,372,379 | 1,372,380 | how to add contact from the aplication? | <p>i want to add contact number,name etc from the my application.Is it possible?If yes then please help me.</p>
| iphone | [8] |
5,642,899 | 5,642,900 | Call a method from an activity from an adapter | <p>I am working with an adapter which has several buttons on each item of the ListView. I have, for example two buttons. One for save and another for delete. </p>
<p>When I click on them, I want the adapter to refresh. I have a method on my activity that does that: Update the adapter. I made it since I couldn't make t... | android | [4] |
3,861,165 | 3,861,166 | casting delegate using errorbox returns fault | <p>Im completely stumped on where to go from here. </p>
<p>heres my line of code that i cant get past.</p>
<pre><code> if (error.GetReaction(ErrorReaction.InformUser) == null)
{
error.SetReaction(new ErrorReactionClass(ErrorReaction.InformUser, (CachedAnonymousMethodDelegate1 != n... | c# | [0] |
2,787,193 | 2,787,194 | What is the difference between System.IO.File and System.IO.FileInfo | <p>Why there are two class for the almost same purpose System.IO.File and System.IO.FileInfo.</p>
| c# | [0] |
2,680,837 | 2,680,838 | jQuery change event not fired in IE6 | <p>am using jquery to bind an event to a text input.
The event simply performs an ajax call.</p>
<p>Problem is my code works fine in Firefox, but the event is never triggered in IE6.
Heres my code:</p>
<pre><code> </script type="text/javascript" src="/js/jquery/jquery.js"></script>
<script type="tex... | jquery | [5] |
3,031,517 | 3,031,518 | php: how to read only txt files in a directory | <p>i have a folder called XXX it contains .jpg .gif .txt .... etc</p>
<p>i want only to read .txt files how to do that ?</p>
<p>Thanks </p>
| php | [2] |
375,139 | 375,140 | Java HttpURLConnection no cookies at login | <p>I'm currently trying to do a login with HttpURLConnection and then get the session cookies...</p>
<p>I already tried that on some test pages on my own server, and that works perfectly. When i send <code>a=3&b=5</code> i get <code>8</code> as cookie (PHP page adds both together)!
But when i try that at the other... | java | [1] |
3,599,058 | 3,599,059 | Detect when a particular application (not mine) becomes visible / not visible to the user | <p><strike>I am currently trying to write an app that will change certain settings automatically (turn off sound, etc) when an application becomes active and to revert back to the original settings when the application is no longer active. </strike></p>
<p><strong>EDITED</strong>
Sorry, I believe I explained the quest... | android | [4] |
1,968,787 | 1,968,788 | Getting confused with Reference Casting and Widening w.r.t Objects in java | <p>With primitives and their Wrappers I understood the concept of Widening. But with respect to other Objects I am getting confused with Widening and implicit Casting. As example</p>
<pre><code> Class Animal{
}
Class Dog extends Animal{
public static void main(args String[]){
... | java | [1] |
1,294,487 | 1,294,488 | jquery image gallery next/prev issue | <p>I have below code in my page I am able to run next image click but prev image click not working. On click "next" it shows me div1 - div2 - div3 but on click prev its not showing me anything.</p>
<p>My HTML:</p>
<pre><code><div id="slideshow">
<img.prev>
<img.next>
<div1>
&l... | jquery | [5] |
677,216 | 677,217 | anchor tag inside a repeater with runat = "server" acting strange | <p>I have following code inside my asp.net repeater inside itemtemplate. </p>
<pre><code><a runat = "server" href = "StoreCategory/testing.aspx">dsdsdsd</a>
</code></pre>
<p>Now, I would think that this link would point to mydomain.com/StoreCategory/testing.aspx (which it does if runat = "server" is not i... | asp.net | [9] |
4,349,325 | 4,349,326 | writing admin pages using asp.net | <p>I am going to create a couple asp.net pages with login page. I am thinking about Forms authentication. The users are around 1000 to 5000. What is the best way to achieve this? I appreciate any help.</p>
<p>Thanks..</p>
| asp.net | [9] |
3,828,098 | 3,828,099 | Assigning to an IList< > or a List< >? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/8717582/why-use-ilist-or-list">why use IList or List?</a> </p>
</blockquote>
<p>I have the following:</p>
<pre><code>public class CityViewModel
{
public CityViewModel() {
Details = Enumerable.R... | c# | [0] |
132,848 | 132,849 | related to abstract class reference holding object of its derived class | <p>class A is abstract and class B extends class A
now class A reference can hold object of class B,that is</p>
<pre><code>A aObj = new B();
</code></pre>
<p>and assume class B has some extra methods....
like</p>
<pre><code>class A
{
public show();
}
class B extends A
{
public show(){}
public method1(){}
private met... | java | [1] |
1,212,052 | 1,212,053 | How to create and manage custom themes for whole Android system? | <p>I know how to create and apply styles and themes thanks to <a href="http://developer.android.com/guide/topics/ui/themes.html" rel="nofollow">http://developer.android.com/guide/topics/ui/themes.html</a>. However, this method only works for our own activity or application.</p>
<p>I'd like to create themes that could ... | android | [4] |
876,188 | 876,189 | Problems accessing public method of another class | <p>I currently use two classes, <code>ircBot(extends pircbot</code>) and <code>ircRobotti(extends Robotti)</code>.</p>
<p>I'm trying to compile the class files on a shell but i'm getting an error:</p>
<blockquote>
<p>./ircBot.java:26: cannot find symbol symbol : method lisaaJonoon(int)
location: class Robotti
... | java | [1] |
5,087,148 | 5,087,149 | Implementing smooth div toggle | <p>I am trying to recreate the "div toggle" effect on this page, but with jQuery:</p>
<p>cordon-bleu.se</p>
<p>I want this effect, but working like the above page: the visible div hides when you click to show another:</p>
<p>sohtanaka.com/web-design/easy-toggle-jquery-tutorial/</p>
<p>My javascript so far is:</p>
... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.