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,859,022 | 4,859,023 | PHP script to find domain name age | <p>I am trying to write a script (in PHP) that find a domain age (creation date and maybe if possible, last update and expiration date as well). I want the script to return something like: 2009,2009,2010
if creation date is 2009, update date is 2009, and expiration is 2010 (an array)</p>
<p>help?</p>
<p>(This is NOT ... | php | [2] |
3,962,460 | 3,962,461 | Replacing function contents dynamically in JavaScript | <p>How do you completely replace a function in JavaScript? </p>
<p>I got this code, but it doesn't work. The DOM gets updated, though. What's up with that?</p>
<pre><code><html>
<head>
<script id="myScript" type="text/javascript">
function someFunction() {
alert("Same old.");... | javascript | [3] |
245,716 | 245,717 | PHP Include operator can't seem to find php script | <p>I am having an odd problem that continues to baffle me. I appreciate your advice....</p>
<p>In a PHP 5.3 script I am including another PHP script using the following code; </p>
<pre><code>include 'moninit.php?id=1234'; // initialize array variables
</code></pre>
<p>moninit.php is stored as C:\xampp\htdocs\Carmel... | php | [2] |
2,478,761 | 2,478,762 | How to reset a PHP environment? | <p>At some point in my code, I want to undo everything that has been made and simulate a fresh start in some file.php.</p>
<p>Example: Unsetting all variables, all functions, all classes, etc.</p>
<p>Is there a way to do this?</p>
<hr>
<h2>DETAILS</h2>
<p>I have a framework that redirects all the requests to <code... | php | [2] |
1,364,330 | 1,364,331 | implementing a file deletetion function | <p>I have a system, where users (even public) can upload *.pdf files,now I want to implement a feature which provides the ability to delete the uploaded files. </p>
<p>This is what I have in mind :</p>
<ul>
<li>create an unique delete hash for each file
and store it in database ( associate
it with unique id of each f... | php | [2] |
45,903 | 45,904 | How can I play a movie and add a text overlay with DirectX in C# | <p>How can I play a movie and add a text overlay with DirectX in C#, please specify some references, because I am new in this area.</p>
| c# | [0] |
837,242 | 837,243 | JavaScript constants | Style and keyword | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/130396/are-there-constants-in-javascript">Are there constants in Javascript?</a> </p>
</blockquote>
<p>For example here i set the close time on this menu to 1 second or 1000 miliseconds.</p>
<p>Does javascritp ... | javascript | [3] |
3,055,845 | 3,055,846 | Can someone explain Python hasattr/delattr on a method attribute? | <p>I've got a bug caused by some weird behavior. I might be fundamentally missing something about the semantics of function attributes. Or it may be a bug. I'm on </p>
<pre><code>$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
</code></pre>
<p>First I define a class, and add an attri... | python | [7] |
5,549,749 | 5,549,750 | Android: R cannot be resolved after adding a new class | <p>I get the following error in eclipse: <code>r cannot be resolved</code>. However that appeared just after I added my own library as a resource to my project. It seems that eclipse cannot resolve which R to use, the library one or the project one. Note also that the library is marked with the <em>is library</em> chec... | android | [4] |
4,891,270 | 4,891,271 | Passing/Using non primitive objects between Activities | <p>I need to pass a List of my objects between activities. I do not want to use parcelable or serialize the data each time. I also do not want to save it in a local file or database. That probably leaves me with using static objects.</p>
<p>Lets say I to use ListA between activities Activity1 to Activity2. I ca</p>
<... | android | [4] |
4,776,925 | 4,776,926 | C# how to Register exe? | <p>How Would I find another exe's path by knowing its name in .net?</p>
<p>Would I add name to the OS environment variable?
Would the other application have to 'register' itself somewhere else?</p>
<p>I need App A to start-up App B and call some WCF services on it.</p>
<p>Thanks!</p>
| c# | [0] |
489,754 | 489,755 | Using a PHP Counter and want to use mutiples of 3 | <p>So I've got this code here</p>
<pre><code><?php
$COUNT = 0;
if ($handle = opendir('.')) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != ".." & $count % 3 == 0) {
echo "<td><a href='$entry'>$entry</a></td>";
echo $Count;
... | php | [2] |
215,000 | 215,001 | Android Light Sensor stops Reporting when display turned off in Jelly Bean with Nexus 7 | <p>I have an app that needs to read the light sensor values when the display is off. This works fine a Galaxy Nexus running ICS, however with the new Nexus 7 the light sensor is disabled as soon as the display is turned off. Accelerometer still works when the display is off but light sensor does not work until displa... | android | [4] |
614,703 | 614,704 | How to read a file with variable multi-row data in Python | <p>I have a file that is about 100Mb that looks like this:</p>
<pre><code>#meta data 1
skadjflaskdjfasljdfalskdjfl
sdkfjhasdlkgjhsdlkjghlaskdj
asdhfk
#meta data 2
jflaksdjflaksjdflkjasdlfjas
ldaksjflkdsajlkdfj
#meta data 3
alsdkjflasdjkfglalaskdjf
</code></pre>
<p>This file contains one row of meta data that corr... | python | [7] |
4,837,313 | 4,837,314 | Open links in a new window | <p>I have a div called 'divLinks'</p>
<p>I want all links inside the divLinks to open in a new window.</p>
<p>How can I write a cross-browser effective script to achieve this?</p>
| javascript | [3] |
3,387,458 | 3,387,459 | some code's meaning of javascript? | <pre><code> <script language="JavaScript" type="text/javascript">
var city=[
["city1","city2","city3","city4"],
["city5","city6","city7"],
["city8","city9","city10"],
];
function getCity(){
var sltProvince=document.form1.province;
var sltCity=docume... | javascript | [3] |
1,358,044 | 1,358,045 | Conversion of .wav to .mp3 file | <p>Hi I am new to android platform. I am struck at one place i want to convert .wav file to .mp3 <strong>is this possible in android</strong>? if possible can you recommend any of them.
Thank you.</p>
| android | [4] |
4,214,273 | 4,214,274 | .keyup or .change events to trigger for readonly fields in jquery? | <p>I have list of input fields. In which some are readonly fields.
I am using .keyup() event to trigger when something changes in input field.
But it won't effect for readonly field.
Somehow i want to change those fields also .
Any help?</p>
| jquery | [5] |
3,664,484 | 3,664,485 | Passing reference types into variable argument list | <pre><code>int g_myInt = 0;
int& getIntReference() { return g_myInt; }
void myVarArgFunction( int a, ... ) {
// .........
}
int main() {
myVarArgFunction( 0, getIntReference() );
return 0;
}
</code></pre>
<p>In the (uncompiled and untested) C++ code above, is it valid to pass in an <code>int&</code> in... | c++ | [6] |
1,983,575 | 1,983,576 | Android draw marker in runtime or at on LocationChange? | <p>It is possible to draw markers in runtime or at onLocationChange event, not on Create event?</p>
| android | [4] |
4,808,663 | 4,808,664 | How to set RadioButton properties in code? | <p>I'm using this code to dynamically create new RadioButton in Android:</p>
<pre><code>RadioButton radioButton = new RadioButton(getBaseContext());
radioButton.setText("test text");
radioGroup.addView(radioButton);
</code></pre>
<p>I need to set RadioButton properties "android:button", "android:minWidth" and "androi... | android | [4] |
87,911 | 87,912 | Get absolute path of current script | <p>I have searched high and low and get a lot of different solutions and varialbles containing info to get the absolute path. But they seem to work under some conditions and not under others. Is there one silver bullet way to get the absolute path to the current executing script in php? For me the script will be runnin... | php | [2] |
801,309 | 801,310 | Change photo background and css with jquery | <p>My client want the background of his website change in a kind of slideshow(like supersized script does) but the tough thing is that he wants to change css bg color of the menu container also to match the photo (like on <a href="http://www.blitzagency.com" rel="nofollow">http://www.blitzagency.com</a>).</p>
<p>How w... | jquery | [5] |
4,481,844 | 4,481,845 | Distance Matrix Api returned wrong results randomly | <p>I'm trying to figure out a bug in a web form that I've create that uses the Distance Matrix API.</p>
<p>I basically have a simple web form requires the user to enter his or her postal code which then I use the distance Matrix API to return the closest location that I have within a list presented in an XML format w... | javascript | [3] |
207,296 | 207,297 | How to make drop down content with javascript? | <p>I want to add a similar function on my blog like on <a href="http://techcrunch.com/2011/08/04/groupon-acquires-software-devlopment-startup-obtiva/" rel="nofollow">http://techcrunch.com/2011/08/04/groupon-acquires-software-devlopment-startup-obtiva/</a> when you press on author. It is a drop down made with javascript... | javascript | [3] |
5,544,847 | 5,544,848 | Do I need to dynamically allocate double arrays to pass them? | <p>Here's a simple compile error, I'm allocating double arrays like so:</p>
<pre><code>double mixmu[][1] = {{1},{-1}};
double mixvar[][1] = {{1},{1}};
double coef[] = {1,1};
</code></pre>
<p>can I not pass these as double** objects?</p>
<pre><code>error: no matching function for call to ‘MixtureModel::MixtureM... | c++ | [6] |
2,568,664 | 2,568,665 | How do I change a display using TreeView? | <p>I'm trying to change a panel to a specific form (as this is the only way I can fathom it) based on the selected TreeView node. For example, in Visual Studio, if you right-click on "Solution 'solutionname' (1 Project)", click 'Properties', it comes up with a tree list on the left side. When you click on a selection, ... | c# | [0] |
5,997,264 | 5,997,265 | How to use JQuery to load images with callback facility | <p>i use this code to preload images.</p>
<pre><code>var ImagePath='../images/pop.gif';
var _images = [ImagePath];
$.each(_images, function (e) {
$(new Image()).load(function () {
}).attr('src', this);
});
</code></pre>
<p>i want to attach a callback which will... | jquery | [5] |
919,073 | 919,074 | Javascript variable scope inside for loop | <p>How do I maintain access to the <code>i</code> variable inside my for loop below? I'm trying to learn, not just get the answer, so a bit of explanation would be very helpful. Thank you!</p>
<pre><code>var el,
len = statesPolyStrings.length;
for (var i = 0; i < len; i++) {
el = document.getElementById(s... | javascript | [3] |
1,260,670 | 1,260,671 | Server's MySQL DB is updated only in Debug mode | <p>I have the following server-client relationship:</p>
<p>This is the relevant part of the Server's code:</p>
<pre><code>public class Server {
public static void main(String[] args) throws IOException{
ServerSocket server=new ServerSocket(7000);
final ControllerInterface iController=new ControllerInterface()... | java | [1] |
3,119,558 | 3,119,559 | What is the rationale behind the decision to have "null as string" return null? | <p>Is there any compelling reason, beyond backwards compatibility, for:</p>
<pre><code>(null as string) == null; //true
</code></pre>
| c# | [0] |
1,829,195 | 1,829,196 | Data Sharing Strategy Among Activities and Remote Service | <p>I was wondering, is there any good data sharing strategy, among Activities, and a spawned remote service running in separate process. So far, I had tried 3 methods, none of them work.</p>
<h2>Use <code>Application</code></h2>
<p>I first thought, there will be only an <code>Application</code>, shared among 2 differ... | android | [4] |
1,454,150 | 1,454,151 | How to make Transparent GLsurfcaeview and adding some android widgets(textview etc) above it | <p>I want to make transparent glSurfaceView with some 3d bars on it and want to place it in another view with some background image. I am doing it by setting the ZorderOnTop to TRUE, and it is coming fine. But at same time i want to place some textview, labels or another view with some text over the GLSurfaceView. My p... | android | [4] |
3,849,056 | 3,849,057 | Different NSTimeZone names being returned | <p>I've noticed that on some devices the <code>NSTimeZone</code>'s <code>name</code> method for a particular timezone can return different values. When testing the Brisbane time zone, my device returns <code>@"Australia/Brisbane"</code> whereas another user's device returns <code>"Etc/GMT-10"</code>. Both iPhone's are ... | iphone | [8] |
1,714,830 | 1,714,831 | List assignment to other list | <p>Is there a reason that assigning a list to another list and changing an item in one reflects the change in both, but changing the entire list of one does not reflect the change in both?</p>
<pre><code>a=5
b=a
a=3
print b #this prints 5
spy = [0,0,7]
agent = spy
spy[2]=8
print agent #this prints [0,0,8]
spy = [0,0... | python | [7] |
3,519,005 | 3,519,006 | How to pass current id in fancybox jquery as a parameter | <pre><code>$("#image_data a").fancybox(
{
'titlePosition' : 'inside',
'docid': $('#company_name').val(),
'productId' : '1234'
});
</code></pre>
<p>How i can pass productId as a current id of a tag.</p>
<pre><code>$("#image_data a").fancybox(
{
'titlePosition' : 'inside',
'docid': $('#company_name').val(),
'productId... | jquery | [5] |
2,684,006 | 2,684,007 | Need help on a php school problem | <p>I am currently in a class for the first time for php. I have run into a problem that I am racking my brain over. It consist of having to show function for OTpay. It has a pay rate, total weekly hours, regular pay, overtime pay, and also weekly pay. And it has to have an echo to the page to fill in a submit box wh... | php | [2] |
4,152,130 | 4,152,131 | printing out lists and dictionaries with indents in python | <p>Is there any way to print lists or dictionaries (or a list with a dictionary in it) in a human readable format (multi-line,indented) instead of just on one long line?</p>
| python | [7] |
1,525,429 | 1,525,430 | How to get user's google market account? | <p>How can I get the user's market account, the account with which they install applications in google market, from code?</p>
| android | [4] |
2,570,855 | 2,570,856 | how do i pass a variable to a function in this context?(for an onclickevent) | <pre><code>function check(child) {
var y = "<span onclick=remove(" + child + ") onmouseover='hove(this)'>x</span>";
child = child + " " + y;
send = '<span class="elements" >' + child + '</span>' ;
}
function remove(child) {
// some of mycode;
}
</code></pre>
<p>These are t... | javascript | [3] |
5,423,053 | 5,423,054 | how to set color for the textView in android? | <p>In the string.xml file i use the following tag </p>
<pre><code><color name="mycolor1">#F5DC49</color>
</code></pre>
<p>if i use </p>
<pre><code> textview1.setTextColor(Color.CYAN);
</code></pre>
<p>it works, But</p>
<pre><code> textview1.setTextColor(R.color.mycolor1);
</code></pre>
<p>This is not... | android | [4] |
1,699,835 | 1,699,836 | Dynamic Data Connection | <p>I am Building Dynamic Data ASp.net web site. In the application user is provided with login box where user will enter his user id and password. But we need pass the entity connection string in Glabal.ASAX file. At this point I do not have user id and passowrd. How Should handle this DynamicData</p>
| asp.net | [9] |
4,235,515 | 4,235,516 | Android password lock | <p>i want a code to lock my phone and open with only with a specific password.and also if possible tell me how can i change the fuctionality red button of an android phone
The phone lock will ask the password for the first time and will save that permanently and till the time the user don't enter that password it wont... | android | [4] |
2,738,056 | 2,738,057 | PHP: Finding the text between <p>'s | <p>Quick and probably incredibly easy question;<br/></p>
<pre><code>$str="<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque turpis risus, rutrum pretium scelerisque nec, sollicitudin ac quam. Nulla eu dolor sapien, id bibendum augue. Aliquam eu nunc mi. Nam consectetur vestibulum leo elementum ... | php | [2] |
3,543,243 | 3,543,244 | Python not defined error when using with block | <pre><code>class fcount(object):
def __init__(self, func):
self.func = func
self.count = 0
self.context_count = 0
def __enter__(self):
self.context_count = 0
def __call__(self, *args):
self.count += 1
self.context_count += 1
... | python | [7] |
1,021,270 | 1,021,271 | Is there anyway to know if user stopped loading a page? | <p>I want to know if it's possible to know if a user has let a page to load or he has clicked de X from chrome or firefox to stop it perfoce.</p>
<p>I have this code:</p>
<pre><code>jQuery(window).load(function () {
if (condition == 1){
...
else
...
</code></pre>
<p>If user let to load the website until the end, fir... | jquery | [5] |
2,231,765 | 2,231,766 | How can I add all of my array values together in PHP? | <p>How can I add all of my array values together in PHP? Is there a function for this?</p>
| php | [2] |
4,157,109 | 4,157,110 | MediaPlayer Android Increment on button click | <p>I have created a button and need to increment mp3 tunes on click. </p>
<p>So far I have the mp3 playing like: </p>
<pre><code> final MediaPlayer sentence = MediaPlayer.create(Options.this, R.raw.indra);
</code></pre>
<p>and then calling sentence.start(); in onclick. </p>
<p>Is it possible to increment more tunes... | android | [4] |
4,465,853 | 4,465,854 | jQuery: if class=active? | <pre><code>$(document).ready(function() {
$('a#fav').bind('click', function() {
addFav(<?php echo $showUP["uID"]; ?>);
});
});
</code></pre>
<p>I need to modify this so if the a#fav has class="active" then it should do</p>
<pre><code> removeFav(<?php echo $showUP["uID"]; ?>);
</code><... | jquery | [5] |
59,320 | 59,321 | If a function is not called in PHP does the code still run within the function? | <p>I was wondering, I have a few functions in PHP that're not called every time but still are included in my files on each load. Does it still run the code even if your not calling the function at that time? The reason I'm asking, the codes in my function are expensive to run CPU wise and I don't call them every time a... | php | [2] |
1,505,636 | 1,505,637 | How to move gun projectile in state line | <p>I have spawn point of projectile and I have to move it in state line direction but I don't know the destination point. So what formula or concept I will have to write to go in state line of projectile.</p>
<p>Suppose spawn point is (4,5) so it should go towards the direction (-4,-5), for any coordinate value.
Thank... | c++ | [6] |
1,070,719 | 1,070,720 | How to declare any ArrayList object of type File? | <p>I am trying to get the file names from a particular drive for eg: C:\ or D:\ etc. The File object is of type array and hence its not able to store lot of data in it. Need your advice on how i can store lots of file names in a File object. Below is my Code:</p>
<pre><code>public static void getContentsInDirectory(Fi... | java | [1] |
4,038,115 | 4,038,116 | manipulate python lists into string type i want | <p>I have a nested list that is for example: <code>A_board=[['0', '0'],['1', '1']]</code>. And I want to take this nested list apart and get a result, which if I call print result, it would display: <code>< 0 0 > < 1 1 ></code></p>
<p>I am not sure how to approach this with loops, I made the matrix into a ... | python | [7] |
2,955,820 | 2,955,821 | How to use base64 to encrypt and decrypt? | <p>I am trying to convert byte array to base64 format in java.<br>
my problem is sun.misc.BASE64Decoder cannot be used? Is there any alternative?</p>
<pre><code>byte[] buf = new byte[] { 0x12, 0x23 };
String s = new sun.misc.BASE64Encoder().encode(buf);
</code></pre>
| java | [1] |
3,461,889 | 3,461,890 | how can i get rupee symbol in app through keyboard | <p>can anybody help me in getting the Rupee currency symbol font in textview through keyboard.</p>
| android | [4] |
2,739,657 | 2,739,658 | Checking if two strings contain the same characters, not considering their frequencies | <p>I have two dictionary corresponding to character counts of two different strings. I want to check if they are made up of same characters or not, <strong>regardless of the frequencies of the characters.</strong> </p>
<hr>
<p>Say, I have two strings <code>caars</code> and <code>racs</code>
They are made up of same c... | python | [7] |
2,155,707 | 2,155,708 | How does this memoize function work? | <p>I am feeling very stupid today.
I keep looking at this code, trying to trace it, but I just cannot figure out:</p>
<ol>
<li>What it's actually meant to do</li>
<li>How it works</li>
</ol>
<p>As far as I can see, the very first time it's called it's the only time <code>action</code> is the same as <code>callFn</cod... | javascript | [3] |
142,703 | 142,704 | How to save output of a generated text | <p>I am using the following code to generate a text:</p>
<pre><code>for i in xrange(300):
sys.stdout.write(alphabet[bisect.bisect(f_list, random.random())
</code></pre>
<p>and I would like to know how to store the same text (in the variable <code>text1</code>) so that I can use it later in this code:</p>
<pre><c... | python | [7] |
443,226 | 443,227 | Conditional compilation for working at home | <p>I code C++ using MS Dev Studio and I work from home two days per week. I use CVS to keep my sources synchronized between the two computers but there are difference between the environments the machines are in.</p>
<p>Can anyone suggest a way I can conditionally modify constants in my code depending on whether I am ... | c++ | [6] |
3,189,563 | 3,189,564 | Android: EditText.setInputType() how to setup for email but not auto-suggest | <p>I am using an <code>EditText</code> box for user to enter their email address.</p>
<p>I set it up using:</p>
<pre><code>box.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS );
</code></pre>
<p>This results in the soft keyboard popping up with the '@' and '.' (and some keyboard... | android | [4] |
1,181,031 | 1,181,032 | Is it possible to use CursorLoader in an Activity not Fragment with android compatibility | <p>Can I use a CursorLoader in a subclass of an Activity (not a subclass of FragmentActivity) with the android-compatibility library? If I can, how do I get the Cursorloader since getLoaderManager().init(...) is not available in an activity subclass with the compatibility layer. </p>
| android | [4] |
458,698 | 458,699 | Change the title of window.open | <p>I have a window.open function call on click, which opens an .swf albumplayer.</p>
<pre><code>var win = null;
function NewWindow(wizpage, wizname, w, h, scroll){
LeftPosition = (screen.width) ? (screen.width-w)-8 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height=' + h + ',width=' + w +... | javascript | [3] |
3,294,063 | 3,294,064 | what are the best practices to separate resource file from the ASP.NET web project? | <p>I have a web application project which contains few resource file. i am planning to create another one project for Mobile where i should be able to use the same resource files.</p>
<p>so can you suggest me some best practices to separate the resource files.</p>
<p>Let me know if you need any clarifications for th... | asp.net | [9] |
2,043,556 | 2,043,557 | lift list of values to a list of lists of values | <p>Here's a tricky one. I want to take a list of integers, and turn it into a list of lists containing that integer. This is so that I can later append to that list. Unfortunately <code>list()</code> does not take a single integer, so I can't <code>map</code> it to the list.</p>
<p>Here's a more concrete explanatio... | python | [7] |
3,602,768 | 3,602,769 | Need to redirect to success page after jTweetsAnywhere post | <p>I have a page that makes use of the jTweetsAnywhere code (from <a href="http://thomasbillenstein.com/jTweetsAnywhere/" rel="nofollow">here</a>)</p>
<p>I want to be able to make use of a redirect once the page comes back after successfully posting the Tweet. Has anyone done anything like that and care to share the c... | jquery | [5] |
5,203,737 | 5,203,738 | Jquery - targetting with a combination of variable and classname | <p>I'm sure this is an easy one but I've not had to write this syntax before and i cant find an answer online!</p>
<p>I have a various graph sliders within a html page - each have the below code - </p>
<pre><code> <div class="sliderDbWk">
<div class="spanner">
<div class="number"... | jquery | [5] |
1,217,419 | 1,217,420 | How to debug C# process | <p>I want to debug two process,(ProcessA.exe and ProcessB.exe)</p>
<p>In the usual scenario, while starting the ProcessA will start ProcessB. ProcessA is a cross platform exe. ProcessB is C# application.(Visual Studio 2010 Professional).</p>
<p>I did the following for debugging ProcessB (C#)</p>
<ol>
<li>Started P... | c# | [0] |
4,819,087 | 4,819,088 | How do I force a UIWebView to update when it's offscreen? | <p>I have a UIWebView that I'm setting to some text and displaying and then hiding, changing the text, and displaying again. The issue I'm running in to is that when I make the view visible again I see the old text for an instant. Is there a way to force the UIWebView to show the new text when it displays?</p>
<p>Th... | iphone | [8] |
1,462,452 | 1,462,453 | jConfirm access value from injected HTML element | <p>I have this code which makes a fancy jQuery alert box with several inputs:</p>
<pre><code>//jConfirm( message, [title, callback] )
$('#buttonNew').click(function(){
jConfirm('<form><input id="postTitle" type="text"/><br/><textarea id="postBody"></textarea></form>... | jquery | [5] |
5,699,429 | 5,699,430 | Comparison between POST and GET (httpwebrequest in C#) - in terms of "visibility" | <p>I would like to implement an online activation feature (something like activating using a cd key), and I would like to do so via http.</p>
<p>I would like to send the key together with an internal password to the server each time an activation request is sent.</p>
<p>The password's use is that, since the http serv... | c# | [0] |
6,009,625 | 6,009,626 | Application is Crashed & gives this reason | <ul>
<li>Reason:</li>
</ul>
<p>I am having selected value in the table accordingly the displayed value in the previous view's Label (in the label first time country will be according to the current location),</p>
<p>Table is filled up using database, on the press of the Done button application is getting crashed with... | iphone | [8] |
4,574,894 | 4,574,895 | pg:224 Stroustrup - C++ Programming Language, 3E | <pre><code>struct Date {
int d, m , y;
void init_date(Date& d, int, int, int);
void add_year(int n);
void add_month(Date& d, int n);
void add_day(Date& d, int n);
}
Date my_birthday;
void f()
{
Date today;
today.init(16, 10, 1996);
my_birtday.init(30, 12, 1950);
Date tomorrow = today;
... | c++ | [6] |
5,419,130 | 5,419,131 | php nearest ten-th value | <p>I am getting a max value through value. It can be any digit (whole number). I want it to take to next tenth-value, using PHP</p>
<p>Example:</p>
<p>If value is 66, then I need value 70<br>
If value is 6, then I need value 10<br>
If value is 98, then I need value 100<br></p>
| php | [2] |
4,878,288 | 4,878,289 | Using SimplePie on sample php page | <p>I am trying to use simplepie on a basic page. so I download simplepie from the simplepie site and set it up just like it says in documentation. I am using xampp on windows vista business sp2. I create 2 folders php and cache in my root directory and put the simplepie.inc file in php. when I run my code I get these ... | php | [2] |
4,518,521 | 4,518,522 | Why iphone app start slowly? | <p>i'm newbie in iphone dev, i got an issue with running an app in my iphone device. I added my provisioning profile to xcode and build successfully in my iphone (iphone 3G). But, i don't know why when the app start, <strong>it takes 2 seconds to run the app</strong>.my app is a sample project create by xcode (file - n... | iphone | [8] |
5,106,813 | 5,106,814 | Reception of broadcast in service | <p>Is there a way to get broadcast reception in a Service context?
I have tried adding the <code>receiver</code> intent-filter in the manifest file but of course Android tries to instantiate the service every time and an exception is throwed.</p>
<p>How can I do this?</p>
<p>( did I mention I am a complete noob on An... | android | [4] |
2,133,708 | 2,133,709 | Merge images with PHP | <p>I have written a code for merge two images.</p>
<p>My code is:</p>
<pre><code>$rnd = rand("99000", "99999");
$dst_path = "/home/maxioutl/public_html/images/urunler/";
$dst_file_name = "tresim-{$rnd}.jpg";
$dst_file = $dst_path.$dst_file_name;
$dst = imagecreatetruecolor(250, 375);
imagefill($dst, 0, 0, imagecolo... | php | [2] |
3,078,058 | 3,078,059 | Jquery UI sortable, store location and size? | <p>I am new to Jquery and am trying to store the location and size of the elements on a page which are being sorted using the Jquery UI plugin. I want the user to "save" the current layout, and the data to be stored in a database using php/mysql so when they re-visit the elements will be the same size and location?</p>... | jquery | [5] |
2,282,198 | 2,282,199 | Which one would be best in use for to show read only data in asp.net ? repeater or html created at runtime? | <p>I have a scenario where we need to show data in tabular form.
there will be 10 different data tables in form so which approach will be good to use:
1. Create html table at runtime based on data.
2. Use asp.net's repeater control.</p>
<p>Main criteria is performance, page should not take more time to load. </p>
| asp.net | [9] |
849,271 | 849,272 | absolute and relative paths | <p>Ok I have a question. What is the difference with a absolute and relative path?
I am asking cause I am working on a project for school. Yes this is homework. I am trying to understand alittle bit more.
This is one example of what is being asked.</p>
<blockquote>
<p>• When the user clicks the “Save” button, writ... | c# | [0] |
4,283,346 | 4,283,347 | explorer right click context menu with python? | <p>I'm wondering how to go about adding a menu item to explorers right click context menu. For instance, when I right click on a file I get things like winrars "Add to archive" I want something like that and I'm wondering how to do it with python.</p>
| python | [7] |
3,053,848 | 3,053,849 | What is wrong with this one line of code? (php inside php) | <p>I'm new to php. I have the following line in a functions.php file of my WordPress site. I think there is something wrong with the way I formatted <code>get_the_bag</code>. Can someone let me know what is wrong?</p>
<p><code>$output .= "<span class='bag-item'>. get_the_bag(); .</span>";</code></p>
| php | [2] |
4,003,531 | 4,003,532 | using $.each to addClass to elements | <p>I'm trying to style a sub-set of anchors using an array</p>
<p>HTML & CSS:</p>
<pre><code><div>
<a href="#1">one</a>
<a href="#2">two</a>
<a href="#3">three</a>
<a href="#4">four</a>
<a href="#5">five</a>
<a href="#6"&... | jquery | [5] |
2,467,432 | 2,467,433 | need help using quotes in href with javascript | <p>I need help writing a link using js.</p>
<p>This is what I have but I can't get it to jive. Can you help?</p>
<pre><code>document.write('<a href=\"\http://www.domain.com/drowning-accidents/\"\ target=\"\_blank\"\ onClick=\"\trackOutboundLinktarget=(this, 'Outbound Links', 'domain.com'); return false;\"\><... | javascript | [3] |
3,370,800 | 3,370,801 | Want to delete array | <p>Can anyone help me to improve this code? I want to delete array if it already exists. Thanks</p>
<pre><code>if(count($cart['Item']) > 0) {
unset($cart['Item']);
$items['Item'] = array();
$cart = array_merge($cart, $items);
}
</code></pre>
| php | [2] |
4,038,856 | 4,038,857 | how to only select links that have text and no picture links | <p>I'm new to jQuery. This would be no problem for me using xpath expressions, but how can i do this the 'jQuery' way?</p>
<p>Given following example:</p>
<pre><code><stuff>
<a href="target.html">ASDF</a>
<a href="target.html"><img src="asdf.png"/></a>
</stuff>
</code></pre>
... | jquery | [5] |
2,850,284 | 2,850,285 | Achieving multithreading in PHP | <p>I am writing a kind of test system in php that would test my database records. I have separated php files for every test case. One (master) file is given the test number and the input parameters for that test in the form of URL string. That file determines the test number and calls the appropriate test case based on... | php | [2] |
3,366,009 | 3,366,010 | Undefined variable in PHP, what am I doing wrong? | <p>I've been trying to get this PHP script to work, but I can't seem to have it work. :\</p>
<pre><code><?php function getBrowser() {
$u_agent = $_SERVER['HTTP_USER_AGENT'];
$ub = '';
if(preg_match('/MSIE/i',$u_agent)) {
$ub = "Internet Explorer";
}
elseif(preg_match('/Firefox/i',$u_agent)) {
$ub ... | php | [2] |
347,259 | 347,260 | Passing as const and by reference - Worth it? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/2139224/how-to-pass-objects-to-functions-in-c">How to pass objects to functions in C++?</a> </p>
</blockquote>
<p>In my game I make excessive use of mathematical vectors and operator overloading of them.</p>
<p... | c++ | [6] |
343,583 | 343,584 | z-index problem with helper clone | <p>This is my code (please see <a href="http://jsfiddle.net/VCfSc/1/" rel="nofollow">http://jsfiddle.net/VCfSc/1/</a>):</p>
<pre><code>$('.first').draggable({
cancel: null,
helper: 'clone'
});
$('.second').droppable({
over: function(event, ui) {
$(this).css('z-index', 1);
ui.helper.css('z-... | jquery | [5] |
1,421,854 | 1,421,855 | Replace words in TextView with a smooth scale transition | <p>Visit this website.</p>
<p><a href="https://zapier.com/" rel="nofollow">https://zapier.com/</a></p>
<p>See this portion of the website.</p>
<p>I wan that same in my android application that text changes after some time</p>
<p><img src="http://i.stack.imgur.com/MYKPV.png" alt="enter image description here"></p>
... | android | [4] |
4,926,508 | 4,926,509 | What should I focus on as I port a PHP 4 application to the current version of PHP? | <p>I have a couple of old applications which were written in around 2003 in PHP4 which I would like to port to a modern, current version of PHP. I want to first get the old functionality working on a modern server before I start rewriting the code to add feature, modernize the UI and update the code for the current sta... | php | [2] |
1,748,683 | 1,748,684 | How to identify checked and unchecked exceptions in java? | <p>While reading about exception, I will always come across checked exceptions and unchecked exceptions, So wanted to know how to distinguish that which is what?</p>
<p>Edit: I want to know if i create any exception class then how can i create as a checked or as an unchecked?</p>
<p>and what is the significance of ea... | java | [1] |
4,814,366 | 4,814,367 | Check jdk availability | <p>How can I manually check if jdk is installed on my machine, and if yes, what version?</p>
<p>If I had jdk in Windows 7, and now I installed Windows 8 separately on the same machine, do I need to reinstall the jdk? Or can I reuse it?</p>
| java | [1] |
2,907,090 | 2,907,091 | Invoking a method on a static object in Java evaluates some incorrect value | <p>The following simple program retrieves the current year <strong>(2011)</strong> from the system and then simply subtracts <strong>1950</strong> from the current year.</p>
<pre><code>package calculation;
import java.util.Calendar;
final public class Main
{
private static final Main INSTANCE = new Main();
p... | java | [1] |
1,617,899 | 1,617,900 | Javascript prototype and closures | <p>Given this code:</p>
<pre><code>function Test(){
var $D = Date.prototype;
$D.addDays=function(value){this.setDate(this.getDate()+value);return this;};
$D.clone = function() {
return new Date(this.getTime());
};
alert(new Date().addDays(5));
var x = 5;
}
Test();
alert(new Date().add... | javascript | [3] |
2,490,690 | 2,490,691 | extract number from string in reverse without dots | <p>I have a string <strong>6.7.0.0.1.3.6.6.1.6.1.e164.arpa</strong></p>
<p>how can I get only the number in reverse</p>
<p>like <strong>16166310076</strong>.</p>
<p>Any help is appreciated.</p>
| php | [2] |
5,950,027 | 5,950,028 | Jquery .change function not triggering | <p>I was just wondering why doesn't this script works? I'm trying to get the value of the selected (one or many items) options in a SELECT MULTIPLE. What is missing?</p>
<p>Thanks</p>
<pre><code><script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script>
$('#ooo').change(function... | jquery | [5] |
2,509,963 | 2,509,964 | why instance has no __name__ attribution in python? | <pre><code>>>> class Foo:
... 'it is a example'
... print 'i am here'
...
i am here
>>> Foo.__name__
'Foo'
>>> Foo().__name__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: Foo instance has no attribute '__name__'
>>> Foo.__d... | python | [7] |
4,354,500 | 4,354,501 | How to convert a C++ string to a char*? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/347949/convert-stdstring-to-const-char-or-char">Convert std::string to const char* or char*</a> </p>
</blockquote>
<p>Simple question but I'm new to C++. How do I convert a string to a <code>char *</code> (I rea... | c++ | [6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.