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 |
|---|---|---|---|---|---|
152,711 | 152,712 | PHP SESSIONS problem | <p>My php sessions when logged in will not display my links when I type the following url in the browser <code>example.com</code>
but will display the links when I type <code>www.example.com</code> how can I fix this problem if possible?</p>
| php | [2] |
982,702 | 982,703 | Showing ImageView and TextView in Gallery | <p>How to show TextView and ImageView both in a single Gallery View . I want to show Image title for each image just below it.</p>
| android | [4] |
315,827 | 315,828 | ConnectException thrown using ServerSocket | <p>The following code is correct when compiled, but when run it says: ConnectException
the error image:</p>
<p><img src="http://i.stack.imgur.com/9YZxh.jpg" alt="error image"></p>
<pre><code>import java.net.*;
import java.io.*;
class TcpChat
{
public static void main(String[] args) throws Exception
{
Socket s = n... | java | [1] |
1,347,546 | 1,347,547 | why doesnt statement 1 works and statement 2 doesnt in php during database access? | <p>Why doesnt statement 1 works and statement 2 doesnt in php during database access?</p>
<p>Statement 1 :</p>
<pre><code>$query="select * from $table_id where name=".$integer2;
</code></pre>
<p>Statement 2 :</p>
<pre><code>$query="select * from $table_id where name='$integer2'";
</code></pre>
| php | [2] |
897,459 | 897,460 | How to get server-side parameters using jQuery UI remote? | <p>I have a php ajax script that is getting called by some jQuery, and I can not seem to get the parameters that are being passed. Here is the example I am working from: <a href="http://jqueryui.com/demos/autocomplete/#remote" rel="nofollow">http://jqueryui.com/demos/autocomplete/#remote</a></p>
<p>In my php side, I ... | php | [2] |
2,299,433 | 2,299,434 | Calling jQuery function from from js | <p>I've written a Simple function in Javascript which calls a jQuery function
the problem is Why do I need to click button to get the toggle effect </p>
<p>html</p>
<pre><code><input id="toggle" type="button" value="Toggle" onclick="toggle()" />
</code></pre>
<p>javascript</p>
<pre><code><script type="tex... | jquery | [5] |
3,756,007 | 3,756,008 | How to display list of resource drawables | <p>I would like to display all resource drawables in a list so that the user can select one. Is there any way to loop through all R.drawable items so I don't have to hard code them into my program?</p>
| android | [4] |
467,086 | 467,087 | SessionCookies n asp.net | <p>I am new to ASP.Net <strong>i dont understand the concept of sessioncookies</strong></p>
<pre><code>What is a sessioncookie,what are the advantages of sessioncookie
whats is sessioncookie is all about,
how to create a sessioncookie,
how to retreive values from sessioncookies,
how to store values in sessioncookies.
... | asp.net | [9] |
3,243,568 | 3,243,569 | How do you convert a string with a comma character to an int in c#? | <p>How do you convert a string with a comma character to an int in c#?</p>
<p>I have to convert strings like "1924.912" to int's but the int.Parse() and Convert.ToInt32() methods dont work here.</p>
| c# | [0] |
5,410,865 | 5,410,866 | How to align pointer | <p>How do I align a pointer to a 16 byte boundary?</p>
<p>I found this code, not sure if its correct</p>
<pre><code>char* p= malloc(1024);
if ((((unsigned long) p) % 16) != 0)
{
unsigned char *chpoint = (unsigned char *)p;
chpoint += 16 - (((unsigned long) p) % 16);
p = (char *)chpoint;
}
</c... | c++ | [6] |
1,468,916 | 1,468,917 | get file modification time | <p>hi all
i want to write a code for monitoring file changes and reacting to changes.
so i write a TimerTask to periodically check the modification of file
but i have a problem:
when file is open by other programs such as excel or word and i'm closing the file
without any changes,value File.lastModified() is changing.... | java | [1] |
3,767,285 | 3,767,286 | C# how to sort a list without implementing IComparable manually? | <p>I have a fairly complex scenario and I need to ensure items I have in a list are sorted. </p>
<p>Firstly the items in the list are based on a struct that contains a sub struct. </p>
<p>For example:</p>
<pre><code>public struct topLevelItem
{
public custStruct subLevelItem;
}
public struct custStruct
{
public ... | c# | [0] |
921,033 | 921,034 | How do I do this OnClientClick="jpcPrint(<%= this.Controller.JPId %>);"... so that it works | <p>When i try to </p>
<pre><code>OnClientClick="jpcPrint(<%= this.Controller.JPId %>);"
</code></pre>
<p>for a button, <%= this.Controller.JPId %> is literally put into the html rather than being evaluated. How do i write some version of the above such that the html would read:</p>
<pre><code>onclick="jpcPr... | asp.net | [9] |
771,413 | 771,414 | How to record a video from imagepicker controller deletage | <p>I want to record a video from imagepicker controller delegate. I am getting capture image but i am not getting video mode record. </p>
<p>Thanks and Regards.</p>
| iphone | [8] |
1,823,415 | 1,823,416 | iPhone - nil button outside the method? | <p>I am creating a button like this inside a method:</p>
<pre><code>UIButton * btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
btn.frame = CGRectMake(0, 0, 100, 50);
[btn setTitle:@"Hello, world!" forState:UIControlStateNormal];
[self.view addSubview:btn];
myButton = btn;
// I am saving the btn reference to... | iphone | [8] |
3,725,362 | 3,725,363 | How to condense over 150 jquery functions that do the same thing to different divs? | <p>im new to jquery and javascript.. Here is the code, this is a sample, on the real page there will be over 150 kinds of drinks, 5 are shown below, is there a way to condense this code? It makes it so when clicking one div another div will bounce. The divs that bounce contain small images, this is used as a giant menu... | jquery | [5] |
28,064 | 28,065 | Application crashes on Windows 2008 m/c when using delete[] | <p>Application crashes on Windows 2008 m/c when using <code>delete[]</code>. But the same works in 2003 m/c.
We allocated the memory using <code>new[</code>] and trying to delete using <code>delete[]</code>.
Example, </p>
<pre><code>x= new char[100];
.
delete[] x;
</code></pre>
| c++ | [6] |
5,769,912 | 5,769,913 | How do I re-publish an app on the Android Market | <p>How do I re-publish an app on the Android Market, do I have to upload all the screen shots again or can I just upload the app?</p>
<p>Cheers,</p>
<p>Mike.</p>
| android | [4] |
4,343,207 | 4,343,208 | What is the difference between a dialog being dismissed or canceled in Android? | <p>Like the title says, what is the difference between a dialog being dismissed or canceled in Android?</p>
| android | [4] |
1,704,590 | 1,704,591 | Android :webview make make urls clickable even data contain clcikable and non clickable urls | <p>How can I make non click-able urls in webview as click-able if the html data contains boths urls in tag and without tag. There is one way to first make only click-able urls as non click-able using java script(pattern matching) then making all non click-able urls as click-able urls using java script(pattern matchin... | android | [4] |
1,716,864 | 1,716,865 | Is there a way in JavaScript which clicks an anchor | <p>Is there anyway in JavaScript which emulate user clicks an anchor?</p>
<p>Mozilla(Firefox ) does not implement that.
<a href="https://developer.mozilla.org/en/DOM/element.click" rel="nofollow">https://developer.mozilla.org/en/DOM/element.click</a></p>
<p>But is there any browser which does?</p>
| javascript | [3] |
1,876,591 | 1,876,592 | Need help understanding some Python code with @, *args and **kwargs | <p>I'm new to Python, and stumped by this piece of code from the Boto project:</p>
<pre><code>class SubdomainCallingFormat(_CallingFormat):
@assert_case_insensitive
def get_bucket_server(self, server, bucket):
return '%s.%s' % (bucket, server)
def assert_case_insensitive(f):
def wrapper(*args, **k... | python | [7] |
4,869,897 | 4,869,898 | Call jQuery plugin method on a standard string without using a selector? | <p>I have a <code>parseuri</code> jQuery plugin method that affects the <code>.val()</code> of an input otherwise the element's <code>.text()</code>. Although this question is general, this specific method parses URLs for example:</p>
<pre><code>// assume text box contains URL like [ http://example.com:80 ]
$('input:t... | jquery | [5] |
71,420 | 71,421 | what isCOMCLASS attribute and how is used | <p>I was checking some code , I found comClass attribute.</p>
<p>what is that and what is it used for?</p>
<p>is there any good articles about that?</p>
<p>Thanks</p>
| asp.net | [9] |
3,598,894 | 3,598,895 | using jQuery to get other buttons not clicked in a div | <p>I have an HTML div</p>
<pre><code><div id="buttons">
<button type="button" id= "button_1" >I am button one</button></br></br>
<button type="button" id= "button_2">I am button two</button></br ></br>
</div>
</code></pre>
<p>I have attached the follow... | jquery | [5] |
2,654,776 | 2,654,777 | How to create another page class in a aspx c# page | <p>Results r = (Results)Page.LoadControl("Results.ascx");</p>
<p>In my Page i cannot access USER CONTROL CLASS(Results)
Gives error.I cannot resolve.</p>
<p>No namespaces at all.</p>
<p>Even i cannot access other aspx class in same folder's other page also..</p>
<p>Can you please help me.</p>
| asp.net | [9] |
2,634,541 | 2,634,542 | Is there a way to get both the argument name and value while looping over arguments array? | <p>I an creating a querystring from the supplied arguments to Javascript function.
I am looping over the arguments array and want to have argumentName and its value.</p>
<p>Thans</p>
| javascript | [3] |
2,747,264 | 2,747,265 | Java webdevelopment IDE/Server/Documentation | <p>I have been using PHP (OOP) with various Frameworks for all my webdevelopment projects for the last few years. Next year I'll have to learn Java as part of CS university course, so I thought it may be a good idea to switch to Java for some of my smaller webdevelopment projects, so that I can get to know Java in adva... | java | [1] |
5,095,114 | 5,095,115 | open and save file dialog | <p>i use an openFileDialog to read from a text file and print the values in a listbox and a saveFileDialog to save the changes in textfile.i wrote this code but it doesn't work.if a change the listbox with a textbox works fine.But i need to print and save the items into a listbox.any suggestions?</p>
<pre><code> pr... | c# | [0] |
1,332,358 | 1,332,359 | can we use .jpg format images for mobile applications I.e iphone and android | <p>i am working on mobile application where i need to display a background image using css sprites. here is the problem image size is 1600px width and 480px height. when i convert this image to png the file size is 400kb. and in jpg format it is 80kb.
So, my question is whether can i use the jpg format image in mobil... | iphone | [8] |
3,989,609 | 3,989,610 | PHP foreach, if statement | <p>I have a table listing several elements, and their expiration date.</p>
<p>I need a function that says, "If the expiration date is later than today (for each element), then don't show".</p>
<p>It seems pretty simple, but I'm stuck!</p>
<hr>
<p><strong>Edit</strong></p>
<pre><code><?php foreach($codes->res... | php | [2] |
1,757,239 | 1,757,240 | How to stop calling the onDraw() function on a View? | <p>Im clearing up the bitmaps i load in one activity before i more into the other activity. </p>
<p>eg:</p>
<pre><code>pic1 = null;
System.gc();
nextActivityIntent = new Intent(ThisActivity,NextActivity.class);
ThisActivity.startActivityForResult(nextActivityIntent,123);
</code></pre>
<p>But the problem is syste... | android | [4] |
2,454,844 | 2,454,845 | blur on an image | <p>Please look at this code:</p>
<pre><code>jQuery(document).ready(function(){
jQuery("td.setting").click(function(){
text = jQuery(this).text();
jQuery(this).replaceWith("<input class='inputSetting' type='text' value="+text+"><img class=\"accept\" src='images/accept.png'>");
cons... | jquery | [5] |
4,570,347 | 4,570,348 | Java Socket Closes After Connection? | <p>Why does this port/socket close once a connection has been made by a client?</p>
<pre><code>package app;
import java.io.*;
import java.net.*;
public class socketServer {
public static void main(String[] args) {
int port = 3333;
boolean socketBindedToPort = false;
try {
ServerSocket ServerSoc... | java | [1] |
1,160,671 | 1,160,672 | How to share class library for more than two asp.net projects,without duplication | <p>How to share class library for more than two asp.net projects,without duplication.
All projects exist on the same server.</p>
| asp.net | [9] |
1,945,767 | 1,945,768 | how to select specific <span> under <div> | <p>I have a structure something similar to,</p>
<pre><code><div class="div1">
<a class="myimg" href="#">clickme1</a>
<span>myspan1</span>
</div>
<div class="div2">
<a class="myimg" href="#">clickme1</a>
<span>myspan2</span>
... | jquery | [5] |
5,385,835 | 5,385,836 | Div hide not working | <p>I'm trying to hide a div, and I can't seem to get it working properly. Here's my code:</p>
<pre><code><head>
<title>Home - Chrome</title>
<link rel="stylesheet" href="main.css">
<script src="jquery.js"></script>
<script>
function 1Hide() {
document.getElementById('div1').st... | javascript | [3] |
564,370 | 564,371 | Copy value from one textbox to another using submit button | <p>I know this can be accomplished by Javascript, and I am learning so please tell me, when I click an update button I want the text from a textbox to be copied into another one.</p>
| javascript | [3] |
4,812,823 | 4,812,824 | How to make a div element scroll to the top of the page | <p>Assume that I have ten paragraphs of text and there is edit link next to each of paragraph. When I click on 'edit' the contents of the paragraph is available for editing.</p>
<p>So I have </p>
<pre><code><p id='p1'>data for p1</p>
<p id='p2'>data for p2</p>
<p id='p3'>data for p3</... | jquery | [5] |
2,400,353 | 2,400,354 | Form live validation has too many alerts on submit | <p>I'm using the live validation form here <a href="http://www.geektantra.com/projects/jquery-form-validate/advanced_demo/" rel="nofollow">http://www.geektantra.com/projects/jquery-form-validate/advanced_demo/</a> and i wanted to add an alert to the submit button. When I do, it pops an alert for every instance of requi... | jquery | [5] |
1,841,461 | 1,841,462 | When Features shown on Google IO are available? | <p>When those features shown on Google IO 2011 Android tools are available in Eclipse adt?</p>
| android | [4] |
5,051,802 | 5,051,803 | Not getting an output from my inputs | <p><a href="http://pastebin.com/YmeB2D1N" rel="nofollow">http://pastebin.com/YmeB2D1N</a></p>
<p>Essentially, my program has two EditTexts, a Button, and a TextView. You input a number/string into the EditText, and an output is supposed to be shown in the TextView. However, all i get is a 'There is no Department'. H... | android | [4] |
3,888,812 | 3,888,813 | Programmatically determine the coordinates of a view(Button) in android? | <p>How to determine the coordinates (position ) of a view in android programmatically?
I have a button placed in my xml file .How do i determine the coordinates of that button in java code?</p>
| android | [4] |
3,746,765 | 3,746,766 | which is the best datepicker for birth date? | <p>Which is the easiest to use/select date of birth?</p>
| javascript | [3] |
1,203,121 | 1,203,122 | Will I suffer if I learn PHP4 compared to PHP5? | <p>I'm a little interested into delving into PHP, and picked up a book from my library to learn more about it. </p>
<p>However, the book covers PHP4 (Library doesn't keep up with the times...), and I know PHP5 is the current standard.</p>
<p>Will a PHP4 book teach me things that are depreciated, useless, or just plai... | php | [2] |
5,344,979 | 5,344,980 | PHP pass by reference/value - question | <p>I was going to explain to our intern the difference between "pass by reference" and "pass by value" in PHP, and did this simple script:</p>
<pre><code>$a=5;
$b=&$a;
$a=8;
echo $b;
// prints 8
$a=5;
$b=$a; //no &
$a=8;
echo $b;
// prints 5
</code></pre>
<p>However, running this in php-cli using php -... | php | [2] |
2,998,450 | 2,998,451 | Android PUT Request | <p>Can anyone show me how to make a PUT request in Android ? Some sample code for this would be really helpful.</p>
| android | [4] |
4,696,286 | 4,696,287 | question on arrays in c++ | <p>int java declaration of array like this
<code>int a[][]=new int[3][3]</code> works but in c++ not why? please help me i have not used c++ a long time so please help me</p>
| c++ | [6] |
5,035,633 | 5,035,634 | Show text while loading images | <p>I'm making a website with a full background slider, so the images are kinda large. I want a script that shows some text with an animation effect while the background images are loading. I already searched for this, but no success. Can someone help me further?</p>
<p>Thanks!</p>
| jquery | [5] |
581,053 | 581,054 | Repetition algorithm problem, Java | <p>Set an algorithm that reads a undetermined number of values to m, all positive ints, one at a time. If m is even, verify how many divisors there is and write that information. If m is odd calculate and write the factored of m.</p>
<p>How do I do that? I'm entirely confused by that problem, I need a light on that su... | java | [1] |
4,461,635 | 4,461,636 | contact exists in contacts | <p>I have phone number. Is there any way to check whether the phone number exists in contacts database in the device or not? Depending on that I need have move further in my app. Please suggest or if any one can have sample code snippet please provide.</p>
<p>The below is the code I wrote:</p>
<pre><code>public boole... | android | [4] |
4,760,283 | 4,760,284 | how to pass parameter with tab? | <p>I am so confused, please tell me how to pass parameters with this tab host. I want to pass parameters in first and second tab. Here's my code:</p>
<pre><code>public class TabBarActivity_BalanceInquiry extends TabActivity {
/** Called when the activity is first created. */
public static String varbalMessageType;
pub... | android | [4] |
4,082,475 | 4,082,476 | right click jquery | <p>I am trying to create a context menu,when i right click on text box.I did it when i click,i am able to select using mouse but i need it using key up and key down too.</p>
<pre><code> $(window).load(function(){
$(document).bind("contextmenu", function(event) {
event.preventDefault();
$("<div class='custo... | jquery | [5] |
591,641 | 591,642 | C++ program halts after dynamic memory allocation | <p>I'm having problem with a copying method in a simple C++ program.
Everytime I call copy:</p>
<pre><code>Sudoku::SudokuNode** Sudoku::copy(SudokuNode** sudokuBoard)
{
SudokuNode** tempSudokuBoard = new SudokuNode*[9];
for(int i = 0; i<9; i++)
{
tempSudokuBoard[i] = new SudokuNode[9];
for(int j = 0; j&... | c++ | [6] |
4,777,177 | 4,777,178 | How to set custom REQUEST header in PHP | <p>In creating RESPONSE headers, using header() function will do the trick. How about for request headers? </p>
<p>Thanks in advance!</p>
| php | [2] |
5,145,267 | 5,145,268 | Jquery animating child using destination offset with parent set to position relative | <p>I've some serious problems with animating little image from 1 place to another.</p>
<p>I get destination offset and try to animate my image towards desired location using offset content as coordinates. But it always ends up incorrect.</p>
<p>I understand the problem is position:relative, position:absolute; But I c... | jquery | [5] |
5,178,897 | 5,178,898 | Can I create AlertDialog into AlertDialog in Android | <p>In my application, I want to create AlertDialog into AlertDialog. Is it possible in Android,
If yes then how.
Thanks.</p>
| android | [4] |
1,175,433 | 1,175,434 | Distribution of Android application | <p>I'm in the process of researching if and how an entrerprise Windows Mobile .NET application can be ported to Android. The question that I'm into right now is how to distribute and update the application once it's developed.</p>
<p>The current .NET application is "installed" on a device using an approperiate system ... | android | [4] |
1,584,088 | 1,584,089 | Weird string stripping | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/6311968/python-rstrip-removes-one-additional-character">python .rstrip removes one additional character</a> </p>
</blockquote>
<p>i have a string <code>vtype</code> defined as</p>
<pre><code>vtype = "vidis.fit"... | python | [7] |
4,378,465 | 4,378,466 | Reset a timer in android | <p>I have a timer running in my android application. I want that after user interaction the timer should reset itself? is there any function like reset() that resets the timer? What is the procedure to reset the timer?</p>
| android | [4] |
1,307,485 | 1,307,486 | 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] |
4,578,216 | 4,578,217 | Python: how to change (last) element of tuple? | <p>The question is a bit misleading, because a tuple is <em>immutable</em>. What I want is: </p>
<p>Having a tuple <code>a = (1, 2, 3, 4)</code> get a tuple <code>b</code> that is exactly like <code>a</code> except for the last argument which is, say, twice the last element of <code>a</code>.</p>
<p>=> b == (1, 2, 3,... | python | [7] |
5,549,950 | 5,549,951 | How to escape new line from string | <p>is there any php method to remove new line char from string?</p>
<pre><code>$str ="
Hi
there
";
</code></pre>
<p>my string contains a new line char between 'Hi' and 'there'
i want output as a "Hi there".I don't want to use regular expression.</p>
| php | [2] |
4,768,171 | 4,768,172 | Android get points of BitMap when I touch on a Image View | <p>When I touch a screen I get the point of screen, My phone is 320 x 240. But I was touching on a ImageView, with a Image with 1024 x 768. How can I get the point of the BitMap? </p>
<p>Sorry, Asked me why the reason of this: Because I need to draw a point over a Image using Canvas, this canvas is in a ImageView, the... | android | [4] |
3,099,841 | 3,099,842 | C++ : Assignment and checking for NULL on new/delete | <p>Is the assignment and check for null explicitly required in the below snippet to achieve the same result. Also, is there anything wrong or can be improved here.</p>
<pre><code>class Sample
{
private:
char *bits;
public:
Sample()
{
bits = NULL; //should this be explicit?
}
~Sample() ... | c++ | [6] |
1,604,626 | 1,604,627 | hide a div when clicking on the outer container using jQuery | <p>I have 2 divs, one overlayed on top of another. When I click on the outer div, I want to hide the inner div. When I click on the inner div nothing should happen to the inner Div. At the same time, the links in the inner div should work fine. How to do it using jquery?</p>
<pre><code><div class="outer">
&l... | jquery | [5] |
2,508,593 | 2,508,594 | Android: How to save entry to the calendar automaticly | <p>How can i save entry to the calendar automaticly?If i use this source code,it opens Calendar with filled entrys, but i must click on save button to save it.</p>
<p>Source code:</p>
<pre><code> while (callCur.moveToNext()){
String Number = callCur.getString(callCur.getColumnIndex(android.provider.CallLo... | android | [4] |
5,882,610 | 5,882,611 | Android: Need help setting view alignment in code | <p>I basically want to have several views aligned with each other using a relative layout. I can do so using xml, but unfortunately I can't find any documentation that tells me what methods I need to call to get the same effect in code (All the examples and things just use xml). Since the imageviews are being made dyna... | android | [4] |
386,678 | 386,679 | Issue with Custom URL scheme and messages app in iOS | <p>I have registered an Custom URL scheme in my application. From server i send an SMS to the phone with the message starting with the custom URL scheme. example myapp://mymessageToApplication</p>
<p>When the SMS reaches the inbox, the messages application does not receognize the above message as a link. So, i am unab... | iphone | [8] |
4,543,188 | 4,543,189 | How can I use Client ID within a server control? | <p>I was able to do the following in a repeater and it works just fine:</p>
<pre><code> <asp:TextBox ID="txtOtherPartyName" Text='<%# Eval("Name") %>' runat="server" />
<asp:RequiredFieldValidator ID="reqLoss" ControlToValidate="txtOtherPartyName"
data-valmsg-for='<%# Container.FindControl("txtO... | asp.net | [9] |
1,137,491 | 1,137,492 | jQuery .live() and Document ready | <p>I'm trying to set a CSS style using .live(). The CSS function:</p>
<pre><code>$(".data tr:odd").addClass("evenrows");
</code></pre>
<p>Is there a way for this to happen automatically on document ready but still happen for future elements? I've got an ajax event on the page that re-orders a table. I need these new... | jquery | [5] |
440,874 | 440,875 | ideal payment gateway return values | <p>I have implemented iDEAL payment gateway. Issuers list is getting properly. user also getting redirected to selected bank also. Issue is what return values I get from iDEAL after successful payments. how should I add data after successful payments ?</p>
| php | [2] |
4,674,227 | 4,674,228 | Statically link C++ 2010 failed | <p>My goal is to avoid the installation of Microsoft C++ 2010 by statically link it. Because I don't know if that package will be installed on all the customer computers and his IT department doesn't allow the installation of software.</p>
<p>One other alternative would be to avoid the use of administrative privilege.... | c++ | [6] |
5,860,634 | 5,860,635 | I need to replace a C# switch with something more compact | <p>I have the following code:</p>
<pre><code>switch (pk.Substring(2, 2))
{
case "00":
ViewBag.Type = _reference.Get("14", model.Type).Value;
break;
case "01":
ViewBag.Type = _reference.Get("18", model.Type).Value;
break;
}
</code></pre>
<p>It does the job but does not look very... | c# | [0] |
5,576,676 | 5,576,677 | jQuery click event when an element is inside another element | <p>I have a problem with the jQuery click event when an element is inside another element. The code I am using is similar to the following:</p>
<pre><code><div class="a" id="a">
<a class="b" id="b"></a>
</div>
$(".a,.b").click(function() {
var current_id = $(this).attr("id");
alert(curr... | jquery | [5] |
3,146,096 | 3,146,097 | run-time error and program crash | <p>How can I specify a separate function which will be called automatically at Run-Time error to prevent program crash?</p>
| c++ | [6] |
4,631,779 | 4,631,780 | jquery lightbox view slidershow | <p>I have a list of images. I want to show full size images using lightbox. But i dont want lightbox to work on click of those images. I want lightbox to work with click of some other link saying "Start Slide Show".</p>
| jquery | [5] |
5,949,232 | 5,949,233 | Java regex to split by comma but ignore comma inside comments | <p>I need regex to split the string by Comma(,) but ignore the comma in commented part
I tried a lot after changing your regex.It was not succesful
eg.</p>
<pre><code>Command=RTRV-EQPT, Completion Code= DENY, Error Code= II:AC, Problem Description= /* Input Inva,lid *******ACcess =iden:tifier */, Comment=null,
</code... | java | [1] |
4,860,881 | 4,860,882 | C++ Vector of class objects | <p>I have a class called Movie with the following private data members:</p>
<pre><code>private:
string title_ ;
string director_ ;
Movie_Rating rating_ ;
unsigned int year_ ;
string url_ ;
vector<string> actor_;
</code></pre>
<p>It also contains the following ... | c++ | [6] |
489,769 | 489,770 | how to read task manager list using java program | <p>I am trying to read the processes names from different REMOTE machines' task managers list.
i.e., A java program that keep polls into different remote machines task lists.</p>
<p>Can any one suggest a good solution for this...?</p>
<p>Thanks in advance...</p>
| java | [1] |
400,488 | 400,489 | How to use plain text and variables in the same Println statement (JAVA) | <p>How is it possible? I have tried:</p>
<pre><code>System.out.println("Your answer is: " + answer);
</code></pre>
<p>and</p>
<pre><code>System.out.println("Your answer is: ", answer);
</code></pre>
| java | [1] |
4,996,165 | 4,996,166 | Dynamically adding a variable whose name leads with a numeric value | <p>I noticed that if I try to create an object with a key name that leads with a numeric value, an error is thrown (which goes along with JavaScript naming outlined here: <a href="http://stackoverflow.com/q/1661197/360705">Valid Characters for JavaScript Variable Names</a>). However, I noticed that I can still add such... | javascript | [3] |
4,237,460 | 4,237,461 | Adjusting screen brightness using WindowManager stops working after inactivity | <p>I'm using this code to change an Activity's brightness by dimming it.</p>
<pre><code>WindowManager.LayoutParams layoutParameters = getWindow().getAttributes();
layoutParameters.screenBrightness = 0.0075f;
getWindow().setAttributes(layoutParameters);
</code></pre>
<p>I'm also adjusting the android.provider.Settings... | android | [4] |
4,093,505 | 4,093,506 | how to generate a voucher code in c#? | <p>I need to generate a voucher code[ 5 to 10 digit] for one time use only. what is the best way to generate and check if been used?</p>
<p>edited: I would prefer alpha-numeric characters - amazon like gift voucher codes that must be unique.</p>
| c# | [0] |
4,658,544 | 4,658,545 | hoare partition code does not work | <p>The following code for partition:</p>
<pre><code>#include<iostream>
using namespace std;
#define maxn 10000
int x[maxn];
void partition(int x[],int p,int r)
{
int y=x[p];
int i=p-1;
int j=r+1;
while(i<j){
do {
j=j-1;
} while( x[j]>y);
do {
... | c++ | [6] |
3,261,460 | 3,261,461 | Weird segmentation fault when calling virtual method, HELP | <p>Here is my code, I casted the buffer to different type of objects, is this what causes the failure? I really want to know why the <strong>FromBase::find2(int key) works, but not FromBase::find(int key)?</strong></p>
<pre><code>class Base
{
public:
virtual int find(int key)=0;
int keys[4];
};
clas... | c++ | [6] |
2,093,219 | 2,093,220 | Read double value from a file C# | <p>I have a txt file that the format is:</p>
<pre><code>0.32423 1.3453 3.23423
0.12332 3.1231 9.23432432
9.234324234 -1.23432 12.23432
...
</code></pre>
<p>Each line has three double value. There are more than 10000 lines in this file. I can use the ReadStream.ReadLine and use the String.Split, then convert it.
I wan... | c# | [0] |
4,064,959 | 4,064,960 | can any one tell me what is wrong in my java code | <pre><code>import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
import java.util.StringTokenizer;
public class shift {
@SuppressWarnings("unchecked")
public static void main(String args[])
{
String spee... | java | [1] |
680,976 | 680,977 | rename image during upload not working with Mysql set | <p>I have the bellow code which I was hoping to change/rename image name on upload to user id so I can avoid file overwrite and insert the name into database sadly after I added rename code the code is not able to upload image or update the database we out showing any error but if I remove the rename code everything wa... | php | [2] |
2,925,718 | 2,925,719 | Pass pointer to structure | <p>i am used to code in ASM and had the need to switch to C++ for some OpenGL project. Anyway i got the following procedure:</p>
<pre><code>glGenBuffers(Size, PointerToBuff);
</code></pre>
<p>According to what i understand the handles according to the Size argument (Number of buffers) will be stored on PointerToBuff.... | c++ | [6] |
4,569,390 | 4,569,391 | i have to show organization chart for an organization. in ASP.Net | <p>i have to show organization chart for an organization. i have no idea how to do that,,
how can i use system.graphics name space to show this chart can anybody help me with this..??
data is basically coming from data base, the whole hierarchy is there in the database i have to show it graphically on organisation.aspx... | asp.net | [9] |
5,905,472 | 5,905,473 | Launching Traceview | <p>Could you explain to nube how to correctly launch the traceview utility. When I write in command line (beeing in \tools folder) <strong>traceview</strong> I get this message:</p>
<p><strong>Usage: java com.android.traceview.MainWindow [-r] trace</strong></p>
<p><strong>-r regression only</strong></p>
<p>So then I... | android | [4] |
341,882 | 341,883 | php to pdf or php to jpeg library or function? | <p>I have trying to achieve like this. I have one page which is written with php. There will be one button, which i click that button, that page will be converted to imageformat or pdf. Which function can i use? Is there any built it ? Which one will be more easier ? Creating imageformat or pdf? Please kindly point me ... | php | [2] |
5,086,990 | 5,086,991 | Territories in a C++ Risk Clone | <p>For fun, I've been programming a Risk clone in C++ and I need some help with the territories/Continents part of it. Setting them up so that they know what territories are adjacent to them, what Continent it is apart of, who currently controls it and of course the amount of armies currently in it. </p>
<p>Likewise, ... | c++ | [6] |
6,019,071 | 6,019,072 | Error When running asp.net Application in IIS | <p>I have an application in asp.net.I configured it in IIS.When i running this application in IIS i getting an error;</p>
<pre><code>Server "/" error:
Resource Cannot be Found
Error:404
</code></pre>
<p>Some of pages only produce this issues.Other forms are working perfectly.Without running application in IIS Its wor... | asp.net | [9] |
4,585,174 | 4,585,175 | retrieving values in array & store in session and calling to other page asp.net c# | <p>Hi
I want to store values inside the array in session. I want to use it to another page. How i can do that?
I used session to store values of array as follow:</p>
<pre><code> int i, randno;
int[] a = new int[5];
for ( i = 0; i < 4; i++)
{
int flag = 0;
Random rnd = ... | asp.net | [9] |
1,037,817 | 1,037,818 | Can i set up record types and arrays of record types PHP? | <p>In pascal and delphi I am able to set up a custom type such as </p>
<pre><code>myrecord = type
name : string;
number: integer;
end;
</code></pre>
<p>The advantage of this I can then do an array of that type so I can run code like records[i].name = ... ECT. Can I do this in PHP?</p>
| php | [2] |
4,428,045 | 4,428,046 | Trim line breaks from a string in Javascript without frameworks | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/498970/how-do-i-trim-a-string-in-javascript">How do I trim a string in javascript?</a> </p>
</blockquote>
<p>While I solved the issue I was experiencing when I was looking for a solution a few moments ago I was ... | javascript | [3] |
5,991,712 | 5,991,713 | Droid4me app development framework | <p>Can anyone please suggest me some documentation and programming examples using Droid4me application development framework? </p>
<p>Thanks in advance,</p>
<p>Tim</p>
| android | [4] |
733,970 | 733,971 | Many submit button for one form | <p>I have this code: <a href="http://jsfiddle.net/xFvrV/2/" rel="nofollow">http://jsfiddle.net/xFvrV/2/</a></p>
<pre><code><form id="formTest" action="#" method="post">
<input type="text" id="textTest"/><br>
<input id="submitButtonDraft" type="submit" value="Save Draft" /><br>
... | jquery | [5] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.