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 |
|---|---|---|---|---|---|
1,098,099 | 1,098,100 | What is the different of parentView and superView | <p>I am wondering about the difference between superView and parentView.</p>
<p>view.parentView
view.superView</p>
<p>Do the 2 codes access a same object?</p>
<p>Thanks</p>
<p>interdev</p>
| iphone | [8] |
1,858,256 | 1,858,257 | How to open a office documents, pdf files in android? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2883355/how-to-render-pdf-in-android">How to render PDF in Android</a> </p>
</blockquote>
<p>Does any one know how to open a office documents(.doc,.xls) and pdf files in android? I have open a doc from my own ap... | android | [4] |
787,938 | 787,939 | How can I make my android tablet app to look the same when it runs on phone in landscape mdoe | <p>I have a android app layout for tablet. Its layout is 'landscape' based (i.e. it looks the way i want when I run on tablet (by default landscape).</p>
<p>But when I run the same app on a phone, android runs in portrait mode, (it squeeze my 'landscape' layout into a portrait ). </p>
<p>I have tried putting 'androi... | android | [4] |
386,134 | 386,135 | Proper way to declare a function in PHP? | <p>I am not really clear about declaring functions in php, so I will give this a try.</p>
<pre><code>getselection();
function getselection($selection,$price)
{
global $getprice;
switch($selection)
{
case1: case 1:
echo "You chose lemondew <br />";
$price=$getprice['lemondew'].'<br>';
echo "The pri... | php | [2] |
4,787,513 | 4,787,514 | How to get data from a service thats already running? | <p>I have a service that runs once the app starts and I was wondering how can I get data from that service to an activity at anytime without having to restart the service</p>
| android | [4] |
4,965,690 | 4,965,691 | JavaScript Rendering | <p>Why doesn't this HTML/script (from "Secrets of the JavaScript Ninja") render?</p>
<p><a href="http://jsfiddle.net/BCL54/" rel="nofollow">http://jsfiddle.net/BCL54/</a></p>
<pre><code><html>
<head>
<script>
function outer(){
var a = 1;
function inner(){ /* does nothin... | javascript | [3] |
1,496,536 | 1,496,537 | Where to put functionality of serializing a custom class? | <p>I'm starting to work with the serialization now and I think I got my class serializable after asking <a href="http://stackoverflow.com/questions/15488330/storing-and-retrieving-data-from-an-xml-file">here</a>.</p>
<p>Now I wonder if it's regarded a good, bad, depending or indifferent design to place the serializati... | c# | [0] |
4,166,242 | 4,166,243 | Modifying App.Config file at the time of installation using c# | <pre><code><configuration>
<configSections>
<section name="ADMIN" type="System.Configuration.DictionarySectionHandler"/>
</configSections>
<User>
<add key="ExtendTime" value="20"/>
<add key="Name" value="sss"/>
</User>
<configuration>
</code>... | c# | [0] |
3,717,974 | 3,717,975 | asp.net tabindex not working | <p>iam using tabindex in asp.net form 2.0in IE, it is not working at all....any idea how to make it right.. your help will be appreciated</p>
| asp.net | [9] |
2,991,753 | 2,991,754 | Ternary if statement involving php class | <p>Can someone please explain to me the following line of php?</p>
<pre><code>($myobjectfunction = object::function('letsgo')) ? eval($myobjectfunction) : false;
</code></pre>
<p>I understand objects and their functions. Is this php saying if <code>$myobjectfunction</code> is defined then <code>eval $myobjectfunction... | php | [2] |
464,411 | 464,412 | list.removeall argument null exception not thrown | <p>I have list of type struct in which i temporarily add data and delete them when data is being written either to database or to a file, I am using <code>list.RemoveAll</code> method to remove item from the list.</p>
<p>The <code>list.RemoveAll</code> should throw <code>ArgumentNullException</code> if I call it on a ... | c# | [0] |
877,288 | 877,289 | How to relaunch updated table? | <p>In my application, I fetch contactInfo from address book and this info populate on the tableView. when i check row using checkMark, then data delete and send on server. Left some data, which is unchecked.</p>
<p>Now After then I need unchecked data show me on tableView ,whenever i relaunch my application.</p>
<p>T... | iphone | [8] |
2,594,810 | 2,594,811 | Java path to follow | <p>I finished reading tutorials on Java and doing the sample exercises and I am ready to really get into coding Java, the only problem is I am a bit confused as to what I should do now. What path should I take at this point ? Should I join and start contributing to an open source project ? What suggestions would you gi... | java | [1] |
427,137 | 427,138 | Is there a C++ lib for eMule protocol just like libtorrent for BT protocol | <p>I want to deploy a project that could simply down some file through the emule protocol.
but I couldn't find any lib for emule (Only emule ,but it's hard for me)</p>
| c++ | [6] |
4,575,315 | 4,575,316 | Question about generic function parameter | <p>I'm just wondering why passing a <code>System.Collections.Generic.List<string></code> into this function <code>test(ICollection<object> t)</code> will not work, why can't I pass it in like passing a <code>string</code> into <code>test2(object t)</code>?</p>
<p>Doesn't make much sense to me!</p>
| c# | [0] |
1,359,097 | 1,359,098 | iPhone-SDK:Call a function in the background? | <p>Is it possible to call my function in the background after certain interval programmatically in iPhone SDK development? I want to call one particular function in the background for certain time intervals(may be every 10 mins) during my app in on running.. </p>
<p>Could you please share your ideas.</p>
<p>thanks.</... | iphone | [8] |
2,278,506 | 2,278,507 | Launch custom android application from android browser | <p>Can anybody please guide me regarding how to launch my android application from the android browser? </p>
| android | [4] |
511,500 | 511,501 | JQuery make image invisible if outside div | <p>I'm trying to create a slider in JQuery. I have two images on top of eachother inside a div. When the right button is pressed I want to make the underlying image start left to it and slide it to the right on top of the other image. I use this code for that:</p>
<pre><code>var position = $("#IMAGE1").position();
var... | jquery | [5] |
1,731,136 | 1,731,137 | concat strings in array and other arrays | <p>I have three arrays:</p>
<pre><code>htext[i], ptext[i], and ytext[i]
</code></pre>
<p>I was wondering how I can walk through these arrays and concat the strings stored in htext[i] and then take this glued string and concat it with strings in ptext[i], and ytext[i], while separating each string by a space. Right no... | php | [2] |
1,574,652 | 1,574,653 | How to fix auto newline PHP | <pre><code>$LINE = $User.",".$data[$k][10];
echo $LINE;
$str=implode("",file('Friends.php'));
$fp=fopen('Friends.php','w+');
$str=str_replace($User,$LINE,$str);
fwrite($fp,$str,strlen($str));
</code></pre>
<p>OK, this code is a bit weird but it just appends to a string of my choice. Out should come:</p>
<pre><code... | php | [2] |
2,273,132 | 2,273,133 | Doing shell backquote in python? | <p>I am translating bash scripts into python for some reasons.</p>
<p>Python is more powerfull, nevertheless, it is much more harder to code simple bash code like this :</p>
<pre><code>MYVAR = `grep -c myfile`
</code></pre>
<p>With python I have first to define a backquote function could be : </p>
<pre><code>def ba... | python | [7] |
581,671 | 581,672 | Use jQuery to Select Visited Links | <p>I'm trying to select all visited links via jQuery. Here is the HTML</p>
<pre><code><div class="question-summary">
<a class="question-hyperlink">Stuff</a>
</div>
</code></pre>
<p>If <code>question-hyperlink</code> has been visited, I was to select <code>question-summary</code>. Any ideas... | jquery | [5] |
2,945,322 | 2,945,323 | Not able to understand the functionality of ToLookup linq extension method | <p>I am trying to figure out the functionality of ToLookup method here in the code.It's using grouping somehow to return a list. Can somebody just tell me how this is working or just guide me in the right direction: </p>
<pre><code>.ToLookup(
c => new
{
c.CoverageType.Code,
c.CoverageType.Mnem... | c# | [0] |
4,149,840 | 4,149,841 | PHP - preg_match - check if string contains year which is between 1950 and 2010 | <p>How do I check with preg_match if string contains year which is between 1950 and 2010 ? </p>
<p>example:</p>
<p>$string = "I was born in 1986 year.";</p>
| php | [2] |
1,033,708 | 1,033,709 | Convert date in php | <p>How to convert "Thu Oct 28 16:33:29 +0000 2010 " to like "Oct 28,2010 at 10:33PM"</p>
| php | [2] |
4,875,024 | 4,875,025 | Execute unknown function name in PHP? | <p>I store a string in a database called "my_function". So to access this string, I'm in scenario where I call:</p>
<pre><code>$row->theFunction
</code></pre>
<p>Furthermore, I am in a class where this function is define, and can ONLY be called like so:</p>
<pre><code>$this->my_function($param1, $param2);
</co... | php | [2] |
5,446,017 | 5,446,018 | if :checked add class to this | <p>I have a small problem. I want to check if a checkbox is checked and if it is checked, I want to add a class to his first brother.
HTML :</p>
<pre><code> <input class="box" type="checkbox">
<p class="red">Red text </p>
<input class="box" checked type="checkbox">
<p class="... | jquery | [5] |
4,575,314 | 4,575,315 | Get ArrayList element by custom text indexing | <p>What I'm doing is storing classes into an ArrayList and retrieve them by its index number. But are there any list classes in Java where I can retrieve a list element by, lets say, its name? Like this:</p>
<pre><code>ArrayList<string> myArr = new ArrayList<string>();
myArr.add( "ID_name", "String to st... | java | [1] |
4,640,829 | 4,640,830 | PHP URL verification and if not valid fix it | <p>I am trying to verify URLs. This is the code I have:</p>
<pre><code>function isValidURL($url)
{
return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);
}
</code></pre>
<p>This code is working but now I am trying to work out how to add <code>http://</code> or <code>https://</code> ... | php | [2] |
4,171,348 | 4,171,349 | How do I convert from 8 bit byte to 7 bit byte (Base 256 to Base 128) | <p>How do I convert from 8 bit byte to 7 bit byte (Base 256 to Base 128)</p>
<p>I am looking to do something like this:</p>
<pre><code>public string BytesToString(byte[] in)
{
}
public byte[] StringToBytes(string in)
{
}
</code></pre>
<p>I know base64 is available but it expands a byte array too much.</p>
| c# | [0] |
3,896,820 | 3,896,821 | call a function, after a dialog box gets dismissed | <p>in my app, when the activity gets launched i am calling an AsynTask to load some details in the page. In between if the user clicks a button, an alert dialog builder used to appear. When the user clicks the Ok button i want the dialog to be dismissed and again i want to call the async task. how to do this.</p>
<p>i... | android | [4] |
129,721 | 129,722 | Changing server in SIPDROID | <p>I got the source code of sipdroid following the link
<a href="http://code.google.com/p/sipdroid/source/checkout" rel="nofollow">http://code.google.com/p/sipdroid/source/checkout</a>
using the command :: svn checkout <a href="http://sipdroid.googlecode.com/svn/trunk/" rel="nofollow">http://sipdroid.googlecode.com/sv... | android | [4] |
583,328 | 583,329 | Javascript version needed by Jquery 1.9 | <p>Please tell me javascript version needed by jQuery 1.9
Is it 1.4 or 1.5 javascript needed in the browser ?</p>
<p>Thx
:)</p>
| jquery | [5] |
3,980,538 | 3,980,539 | How to know user is in Settings app? | <p>I would like my service to stop when the user enters the Android Settings app, then resume when the user leaves the Settings app.</p>
<p>Is there a system-wide flag or a broadcast that I may use?</p>
<p>Thanks. :)</p>
| android | [4] |
1,967,258 | 1,967,259 | Android: got CalledFromWrongThreadException in onPostExecute() - How could it be? | <p>I have an app in production for a few weeks, using ACRA, and I had zero errors until one strange error reported today.</p>
<p>I've got:</p>
<pre><code> android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
</code></pre>
<p>coming f... | android | [4] |
2,415,628 | 2,415,629 | ImportError: No module named numeric | <p>I get the following error
ImportError: No module named numeric if I have the following import </p>
<pre><code> from numeric import *
</code></pre>
<p>in my python source code. How do I get this running on my Windows box against a python 2.7.x compiler?</p>
| python | [7] |
5,294,824 | 5,294,825 | Html encode in PHP | <p>What is the easiest way to Html encode in PHP?</p>
| php | [2] |
5,097,990 | 5,097,991 | Is there any good way to see where a variable is coming from? | <p>I'm tracing back a variable, I can print out the value of that variable, but I don't know where(which page) this value has been passed to the variable. Is there any good way to print out where actually this value is coming from?</p>
| php | [2] |
5,258,871 | 5,258,872 | Android - Custom App Themes that are freely available | <p>I want to make my Android app look a little bit sexier but as I don't have knack for design I was wondering if there are other themes that are available for importing into your Android app (like the Dark and Light themes that come with SDK)?</p>
<p>I do not expect a Theme that would make Android app look like an iP... | android | [4] |
706,554 | 706,555 | taking time when going one activity to other by buton click | <p>when i am going from one activity to other by button click in my second activity i am displaying a advertisement in webview in top position .and it is coming from url so it takes time on navigate to other activity so i want to ask is there any solution for do it after i navigate to next activity and then download of... | android | [4] |
5,317,696 | 5,317,697 | Image not showing | <p>I have used this code for accessing image from database to web page. But after debugging there is no image in image tag. </p>
<p>This code prints the correct path....but fails to return correct image in image tag...</p>
<pre><code>echo $_SESSION['user_image'];
</code></pre>
<p>How do I get the image in image tag?... | php | [2] |
205,148 | 205,149 | Weird dash character in PHP | <p>I have a weird dash in my text, which isn't being detected in a <code>str_replace</code>.</p>
<p>Here is an example:</p>
<p><code>Sun: 10:00 – 3:00pm</code></p>
<p>I don't know if the dash will show up on here.. but when it is inserted into my table, it is like a square box with the characters <code>0096</code></... | php | [2] |
5,722,610 | 5,722,611 | Is there a PHP function to pull out the string between two characters? | <p>Is there a PHP function that grabs the string in between two characters. For example, I want to know what is between the percent and dollar symbol:</p>
<blockquote>
<p>%HERE$</p>
</blockquote>
<p>What is the function for this?</p>
| php | [2] |
2,124,492 | 2,124,493 | Add to a List from two Classes in C# | <p>I have a list in one class. And I need to populate the list from another class. Then I need to access the list one or two other classes. I don't want to use static list. How is this done in C#. I tried my best. But not successful. Can anybody show example?.</p>
| c# | [0] |
4,402,664 | 4,402,665 | Parse DateTime From FileName | <p>Hi I'm trying to develop a utility to manage large sets of backup's: </p>
<p>I have my backups structured like:</p>
<pre><code>D:\SQLBACKUP\NOFAULT2010\Datatbase\LOG\NOFAULT2010_Datatbase_LOG_20110906_182000.trn
D:\SQLBACKUP\NOFAULT2010\Datatbase\LOG\NOFAULT2010_Database_LOG_20110906_183000.trn
</code></pre>
<p>I... | c# | [0] |
266,150 | 266,151 | iphone swdish changes from Julrea ö åä ä to this Julrea ö åä ä after getting response and parsing | <p>I m assigning these strings on some lables in my project but they are displaying wrong after getting response in requestfinished delegate, its also print wrong on log as mentioned like Julrea ö åä insteed of Julrea ö åä ä... if any one have solution then please..</p>
| iphone | [8] |
4,008,547 | 4,008,548 | Propagating data among view controllers | <p>I've got a table view controller. Some of the rows of the table open new controllers to let the user enter more data or use pickers, etc. It's just like the built-in Calendar app. When the user taps "Save" on the second screen, I want the value from that screen to propagate back up into the table view controller, bu... | iphone | [8] |
2,036,001 | 2,036,002 | empty doesn't work | <p>I need to check five fields, but only one these fields must be filled and I need to make sure the other fields will be empty. unfortunately it's not working.</p>
<pre><code>if(!empty($_POST['nome']) && empty($_POST['area']) && empty($_POST['profissao']) && empty($_POST['cidade']) && ... | php | [2] |
4,526,791 | 4,526,792 | How to store multiple key value, where value is an array of elements in javascript? | <p>I am looking for a quick way to crate a key values pair in JavaScript, where I have a key it's an ID, like 1, 2, 3, 4, 5, .... 100 and the values are an array composed by a reference, name and quantity. </p>
<p>Is this an appropriate syntax?</p>
<blockquote>
<pre><code>var petfoodRefData = {
"1": [
... | javascript | [3] |
1,989,281 | 1,989,282 | How to make Google map zoom controls will appear automatically? | <p>I have developed a google map app and the zoom controls will not appear automatically
and will disappear after they are used.</p>
<p>So I want to see the zoom controls (_ , +) to appear with the map permanently.</p>
<p>Thanx in adv </p>
| android | [4] |
2,303,423 | 2,303,424 | How to change value of TextView of an activity depending on the different Activites calling the first activity? | <p>I need to create a logic which is going to decrease my code size in an Android Project.Suppose I have an Activity C. Activity C have a TextView whose value is "Hello". There are two another Activities A & B. Now, if Activity A on button Click calls Activity C, the value of TextView must change to "How are You?" ... | android | [4] |
1,582,845 | 1,582,846 | Customised Spinner | <p>I am making a project where I need to make a customised spinner where each option consists of an image view and a text box. I am new in Android. Any idea? A sample code will be of great help. Thank you.</p>
| android | [4] |
3,323,184 | 3,323,185 | Loading javascript file based on cookie using jQuery | <p>I don't know why this code isn't working. This code should make sure that only one ad pop is presented in a user session. If I remove the two cookie lines then it works but not with the two cookie lines. Please help:</p>
<pre><code><script type="text/javascript">
var zflag_nid="1185";
var zflag_cid="33... | jquery | [5] |
3,885,767 | 3,885,768 | Best way to set master page properties in content page in asp.net? | <p>There are different ways to set the title for content pages from Master page </p>
<ol>
<li>by findcontrol</li>
<li>by creating property in master page and setting the value in content page</li>
</ol>
<p>As both method requires an object creation of master page which will be little heavy<br>
<code>myMasterPage myMa... | asp.net | [9] |
1,788,054 | 1,788,055 | Line of code Ive never seen before | <p>This is in a piece of C++ code im looking through at the moment but ive never seen it before. Can someone tell me what it means? Is it just setting the bool to true if the searchText is found?</p>
<pre><code>size_t startPos = searchString.find("searchText");
bool found = startPos != std::string::npos;
</code></pre>... | c++ | [6] |
5,164,115 | 5,164,116 | select elements in list satisfying some conditions in python | <p>I want to get the list of elements satisfying some condition. This is my code</p>
<pre><code> year=3.11E7
years=[year,5*year,10*year,20*year,30*year]
for well in domain :
if well.is_producer:
location=well.center+well.radius
for name in wellcontours.keys() :
for tau in ye... | python | [7] |
1,781,217 | 1,781,218 | aspnet command line tools location | <p>Microsoft provides a number of command line tools for working with asp.net applications. I haven't had any trouble using these tools. One thing that I can not understand though, is the location of these tools.</p>
<p>Even for applications targeting newer versions of .net, these tools are located in the .net v2 di... | asp.net | [9] |
3,190,849 | 3,190,850 | Android app does not start. Fails with a '...has stopped unexpectedly' message | <p>Hello
i am new in Android i am trying to build a program but always when i wanted to start the program it gives me a message:"The application Traim Time (process timetrain.com )has stopped unexpectedly. Please try again."
Ple Anyone can help me to solve problem
Thank you</p>
<p>this the code</p>
<pre><code>pack... | android | [4] |
5,615,613 | 5,615,614 | how failed constructor roll over to destroy the completed objects? | <p>I know that when a constructor fails, the completed member objects will be destroyed. There is no memory leak.</p>
<p>My question is that how does compiler do that? How can compiler know what member is constructed? Does it make any record of it? Does the compiler really destroy everything in this case? How does it ... | c++ | [6] |
2,265,706 | 2,265,707 | Generic Method Error | <p>I am trying to do something like:</p>
<pre><code>public DataObjectBase GetCurrentSettings<T>(string path) where T : DataObjectBase
{
if (string.IsNullOrEmpty(path))
{
throw new ArgumentException("Path cannot be empty.");
}
return _currentSettings[T].Invoke(path... | c# | [0] |
1,842,515 | 1,842,516 | Convert Hex to Decimal Value | <p>If I have a hex value of 53, what is the best way in Java to see what the values of bit 6 and bit 7 are? Bit 1 will be considered as the Least Significant Bit (or the rightmost bit within a byte). </p>
<p>The goal is to take bit6 and bit7 and convert them to its combined decimal form. </p>
| java | [1] |
1,467,109 | 1,467,110 | Get a stack trace of a hung PHP script | <p>I have a script that runs from a cron job every night. Recently, it has started totally freezing up after several minutes into the script, and I can't figure out why. If this was Java, I could simply run <code>kill -3 PID</code> and it would print a thread dump in stdout. Is there any equivalent in PHP, where I c... | php | [2] |
778,139 | 778,140 | Why does array === array equal true in PHP? | <p>In php <code>===</code> is the identical comparison operator i.e. checks if two variables have equal values and are of the same type. But why <code>array("asdf") === array("asdf")</code> returns true? I guess both of these create new arrays with same contents(please correct me if I am wrong).</p>
| php | [2] |
2,516,814 | 2,516,815 | How to clone a whole tree without affecting the original one? | <p>i use the solution in this link not work
<a href="http://stackoverflow.com/questions/78536/cloning-objects-in-c-sharp">Cloning objects in C#</a></p>
<p>the following code, can not copy to a new tree, mutate will affect the original tree root(root)</p>
<pre><code> foreach (Bag b in bag_list)
... | c# | [0] |
191,545 | 191,546 | Regular Expression: Finding String and digits | <p>I have a file with lines of string printet by my toString like this:</p>
<blockquote>
<p>[Name: <em>value</em>][age: <em>value</em>][cprNumber: <em>value</em>][group:
<em>value</em>][Active: <em>value</em>][Average Grade: <em>float value</em>]</p>
</blockquote>
<p>I have a Class with a read method that reads t... | java | [1] |
1,761,348 | 1,761,349 | Convert a method from Java to C# | <p>I have follow methods in Java:</p>
<pre><code>public abstract int AMRecoveryModeDeviceSetAutoBoot(am_recovery_device paramam_recovery_device, byte paramByte);
public abstract int AMRecoveryModeDeviceReboot(am_recovery_device paramam_recovery_device);`
</code></pre>
<p>Both are imported from a DLL.</p>
<p>How to ... | c# | [0] |
3,409,824 | 3,409,825 | How to prevent initialization of arrays of value types in C#? | <p>All arrays of any types in .NET are initialized to 0 by default (or null for reference types).
Is there any way to skip this initialization ? Just to save processor time. Say, i'm sure it will be initialized later again with different values:</p>
<pre><code> Random rnd = new Random();
Int32[] nums = new Int3... | c# | [0] |
2,888,777 | 2,888,778 | Cleaning up MicroSD/Storage | <p>Are there any tools for cleaning up the storage on Android phones? Apps seem to be making folders everywhere and even when they are removed the folders still stay... </p>
<p>Can't tell which app uses or needs what directory, and manual removal feels like such a pain...</p>
| android | [4] |
4,585,319 | 4,585,320 | What are the difference between helper and utils classes? | <p>How determine how call a class XHelper or XUtils ?</p>
<p>To my mind :</p>
<p><strong>Helper class</strong>, is a class that can be instantiate and do some business work</p>
<p><strong>Utils class</strong>, is a static class that perform small and repetitive operations on a kind of instance (example of utils cla... | java | [1] |
5,674,381 | 5,674,382 | Google Drive API Error "The authenticated user has not installed the app" in android | <p>I'm trying to use Google drive api in android application, I'm using "google-api-java-client", from this library I've imported libs which are specific to android,
also registered project to Google api console for Google drive api & I'm able to do user authentication using OAuth2.0. But when executing insert htt... | android | [4] |
1,664,078 | 1,664,079 | PHP Convert string from dd/mm/yyyy to YYYY-MM-DD HH:MM:SS string for use with ms sql server? | <p>I am hosting a php application on Windows server 2008 and using SQL Server 2008. I am having issues with inserting dd/mm/yyyy date strings in to the database.</p>
<p>How can I manually convert my dd/mm/yyyy string into the MS SQL Server date format YYYY-MM-DD HH:MM:SS within PHP code?</p>
| php | [2] |
3,791,848 | 3,791,849 | Detect which event finishes activity | <p>How to detect the what event causes activity finish/onstop called.In the case of back button pressed,home key pressed,user navigates from notification bar.How can i detect these three cases when the activity is called stop.</p>
| android | [4] |
1,237,931 | 1,237,932 | Dictionary to lowercase in Python | <p>I wish to do this but for a dictionary:</p>
<pre><code>"My string".lower()
</code></pre>
<p>Is there a built in function or should I use a loop?</p>
| python | [7] |
2,205,064 | 2,205,065 | On Mouse Click call Key Event + JavaScript | <p>I wonna to create a Link and if you click on if it call a js script witch calls a Key combination CTRL+/ or CRTL+-</p>
<p>thx</p>
| javascript | [3] |
3,862,260 | 3,862,261 | java object type | <p>what is the type of object in exception class?</p>
| java | [1] |
5,823,161 | 5,823,162 | csharp method word first and last letter | <p>i have method, which have parameter "word" returns Word first and the last letter with string. between first and last letter there is three points. example when you write "stackoverflow" it returns it like that "s...w"</p>
<p>I have this code but i wont work.</p>
<pre><code>namespace stackoverflow
{
class Prog... | c# | [0] |
76,494 | 76,495 | searching for on screen tutorial javascript library | <p>I once stumbled upon a javascript library which is used to create interactive on screen tutorials which we may find on many games. I cannot find that library now. Has anyone heard or seen a library like that?</p>
<p>I need it to help new users to learn how to use our site.</p>
<p>Sincerely</p>
| javascript | [3] |
4,282,333 | 4,282,334 | Checkbox to change font weight not working - Javascript | <p>I need to insert a checkbox into a form to change the font weight of text in a div. </p>
<p>My javascript is as follows:</p>
<pre><code>function boldText(checkBox,target) {
if(checkBox.checked){
document.getElementById("lineOne").style.fontWeight = "bold";
}
else {
document.getElementById("lineOn... | javascript | [3] |
5,762,530 | 5,762,531 | Generate a constant DESede secret key with messagedigest | <p>When I execute the following code, error will occur java.security.InvalidKeyException: Invalid key length: 20 bytes.</p>
<pre><code>// Initialize constant symmetric key
String constant = "ConstantPassword";
MessageDigest hash = MessageDigest.getInstance("SHA-1");
byte[] bHash = hash.digest(constant.getBytes());
Sec... | java | [1] |
5,224,833 | 5,224,834 | return an object using ObjectOutputStream | <p>I found a segment of java code that is claimed to return object using ObjectOutputStream</p>
<pre><code> OutputStream outstr = response.getOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(outstr);
oos.writeObject(process);
oos.flush();
oos.close();
</code></pre>
<p>response... | java | [1] |
3,391,449 | 3,391,450 | How do I create a pseudo-color image in C++? | <p>I have an array of pixels with an associated intensity (as a float between 0 and 1) that I would like to convert to a RGB image.</p>
<p>The easiest way would be to just multiply each value by 255 and assign it to R+G+B to obtain a greyscale image, but I think it would be better to use a whole range of colors to sho... | c++ | [6] |
5,107,672 | 5,107,673 | How to make this function return more than 1 value? | <pre><code>public Solution getReferenceSolution(Problem p) {
int personalityVal = 1;
int templateNameVal = 0;
...
Solution personality = getComponentFactory().constructSolution(personalityVal);
Solution templateName = getComponentFactory().constructSolution(templateNameVal);
... | java | [1] |
2,690,699 | 2,690,700 | Strip Html from Text in JavaScript except p tags? | <p>I need to change RichEditor and TextEditor modes with JavaScript, now I need to convert Html to Text which is actually still in Html editor mode, so I need just p tags, but other Html can be stripped off.</p>
| javascript | [3] |
4,770,565 | 4,770,566 | Strange jQuery .prev() behaviour | <p>I have simple HTML code:</p>
<pre><code><input type='hidden' name='cat_id' value='123'/>
<a href='#' class='edit'>Edit</a>
<a href='#' class='delete delete-link'>Delete</a>
</code></pre>
<p>And simple JS code:</p>
<pre><code>$("a.delete-link").click(function() {
var id = $(this).prev... | jquery | [5] |
2,738,001 | 2,738,002 | Launching an application using browser? | <p>I want to launch an application in the phone by clicking its link in the browser..How can I do this???</p>
| android | [4] |
4,918,088 | 4,918,089 | How to handle dynamically returning values given by php with multiple lines? | <p>I'm trying to realize an indexhandler. Now I can click on a field in HTML and a second window appears. Then, by clicking one of several buttons on the second page, a value gets returned in the field of the first window. This works like this:</p>
<pre><code>self.opener.document.getElementById('idOfFieldOnWindow1').v... | javascript | [3] |
3,992,914 | 3,992,915 | Problem with beginner Javascript | <p>This code doesn't work, is there any visible reason?</p>
<p>the onClick is set as "doLogin();"</p>
<pre><code>function doLogin()
{
var url = "doLogin.php";
var status = document.getElementById('statuslogin');
status.innerHTML = "";
var loginfield = document.getElementById('edtLogin');
var pass... | javascript | [3] |
785,791 | 785,792 | Irc Server | <p>anyone interested in joining me in making it? Ive pretty much done alot in it and wasted alot of time doing these things. We can get to know each others via irc and/or msn :), just leave a message here and ill get back to you.
My english is not my main language, so execuse me if i spelled something wrong.</p>
| c++ | [6] |
3,548,176 | 3,548,177 | How to add a user input number to the end of a string to select a specific object | <p>im struggling with abit of java code.</p>
<p>Currently i have 8 rooms</p>
<pre><code> room1 = new Room(1,1);
room2 = new Room(2,1);
room3 = new Room(3,1);
room4 = new Room(4,1);
room5 = new Room(5,2);
room6 = new Room(6,2);
room7 = new Room(7,3);
room8 = new Room(8,3);
</code></pre>
... | java | [1] |
3,732,607 | 3,732,608 | Compare two arrays ignoring only start element | <p>I have to compare if two arrays are equal ignoring only the first element. Is it possible to achieve the same without iterating</p>
| java | [1] |
3,951,921 | 3,951,922 | Display array values not repeadly | <p>I have the following array</p>
<pre><code>$ar = array ( 1,2,3,4,5,3,6,7,...)
</code></pre>
<p>i do a foreach to display elements like</p>
<pre><code>$i = 0
foreach ($ar as $tab){
echo $tab[i];
$i++
}
</code></pre>
<p>I dont want to display twice the same value like 3.
i just want <code>1 2 3 4 5 6 7...</code><... | php | [2] |
4,727,037 | 4,727,038 | Problem In Adding an Icon to the Label of a JCheckBox Component | <p>I try to describe an image through HTML tag as follow :</p>
<p><a href="http://www.exampledepot.com/egs/javax.swing/checkbox%5FAddIcon.html" rel="nofollow">http://www.exampledepot.com/egs/javax.swing/checkbox_AddIcon.html</a></p>
<p>If I use the following HTML tag, it works</p>
<pre><code><html><table ce... | java | [1] |
4,729,239 | 4,729,240 | how to stop UIProgrssView? | <p>i have implemented UIProgressview in my application?But i dont know how to start and stop.Can u advice me for this question?</p>
| iphone | [8] |
4,917,910 | 4,917,911 | Calculate exponent when not allowed to use Math.pow? | <p>I am a beginner in java and I am doing my practiceit exercises online. I am stuck at this question:</p>
<blockquote>
<p>Write a method named pow2 (a variation of the previous pow exercise)
that accepts a real number base and an integer exponent as parameters
and returns the base raised to the given power. You... | java | [1] |
3,651,086 | 3,651,087 | how to reset GET variables | <p>Please pardon my PHP noobness! I want a single page to display a particular navigation based on the incoming link. It's set up as follows:</p>
<p>page1.php list item: </p>
<pre><code><li><a <?php if (strpos($_SERVER['PHP_SELF'], 'wood-species.php')) echo 'class="current"';?>href="wood-species.php?na... | php | [2] |
4,208,465 | 4,208,466 | javascript weirdness with toFixed | <p>Comparing floats. According to the fist block of code, 5 is greater than 37.66. The second block claims that 5 is less than 37.66. What is toFixed() doing to these that makes the first block react the way it does? (This has only been tested on chrome in ubuntu)</p>
<pre><code>amount = 5
total = 37.66
check = nu... | javascript | [3] |
3,626,533 | 3,626,534 | Modbus giving a exception PortInUseException | <p>i use IE view a application what use java and modbus protrol ,then throw a exception PortInUseException,But it is ok when I close the IE and open it agian. why?</p>
| java | [1] |
918,428 | 918,429 | Referencing first child and getting object reference error | <p>I have two different XML responses that can be returned. They look like this:</p>
<p>1) Gets returned if no user.</p>
<pre><code><ArrayUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
</code></pre>
<p>2: Gets returned if user found.</p>
<pre><code><ArrayUser xmlns:i="http://www.w3.org/2001/XMLS... | c# | [0] |
4,959,441 | 4,959,442 | Segmentation fault on running created app into android from eclipse | <p>I am getting<br>
"ActivityManager: Segmentation fault"
while running one sample project from eclipse into my android device.</p>
<p>One month before when my android version was JB 4.1 there were no issues. </p>
<p>My phone is galaxy nexus<br>
android version = JB 4.2.1
Rooted<br>
drivers installed from Samsu... | android | [4] |
3,334,377 | 3,334,378 | use button to write text to the page | <p>I can do this with a alert but I want to print the results of a function directly to the web page. </p>
<p>When the user clicks the car button I want the results from the <code>car()</code> function to write into my <code>id="mainContent"</code> div.</p>
<p>if the user clicks the Ice Cream button I want the result... | javascript | [3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.