Unnamed: 0 int64 65 6.03M | Id int64 66 6.03M | Title stringlengths 10 191 | input stringlengths 23 4.18k | output stringclasses 10
values | Tag_Number stringclasses 10
values |
|---|---|---|---|---|---|
3,390,727 | 3,390,728 | How to execute php file into variable? | <p>Does it possible to execute php file and store its output into some variable?</p>
<p>For example i have one global template, then i need to process subtemplates, and afterall i need to insert that subtemplate output into global template block. </p>
<p>How can i do it ?</p>
| php | [2] |
4,913,021 | 4,913,022 | How can I change/modify a 3 level hierarchy | <p>I have a table in my database which keeps track of a 3 level hierarchy. What is the best way to display and change/modify this hierarchy? Which asp.net control to use and how?</p>
| asp.net | [9] |
1,334,397 | 1,334,398 | All C# Syntax in a single cs file | <p>I heard about there being a cs file on the internet from a couple different sources that has all of the syntax in C# in a single file, which would be really good for a crash course to get ready for a job I have. Unfortunately no one could point me to the exact file, has anyone heard or seen anything like this?</p>
| c# | [0] |
5,891,732 | 5,891,733 | How to utilize POWERVR™ SGX Series5 GPU from iPhone OS 4.0? | <p>POWERVR™ SGX Series5 GPU is embedded in Apple iPhone and I wonder how to utilize it (i.e. use it as low power GP-GPU) from iPhone OS 4.0?</p>
| iphone | [8] |
4,567,757 | 4,567,758 | Updating numerous web clients periodically from the server | <p>G'Day,</p>
<p>I am planning an ASP.NET 4 application. Not sure if it will be MVC3 or WebForms yet. I need to be able to perform the following:</p>
<ul>
<li>I have data coming into the the .NET assembly on the web server via a serial link</li>
<li>I want to send this same data to all "connected" web clients</li>
<l... | asp.net | [9] |
3,005,248 | 3,005,249 | Writing a demo for snake game | <p>I've written a snake game in Java. What I also want to do is to create a demo for that (so snake would play by itself). I've written a simple demo, but snake dies pretty fast. So, is there any algorithms or something for that kind of problem? I believe it is a little bit similar to chess game problem? <strong>I want... | java | [1] |
3,250,409 | 3,250,410 | JavaScript Image constructor overload? | <p>A lot of scripts dynamically create images, such as</p>
<pre><code> im = new Image();
im.src = 'http://...';
</code></pre>
<p>I am looking for overloading of constructor for Image class with feature to add a reference of each newly created object to some array.</p>
<p>Let's say I have</p>
... | javascript | [3] |
1,600,686 | 1,600,687 | Getting error while retrieveing value from name | <p>I am beginner with jquery, I am getting error while getting input from name in jquery..
My code is...
HTML</p>
<pre><code><input type="text" name="pcpfname" id="pcpfname" class="text" />
<input type="submit" name="pcpsubmit" id="pcpsubmit" value="Submit" />
</code></pre>
<p>Jquery</p>
<pre><code>$('#p... | jquery | [5] |
5,832,606 | 5,832,607 | How to set Grid images have uniform height and width | <p>Friend's
I have a task to parse thumbnail images and to set it on grid view,where url image content to be in different height and width(some images to be 60*60, or 110*80),how can i set images in grid have uniform height and width.</p>
<p>Thanks in advance.</p>
| android | [4] |
3,848,415 | 3,848,416 | problem in delegate declaration and its invocation | <p>Hey,
When I try to call the event <code>myevent</code> in the function <code>fire</code>, it gives compiler error as</p>
<blockquote>
<p>delegate mydelegate does not take 0 arguments.</p>
</blockquote>
<p>if i try to give arguments in calling myevent as</p>
<pre><code>myevent(this);
</code></pre>
<p>it again s... | c# | [0] |
4,205,754 | 4,205,755 | jQuery document ready has to be anonymous function? | <p>I wanted to isolate my initiation function, so as not to put an anonymous function inside the <code>$(document).ready()</code> function. But, when I define it separately, and then try to call it, it doesn't fire.</p>
<p>An example:</p>
<pre><code>function init () {
alert('hello world');
}
$(document).ready( i... | jquery | [5] |
1,271,546 | 1,271,547 | Setting javascript defineGetter and defineSetter in a loop | <p>Why does each iteration of this:</p>
<pre><code>var o = {};
var foo = [['a',1],['b',2],['c',3],['d',4],['e',5]];
for(var i = 0; i < 5; i++)
{
o.__defineGetter__(foo[i][0], function() {
return foo[i][1];
});
console.info(JSON.stringify(o));
}
</code></pre>
<p>Reset all previous assignments and outpu... | javascript | [3] |
1,538,331 | 1,538,332 | Andorid: How to use ota to update firmware | <p><strong>Recently, i want to update touch firmware to my device by android ota, but i can't find any reference. Can Any one please tell me the steps about update firmware by ota ?
Thank you !!</strong></p>
| android | [4] |
310,394 | 310,395 | It is possible to auto send SMS for Android | <p>I am not sure if this question appropriate as I new to Android. I am thinking to solve a problem such that when I am driving I want my Android to Auto send or Auto reply any incoming SMS. Would appreciate if you can guide me or provide me some tutorial or code on this. Can this task be accomplished in Android? Thank... | android | [4] |
4,026,060 | 4,026,061 | Javascript: check if the url is changed or not? | <p>My url format is like : </p>
<pre><code>http://domain.in/home
http://domain.in/books/notes
http://domain.in/books/notes/copy
</code></pre>
<p>I've called a javascript function on window.load to check if the url has changed or not.</p>
<p>If the url has been changed then code is executed else it will return and ch... | javascript | [3] |
2,971,976 | 2,971,977 | Change millisec for window.setInterval function | <p>I used <code>window.setInterval</code> function. this function includes 3 arguments :</p>
<pre><code>setInterval(code,millisec,lang)
</code></pre>
<p>I used that like this:</p>
<pre><code>var counter = 1;
window.setInterval(function() {}, 1000 * ++counter);
</code></pre>
<p>but when first time set timer (second ... | javascript | [3] |
1,923,056 | 1,923,057 | SMack API in java | <pre><code>public void processMessage(Chat chat, Message message) {
if (message.getType() == Message.Type.chat)
System.out.println(chat.getParticipant() + " says: "+ message.getBody());
**processmsg** = message.getBody();
System.out.println("Message from Friend -----:"+**processmsg**);... | java | [1] |
3,301,989 | 3,301,990 | how to pass query string in a multipage html document | <p>I have html document with 2 pages and am using html5, jquery and jquery mobile. I need to pass a value from onepage to another page. I am using url like test.html#page-b. How to pass query string through this url</p>
| jquery | [5] |
1,003,478 | 1,003,479 | How to do multiple arguments to map function where one remains the same in python? | <p>Lets say we have a function add as follows</p>
<pre><code> def add(x,y):
return x+y
</code></pre>
<p>we want to apply map function for an array </p>
<pre><code> map(add,[1,2,3],2)
</code></pre>
<p>The semantics are I want to add 2 to the every element of the array. But the map function requires a list... | python | [7] |
1,358,296 | 1,358,297 | jquery toggling more than one div | <p>i'm trying to make toggling div with only 1 javascript.</p>
<p>I tried this, the first div does what it was meant to do but the second doesn't.</p>
<p>Have a look.</p>
<pre><code><body>
<div>
<div>He
<div>You
<div id="Me"><a id="me">Me</a></... | jquery | [5] |
2,855,909 | 2,855,910 | Copy constructor versus Clone() | <p>In C#, what is the preferred way to add (deep) copy functionality to a class? Should one implement the copy constructor, or rather derive from <code>ICloneable</code> and implement the <code>Clone()</code> method? </p>
<p><b>Remark</b>: I wrote "deep" within brackets because I thought it was irrelevant. Apparently... | c# | [0] |
3,784,691 | 3,784,692 | python private method return value | <p>Im new to OOP and therefore I got one question. Say I got a simple class with one public and one private method. If I call the private method in the public method - should it return a value, or should that value be set as a field in my object eg:</p>
<pre><code>class Test:
def __init__(self, path):
self... | python | [7] |
432,122 | 432,123 | popen not working correctly on sunos5 | <p>I have program to find emacs path using <code>which command</code>
if it does not find emacs then i find emacs in <code>$PATH</code> variable.
Lets my system have emacs
then below program is giving output correct <strong>but it is sourcing .cshrc file</strong> I dont know why?</p>
<pre><code>/* getenv example: gett... | c++ | [6] |
3,570,215 | 3,570,216 | How do I prevent/suppress SIGFPE in C++? | <p>I'm trying to convert a double to float as well as various integer types inside a dll, which is used as a Game Maker extension. I don't need a sensible result if the double doesn't fit the range of the target types, so I simply used a static_cast.</p>
<p>Everything works as intended when I call this code from my ow... | c++ | [6] |
525,597 | 525,598 | Stop duplicate messages being posted from submit button | <p>Hey basically just having a little trouble with the following, submitting a message from a textarea, and on clicking of the submit button the following runs... I need the button to be disabled or another way which stops the user from clicking the button several times and submitting the message over and over again. I... | jquery | [5] |
3,598,899 | 3,598,900 | Can I log in to my site from my iPhone app? | <p>I'm trying to make a log in or sign up feature for my web site in my iPhone app. My website is a content management system, and like any other CMS, it has log in and registration features. It also has permmissions, dependent on the user account. I think I would have to use <code>UIWebView</code> for this. </p>
<p>A... | iphone | [8] |
5,797,550 | 5,797,551 | PHP split array in hundreds | <p>I have an array that can hold up to several thousands of items.(usually around 5000 items).
I need to split this array into hundreds and process them and then continue with the rest of items.
So far i handle the whole array which is slow.
My code is</p>
<pre><code>foreach($result as $p){
$sqlQuery ... | php | [2] |
3,717,571 | 3,717,572 | Good jQuery advocacy materials (videos) suitable for a manager? | <p>Can anyone recommend any particularly compelling propoganda (papers or even better, video) on jQuery that would be suitable for a manager who knows very little about the technology?</p>
<p>My manager seems very reluctant to consider letting us use it, seeming to think it is yet another technology flavor of the mont... | jquery | [5] |
2,491,680 | 2,491,681 | How to get group radio button Value using Code ingnitor in the controller | <p>I have two radio button </p>
<pre><code><input tabindex="3" type="radio" name="gender" id="gender" value="M">Male&nbsp;<input tabindex="4" type="radio" name="gender" id="gender" value="F">Female
</code></pre>
<p>How to get group radio button Value using Code ingnitor </p>
<pre><code>$this->inpu... | php | [2] |
4,181,943 | 4,181,944 | Can a variable be used inside a function without a Global declaration inside that function | <p>CODE 1:</p>
<pre><code>x=4
def func():
print("HELLO WORLD")
y=x+2
print (y)
print (x) # gives o/p as HELLO WORLD 6,4,4.
func()
print (x)
</code></pre>
<p>CODE 2:</p>
<pre><code>x=4
def func():
print("HELLO WORLD")
y=x+2
x=x+2 # gi... | python | [7] |
5,806,303 | 5,806,304 | How do I install xampp on Windows Vista? | <p>I'm a new student of PHP. How can I install xampp on Windows Vista?</p>
| php | [2] |
5,200,085 | 5,200,086 | how to run at the same time imageClick() and onTouchEvent()? | <p>I have this image in the xml (and others elements):</p>
<pre><code> <ImageView
android:clickable="true"
android:onClick="imageClick"
android:id="@+id/Decena0"
android:layout_width="120dp"
android:layout_height="120dp"
tools:ignore="ContentDescription" />
</cod... | android | [4] |
1,597,467 | 1,597,468 | how can i prevent onbeforeunload from firing when a certain condition is met? | <p>i have a page on which i want to confirm if the user wants to leave.
i have to confirm only when a certain condition is met so i wrote code like this</p>
<pre><code>var back=false;
back=//check if user pressed back button
window.onbeforeunload = function (e) {
alert(back); //this alerts true
if(back==true... | javascript | [3] |
2,620,134 | 2,620,135 | Android: Save array to app data | <p>is it possible to save an entire array (or even ArrayList) to the android app data?</p>
<p>as far as I know you can only do stuff like putInt, putBoolean or putString....
but what about more complex data-types?
is there a way to do that?</p>
<p>or do I have to convert the whole array to a String first, and then pa... | android | [4] |
4,257,467 | 4,257,468 | How to make this function return more than 1 value? | <pre><code>public Solution getReferenceSolution(Problem p) {
int personalityVal = 1;
int templateNameVal = 0;
...
Solution personality = getComponentFactory().constructSolution(personalityVal);
Solution templateName = getComponentFactory().constructSolution(templateNameVal);
... | java | [1] |
1,566,963 | 1,566,964 | jquery issue, onmouse over event not working on new row | <p>I have an html table with a few rows, I have included a jquery function as</p>
<pre><code>$('tr').mouseover(function() {
$(this).addClass('row_over');
});
</code></pre>
<p>so that on mouse over the css class of that particular row changes. then I have added one more row using jquery, but the mouse over function ... | jquery | [5] |
3,819,760 | 3,819,761 | C++ interface inheritance problem | <p>Hey, i'm trying to create a c++ stomp client,
my client constructor is :</p>
<pre><code>Client(std::string &server, short port, std::string &login, std::string &pass, Listener &listener);
</code></pre>
<p>it gets a listener object which when Listener is the following interface :</p>
<pre><code>cla... | c++ | [6] |
1,533,944 | 1,533,945 | When changing the href attribute of a link using jQuery, how do I reference the current href attribute? | <p>I'm trying to change the href attribute of links on my page. I need the bulk of the url to remain the same but just change a parameter. I've got this so far:</p>
<pre><code>$("a[href*='/new_note?']").attr('href', function() {
return this.replace(/date1=[\d-]+/, "date1=" + $("[name='new_date1']").val());
});
</c... | jquery | [5] |
1,219,556 | 1,219,557 | JQUERY CSS Background | <p>I currently have a DIV with a background image set as follows:</p>
<pre><code>background: url(../images/site/common/body-bannar-bkground.png) repeat 0 0;
</code></pre>
<p>How can I remove this image and set a background-color only:</p>
<pre><code>background-color: #C1A3A5
</code></pre>
<p>I know I can use JQUERY... | jquery | [5] |
1,209,052 | 1,209,053 | Bluetooth simply application | <p>I want to ask you about some bluetooth library which I can use to implement simply application. I want to connect two devices by bluetooth. In application I want to have two buttons and I want to send from one device to second device by bluetooth which button was push. How I can do that? Any idea or tutorials can re... | android | [4] |
1,846,542 | 1,846,543 | JavaScript Namespace Declaration | <p>I created a javascript class as follow:</p>
<pre><code>var MyClass = (function() {
function myprivate(param) {
console.log(param);
}
return {
MyPublic : function(param) {
myprivate(param);
}
};
})();
MyClass.MyPublic("hello");
</code></pre>
<p>The code above is working, but... | javascript | [3] |
1,974,168 | 1,974,169 | selecting images in javascript | <p>I dont know javascript very well, I want to ask how to select images and show them on my screen. I want to make a list of images, then I will choose one of them and when I press a button show I want to demonstrate it. Is it possible in js?</p>
| javascript | [3] |
3,786,858 | 3,786,859 | How to use another layout id? | <p>In my application I have used one alert box.. In this alert box, I give another layout to be show.. using <code>setView()</code> method.. I have a problem. How to use layout elements id in my activity?</p>
<pre><code>LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
... | android | [4] |
4,645,920 | 4,645,921 | Requests with JS - is this out dated? | <p>I am making a basic live chat and was wondering if i have learnt this correctly...</p>
<p>I have my call function like this:</p>
<pre><code>function call_data(url,data)
{
if (window.XMLHttpRequest) {
AJAX=new XMLHttpRequest();
} else {
AJAX=... | javascript | [3] |
2,609,675 | 2,609,676 | Video 'Snipping' Android - Possible? | <p>Hey guys, I'm looking into creating an application that requires a video file taken on the mobile phone, open it and allow the user to cut the video using two sliders, one for IN(the beginning) and the other for out(end of the clip you want), this will then create a new file and my app will use it then.</p>
<p>Does... | android | [4] |
46,558 | 46,559 | Update textview from onPostExecute in AsyncTask | <p>I have a textview that i would like to update each time my asynctask is complete.</p>
<p>But from what ive read so far it can only be done in <code>onPostExecute</code> if you use <code>setContentView()</code> before. But since i dont know which view the user is currently in when the task completes, it doesnt sound... | android | [4] |
945,701 | 945,702 | php greater than number decimal number without round, ceil, floor | <p>Interesting problem I have here, usually I just round up/down respectively for my needs with numbers but today I find myself having to be very specific. I am working on a project of which has many dot versions. Its a web based app, with a client side application, of which a new feature is coming out where in the sof... | php | [2] |
5,476,966 | 5,476,967 | Convert System.Drawing.Image to format(.jpeg .gif) whitout saving | <p>I need to convert a System.Drawing.Image object to gif whitout saving it to a file(that means i can't use the save function). (bitearray or base64) sow i can send it to a web service. the code is on a server and i don't have write permisssion on it. c# code.</p>
| c# | [0] |
5,460,850 | 5,460,851 | Return 1 of 3 values using 2 flag variables as conditions | <p>I need to return 1 value... either e.next_arr, e.next_dept, or e.next_checkout. </p>
<p>There are two flags, f1 & f2. f1 is true if the multiset ( customers picking groceries ) is not empty, and f2 is true if the queue ( customers waiting to checkout ) is not empty.</p>
<p>I know that if the queue is full, you... | c++ | [6] |
5,320,530 | 5,320,531 | How to twit a picture with some text in iPhone | <p>I want to know that is there any way I can post picture in twitter with some text, some one has suggested to use "http://tinyurl.com/".I don't know where to start, in my previous application I twit successfully but that only contains text.
A proper direction to proceed would be a great help.</p>
| iphone | [8] |
2,094,845 | 2,094,846 | Garbage collection of referenced objects in Java | <p>I have the following code:</p>
<pre><code>class Test {
public static void main(String[] args) {
String a,b,c;
a = new String(args[0]);
b = a;
a = null;
b = null;
}
}
</code></pre>
<p>Can someone tell me when a will be eligible for garbage collection. I think it's after b is made... | java | [1] |
5,392,903 | 5,392,904 | Trouble with reading file | <p>In my app I have to set one password from a settings page and write it to a file, After that when i enter into the home page i have to read that file if the file is null i have to enter to the settinngs page,</p>
<p>The code used for it is.....</p>
<pre><code> try {
System.out.println("Enter try bl... | android | [4] |
4,644,911 | 4,644,912 | access t9 predictive text input engine on Android phones | <p>I was wondering it there is an API that can access the core functionality of t9 predictive text engine on Android phones.
The API should have some access point like:
-setCurrentLanguage
-closeCurrentLanguage
-appendKey(some key)
For example: appendKey(4),appendKey(6),appendKey(6),appendKey(3) will give: "good"
-get ... | android | [4] |
1,745,099 | 1,745,100 | how do I retrieve an image from my resx file | <p>I have added an image to my forms resource file myForm.resx and I would like to use it in my code file myForm.cs, but I am not entirely clear on how to get a handle to it.</p>
| c# | [0] |
1,733,216 | 1,733,217 | Android list view on click | <p>i have a list view with 15 items. when i click on any item i want to change the screen(Intent). how can i change the activity on item selected in android?
any tutorial or source code?</p>
<p>thanks in advance.</p>
| android | [4] |
900,989 | 900,990 | android, int to string? | <p>I get the id of resource like so:</p>
<pre><code>int test = (context.getResourceId("raw.testc3"));
</code></pre>
<p>I want to get it's id and put it into a string. How can I do this? .toString does not work.</p>
| android | [4] |
1,460,829 | 1,460,830 | Javascript selecting part of a string and converting it to uppercase | <p>I have a string like this:</p>
<pre><code>A sampletext
b sampletext3
c exampletext
A sampletext587
b sampletext5
b sampletextasdf
d sampletext4
b sometext
c sampletextrandom
</code></pre>
<p>How do I, in JS, convert all the text on the lines starting with <code>b</code> to upper case?</p>
<p>Thanks!</p>
| javascript | [3] |
2,674,368 | 2,674,369 | Calling a changing function name on an object with PHP : how? | <p>How would I do something like this :</p>
<pre><code>class Test
{
public function test($methodName) {
$this->$methodName;
}
private function a() {
echo("a");
}
private function b() {
echo("b");
}
}
$testObj = new Test();
$testObj->test("a()");
$testObj->test("b()"... | php | [2] |
2,572,864 | 2,572,865 | schedular in windows service | <p>I had written one windows service in C#.NET which fires on every miniutes... I want to fire a mail to my manager in every month on say xyz date.... this task shld repeted on every month on same date... So can any one tell me how to do this..? I mean to say the block of code which i will write shld get executed on sa... | c# | [0] |
5,067,736 | 5,067,737 | Error with code.. Please check it out | <p>I have two tables and I want to show a list items of particular table as hyperlink only if its value exist in another table. Otherwise it show value as plain text not hyperlink.</p>
<p>Considering example...</p>
<pre><code>$result= mysql_query("select * from tbl_songlist_info order by song_title") or die(mysql_err... | php | [2] |
5,831,699 | 5,831,700 | How set a view transparent? | <p>I have a class MyView that heritates from View (used to draw on it).
I want to put an image on the background and still be able to draw. Nothing basic works si far
Does any one have a solution?</p>
<p>thanks</p>
<pre><code>public class MyView extends View {....}
</code></pre>
<p>in the main actvity : </p>
<pre><... | android | [4] |
4,692,464 | 4,692,465 | how to compare a set of characters with a map which keys are characters? | <p>If i have a set of characters which is called characters and contains the following Characters (doesn't have to be SortedSet) </p>
<pre><code>'c''h''a''r''a''c''t''e''r'
</code></pre>
<p>and i have a map which has sets of charcters as its keys and strings as values for example</p>
<pre><code>map<Set<Charact... | java | [1] |
986,286 | 986,287 | A curious C# syntax with a question mark | <pre><code>private enum E_Week
{
Mon = 0,
Tue,
. . .
}
</code></pre>
<p>What does the following code mean?</p>
<pre><code>E_Week? week= null;
</code></pre>
<p>Is it equal to the following code? What is the function of the '?' sign here?</p>
<pre><code>E_Week week= null;
</code></pre>
| c# | [0] |
482,384 | 482,385 | animation in iphone | <p>I am looking for some reference about the animation such that when you click on the application, it will bring you the first screen but slowly. </p>
<p>Does anybody know what it is please advice me on this issue. Thanks</p>
<p>edit
I just wanna make a nice transition after all.Whenever I click on the application,... | iphone | [8] |
2,340,218 | 2,340,219 | How to pass this variable to this function? | <p>I have to pass <strong>aaa</strong> to <strong>ehi()</strong> function in the <strong>mitt</strong> parameter.</p>
<p><strong>aaa</strong> is an array of numbers like: 29837,127365,5645,12323,47656564,2312,4534,2343</p>
<p>This is the correct way that the <strong>ehi()</strong> works:</p>
<pre><code> function e... | javascript | [3] |
3,462,865 | 3,462,866 | SignalStrength values: what's the difference between cmda and evdo? | <p>On a Verizon phone, a Motorola Droid X2, if I get the signal strength with a SignalStrength object and look at its values, both the cdma and evdo values appear valid. </p>
<p>If I print out a signalStrength.toString(): </p>
<pre><code>09-09 11:48:00.678: INFO/ConnectionStatusAndroid::onSignalStrengthsChanged(4773)... | android | [4] |
898,634 | 898,635 | PHP how to explode string into groups of 6 letters in array | <pre><code>$string = 'billiejeanisnotmylover';
$array = some_function($string,6);
$array[0] = 'billie'
$array[1] = 'jeanis'
$array[2] = 'notmyl'
$array[3] = 'over'
</code></pre>
<p>do you have an idea what some_function would be?</p>
| php | [2] |
621,785 | 621,786 | Whitespace converted to rectangle | <p>When I copy the first paragraph of this page from my browser to a notepad which is under (محمد بصل), I see whitespaces replaced with rectangles in my notepad:
<a href="http://www.shorouknews.com/news/view.aspx?cdate=03092012&id=73df0e96-a9d8-44a1-83a8-77b0daf314a7" rel="nofollow">http://www.shorouknews.com/news/... | c# | [0] |
3,578,629 | 3,578,630 | Find function and line number where variable gets modified | <p>Let's say that at the beginning of a random function variable $variables['content'] is 1,000 characters long.</p>
<p>This random function is very long, with many nested functions within.</p>
<p>At the end of the function $variables['content'] is only 20 characters long. </p>
<p>How do you find which of nested fun... | php | [2] |
5,638,615 | 5,638,616 | initialisation list in c++ | <p>I barely know c++.Not an expert.</p>
<p>I am looking through an already existing code.
I could not able to understand this following code.</p>
<pre><code>typedef enum
{
eEvent_MsgOk,
eEvent_InvalidMsgId,
eEvent_Failure,
} eEventType;
class Rs232Event
{
public:
Rs232Msg* ... | c++ | [6] |
3,821,868 | 3,821,869 | insert into mysql problem | <p>i have a field in table opt named confirm of type tinyint. i want to insert value(1) by this statement but it is not working can any one help??</p>
<pre><code>$connect= mysql_connect("localhost","root") or die ("Sorry, Can not connect to database");
mysql_select_db("login") or die (mysql_error());
$user=$_POST['s... | php | [2] |
3,140,379 | 3,140,380 | C# merge two objects together at runtime | <p>I have a situation where I am loading a very unnormalized record set from Excel. I pull in each row and create the objects from it one at a time. each row could contain a company and / or a client.</p>
<p>My issue is that multiple rows could have the same objects, so I may have already created it. I do a compari... | c# | [0] |
5,978,751 | 5,978,752 | Android home screen like navigation in view flipper | <p>I am using <code>ViewFlipper</code> to navigate between screens. Each screen has 4 images in a grid. How to have similar functionality that is present on android <code>home screen</code> and <code>application menu screen</code> where user can quickly navigate to a page by pressing circle shaped buttons on top of scr... | android | [4] |
1,656,814 | 1,656,815 | C++ function using reference as param error | <pre><code>struct node {
string info;
node *next;
node() {
info = "string";
next = NULL;
}
};
void insert(node &anode) {
node newNode;
anode.next = &newNode;
}
</code></pre>
<p>What is wrong with this implementation of insert for this structure ? How should I fix this?
<strong>added:</stro... | c++ | [6] |
4,386,937 | 4,386,938 | How to display Posts in a Forum Web application using ASP .net C# | <p>I am developing a Forum Web Application using ASP .Net 3.5</p>
<p>I am facing issues in displaying Posts and replies under a selected question.
What display control shall I use in order to display the replies in separate boxes with comment date and user id in them ? (taking into account that Gridview is a Big NO)... | asp.net | [9] |
5,098,544 | 5,098,545 | Run time error while using realloc: " _CrtIsValidHeapPointer(pUserData), dbgheap.c" | <p>The following code is written in C++ but using realloc from stdlib.h because I don't know much about std::vector.</p>
<p>Anyway, I get this weird run time error " " _CrtIsValidHeapPointer(pUserData), dbgheap.c".</p>
<p>If you would like to see the whole method or code please let me know.</p>
<p>I have 2 classes, ... | c++ | [6] |
4,239,730 | 4,239,731 | How could i use The array texture in another class? | <p>I need to be able to use the variables in the array texture[] (wich is located int the Textures class) in the Board class. But I cant figure out how I would go about doing that.</p>
<p>This is just me trying to figure out how to add Textures to things in java, i am attempting to learn how to make games. So im very ... | java | [1] |
524,547 | 524,548 | How to Rotate different data in days of the week in php | <p>I am working on a project in which i have to distribute different ad's per day, the ad's in form of array are:</p>
<pre><code>$ad = array( 'attribute1_value' => "12",
'attribute2_value' => "xyz",
'attribute3_value' => 'http://example.com',
'attribute4_value' => 'data');
</code></pre>
<p>The logic i ... | php | [2] |
4,452,401 | 4,452,402 | "nice" keyword in c++? | <p>So I was doing some simple C++ exercises and I noticed an interesting feat. Boiled down to bare metal one could try out compiling the following code:</p>
<pre><code>class nice
{
public:
nice() {}
};
int main()
{
nice n;
return 0;
};
</code></pre>
<p>The result is a compilation error that goes something ... | c++ | [6] |
4,255,858 | 4,255,859 | image management code? | <p>two days back i ask a question for image management, i get some reference that is 4guys
the code is working fine i want to store that manged image in a folder but i not understand how can i save, can u help me. this is my code.....</p>
<pre><code>public partial class Default2 : System.Web.UI.Page
{
public bool ... | asp.net | [9] |
2,180,409 | 2,180,410 | How do we use SqlDataReader obejct as an array? | <p>It might sound kiddish or silly but i wanna know that in codes like..</p>
<pre><code>SqlDataReader rdr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
rdr.Read();
Response.Write(rdr[1]. ToString());
</code></pre>
<p>how do we use the <code>SqlDataReader</code> object as an array <code>(rdr[1])</code> without... | asp.net | [9] |
4,136,219 | 4,136,220 | Java Old JRE Installation Issue | <p>At my company, we have an internal application that uses Java. It evidently must use 7.0.5, since the app stops working on machines that have been upgraded to 7.0.7. We have an installer stored on the network here that I was not initially notified about. Here's the situation.</p>
<ul>
<li>Two identical machines: "... | java | [1] |
607,914 | 607,915 | how to implement dropbox in android application with REST API | <p><a href="https://www.dropbox.com/developers/docs" rel="nofollow">https://www.dropbox.com/developers/docs</a> is the best place, But I cannot get the proper answer, I want to implement dropbox in my android application with REST api, I don't want User Log in screen, want to put username and password dynamically.</p>
... | android | [4] |
3,757,629 | 3,757,630 | Scanner error Symbol not found | <p>I have imported the java class but i keep getting this error with the following code</p>
<p>Error: C:\Users\xiangzheng\Desktop\passoff\P70.java:51: error: cannot find symbol
String a = scanner.next;</p>
<p>Code: </p>
<pre><code>Scanner scanner = new Scanner(sentence);
scanner.useDelimiter(" ");
... | java | [1] |
5,399,086 | 5,399,087 | Can i use this statement | <p>i this a valid command</p>
<pre><code>$fp = fopen($hyphen + ".html","w");
</code></pre>
<p>I have declared $hyphen already.But it doesn't seem to be working</p>
| php | [2] |
462,996 | 462,997 | How to get value at a specific index of array In JavaScript? | <p>I have an array and simply wants to get the element / value at index 1 </p>
<pre><code>var myValues = new Array();
var valueAtIndex1 = myValues.getValue(1); // (something like this)
</code></pre>
<p>How can I get the value at the 1st index of my array in JavaScript?</p>
<p>Thanks</p>
| javascript | [3] |
2,096,724 | 2,096,725 | How can I define my return type | <p>I have the following code:</p>
<pre><code> public IList<Content.Grid> GetContentGrid(string pk)
{
// How can I define result to hold the return
// data? I tried the following but it does not
// work:
var result = new IList<Content.Grid>();
var data = _cont... | c# | [0] |
4,074,927 | 4,074,928 | Safe json parsing with jquery? | <p>I am using jquery with json. My client pages generate json, which I store on my server. The clients can then fetch the json back out later, parse, and show it.</p>
<p>Since my clients are generating the json, it may not be safe. I think jquery uses eval() internally. Is that true? Is there a way to use the native j... | jquery | [5] |
5,696,915 | 5,696,916 | Sorting list using reflection | <p>I have a table and i want to do sorting function for each column.</p>
<p>Sorting has two direction asc and desc.</p>
<p>1) How can i sort columns using reflection?</p>
<pre><code>List<Person> GetSortedList(List<Person> persons, string direction, string column)
{
return persons.OrderBy(x => GetP... | c# | [0] |
4,642,227 | 4,642,228 | .hide() is not working in Firefox but working in IE | <p>I want to display a layer and after clicking the close button I need to hide a layer. </p>
<p>for this I am passing the value to the close function (user defined) in the jquery and used the below lines to close. Well it is working in IE but not working in Firefox.</p>
<pre><code>$('.layer_close').click(function(){... | jquery | [5] |
1,140,781 | 1,140,782 | Removing SurfaceView from the application stack | <p>Hello StackOverflow Users,</p>
<p>I am new to android and trying to develop a game in which I use a </p>
<p>1) Main class to redirect (like a menu.. new game, options, help, exit etc..)</p>
<p>2) A surfaceview class</p>
<p>3) A thread to handle drawing on canvas.</p>
<p>I have added an exit button on the main c... | android | [4] |
3,661,588 | 3,661,589 | jQuery change image onclick | <p>Don't know why but I can't find a solution to this. I have 3 links that when clicked I want to change an image below using jQuery. Does anyone know of a really simple script to show me how this might work? Thanks in advance.</p>
| jquery | [5] |
6,014,295 | 6,014,296 | Trying to create a 3 dimensional vector in c++ | <p>So, im trying to create a 3 dimensional 5x3x2 vector, using the vector lib and saving the number 4 in every node.</p>
<p>Thats what im trying:</p>
<pre><code>vector<vector<vector<int> > > vec (5,vector <int>(3,vector <int>(2,4)));
</code></pre>
<p>for a bi dimensional 5x8 saving the ... | c++ | [6] |
1,670,833 | 1,670,834 | Internet Explorer 10 not redirecting | <p>With Internet Explorer 10 removing the browser detection through markup, I need a new way to redirect users using Internet Explorer to a new page</p>
<p>I decided to use</p>
<pre><code><body>
<script type="text/javascript">
if (navigator.appName == 'Microsoft Internet Explorer')
{
self.location... | javascript | [3] |
3,054,771 | 3,054,772 | Displaying a large panoramic image with offset in Android - Different technique? | <p>Are there different techniques to follow than the usual load image stuff for large panoramic images? </p>
<p>For panorama section with an offset: Should I actually make a copy of the panorama, after cropping it to the screen size, before displaying it? </p>
| android | [4] |
1,222,578 | 1,222,579 | How to invoke an action on keystroke or key binding | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/9075769/how-to-listen-to-keyboard-events-in-a-console-application">How to listen to keyboard events in a console application</a> </p>
</blockquote>
<p>Hi I am new to java syntax.I am trying to invoke an action o... | java | [1] |
5,176,077 | 5,176,078 | Create a Dynamic Hash JavaScript with unique Key | <p>I am trying to create some dynamic hashes in Javascript</p>
<p>I have </p>
<pre><code>Postcodes = ["one", "two"]
</code></pre>
<p>From this I am trying to create a hash with the key of the hash being the value from the array.</p>
<pre><code>postcode_1 = Postcodes[0]
postcode_2 = Postcodes[1]
postcode1 = {}
postc... | javascript | [3] |
5,508,845 | 5,508,846 | Multiple setTimeout's | <p>There seems to be a conflict between my two timers, I want to know how to make them totally independent but executing on the same page.. Here is the code:</p>
<p>WHEN THE PAGE LOADS</p>
<pre><code><script language="javascript" type="text/javascript">
window.onload = function()
{
setTimeout("AlterTwitter... | javascript | [3] |
5,551,868 | 5,551,869 | Why isn't "myObject ??= defaultValue;" possible in C#? | <p>Why isn't <code>myObject ??= defaultValue;</code> possible in C#?</p>
<p>It would be very nice !</p>
| c# | [0] |
3,079,695 | 3,079,696 | is it possible to get the total width of a jquery tab? | <p>is it possible to get the width of the different tabs with different lengths of text inside?</p>
<p>for instance</p>
<p>| tab 1 | motion sickness | computer |</p>
<p>the tab 1 = 20px</p>
<p>motion sickness tab = 100px</p>
<p>computer tab = 60px</p>
<p>something like that</p>
| jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.