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 |
|---|---|---|---|---|---|
5,628,962 | 5,628,963 | How to simulate Func<T1, T2, TResult> in C++? | <p>In C#, I use Func to replace Factories. For example:</p>
<pre><code>class SqlDataFetcher
{
public Func<IConnection> CreateConnectionFunc;
public void DoRead()
{
IConnection conn = CreateConnectionFunc(); // call the Func to retrieve a connection
}
}
class Program
{
public... | c++ | [6] |
5,462,744 | 5,462,745 | Missing Data Using MS Access | <p>I have a c# programm that uses MS Access. I execute the following SQL statement</p>
<pre><code>SELECT * FROM DATA LEFT JOIN LINEITEMS ON DATA.PRI_KEY=LINEITEMS.ID
</code></pre>
<p>Data.Pri_key is always populated as is Lineitems.ID.</p>
<p>I have a very large data file that populates the two tables Data & Lin... | c# | [0] |
3,090,049 | 3,090,050 | Android 1.5 api giving wrong output | <p>I am working with android 1.5 api, I know it is deprecated, but its client requirement. I am using following code to read Contacts address but every time it give address count zero. I am not able find out what is the problem</p>
<pre><code>private void getAddress(String _Id)
{
Cursor curAddress=null;
try
... | android | [4] |
4,390,313 | 4,390,314 | get phone number in android | <p>I use this code to get phone no in android2.1.but i don't suceed please help me</p>
<p>public void onCreate(Bundle savedInstanceState)
{</p>
<pre><code> super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String contactId,name,number;
Cursor cursor=getContentResolver().query(Cont... | android | [4] |
2,944,300 | 2,944,301 | In App Purchase Problem | <p>please help me , i am getting product count 0 in response.product.
i have followed all the steps of in app purchase in documentation .
1.Provisioning profile and i allowed in app purchase.
2.Dummy app binary uploaded to itunes and rejected that by myself.
3.Setup 2 products in itunes in app purchase and app identifi... | iphone | [8] |
4,940,165 | 4,940,166 | How to use a segment to select a value then use that value in a formula | <p>I am trying to simply have a segment when selected pick a factor and use it in a formula. The problem i am having is converting the factor a (float) into a value a (double) and show this on the display. What am I doing wrong here? Seems like an easy fix but I've tried a lot of things to no avail.</p>
<h2>.h</h2... | iphone | [8] |
637,070 | 637,071 | Is ther anyway to create a non-type template parameter for a class but not declare using <>? | <p>My original code looks like this:</p>
<pre><code>class a{
...
char buff[10];
}
</code></pre>
<p>and im attempting to make this change to the code:</p>
<pre><code>template <int N = 10>
class a{
...
char buff[N];
}
</code></pre>
<p>Is there any thing I can do to keep my existing code creating instances of cl... | c++ | [6] |
3,159,279 | 3,159,280 | how to use different package for different device in android? | <p>Hi i have develop a application in android which run in every device, i use different layout for different size device's but i have use some code programmatically without xml so, it create a problem in different size device.</p>
<p>so i require to change the package acording to the device resolution so, it can pos... | android | [4] |
349,238 | 349,239 | How to periodically poll some value using Java (Swing)? | <p>I am using swing based model.My form contains one Jbutton its called "polling(function name is getvalue())".I have a function name as "getvalue()".This function does retrieve values(this value will change after some span of time) and print it in console. I want code and idea about, that function will call automatica... | java | [1] |
3,308,031 | 3,308,032 | How to access instance variable and method in main activity from other activity? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables">Android: How to declare global variables?</a> </p>
</blockquote>
<p>I want to access public instance variable in main activity from other activity.
And I want to c... | android | [4] |
4,020,809 | 4,020,810 | PHP topic viewing and replying script | <p>I'm working on a small board/forum. I have topic posting done; it's visible in the database and all that jazz. Now I'm working on retrieving the topic list and so that when you click a topic you can view it. That's working fine, except that when I click on it the page goes blank and nothing is being shown. I know... | php | [2] |
3,742,329 | 3,742,330 | Android bumping/file sharing technology | <p>There are a number of applications on the market that allow Android phones to exchange files or some other information. Those applications usually rely on two Android devices being in close proximity and detecting each other's presence. I do not think that they use bluetooth communication to send signal to each othe... | android | [4] |
1,974,060 | 1,974,061 | Crop the Image and display it | <p>I am getting an image from the Internet and I am showing the image on to the ImageView. Please let me know is there any way in which I can compress the image(to a particular size/dimension) and show it on the Imageview, as the image is user-uploaded image.
Thanks </p>
| android | [4] |
5,010,927 | 5,010,928 | program is stuck on taskbar while shutting down windows | <p>I have built a program with C# and the program keeps running on system tray near the windows clock. When I try to shut down windows, the program is still running and shutting down windows get stuck.</p>
<p>This is not a program with Windows 7.So my question here is how to add 'something magic' to allow windows to s... | c# | [0] |
4,081,719 | 4,081,720 | Why is my function called two times? | <pre><code> $(document).ready(function () {
doSomething(1);
$('#pp').click( doSomething(2) );//why is this called?? I didn't click the button..
});
function doSomething(v) {
alert(v);
}
</script>
<body>
<input type="button" id="pp" value="asdf" />
</code></pre>
<p>I need a function to be... | jquery | [5] |
2,432,639 | 2,432,640 | Is it possible to check how much size of an image is loaded using JavaScript | <p>It's a perfectly dumb question. But I just wanted to clear my doubt. When a image is loading we can check loading state using <code>onload</code> or <code>oncomplete</code> events. But I just wanted to know how much portion of the images is loaded using JavaScript. Is it really possible? </p>
<p>My question is, Ca... | javascript | [3] |
3,936,152 | 3,936,153 | sorts in python | <p>I am trying to learn python and get good at algorithms. This is my first language.</p>
<p>for example: take "baggage" and sort into "aabeggg"</p>
<pre><code>string = "baggage"
count = [0] * len(string)
for x in string:
num_value = ord(x)
count[num_value] += 1
</code></pre>
<p>I think the above is a start... | python | [7] |
5,920,843 | 5,920,844 | how to update EditTextPreference existing summary when i click ok button | <p>dear i am able to show EditTextPreference with default summary ...now i want to update it when i enter new value in Edit Text box and click ok then it should be upadate the value of summary...but i am unable to do that my code is below pls update in my code which required...v.v thanks in advance..</p>
<pre><code> ... | android | [4] |
27,618 | 27,619 | jQuery: two <button> in one form problem | <p>I have two <code><button></code> elements in one form.
First <code><button></code> have a click handler, which removes the form.
Second <code><button></code> have click handler which submits the form.</p>
<p>Everything is fine, until i press <code>enter</code> inside any input field in the form. I... | jquery | [5] |
4,252,276 | 4,252,277 | How can I call a .exe file W/unknown Path? | <p>How can I call a .exe file W/unknown Path which installed on the machine in C#?</p>
<pre><code>Process.Start(?);
</code></pre>
| c# | [0] |
2,637,277 | 2,637,278 | Accessing SMS gateway from php application | <p>I have finally(with stackoverflow's help and Darhazer)..gotten to the final stage of my sms application.The last hurdle is that the gateway api is not sending the sms messages from my application.However when i place it directly on the address bar and call it,it works. I am using cURL in a loop to send it.Please poi... | php | [2] |
993,815 | 993,816 | Is it possible to print out the size of a C++ class at compile-time? | <p>Is it possible to determine the size of a C++ class at compile-time?</p>
<p>I seem to remember a template meta-programming method, but I could be mistaken...</p>
<hr>
<p>sorry for not being clearer - I want the size to be printed in the build output window</p>
| c++ | [6] |
2,190,466 | 2,190,467 | Cannot get length in array | <p>I could not even get the alert prompt. What wrong did I done on IE9?</p>
<pre><code><script type="text/javascript">
var countrieslist=document.sc.s1
var subjlist=document.sc.s2
var subj=new Array()
subj[0]=""
subj[1]=["New York|newyorkvalue", "Los Angeles|loangelesvalue", "Chicago|chicago... | javascript | [3] |
5,984,347 | 5,984,348 | jquery eventually stops working | <p>I am making a dropdown menu with the following script, the dropdown effect works the first few mouse hovers but then stops working, any ideas? thanks!</p>
<pre><code>$(document).ready(function(){
$("ul.topnav li").hover(function() {
$(this).children().fadeIn(800);
},
function() {
$... | jquery | [5] |
5,640,711 | 5,640,712 | Define variables with "{}object", unexpected TypeError | <p>If <code>{}object</code>, e.g. <code>{}"string"</code>, <code>{}[1, 2, 3]</code>, or <code>{}({})</code> is exactly equal (according to <code>===</code>) to <code>object</code>, e.g. <code>"string"</code>, <code>[1, 2, 3]</code>, or <code>({})</code>, why can you define a variable with the latter but not the former?... | javascript | [3] |
3,499,430 | 3,499,431 | How do I calculate a random point that is a fixed distance from another point? | <p>I suppose by distance I mean radius, so another way of phrasing it would be "how do I get random points on the circumference of a circle of a given radius, given also the circles centre point".</p>
<p>I don't understand the markdowns. This is a simple C# question that requires a simple C# answer as provided adequa... | c# | [0] |
2,709,707 | 2,709,708 | Making some child visible of expandablelistview when a group is collapsed in android | <p>I have make a expandable listview in android. I want to display some child of a group when group is collapsed. Please help me soon. thank's </p>
| android | [4] |
658,869 | 658,870 | Is there a way to know that a custom notification is about to be shown? | <p>I have a custom notification which is always available to the user (not a notification for a specific event) and should present up-to-date data.
Is there a way to know the notifications screen is being shown so I can update my notification data just at this time, instead of polling new data periodically?</p>
<p>Tha... | android | [4] |
1,118,808 | 1,118,809 | preserve argspec when decorating? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3729378/how-can-i-programmatically-change-the-argspec-of-a-function-in-a-python-decorato">How can I programmatically change the argspec of a function in a python decorator?</a> </p>
</blockquote>
<p>argspec is a... | python | [7] |
3,866,316 | 3,866,317 | How to compile Python with all externals under Windows? | <p>When I compiled Python using <code>PCBuild\build.bat</code> I discovered that several Python external projects like ssl, bz2, ... were not compiled because the compiler did not find them. </p>
<p>I did run the <code>Tools\Buildbot\external.bat</code> and it did download them inside <code>\Tools\</code> but it looks... | python | [7] |
1,793,170 | 1,793,171 | Is there a difference between "private readonly" and "readonly private"? | <p>I was just reviewing some code and noticed someone had marked member as <code>readonly private</code>. Is this different from <code>private readonly</code> in any way?</p>
<p>Example:</p>
<pre><code>readonly private MyClass myInstance = new MyClass();
</code></pre>
<p>I have never seen this before. I always use <... | c# | [0] |
4,398,454 | 4,398,455 | Abstract Functors in C++ | <p>I would like to write an abstract base class</p>
<pre><code>class func_double_double_t : public unary_function<double, double>
{
virtual double operator()(double x) = 0;
};
</code></pre>
<p>and specialize it for several different types</p>
<pre><code>class func_pow_t : public func_double_double_t
{
pub... | c++ | [6] |
4,248,738 | 4,248,739 | How to marshall void* with platform invoke | <p>I need to call a function from a C api contained in a dll. Function prototype looks as follows....</p>
<pre><code>int func( char* name, void* value );
</code></pre>
<p>where the contents of the pointer value can refer to any type dependent on the passed name. I an unsure how to set up the Dll inport to correctly... | c# | [0] |
1,236,396 | 1,236,397 | How to read Varian hnd files using java | <p>I have these "Varian hnd" files in my computer and I want to know if there is a way that I can open these files using eclipse or netbeans in java?. I think that these files have some images and I want to show them on my computer but I have no idea how to proceed. Also, can anyone explain to me about the format/exten... | java | [1] |
1,097,156 | 1,097,157 | Working out the future date with minutes variable | <p>say i have a variable integer of <code>3000</code></p>
<p>Which equates to <code>3000 minutes</code>, how would i work out the date from now, to <code>3000 minutes</code> into the future?</p>
<p>If it helps, i do have some php which has already broken it down into the variables</p>
<pre><code>$days
$hours
$minute... | php | [2] |
58,157 | 58,158 | SDK.DIR is missing? android update project? | <p>I get this error when I do ant release: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var</p>
<p>typing in android update project I get another error saying I must specify the path .... to the project. </p>
<p>Then I try cd into the direct... | android | [4] |
2,049,376 | 2,049,377 | Expand a DIV only when content overflows? | <p>My concept: So i have a fixed height DIV that containts a variable amount of content. If the content overflows from the box, it is initially hidden (via CSS), but if you mouseover the box, it should expand to the height needed to display the content.</p>
<p>This is what I have so far to accomplish this:
<a href="h... | jquery | [5] |
1,264,548 | 1,264,549 | C++ passing a pointer to static function changes value during execution | <p>Here is my code</p>
<pre><code>Node* Node::createNode(int n)
{
Node newNode(n);
Node *temp = &newNode;
return temp;
}
void Node::printNode(Node* node)
{
cout << node->data << "\t" << node->next << endl;
system("pause");
}
</code></pre>
<p>Here is the main func... | c++ | [6] |
122,030 | 122,031 | python automatic (or dynamic) import classes in packages | <p>I'm writing some kind of automated test suite and I want to make sure the classes contained in the package 'tests' get imported automatically upon runtime in the main namespace, without adding them to the <code>__init__</code> file of the package.</p>
<p>So here is the script I have so far:</p>
<pre><code>import o... | python | [7] |
2,954,565 | 2,954,566 | For loop not behaving as expected without nested do-while | <p>I wrote the following code to shuffle a deck of cards:</p>
<pre><code>int i,j;
for(int x=1;x<53;x++) {
i=rand()%4;
j=rand()%13;
if(deck[i][j]=0)
deck[i][j]=x;
else
x--;
}
</code></pre>
<p>That didn't produce any result, whereas the following code produced results:</p>
<pre><... | c++ | [6] |
485,830 | 485,831 | Strange javascript operator: expr >>> 0 | <p>the following function is designed to implement the <code>indexOf</code> property in IE. If you've ever had to do this, I'm sure you've seen it before.</p>
<pre><code>if (!Array.prototype.indexOf){
Array.prototype.indexOf = function(elt, from){
var len = this.length >>> 0;
var from = Number(arg... | javascript | [3] |
2,524,443 | 2,524,444 | Iterate JSON object | <p>I have the following JSON Object:</p>
<pre><code>{
"a1_1_on" : "on",
"a1_1_thr" : "",
"a1_2_on" : "on",
"a1_2_thr" : "",
}
</code></pre>
<p>and I want using a for loop to check the fields for example:</p>
<pre><code>for (var i=1; i<2; i++) {
//alarm
var al = 'ai_' + i + '_on';
//alarm thres... | javascript | [3] |
4,084,237 | 4,084,238 | How do I traverse in a single linked list to a specific node with name age and height? | <p>Now say theres a linked list with 4 nodes.With name age and height.
Now I want to move the pointer to the second node and 4th node so that I could insert a new node inbetween the 2nd and 3rd node of the linked list.</p>
<p>How will I go about this and how will I add values of name, age and height in the new node to... | c++ | [6] |
2,019,486 | 2,019,487 | Sharing cache between multiple web-sites | <p>We have about 50 web-sites, running in different application pools, that read from a common cache database (using Microsoft Enterprise Library Caching application block). </p>
<p>We currently have a console application which populates the cache at 3AM every morning. However, we want to get rid of this application a... | asp.net | [9] |
224,100 | 224,101 | Can JavaScript retrieve a file that is above the web root? | <p>Is it possible to make JavaScript retrieve a file that is above the web root?</p>
<pre><code>function sendurl(url) {
if(document.images){
(new Image()).src="../recieve_url.php?url="+url;
}
return true;
}
</code></pre>
| javascript | [3] |
1,678,519 | 1,678,520 | Timer not working properly in android mobile | <p>I have developed one application which do some task periodically. For that i have set one timer object with task in it. It works fine in the android emulator but as I deployed the same application on the Android Mobile, it shows 2-6 minutes delay everytime and do not work after day crosses. Can someone please tell ... | android | [4] |
3,966,016 | 3,966,017 | Android: Using drawArc() with different arc sizes with all the same center | <p>I am trying to draw a pie chart in a slightly different way than the conventional way. The pie has equal pieces no matter what, but then each piece's radius is different. So all the arcs are still centered at one point but have different radiuses.</p>
<p>Here is the simplified code for it.</p>
<pre><code>rect1 = n... | android | [4] |
4,184,250 | 4,184,251 | class attribute with css in jquery | <p>I need jquery function do this: </p>
<p>First:</p>
<pre><code><a class="MyClass1 Myclass2 {padding-top:10px;height:20px;}"></a>
</code></pre>
<p>After calling function:</p>
<pre><code><a class="MyClass1 Myclass2" style="padding-top:10px;height:20px;"><a/>
</code></pre>
<p>Function must w... | jquery | [5] |
4,078,531 | 4,078,532 | Scan class or jar file in Java | <p>I need to scan class or jar file that implements or extend a specific class.<br>
It's the same mechanism that Eclipse use to scan the plugin presence.
There is a way to do this ?</p>
| java | [1] |
4,090,557 | 4,090,558 | php: massive assignement | <p>I want to do a massive assignement of my protected vars, i used this code:</p>
<pre><code>protected $_productName = '';
protected $_price = 0;
protected $_categoyId = 0;
public function setAttributes($attributes)
{
foreach($attributes as $key => $val)
{
$var = '_' . $key;
$this->$var = $... | php | [2] |
1,951,265 | 1,951,266 | Changing public key token, how to redirect assemblies? | <p>One of my customer wants to change the assembly signing policy.</p>
<p>Basically, all code and assemblies will be signed with the same and unique snk file.</p>
<p>Unfortunately, a very large code base is using the old public key token.</p>
<p>Is there a way to "redirect" old name to new name assembly?</p>
<p>I'v... | c# | [0] |
3,320,367 | 3,320,368 | Why isn't this program printing out hex values? | <p>It's been a long time since I've touched C++ and I've never been quite fluent in the language, so forgive my ignorance.</p>
<p>I've written the following little program to mess around with XOR encryption:</p>
<pre><code>#include <iostream>
#include <iomanip>
#include "string.h"
using std::cout;
using ... | c++ | [6] |
3,838,260 | 3,838,261 | Java import can be slow? | <p>Is import package.* slower than import package.MyClass?
If yes, in which scneario: runtime or compilation?</p>
| java | [1] |
1,423,336 | 1,423,337 | Android Will the CountDownTimer remain counting when device goes to sleep? | <p>I am using a CountDownTimer to log a user out of my app after a specified time. I am wondering if the Timer keeps going even if my app is sent to the background or if the phone locks because the user put their phone down? If anyone thinks I should use a different timer method please let me know.</p>
<p>Thanks</p>
| android | [4] |
3,193,588 | 3,193,589 | Android Dialog Activity | <p>I need help on following:
When i touch on my mainActivity, it should handle onTouch event and start new activity which is dialog activity. I am not able to do it. Can anyone suggest anything.</p>
<p>I add <code>android:theme="@android:style/Theme.Dialog"</code>.
If i design simple Dialog activity then it works fine... | android | [4] |
5,435,814 | 5,435,815 | How to check if a String contains any of some strings | <p>I want to check if a String s, contains "a" or "b" or "c", in C#.
I am looking for a nicer solution than using</p>
<pre><code>if (s.contains("a")||s.contains("b")||s.contains("c"))
</code></pre>
| c# | [0] |
2,174,348 | 2,174,349 | android - How to finishes the all acitivities | <p>My application have 10 activities. Every activity contains one button.if you click on that button then all activities will be finished(it means like Logout in gmail). Here i am using 2 steps. But it's not working.
1. Clear the stack using intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) for every activity calling.
2.... | android | [4] |
5,601,577 | 5,601,578 | which payment gateway or payment methods is better in iphone? | <p>I want to implement payment methods in iphone.I dont know which is better and also don't know which payment methods is supported in iphone.PLease provide me some reference documents so i can get idea about that.Please help me for this query.</p>
<p>Thanks in advance</p>
| iphone | [8] |
2,804,933 | 2,804,934 | encoding of text by using java code | <p>the my code by using servlet language that read the text line by line and fill string buffer each 5000 words in a string buffer then display the content in jsp page and I put in header display text in utf-8 the problem is when the text in utf-8 encoding the code read it in unkown character and I want my code to read... | java | [1] |
1,894,580 | 1,894,581 | Stop a javascript function inside a jquery? | <p>I want to cancel/stop a javascript function if some criteria is not matching in jquery</p>
<pre><code><div id="prewrapper">
<ul class="tabs seller">
<li class="active">
<a onclick="adc.FormHandler.goto('user_edit', 0); return false;" href="#"><i data="1" class="ico... | jquery | [5] |
944,613 | 944,614 | resize a div using onload | <p>I am trying to resize a div onload without having a javascript function in the header. So far my code looks like the code below, and while I am somewhat familiar with javascript, I am very much so a beginner.</p>
<p>What I am wanting to do is take a div that has a height set in the stylesheet of 100%, and subtract ... | javascript | [3] |
4,683,054 | 4,683,055 | Custom view with button like behavior on click/touch | <p>I have created a custom View which I usually attach an onClickListener to. I'd like to have some button like behavior: if it is pressed, it should alter its appearance which is defined in the onDraw() method. However, this code does not work:</p>
<pre><code>//In my custom View:
@Override
protected void onDraw(Canv... | android | [4] |
5,554,167 | 5,554,168 | What does a pipe in a macro signify? | <p>How is the following macro definition resolved?</p>
<pre><code>#define EMAIL_SERVER_ADAPTER_FATAL_ERROR MSB_RETURN_TYPE_FATAL_ERROR | 1
</code></pre>
<p>I mean, is it resolved to 1 or to MSB_RETURN_TYPE_FATAL_ERROR and why?</p>
| c++ | [6] |
1,918,743 | 1,918,744 | I can't find the wrong code on line 23 | <p>I can't find the wrong code on line 23.</p>
<pre><code><html>
<head><title>cw5</title></head>
<body>
<form method=post>
Please enter 2 numbers: <br>
The first number: <input type="text" name="num1"><br>
The second number: <input type="text" name="num2"... | php | [2] |
1,425,223 | 1,425,224 | How to Connect to computer on the workgroup? | <p>I am trying to connect to a computer over the workgroup. My code is below: </p>
<pre><code>ConnectionOptions options = new ConnectionOptions();
options.Impersonation = ImpersonationLevel.Impersonate;
options.Username = "testusername";
options.Password = "testpwd";
ManagementScope scope = new ManagementScope(@"\\... | c# | [0] |
455,553 | 455,554 | Disable submit button untill any form element change? | <p>Heres what im trying to do. After the form is submitted, i want to disable the submit button until any form element is changed. I already got it almost working using a different question on stackoverflow:</p>
<pre><code>$('#myform').find (':submit').attr ('disabled', 'disabled');
// Re-enable submit
var form = $('... | jquery | [5] |
1,906,833 | 1,906,834 | question related to quit the application | <p>I want to quit the application programatically?
how to do it with code?</p>
<p>generally we do it by pressing home button.</p>
| iphone | [8] |
3,827,529 | 3,827,530 | How to find if there are active downloads using API level 8? | <p>Is there a way to find if there is active downloads programmatically working on API level 8?
I need to do an application for android that turns off wifi if there a no downloads active.</p>
| android | [4] |
4,180,419 | 4,180,420 | Why the output getting differed in hexadecimal integer to character conversion? | <p>Why the output varies in both of the following codes since i am applying the same explicit type conversion.</p>
<pre><code> int hex = (char)0xA;
System.out.println(hex);
int hex = 0xA;
System.out.println((char)hex);
</code></pre>
| java | [1] |
3,128,673 | 3,128,674 | Issue throwing two separate FileNotFoundExceptions Java | <p>I need two separate exceptions, one thrown if the .pro file is missing, the other if the missing file is a .cmd, that current set up has both exceptions being thrown if either one is missing. What am I doing wrong here? </p>
<pre><code>import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arra... | java | [1] |
4,319,510 | 4,319,511 | c# capture microphone | <p>Can someone tell me how could I capture the microphone and send it over IP? Is there any example of how to capture and put into a buffer in order to send it on UDP socket to another computer and listen the song? I'm working in c#. THX. I would really apprecciate if there is someone who can give me an example:)</p>
| c# | [0] |
4,642,667 | 4,642,668 | When checkbox is checked show message in javascript | <p>I want like this in javascript,when checkbox is visible show message1 else show message2.</p>
| asp.net | [9] |
5,633,601 | 5,633,602 | how to add and remove a class from a list of li elements? | <p>if i have an li list like this:</p>
<pre><code><ul>
<li>first </li>
<li>second</li>
<li>third</li>
<li>fourth</li>
</ul>
</code></pre>
<p>How would i write the code in jquery to add a class to the li element , say , first without the class being added to ... | jquery | [5] |
2,507,726 | 2,507,727 | Triggering click with jQuery to hit code-behind function not working in 1.4 - Worked fine in 1.3.2 | <p>I have a gridview in an update panel and am using a jQuery dialog for adding entries. </p>
<p>The dialog calls an AJAX/JSON function that adds the entry. On success of that function I have jQuery trigger a button click on a hidden button </p>
<pre><code> ...
success: function(msg) {
$("[id... | jquery | [5] |
167,062 | 167,063 | How to have a "no image found" icon if the image used in the function returns an error? | <p>In my application I use timthumb for resizing images. Those images are not controlled by me because I get them from RSS feeds. Sometimes the image are not shown in my page. When I examine the entire link with the timthumb I get this</p>
<blockquote>
<p>Warning: imagecreatefromjpeg(http://www.domain.com/image.jpg)... | php | [2] |
4,450,516 | 4,450,517 | Extract a part from a specific string pattern | <p>how can I get the time difference from the string below, I want to get it with (-3.30)</p>
<pre><code>[UTC - 3:30] Newfoundland Standard Time
</code></pre>
<p>and how to get null from the below string</p>
<pre><code>[UTC] Western European Time, Greenwich Mean Time
</code></pre>
<p>and I want to get +3.30 in belo... | c# | [0] |
6,031,114 | 6,031,115 | iphone code not firing | <p>I have a class that im using and cant get the code to fire</p>
<pre><code>WeatherServer.m
----------------------
- (NSArray *)weatherItemsForMapRegion:(MKCoordinateRegion)region maximumCount:(NSInteger)maxCount
{
//code is not firing
}
myviewcontroller.h
-----------------------
@class WeatherServer;
@interfac... | iphone | [8] |
4,322,569 | 4,322,570 | Local variable impact global variable - Javascript variable scoping | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/3725546/variable-hoisting">variable hoisting</a> </p>
</blockquote>
<pre><code> var a = "global";
//version 1
function changeGlobal(){
alert(a); //why is 'a' undefined here?
if(a){
... | javascript | [3] |
5,765,541 | 5,765,542 | How to get a data element within one's DIV | <p>I am trying to get the data value within an anchor element in a Div.</p>
<p>The code is as follows:-</p>
<pre><code><div id="value" class="wrapper-dropdown-5" tabindex="1">
<img src="./images/content/value-menu-item-selected.png">
<ul class="dropdown">
<li class="orange">
... | jquery | [5] |
3,494,290 | 3,494,291 | How to perform custom paging | <p>Hy All,</p>
<p>I want to provide Numeric and First/Next/Prev/Last Button pager and DropDown for page size in grid view.</p>
<p>So please give me any link or any example.</p>
| asp.net | [9] |
4,247,819 | 4,247,820 | Select a random set of rows without any duplicates | <p><strong>How can I display a random set of questions (pulled from Wordpress) without any duplicates?</strong></p>
<p>This is what I've tried:</p>
<pre><code><?php
$amount = get_field('select_number_of_questions');
$rand_max = count(get_field('step_by_step_test')) -1;
$rand = rand($amount,$rand_max);
$i = 0;
w... | php | [2] |
3,763,001 | 3,763,002 | change the sender number when sending sms | <p>Is it possible to change the sender number when sending an sms from my android program ?</p>
<p>Thanks</p>
| android | [4] |
1,026,616 | 1,026,617 | Getting Error in CreateTableCommand.ExecuteNonQuery(); | <p>This is the query in which i m getting error</p>
<pre><code>CreateTableCommand.CommandText = "BACKUP DATABASE Test" +
"TO DISK = 'C:\backup\t1.bak'" +
"WITH " +
"NOFORMAT, " +
"COMPRESSION," +
... | c# | [0] |
5,342,339 | 5,342,340 | How to get online audio streaming from a website with different urls? | <p>I have got a website which shows a list of audio files mp3 format. Each one is having their own URL. I want to know how could I read all the files url into my app and use it for audio streaming? Main emphasis is own how to read the url.</p>
| android | [4] |
5,370,562 | 5,370,563 | Button Click and LinkButton Click | <p>I am having a strange day! I am trying to access values inside the Datagrid control. There are textboxes in each row of the Datagrid control. If I use a asp.net button control outside the datagrid control I can access all the values. But if I use LinkButton outside the datagrid control then I cannot access any value... | asp.net | [9] |
303,252 | 303,253 | PriorityQueue with external parameters | <p>I have a project where I have a class Halfedge (olny .class file, so no way to modify it).
I want to create a PriorityQueue.
In order to determine which element is bigger, I need not only the fields inside the Halfedge class, but also a HashMap that I create in my code.</p>
<p>The thing is: when I define the Compa... | java | [1] |
5,599,059 | 5,599,060 | C sharp array error Windows Form Applicaton | <p>I am trying to figure out what the error in this code is:</p>
<pre><code>private void button2_Click(object sender, EventArgs e)
{
int[] teams = new int[10] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
temp = teams[2];
for (int i = 3; i <= 10; i++)
teams[i-1] = teams[i];
richTextBox1.Text = ("Round 1: "+t... | c# | [0] |
4,523,704 | 4,523,705 | external xml file integration in android | <p>i am developing one application for displaying images and labels and its sound.i want to get this info from xml .where i need to keep xml file in android project how to get values from that xml file</p>
<p>Thanks in advance</p>
<p>Aswan</p>
| android | [4] |
2,900,562 | 2,900,563 | ASP.NET what is the meaning of AutoEventWireup and Inherits? | <p>Given the following statement,</p>
<pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="XXX.aspx.cs" Inherits="XXX %>
</code></pre>
<ol>
<li>What is the meaning of AutoEventWireup?</li>
<li>What if the value of AutoEventWireup is equal to false</li>
<li>What is the meaning of XXX in the Inherit... | asp.net | [9] |
4,768,556 | 4,768,557 | copy and paste the file in swt | <p>I am having a zip file in my E:\temp\file.zip. Now I need to copy the whole zip file and paste it to my desktop and the original zip file should not be deleted. This should be done using java SWT lib.</p>
<pre><code>import java.io.*;
import javax.swing.*;
public class MovingFile {
public static void copyStream... | java | [1] |
1,394,572 | 1,394,573 | Anonymous objects on the stack, in C++? | <p>I am working on a logging / tracing unit (and please <strong>don't</strong> point to existing ones, this is for the experience as much as for the result).</p>
<p>To get a run-time calling stack trace, the idea is to construct a <code>TraceObject</code> instance first thing a function is entered, which carries the i... | c++ | [6] |
71,152 | 71,153 | Accessing, and push_back values of a vector from a different class? | <p>I'm overall confused on how to access a vector, and add values to it from a different class.</p>
<p>I would like to add values into the vector (the vector is private) from a different class. I also want to access the vector in my main() and be able to print it out.</p>
<p>Can anyone give me an example of how this ... | c++ | [6] |
2,055,354 | 2,055,355 | Python 2.7 or Python 3 (for speed)? | <p>I've looked around for answers and much seems to be old or outdated. Has Python 3 been updated yet so that it's decently faster than Python 2.7 or am I still better off sticking with my workable code?</p>
| python | [7] |
5,556,709 | 5,556,710 | How to animate diagrams in android using seeker bar | <p>I am looking for a way to use a seeker bar as a slider to move lines up and down the screen so as to be able to create animated graphs.
At the moment I have got this far:</p>
<p>I have created an activity which uses main layout.
On this main layout is a seeker bar and a custom view called graph.
I have referred ... | android | [4] |
1,755,980 | 1,755,981 | How to execute python files separately as a python script? | <p>What I want to do is have a python script (that's a python IRC bot) that can run another python script in the background/separately.</p>
<p>I could do something like this:</p>
<pre><code>#irc codey stuff here...
if x == y:
os.system('s%\stuff.py') % path
</code></pre>
<p>But this would stop <strong>main.py</... | python | [7] |
2,936,588 | 2,936,589 | Android - WebView findall not working correctly on 4.0.3 | <p>I have a webview. Now when I use <code>WebView.findAll()</code> method to search text in the webview it is not highlighting the matching words.</p>
<p>It works fine in Android 2.2,3.2 but is not working in 4.0.3.</p>
<p>Do you have any ideas how I could implement this? I'd really appreciate your help.</p>
<pre><c... | android | [4] |
623,217 | 623,218 | How to get an objects string and add this to a string array | <p>I have an <code>ArrayList</code> of my own class <code>Case</code>. The class case provides the method <code>getCaseNumber()</code> I want to add all of the cases casenumber to a <code>String[] caseNumber</code>. I've tried this</p>
<pre><code>public String[] getCaseNumberToTempList(ArrayList<Case> caseList) ... | java | [1] |
3,691,516 | 3,691,517 | How to pass data back from Winform to tabpage | <pre><code> if (!existed_channel.Contains(channel_name))
{
if (x)
{
tabpagex.BackColor = Color.Ivory;
tabControl1.TabPages.Add(tabpagex);
client_chat c = new client_chat(channel_name, owner); //Here the client_c... | c# | [0] |
3,289,822 | 3,289,823 | jquery form on success display message generate from server | <p>I have </p>
<pre><code><div id="infoMessage" class="infoMessage"><?php echo $message;?></div>
</code></pre>
<p>which the $message will generate from the server when POST.</p>
<p>How to I do if I wanted to display the infoMessage once the ajax success</p>
<pre><code> $.ajax({
type: "POST",
... | jquery | [5] |
2,207,213 | 2,207,214 | iPhone Popup Confirmation | <p>What pattern or view do you use to get the confirmation popup like in Mail where you are prompted to Reply, Forward or Cancel?
<img src="http://i.stack.imgur.com/vSG6G.png" alt="alt text"></p>
| iphone | [8] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.