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,966,591 | 4,966,592 | Will strtok(null) cause any bugs? | <p>PHP script to read in user action requests and parse them to their components. Example, user types in <code>SET Colour = Blue</code> or <code>describe Chocolate Cake = The best cake ever!</code> I'm using like this:</p>
<pre><code>$actionKeyword = strtok( $actionRequest, " " ); // keyword followed by space
$name = ... | php | [2] |
5,740,424 | 5,740,425 | @selector key word in iPhone programming | <pre><code>-(void)displayNameBy:(NSString*)name{
mylable.text = name;
}
</code></pre>
<p>i want call this method using @selector keywords.</p>
<p>eg:</p>
<pre><code>[MyButton addTarget:self action:***@selector(displayNameBy:name)*** forControlEvents:UIControlEventTouchUpInside];
</code></pre>
<p>Here bold ita... | iphone | [8] |
4,701,390 | 4,701,391 | Passing a variable through to another PHP page | <p>I'm making a server manager. I want to add a "kill" command, which would call a php script that would essentially run a shell_exec('kill $arrtext'); and kill the process, thus closing the server down. Here is the part of my script that returns the results and checks to see which servers are running:</p>
<pre><code>... | php | [2] |
4,458,299 | 4,458,300 | Why does Firebug say toFixed() is not a function? | <p>I am using jQuery 1.7.2 and jQuery UI 1.9.1. I am using the code below within a slider. (http://jqueryui.com/slider/)</p>
<p>I have a function that should test two values and depending on the difference between the two values reformat them (to the appropriate decimal place). If the difference is greater than 10, I ... | javascript | [3] |
4,694,145 | 4,694,146 | How can I use setOnClickListener in my adapter Android? | <p>In my aplication I have ListView and adapter to my ListView. My item ListView have two elements Text and Image. Now I want to separate the text and click on the picture. </p>
<pre><code>public class MyAdapter extends ArrayAdapter<String> {
private Activity context;
private ArrayList<String> categories;
... | android | [4] |
4,616,699 | 4,616,700 | Dynamic Increase / Decrease the number with C# | <p>I have two buttons to reduce or increase the number. Also, I have a label which is has value zero. How can I increase or decrease without giving zero value to the Label in C#?</p>
<p>Code:</p>
<pre><code>int sayi = int.Parse(lbltext1.Text);
sayi = sayi - 1;
lbltext1.Text = sayi.ToString();
</code></pre>
| c# | [0] |
5,232,958 | 5,232,959 | Does asp.net use reflection to parse and build objects based on server control tags? | <p>If so, are the results cached after the first access?</p>
| asp.net | [9] |
1,344,435 | 1,344,436 | Subtract time from date using format string | <p>If I have a date and time in a DateTime object, can I remove say 10 minutes, or 24 hours etc from the date and time using a format string?</p>
<p>So if I have 1/1/1990 12:30:00pm and I wanted to remove 1 hour from it, can I use a format string?</p>
<p><strong>edit</strong></p>
<p>i need to store diary entries and... | c# | [0] |
2,773,059 | 2,773,060 | How to Add Smiley/Emojis in Edittext? | <p>How to Add Smiley/Emojis in Edittext?</p>
<p>Any Source code is Available on Internet, if yes Please Give me Link.</p>
<p>Thanks in Advance.</p>
| android | [4] |
3,350,803 | 3,350,804 | TextView.onDraw causing endless loop | <p>I want a TextView which adjusts the font size so that the text in the view will automatically expand (or shrink) to fill the full width of the view. I thought I might be able to do this by creating a customised TextView which overrides onDraw() as follows:</p>
<pre><code>public class MaximisedTextView extends TextV... | android | [4] |
2,847,962 | 2,847,963 | Alarmmanager with pending Intent | <p>The code snippet below.... </p>
<pre><code> public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
///////////Do something////////////////////////
showtext.startScan();
//SEt Alarm
Intent intent = new Intent(this, TextRec... | android | [4] |
968,920 | 968,921 | How to add ajax control in the project | <p>I am using asp.net using C#.I want to add Ajax Control to my Web Pages.I am using visual studio 2005.That had ajax basic control not extended control and bin folder contain ajax controltoolkit.dll.But when I am adding control to my page,it shows the unknown elements.I add references and select that file(dll).Still t... | asp.net | [9] |
3,744,217 | 3,744,218 | Jquery xml parser not working in Chrome? | <p>I have this jquery code:</p>
<pre><code> $.ajax({
type: "GET",
url: "http://api.ipinfodb.com/v2/ip_query.php?key=3b80b5588c22d2a03c0e6979d1e85e397e043646c4a65ffe47ff01d47bce51e",
dataType: "xml",
success: function(xml) {
alert('Success?');
$(xml).find('Response').each(function(){
var statu... | jquery | [5] |
4,643,414 | 4,643,415 | Is there a way to tell if the soft-keyboard is shown? | <p>is there a way to tell if the softkeyboard is shown in an activity or not?</p>
<p>I tried </p>
<pre><code>InputMethodManager manager = (InputMethodManager)
getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
manager.isActive(v)
</code></pre>
<p>but <strong>isActive</strong> returns false only before ... | android | [4] |
2,747,602 | 2,747,603 | How to get current Region Name using Coordinates? | <p>Hi all
I just need current location details,</p>
<p>I have done the part of getting Current location Coordinates.</p>
<p>Now i want to get the region name, etc (No Maps) details using these coordinates.</p>
<p>How to do that? Any sample code available? </p>
<p>Thanks in advance.</p>
| iphone | [8] |
69,804 | 69,805 | How can I close this thread used to run a method? | <p>I have multiple methods set up that need to be run simultaneously. I decided to create individual threads for said methods. There is also a method I made with the sole purpose of creating another thread. Here is an example of what I have done. My question is, how can I safely close these threads?</p>
<pre><code>fro... | python | [7] |
4,852,502 | 4,852,503 | Can we share session between ASP.NET 2.0 and ASP.NET 4.0 applications? | <p>Can we share session data between ASP.NET 2.0 and ASP.NET 4.0 applications? Is it possible if the types of the objects in the session are compatible?</p>
<p>I need to load an ASP.NET 4 application in Iframe on ASP.NET 2 application. The session data will be in a ASPNET Session Server or SQL server, or in AppFabric ... | asp.net | [9] |
2,809,795 | 2,809,796 | Small through-request data storage | <p>Is there any solutions or practices of how to organize small local data storage to keep some data between requests (no cookies or another sending data to server)?</p>
| javascript | [3] |
2,227,820 | 2,227,821 | Can we use PDFKit framework for iPad? | <p>i'm trying to launch a webView by clicking a URL link in a Pdf file.... but i'm unable to do it.... one of the forum member asked me to use PDFKit but it works only in MAc OS 10.0 and above. Where as i'm trying to create my APP in SDK 3.2.. please send the sample code if possible....</p>
| iphone | [8] |
376,218 | 376,219 | get heap memory used by a method in a java class | <p>i m writing a java code and i want run some performance tests .
I want to get the heap memory used by only one of the methods in my class.</p>
<pre><code> public AccessControl {
public boolean Allowed () {
code
}
public void print () {
code }
}
</code></pre>
<p>i want to get the he... | java | [1] |
3,401,938 | 3,401,939 | Is jQuery 1.4 syntax the same as 1.3 and earlier? | <p>We've written a lot of code in jQuery recently and id like to know if replacing the library with 1.4 will invalidate any of our current code or is the syntax identical?</p>
<p>Thanks in advance!</p>
| jquery | [5] |
5,404,075 | 5,404,076 | Calling native Android kernel function from user code | <p>As my <a href="http://en.wikipedia.org/wiki/Motorola_i1" rel="nofollow">Motorola i1</a> refuses to light its LED in the usual programmatic way (using NotificationManager with LED on specified), I've dived into Android Cupcake's source code and found out that the native applications such as Calendar & Messaging d... | android | [4] |
4,531,620 | 4,531,621 | Putting a pointer as a value in a method call [python] | <p>I'm trying to have a function where I can put in a list and a pointer, and have it apply that pointer to the objects in the list to give me the object with the lowest value of that pointer.</p>
<pre><code>def GetLowest(ListObject,Value):
ObjectX=ListObject[0]
for i in ListObject:
if i.Value<=O... | python | [7] |
4,899,572 | 4,899,573 | What is the best way to track internal referrals with php? | <p><code>$_SERVER['HTTP_REFERER']</code> seems to be full of holes.</p>
<p>Tracking through the url will not be possible for this particular application.</p>
<p>I have a 301 Redirect to take into account also. </p>
<p>I will check <code>$_SERVER['HTTP_REFERER']</code>, but what is a good second method to check what ... | php | [2] |
4,482,878 | 4,482,879 | Declaring value types by using operator "new" | <p>It is said that value types are stored in stack. But what happens when we declare a value type with <code>new</code>?
For example</p>
<blockquote>
<p>int a;</p>
</blockquote>
<p>is stored in stack, but</p>
<blockquote>
<p>int b=new int();</p>
</blockquote>
<p>Where does b is stored? Heap or stack? It's conf... | c# | [0] |
188,063 | 188,064 | query a set of elements, but in a particular order | <p>I have a bunch of <code><div></code> elements, each of which has a <code>name</code>. I would like to query the <code><div></code> elements using jQuery, but I want them to come by alphabetical order with respect to <code>name</code>. The usual code</p>
<pre><code>$("div").doStuff()
</code></pre>
<p>do... | jquery | [5] |
4,469,127 | 4,469,128 | Minor php issue | <p>In below code, the value of <code>date("m") is 10 i.e. October</code></p>
<p>the <code>$mame1[$i] in <td></td></code> is printing October three times.</p>
<pre><code><?php $months = array("January","February", "March","April", "May", "June", "July", "August", "September", "October", "November", "Dec... | php | [2] |
2,098,586 | 2,098,587 | What is a reasonable size of JavaScript? | <p>What is the maximum size of JavaScript that would be reasonable for a web page? I have a JavaScript program with a data segment of size about 130,000 bytes. There is virtually no whitespace, comments, or variables in this file which could be minified. The file looks something like this:</p>
<pre><code>"a":[0],
"b":... | javascript | [3] |
2,091,147 | 2,091,148 | Android web view with notification | <p>I want to implement payments into my application. Now i came to conclusion that i will call one URL in the web view. This url will be on my server and user will interact with the webpage. Now when user click submit after providing the details then my server will interact with the payment gateway and makes the paymen... | android | [4] |
3,392,017 | 3,392,018 | Android: extending PhoneBase? | <p>I know it is possible to use TelephonyManager to get information like: service state, device ID, Sim Operator, etc...
Is it possible to edit some of this information?</p>
<p>Couldn't find .set() functions on Android.com documentation but I've found the <a href="http://www.netmite.com/android/mydroid/frameworks/base... | android | [4] |
5,605,600 | 5,605,601 | httprequest to a webserver returns null json in javasqript | <p>I am trying to make a call to webservice using httpWebRequest but i get the resonse as always null JSON.</p>
<pre><code>var con = $.net.http.getConnection("http://api.geonames.org/citiesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&lang=de&username=demo");
con.setProxy("proxy", 8080);
var res... | javascript | [3] |
1,508,265 | 1,508,266 | Which book is about JDK1.5+ Thread? | <p>I wanna learn about Java Thread.and I wanna learn new feature of JDK 1.5+.
So which book is about new feature of JDK1.5+ Thread?
Thanks.</p>
| java | [1] |
2,299,546 | 2,299,547 | why is javascript onmouseover funtions is getting called on page load? | <p>I have a html page with a link and onMouseOver of that link im calling
<code>return escape(showToolTip())</code></p>
<pre><code> function showToolTip(){
alert(document.getElementById('toggleFlag'));
var text;
alert(document.getElementById('toggleFlag').value);
if(document.getElementById('... | javascript | [3] |
2,594,040 | 2,594,041 | 3rd party api/tool for Spell suggestion in android | <p>Is there any API available for spell suggestion in android .
I'm tring <a href="https://www.google.com/tbproxy/spell" rel="nofollow">https://www.google.com/tbproxy/spell</a> but nothing is working.
I have also tried worknik but this is not providing proper suggestions</p>
| android | [4] |
435,166 | 435,167 | Search functionality in asp.net | <p>I'm learning to create a webapp using asp.net and C#. And I already create a basic user database webapp. Wherein I display all the user information in a tabled manner. So basically I just used the table element from HTML and not the gridview control.</p>
<p>But I have a problem right now, I want to add a user searc... | asp.net | [9] |
2,581,564 | 2,581,565 | C++ Trickery : output actual enum, not its value | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3342726/c-print-out-enum-value-as-text">C++: Print out enum value as text</a> </p>
</blockquote>
<p>Say I have an enumeration:</p>
<pre><code>typedef enum MyEnum_
{
MY_ENUM_BLUE,
MY_ENUM_RED,
MY_ENUM_GREE... | c++ | [6] |
6,000,639 | 6,000,640 | Android HotSpot Listening Socket | <p>My app opens an http socket to accept some files from user's browser, so it needs WiFi ON for that. What I think would be cool if the app could continue doing that in WiFi HotSpot mode (tethering?) however I can't obtain the Android's IP address to start listening on. Is it possible at all?</p>
| android | [4] |
4,797,866 | 4,797,867 | How to create facebook kind of comment for my blog | <p>I am using C# asp.net. I want to implement a commenting system which is similar to facebook commenting system look & feel. Please give your inputs.</p>
| asp.net | [9] |
5,736,138 | 5,736,139 | toggle function happening on second click | <pre><code>function toggleDiv()
{
$('#myDiv').toggle(function()
{
$('.pnlMyarea').slideDown();
$('#separator').hide();
$('#manualInsert').css('margin-top', '15px');
},
function()
{
$('.pnlMyarea').slideUp();
$('#sepa... | jquery | [5] |
412,500 | 412,501 | Remove words starting with uppercase | <p>I have a string, for example FastFood, how do I remove Food and leave only first word? Also it could be VeryFastFood, then Very should be left, etc.</p>
<p>Some strings may containt 3 uppercase starting letters. I need then only this 3 letters to be left. for example YOUProblem - must be YOU.</p>
| php | [2] |
1,227,659 | 1,227,660 | php timezone displaying correct hours but not seconds and minutes | <p>I want to display the time in different timezones, so i m using this</p>
<pre><code>$date=new DateTime(null, new DateTimeZone('America/Los_Angeles')); echo $date->format('Y-m-d H:i:sP') . "\n";
$date=new DateTime(null, new DateTimeZone('Europe/Paris')); echo $date->format('Y-m-d H:i:sP') . "\n";
</code></pre>... | php | [2] |
655,595 | 655,596 | Valid use of reinterpret_cast? | <p>Empirically the following works (gcc and VC++), but is it valid and portable code?</p>
<pre><code>typedef struct
{
int w[2];
} A;
struct B
{
int blah[2];
};
void my_func(B b)
{
using namespace std;
cout << b.blah[0] << b.blah[1] << endl;
}
int main(int argc, char* argv[])
{
... | c++ | [6] |
4,157,151 | 4,157,152 | How to do "strtolower", "str_replace" and "preg_replace" in javascript? | <p>How can I do this in javascript?</p>
<pre><code>$name = $xml->name;
$file_name = strtolower($name);
$file_name = str_replace(array('-',' ',' ','å','ä','ö'), array('',' ','-','a','a','o'), $file_name);
$file_name = preg_replace("/[^a-z0-9-]+/i", "", $file_name);
</code></pre>
| javascript | [3] |
2,543,961 | 2,543,962 | Moving a Control By Mouse | <p>I am going to Moving a Button with Mouse , Everything is ok , but when I move mouse on button window , left and top of the button ( top-left corner) will locate at cursor pos .</p>
<p>I don't want this to occur . where is the bug in my code ?</p>
<pre><code>private void button1_MouseDown(object sender, MouseEventA... | c# | [0] |
3,798,989 | 3,798,990 | Basic Js function to scale two DIV's heights | <p>I want <code>#result</code> to being scaled to <code>#sidebar</code> height if set. If not, leaving <code>#result</code> at its original height. </p>
<p>My code:</p>
<pre><code>window.onload = setDiv;
function setDiv() {
var e = document.getElementById('sidebar'); // Get the sidebar infos
var eh = e.offse... | javascript | [3] |
5,503,000 | 5,503,001 | Target just the selected class with jquery | <p>I have the following code;</p>
<pre><code>$('.time-span').hover(function () {
$('.leftRadius,.rightRadius').addClass('hovered');
},
function () {
$('.leftRadius,.rightRadius').removeClass('hovered');
});
</code></pre>
<p>My markup looks like this:</p>
<pre><code><DIV class=leftRadius></DIV>
&... | jquery | [5] |
4,751,681 | 4,751,682 | How do I get the value of a textbox using jQuery? | <p>I can get the element like this <code>$("#txtEmail")</code> but I'm not sure how to get the actual value.</p>
| jquery | [5] |
3,912,345 | 3,912,346 | Activate method in Python | <p>I'm trying to set my Python programs in classes. But when I have this:</p>
<pre><code>class program:
def test(value):
print value + 1
def functionTest():
a = test(2)
if __name__ == "__main__":
functionTest()
</code></pre>
<p>I get the error : <strong>NameError: global name 't... | python | [7] |
5,305,864 | 5,305,865 | How do you combine a form element with a variable? | <p>First, how do you append data to the end of a variable in Javascript? I know for PHP you use:</p>
<pre><code>$foo = "bar";
$foo.= "bar2";
</code></pre>
<p>Next, I can get the following to work for one form field:</p>
<pre><code>var test = document.form1.option1.value;
</code></pre>
<p>However, how would I go abo... | javascript | [3] |
3,180,020 | 3,180,021 | invert filename order script | <p>I have a set of files which the names follow this pattern: xxx - 001, xxx - 002 ..... xxx - 700</p>
<p>What I would like to do it`s a python script which I can invert the order of the name of the files, doing the xxx - 700 to be the xxx - 0001!</p>
| python | [7] |
65,312 | 65,313 | Receiving mails using Javamail API and extracting attachments from the mail | <p>I wanted to receive emails using Javamail API. And i also want to extract attachments from the received mails and store those extracted attachments in a folder using Javamail API.
I want complete working code.
Thanks,
Jessica</p>
| java | [1] |
4,289,741 | 4,289,742 | Where can I find an educational game for learning jQuery? (something like regenemies) | <p>I'm attempting to refine my jQuery skills by means of playing an educational game (for learning jQuery). However, I can't seem to find one because every time I google something with "jQuery" and "game" I get results for jQuery game development. I really want to learn jQuery by playing a game similar to regenemies (<... | jquery | [5] |
2,338,684 | 2,338,685 | how do I figure out what is_image means in file.is_image in javascript?q | <p>I'm using a plugin in wich file.is_image is used. Somewhere, I reckon is_image ought to be defined. How do I find out what it is defined to?</p>
<p>I'd reckon it should be something like "$is_image =" or something like that, I'm not great with javascript syntax etc.</p>
| javascript | [3] |
893,438 | 893,439 | How can you update an 'onclick' event in jquery? | <p>I have a <a href="http://jsfiddle.net/rayd360/yjAeS/1/" rel="nofollow">JSFiddle</a> that seems like it should work but it doesn't.</p>
<pre><code>function copyform(curnum){
if(curnum == 3) $('p').html('Thank You!')
var num = $('form').length;
var newNum = new Number(num + 1);
// create the new ele... | jquery | [5] |
364,863 | 364,864 | sysout work only in class with main method | <p>I am new in Java. Under fresh Lubuntu (12.10 x64 with all updates) I download Eclipse (3.8) from Lubuntu Software Center. My problem is that <strong>System.out.print()</strong> work only in class with main method.</p>
| java | [1] |
4,090,233 | 4,090,234 | Changing CSS of a class is not effected when a dialog page is opened | <p>I have the following codes to read a list of color codes from the server and define a list of classes "cl-Colour" by setting the CSS background color. This codes work OK in that the classes are created with the correct CSS background color values.</p>
<pre><code>$.post("php/getSettings.php",
function(data){
$... | jquery | [5] |
5,556,975 | 5,556,976 | Device information | <p>How can I fetch complete device hardware and software information.</p>
| android | [4] |
4,977,895 | 4,977,896 | Unable to retrive entire content present in the .ipa file created for an application | <p>I have created an e-book reader application. I have manually added around 10 books to my application & run the application on my iPad. Everything works fine upto this point i'm able to see all the 10 books in my bookshelf.</p>
<p>I created an .ipa file out of this build, the .ipa file comprises all the 10 books... | iphone | [8] |
3,907,781 | 3,907,782 | Connecting to multiple sortable items | <p>I'm connecting to a sortable item : </p>
<pre><code>$(function() {
$('.page').sortable({
connectWith: ".connect",
items: ".myItems"
})
</code></pre>
<p>How do I connect to multiple items? something like : </p>
<pre><code>$(function() {
$('.page').sortable({
connectWith: ".conn... | jquery | [5] |
531,426 | 531,427 | Win32 still best for Windows game development? | <p>I'm looking to start a new project to work on in my free time that covers a lot of areas of Computer Science and I've decided on a game (most likely flight simulator or simple 2D side-scroller). Anyway, I do a lot of C#/Java development at work writing business applications so I'm looking to do a game in C++ (I hav... | c++ | [6] |
2,962,339 | 2,962,340 | Referring to the address of a collection element via iterators | <p>How can I refer to the address of an element in a vector using iterators. </p>
<pre><code>vector<Record>::const_iterator iter = collectionVector.begin();
while(iter != collectionVector.end())
{
//How can I refer to the address of a Record here
function(...); //accepts &Record type
}
</code></pre>
| c++ | [6] |
1,597,643 | 1,597,644 | Trying to "save" a variable for a jQuery .load() callback | <p>Is there a way to "save" a variable in jQuery?</p>
<p>I have an .each() loop that changes the value of sz[1] and fires a .load() for each value. However, when I place sz[1] in the callback function, it only uses the last recorded value of sz[1], and not the value it had when I initially called .load().</p>
<pre><c... | jquery | [5] |
5,559,097 | 5,559,098 | - (IBAction)doSomething:(id)sender model used generically | <p>So I was curious about something and not sure if there is a "standard" or "good" coding practice for something. If you have a home page for example with 3 buttons (like the facebook iphone app dashboard), that go to various parts of the app by pushing a view controller, then on one button, I would have the IBAction... | iphone | [8] |
1,571,691 | 1,571,692 | to see if item in dropdownList has been selected | <p>I would like to know what the best way would be to loop through a dropdown list in html to see if and item has been selected or not.</p>
<p>I know in C# it would be something along the lines of</p>
<pre><code>int selected = cmbFamily.SelectedIndex;
for (int loop = 0; loop < cmbFamily.Items.Count; loop+... | javascript | [3] |
4,990,021 | 4,990,022 | how to allow only certain selected users to download data from site | <p>I have a page in which i upload a circular & also select users who can view this page using multiple select dropdown box.
Now how to display the uploaded file to selected users when they login and not to other users.
Can anybody help.
Thanks in advance.</p>
| php | [2] |
4,092,417 | 4,092,418 | How can I use Google API to obtain the Geolocation inside buildings? | <p>I'm looking for a program for locating places inside buildings. Has anyone done that before? </p>
| android | [4] |
2,540,493 | 2,540,494 | Help using ImageSwitcher in android | <p>So In my program I used to use Imageviews in my layout to display images and had it so when a user pressed the Imageview it changes images. But i recently upgraded my project to version 8 and updated by SDK and i see now that there is a ImageSwitcher view under Transitions. I would like to replace my ImageViews with... | android | [4] |
5,721,775 | 5,721,776 | compatibility of ASP.net Pages with other OS es | <p>I was Planing to make my website and thought that either use ASP.net or Php as i have not used php but know c# so can do ASP.net.but problem that i came to mind as i make desktop apps are only for windows. what if i make a website in dot net (cross platform compatibility dose not hold for desktop apps) would users b... | asp.net | [9] |
1,514,967 | 1,514,968 | Get errors with javamail | <p>i'm trying an example of javamail and i get the following error:</p>
<pre><code> Exception in thread "main" javax.mail.AuthenticationFailedException: [AUTH] Application-specific password required: http://www.google.com/support/accounts/bin/answer.py?answer=185833
at com.sun.mail.pop3.POP3Store.protocolC... | java | [1] |
1,672,749 | 1,672,750 | How to set headers to send mail in php when message contains attachments and HTML body | <p>I need to send one mail using php code. The mail contails HTML Part, Text , and two attachments (xls) file. How do i set headers and message body . For me Only one is working at a time either mail body or attachment. Please help</p>
| php | [2] |
136,781 | 136,782 | c# im getting an error | <pre><code>double dval = 1;
for (int i = 0; i < Cols; i++)
{
k = 0;
dval = 1;
for (int j = Cols - 1; j >= 0; j--)
{
colIndex = (i + j) % 3;
val *= dval[colIndex, k];
k++;
}
det -= dval;
}
</code></pre>
<p>im getting an error </p>
<blockquote>
<p>Cannot apply in... | c# | [0] |
1,606,169 | 1,606,170 | R sum in a while loop | <p>I have loop and display this row</p>
<pre><code><?
if ($objResult["cashier_trans_Type"]=="out" ||
$objResult["cashier_trans_Type"]=="debit to customer" ||
$objResult["cashier_trans_Type"]=="debit") {
echo "0.00";
} else {
echo $Dofaa=number_format($objResult["cashier_trans_Value"]... | php | [2] |
4,572,819 | 4,572,820 | Tab '\t' in alert box not working with Chrome | <p>I want to display the three lines of text in "Javascript alert box" with center alignment of text.
Im using the following code for that,</p>
<p><code>alert(
'\t\t\t\t'+"Congratulations!" + '\n\t' +
"You are now subscribed with test.com!" + '\n' +
"Keep on eye out on your inbox for future updates from u... | javascript | [3] |
4,959,805 | 4,959,806 | How can I check if a string contains another string in C# | <p>I have strings like this:</p>
<pre><code>var a = "abcdef * dddddd*jjjjjjjjjjjjj";
var b = "aaaaaaaaaaaaaaaaaaaaaaaa * aaaaaa";
var c = "hhhhhhhhhhhhhhhhhhhhhhhhhhh";
</code></pre>
<p>Is there a smile way for me to check if the string contains a " * " within the first 20 characters?</p>
| c# | [0] |
1,735,815 | 1,735,816 | Free ad exchange framework for Android? | <p>I know that Android has some ad networks to monetize the apps. But I'm looking for an ads systems that allows me to advertise for free on other apps/games, and at the same time I advertise them on mine.</p>
<p>In windows phone we have this: <a href="http://www.adduplex.com/" rel="nofollow">http://www.adduplex.com/<... | android | [4] |
1,512,180 | 1,512,181 | Where does the Encryption of ViewState (ViewStateEncryptionMode) happen? | <p>It could be a basic question on this topic. I am reading that the View State can be encrypted, by setting the ViewStateEncryptionMode.</p>
<p>Even when the ViewStateEncryptionMode is not specified, the __VIEWSTATE hidden filed seem to be having encrypted values.</p>
<p>Assuming this is based on the default value V... | asp.net | [9] |
4,310,532 | 4,310,533 | Genetic Algorithm optimization - using the -O3 flag | <p>Working on a problem that requires a GA. I have all of that working and spent quite a bit of time trimming the fat and optimizing the code before resorting to compiler optimization. Because the GA runs as a result of user input it has to find a solution within a reasonable period of time, otherwise the UI stalls a... | iphone | [8] |
5,151,318 | 5,151,319 | Factorial loop results are incorrect after the 5th iteration | <p>I am currently taking pre-calculus and thought that I would make a quick program that would give me the results of factorial 10. While testing it I noticed that I was getting incorrect results after the 5th iteration. However, the first 4 iterations are correct.</p>
<pre><code>public class Factorial
{
public st... | java | [1] |
1,355,352 | 1,355,353 | Android Development: How do graphics work in Android? | <p>I am an android development beginner with some experience in other object oriented languages like java, python, c#. So I have created various games before in Java, using buffers and graphics to draw lines and stuff. How do I do that stuff in android? I looked at some online guides, and they all seem to create a clas... | android | [4] |
460,378 | 460,379 | How to access ASP.NET App Over a Network Using IP Address | <p>My asp.net web app is hosted on this URL on my local machine: </p>
<pre><code>http://localhost:45433/
</code></pre>
<p>I want to access the same application from a different computer on the network. I tried replacing the localhost with my IP but it did not work. </p>
<p>any ideas!</p>
<p><strong>UPDATE 1:</stron... | asp.net | [9] |
1,603,605 | 1,603,606 | Can JQuery check for the correct combination of class names eg .correct & .selected via a button? | <p>I'm trying to create a basic game using jQuery where a user clicks and selects a certain combination of images and then a notification appears.</p>
<p>Can anyone at the very least can point me in the right direction on how to go about this as all attempts up until now have failed miserably.</p>
<p>Thanks.</p>
| jquery | [5] |
3,356,124 | 3,356,125 | sending sms with php via email or direct no | <p>how can i send sms message to a phone number so that it forwards the sms to the number sent by me........via php</p>
| php | [2] |
2,828,338 | 2,828,339 | python 2.7 windows 7 installing mysqllib mingw32 | <p>setup.py install build --compiler=mingw32</p>
<blockquote>
<blockquote>
<p>gcc: error /Z1: No such file or directory</p>
<p>error: command 'gcc' failed with exit status 1</p>
</blockquote>
</blockquote>
<h1>Any suggestions? Thanks!</h1>
| python | [7] |
2,807,402 | 2,807,403 | Compare dates - overlooking the hour part | <p>I frequently use the NSDate compare method - but I want to consider two dates similar if they are equal in year, month, day. I have made a procesure called "cleanDate" to remove the hour part before I compare.</p>
<pre><code>-(NSDate*)cleanDate:(NSDate*)date {
NSCalendarUnit unitflags;
NSDateComponents *com... | iphone | [8] |
3,489,143 | 3,489,144 | audit checker for comments | <p>I have a java program that runs automatically every morning and contains several methods that are all independent of each other. Sometimes I have to do testing, so I will comment out all of the methods I am not using. This is a problem bc sometimes I forget to uncomment the code and the program may run for a few d... | java | [1] |
3,750,149 | 3,750,150 | In JavaScript doing a simple shipping and handling calculation | <p>I am having trouble with a simple JavaScript calculation. My document is supposed to add $1.50 to an order if it is $25 or less, or add 10% of the order if it is more then $25. The exact problem is: </p>
<p>Many companies normally charge a shipping and handling charge for purchases. Create a Web page that allows a ... | javascript | [3] |
1,520,653 | 1,520,654 | Add Colors in Combo box in .NET Windows application | <p>How to add 'Colors' (not color name, color itself ) as an item in combo box in C#?</p>
| c# | [0] |
4,278,948 | 4,278,949 | How to get Purchased state of a managed productid in android in appbilling? | <p>I am using market billing Dungeons example for inapp billing.Its working fine.But my problem is i purchased a product with reserved productid "android.test.purchased" and it displays in my product list,but if i uninstall my app and re-install iam not getting the product.How to get purchased items even if i uninstall... | android | [4] |
485,112 | 485,113 | How to send request in samlphp | <p>I am simplesamlphp download and install simplesamlphp.
How to send saml requets(AuthNRequest) in samlphp. </p>
<pre><code> how can i send issuesinstant,id,entityid.
how can i need this form..
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:saml="urn:oasis:names:tc:SAML:... | php | [2] |
2,732,864 | 2,732,865 | TypeError: unsupported type for timedelta days component: datetime.datetime | <p>I am trying to perform some date arithmetic in a function.</p>
<pre><code>from datetime import datetime, timedelta
def foo(date1, summing_period):
current_period_start_date = date1 - timedelta(days=summing_period)
# Line above causes the error:
# TypeError: unsupported type for timedelta days component... | python | [7] |
2,598,602 | 2,598,603 | Timeago Jquery plugin not working | <p>Jquery:</p>
<pre><code><script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/timeago.js" ></script>
$(document).ready(function(){
jQuery("abbr.timeago").timeago();
});
</code></pre>
<p>html:</p>
<pre><code><abbr... | jquery | [5] |
64,222 | 64,223 | How to change the iframe width and height in PHP | <p>Can any body tell how to change the width & height of iframe in php.
in database i am saving below format.while i am displaying i want to fixed size.</p>
<p>this is the iframe content</p>
<pre><code><iframe width="400" height="225" src="http://www.youtube.com/embed/c7ct6pNOvEE?feature=oembed" frameborder="0... | php | [2] |
5,769,249 | 5,769,250 | C#, rotating 2D arrays | <p>I've looked at other post on rotating 2D arrays, but it's not quite what I want.
I want something like this</p>
<pre><code> int[,] original= new int[4,2]
{
{1,2},
{5,6},
{9,10},
{13,14}
};
</code></pre>
<p>I want to turn it like this,
rotatedArray = { ... | c# | [0] |
4,190,072 | 4,190,073 | Why does a global application context not work with "getassets" | <p>Just ironed out a bug in my Android app. I was trying to use getAssets() to pull a file from my assets directory. I subclassed Application and returned a "getApplicationContext" object so that all my classes can use a context whenever they need to.</p>
<p>But after much headache and NullPointerExceptions, it turns ... | android | [4] |
3,540,278 | 3,540,279 | Understanding Global & Local Scope in Javascript | <p>I've been learning Javascript using <a href="http://www.packtpub.com/object-oriented-javascript/book" rel="nofollow">Object-Oriented JavaScript by Stoyan Stefanov</a></p>
<p>He offers an example comparing global and local scope:</p>
<pre><code>var a = 123;
function f() {
alert(a);
var a = 1;
alert(a);
... | javascript | [3] |
67,173 | 67,174 | complex if statement in python | <p>I need to realize a <em>complex</em> if-elif-else statement in Python but I don't get it working.</p>
<p>The elif line I need has to check a variable for this conditions:</p>
<p><strong>80, 443 or 1024-65535 inclusive</strong></p>
<p>I tried </p>
<pre><code>if
...
# several checks
...
elif (var1 > 65535... | python | [7] |
2,923,291 | 2,923,292 | android development phone | <p>Is there any android development phone available? and at what cost? and what is the specialty of this phone comparing with normal android phone? </p>
| android | [4] |
1,006,805 | 1,006,806 | JavaScript class - trouble accessing public var in private method | <p>Seems like a simple problem, but can't get this to work.</p>
<p>In the example below, unselect is called but the public variable 'this.backSelected' is undefined. If I move the code of the unselect method directly into the public off method it works.</p>
<p>how would I check a public variable in a private method? ... | javascript | [3] |
3,505,341 | 3,505,342 | Whether can set the theme of ProjectA to ProjectB? | <p>Whether can set the theme of ProjectA to ProjectB? how to modify framework to support it?
The code like that:</p>
<pre><code>friendContext = this.createPackageContext("com.android.projecta",
Context.CONTEXT_IGNORE_SECURITY);
Theme theme=friendContext.getTheme();
setTheme(theme);
</code></pre>
<p>There ... | android | [4] |
3,729,236 | 3,729,237 | split from full stop in java | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/7935858/the-split-method-in-java-does-not-work-on-a-dot">The split() method in Java does not work on a dot (.)</a> </p>
</blockquote>
<p>I'm new to java. I want to split a String from "." (dot) and get those nam... | java | [1] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.