Unnamed: 0 int64 302 6.03M | Id int64 303 6.03M | Title stringlengths 12 149 | input stringlengths 25 3.08k | output stringclasses 181
values | Tag_Number stringclasses 181
values |
|---|---|---|---|---|---|
861,575 | 861,576 | $.ajax() post json data type | <p>That is my function, for exp.:</p>
<pre><code>adId = 1, adTitle = test
function deleteAd(adId, adTitle) {
$.ajax({
dataType: 'json',
url: 'ajax.php',
type: 'POST',
data: {
adId : adId,
adTitle: adTitle
},
success: function(data) {
... | javascript jquery | [3, 5] |
5,914,333 | 5,914,334 | How to make hitTest, Collision Detection Functionality in Android | <p>I have three small ImageView on Screen/View. OnTouch and onTouchMove I have to detect that the Touch/Mouse has collide the ImageView.</p>
| java android | [1, 4] |
1,270,230 | 1,270,231 | Position a relative layout below a listview element | <pre><code>RelativeLayout item = (RelativeLayout)findViewById(R.id.catalogParent);
View child = getLayoutInflater().inflate(R.layout.detailedcatalog, null);
RelativeLayout.LayoutParams layoutParams = new
RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
layoutPara... | java android | [1, 4] |
1,419,854 | 1,419,855 | jQuery, same function for multiple ids | <p>i want to clear specified input if the value is not number. function works for one ID, but i want it to work for multiple. of course i can write function multiple times but i dont want to do that.</p>
<p>the following code gets effect only for input with id "d". i dont know how to identify other ids. can anyone hel... | javascript jquery | [3, 5] |
4,371,313 | 4,371,314 | Android browser: Some javascript functions stop working randomly | <p>I am writing an android (2.2) app which launches the default native web browser via a new Intent to a page I've created. On that page, it pauses for 2 seconds before then submitting a form, which redirects the user to another page.</p>
<p>I am using javascript's setTimeout() function.</p>
<p>It works most of the ... | javascript android | [3, 4] |
337,494 | 337,495 | onPause/Resume/Start/Stop order | <p>Im trying to detect the global Application onPause. For doing it I'm registering every Activity onResume, onPause, onStop calls.
I'd like to know if I can assume the calling order (when the ActivityA leaves and enters the ActivityB) is always:</p>
<pre><code>A ->onPause;
B ->onStart;
B ->onResume;
A ->... | java android | [1, 4] |
2,312,460 | 2,312,461 | asp.net to php encoding | <p>I need to do this with php encryption method.
turkey 3d a bank payment module in the code for the example given to me in this way encryption.
could you help me translate this into php code?</p>
<pre><code> SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] notHashedBytes = System.Text.Encoding.ASCII.GetByte... | php asp.net | [2, 9] |
4,548,337 | 4,548,338 | Add URL variables with Server.Transfer in asp.net | <p>I am currently trying to add a variable to the url using Server.Transfer. I need to use Server.Transfer as I need to keep form post data which is why I can't use Response.Redirect.</p>
<p>I am using <code>Server.Transfer("add_account.aspx?error=userNotFound");</code> but the variable is not being added to the URL. ... | c# asp.net | [0, 9] |
915,451 | 915,452 | random genereration in ASP.NET--- | <p>My following code generates two different values but I need same value to be posted for an event.</p>
<pre><code> protected void Button1_Click(object sender, EventArgs e)
{
try
{
string url = "transfer.aspx";
string rgen = randomurl.passwordString();
string gpeck = rgen;
R... | c# asp.net | [0, 9] |
5,737,205 | 5,737,206 | How read values from MultipleSelectListPreference | <p>I want to read my string arrays entries from <code>SharedPreferences</code> that were saved via MultipleSelectListPreferences. </p>
<p><code>getStringSet()</code> seems to be the only method on SharedPreferences that fits the requirements.
How do I extract the saved String array with this method - I don't understa... | java android | [1, 4] |
1,656,140 | 1,656,141 | How to show a label message, then hide it after some seconds? | <p>I would like to show a message on my ASP.Net page like "Record saved" on save button click. After 5 seconds, I would like to hide it.<br>
How can I do in JavaScript? Can I avoid to add jQuery (I'm not using it)?</p>
| javascript asp.net | [3, 9] |
4,676,732 | 4,676,733 | space or not outputting in jQuery | <p>I have the following being extracted from an XML and being put into a jQuery variable. </p>
<pre><code> links.append($("<a href='"+alink+"'></a>&nbsp;").html(desc));
</code></pre>
<p>...however the <code>&nbsp;</code> does not output onto the page. I need this to separate the hrefs on output</p... | javascript jquery | [3, 5] |
1,573,361 | 1,573,362 | How to retrieve content passed back from remote server when the server reponds with a System.Net.WebException 422 | <p>I am working with an api that also returns a valid xml string containing the error that was encountered on their system.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<error>
<request>Request made to server</request>
<message>No user found for account 12345</message>... | c# asp.net | [0, 9] |
2,188,271 | 2,188,272 | Curve Global Approximation, Java implementation | <p>I need fit a curved line to a set of vertices. A very promising method for doing this is discussed in the below link, though I'm finding it a bit challenging to implement the algorithm from the discussion. I was hoping that someone might be aware of an available java implementation of this algorithm?</p>
<p><a hr... | java android | [1, 4] |
5,634,248 | 5,634,249 | How to disable a control in command field control in gridview | <p>how to find a command field control in the gridview.</p>
<p>in a method not in the row data bound.</p>
<p>so far i have used this coding but i cant find the control.</p>
<pre><code><asp:CommandField ButtonType="Image" ShowEditButton="True
HeaderText="Enter Leave"
EditImageUr... | c# asp.net | [0, 9] |
1,818,802 | 1,818,803 | On hover display none, on mouse out display block | <p>I have a div on my page, that is click and draggable. </p>
<p>Over this div, I have another that is absolutely position. </p>
<p>On hover of this div, I want it to fade out and dissapear so i can use the div beneath, I cant seem to get it working however. Is there a way to say on hover, display none, on mouse leav... | javascript jquery | [3, 5] |
1,288,853 | 1,288,854 | How to retrive value from dynamic button | <p>I created a dynamic button inside c# code and I have assigned some value in <code>button.text</code> but the problem is that on <code>buttn_Click</code> event I want to show details related to that value. So any idea how to do this?</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
for (in... | c# asp.net | [0, 9] |
3,104,879 | 3,104,880 | How to rearrange an array in JQuery | <p>I have this being POSTed to my script</p>
<pre><code>Array
(
[0] => Array
(
[name] => test1
[value] => test1 value
)
[1] => Array
(
[name] => test2
[value] => test2 value
)
)
</code></pre>
<p>What I want is:</p>
<pre><code>Arra... | javascript jquery | [3, 5] |
2,906,463 | 2,906,464 | Periodic timer not working with .load | <p><strong>Problem:</strong></p>
<p>I believe that .load is blocking but is intended to be asynchronous.</p>
<p><strong>Code:</strong></p>
<pre><code>$(window).load(function(){
$('#content').load('/ajax/databaseworking.php');
setTimeout(function(){ $('#content').load('/ajax/databaseperform.php');}, 5000);
})... | javascript jquery | [3, 5] |
2,392,970 | 2,392,971 | Android resource not found exception? | <p>I am having a strange problem using findViewById(id). It comes back with resource not found even though the resource is definitely there. It is a textview in a layout next to another textview, one of the textviews I can find by id but the other shows resource not found. Is there any reason this might be happening?</... | java android | [1, 4] |
4,340,753 | 4,340,754 | How to define Variable similer to Session variable in ASP.NET | <p>I want to define a variable or object like session, to stored data about each user, and i want to access this object in many pages,
could u please tell me if there is a way.
thanks</p>
| c# asp.net | [0, 9] |
362,605 | 362,606 | Truncate a double variable in Javascript? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4912788/truncate-decimal-number-not-round-off-in-jquery">Truncate Decimal number not Round Off in jquery</a> </p>
</blockquote>
<p>I have values like <code>5.3777777</code>, <code>4.6666666</code> on my <code>Y<... | javascript jquery | [3, 5] |
4,691,905 | 4,691,906 | Replacing a substring in href-attribute using jQuery | <p>I have some "a" tags in div. I have to change part of the href. For example: <a href="http://jsfiddle.net/A6z88/" rel="nofollow">http://jsfiddle.net/A6z88/</a>, I have to change only 'foo' in the href with 'asd'. Thanks a lot and sorry for my english :D</p>
| javascript jquery | [3, 5] |
6,030,225 | 6,030,226 | Comparing user's voice to an audio file | <p>How can i make a continuous speech recognition and use that to compare between what i am saying and a text that has already been stored, or and audio that had been stored like for example the lyrics to a song or something.</p>
| java javascript android | [1, 3, 4] |
162,060 | 162,061 | Copy object properties to a new object and delete the new (not by reference) | <p>I have a Javascript array of objects, which is initialised with some values.
I want to copy those values to a new array of objects, but without referencing to the original one.
Then i want to manipulate the new object as i wish.</p>
<p>I tried <code>objectOptions.concat()</code> like in this sample code but it th... | javascript jquery | [3, 5] |
1,846,063 | 1,846,064 | jQuery get height in pixels | <p>I have the following elements in a HTML page:</p>
<pre><code><body>
<div style="height:100%; width:100%">
<div style="height:100px;"></div>
<div id="container" style="height:25%; width:50%">
</div>
</code></pre>
<p>Now I would like to get the height in pixels of ... | javascript jquery | [3, 5] |
1,906,541 | 1,906,542 | Android & Java simple Code | <p>I Wonder what is and does (this) in this code:</p>
<pre><code>Button btn = new Button(this);
</code></pre>
| java android | [1, 4] |
4,836,490 | 4,836,491 | Run logic on same date only | <p>I have a situation where my logic is comparing my column 0 (list of time) to a 24hour javascript clock, and returns a stoplight color scheme on the row depending on how close the times are. </p>
<p>The issue is when its 23:00(11pm) and there is a item in my time column that read "2:10am"(next day) my logic thinks i... | javascript jquery | [3, 5] |
2,267,973 | 2,267,974 | Reduce array of DOM elements to the ones with the deepest level in JavaScript | <p>Let's assume i have HTML markup like this:</p>
<pre><code><body>
<div id="content">
<div id="sidebar">
</div>
<div id="main">
<p class="foo">text</p>
<p class="bar">more <span>text</span></p>
</div>
</div&... | javascript jquery | [3, 5] |
4,156,048 | 4,156,049 | jQuery - if Value = 1 fadeIn | <p>Is there any alternative to onKeyUp which says that if letter was typed do this because onKeyUp shift, enter, backspace etc counts. </p>
<p>Something like if value.div1 = 1 fade in div2 for example.</p>
<p>Thanks alot </p>
<p>EDIT:
Okay I wasn't clear. Sorry, what I meant is:</p>
<p>I have a textarea. If letter ... | javascript jquery | [3, 5] |
4,688,820 | 4,688,821 | Printing out a javascript variable (not showing up?) | <p>I want to make sure a javascript variable is getting the correct values passed into it when setting it to a ruby variable.</p>
<pre><code><script type="text/javascript" charset="utf-8">
var test = <%= @test || 'null' %>;
document.write(test);
</script>
</code></pre>
<p>However, there does... | javascript jquery | [3, 5] |
1,315,540 | 1,315,541 | ASP Checkbox and JS | <p>I'm trying to check to see if the aspboxes are checked in js. Can I set an ID number to the listItems and check each one by one?</p>
<pre><code> <asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem Text="Asset Classes" value="Asset Classes"></asp:ListItem>
... | javascript asp.net | [3, 9] |
1,940,894 | 1,940,895 | PHP with Javascript: Email confirmation script not working | <pre><code> echo "<script type=\"text/javascript\">
function finishForm() {
var answer = confirm('Are you sure these are the teams you want to enter with?');
if (answer) {
if(document.getElementByID(emailconfirm).value == ".$_SESSION[Email].") {
form.action=\"esubmit.php\";
form... | php javascript | [2, 3] |
1,747,454 | 1,747,455 | Error: "Specified argument was out of the range of valid values" when populating dynamic DropDownLists | <p>I added two DropDownList controls programatically. When the first DropDownList's index is changed the second DropDownList should get populated. The first DropDown gets populated on Page Load.</p>
<p>When I select an item from the first DropDown, a DataTable is filled with values that need to be populated in the sec... | c# asp.net | [0, 9] |
3,401,122 | 3,401,123 | Re executing a code after a certain period of time in android | <p>I am in a google map project and here is my code in oncreate:</p>
<pre><code>mapView = (MapView)findViewById(R.id.mapView);
mapView.setBuiltInZoomControls(true);
mapView.setSatellite(false);
mapView.setStreetView(true);
mapController = mapView.getController();
mapController.s... | java android | [1, 4] |
1,993,526 | 1,993,527 | Equalize two ULs by height | <p>I have a case where I'm provided with one UL, and an unknown number of LIs. I'm looking to use JS to split the LIs into 2 ULs (I'm using jQuery). I'm able to split the ULs evenly by number of LIs, but I'd like to split it based on the height of each LI as well, so that both ULs are close to the same height.</p>
<p>... | javascript jquery | [3, 5] |
2,371,339 | 2,371,340 | Accessing gridview in all pages in C#-ASP.NET | <p>I have a gridview. I need to display that gridview in four pages. I dont want to write the code for gridview in all four pages. Please tell a good approach to do this?</p>
| c# asp.net | [0, 9] |
4,929,065 | 4,929,066 | Can jQuery or Javascript simulate a link being clicked? | <p>I have a slider on my site but unfortunately it doesn't have an auto mode.</p>
<p>Is it possible to write a function that simulates a link being clicked at certain time intervals so that the slide rotates?</p>
| javascript jquery | [3, 5] |
3,259,548 | 3,259,549 | SQl server hierarchy | <p>I have a website application, In that website i created four text boxes(txtSchoolName,txtBranchName,txtClass,txtSection)....</p>
<p>I want to know about SQL server Hierarcy... and How to create hierarchy sqlserver?
how to insert values in that? and also how to connect that hierarchy to ASP.net website(C#)?</p>
<p... | c# asp.net | [0, 9] |
2,586,037 | 2,586,038 | Get dynamic class each fieldset | <p>How can get(dynamic) each class <code>fieldset</code> that wrapping the elements in it?</p>
<p><strong>Like:</strong></p>
<p>if click on button <code>adult</code> =get class=> <code>.adult</code> from here in the html: <code><fieldset class="adult"></code><br>
if click on button <code>child wbed</code> =get ... | javascript jquery | [3, 5] |
4,286,798 | 4,286,799 | Accessing nested JavaScript objects with string key | <p>I have a data structure like this :</p>
<pre><code>var someObject = {
'part1' : {
'name': 'Part 1',
'size': '20',
'qty' : '50'
},
'part2' : {
'name': 'Part 2',
'size': '15',
'qty' : '60'
},
'part3' : [
{
'name': 'Part 3A',
... | javascript jquery | [3, 5] |
5,846,150 | 5,846,151 | get ClientID for a specific user control bounded in a repeater | <p>iv'e got a list of user controls which i bind to a repeater .</p>
<p><strong>the user control : (Example) "AppProduct"</strong></p>
<pre><code> <div>
<asp:Button ID="btn_details" runat="server" Text="Trigger" />
<asp:HiddenField ID="pid" runat="server" value="5"/>
... | javascript jquery asp.net | [3, 5, 9] |
4,646,214 | 4,646,215 | Jquery or javascript event on document header load | <p>Is there any Jquery or javascript event available on document header load and not on document load ?</p>
<p>I created two sites, </p>
<ol>
<li>desktop.example.com is for desktop and </li>
<li>m.example.com for mobile version.</li>
</ol>
<p>Actually I want to detect user-agent and depending on it redirect page to ... | javascript jquery | [3, 5] |
1,157,025 | 1,157,026 | Async task can't update GUI | <p>My basic question is how do you update the GUI with AsyncTask. I am setting a <code>String</code> in <code>onPostExecute</code> that the GUI thread references. Using logging, I can see the <code>String</code> getting set in the <code>onPostExecute</code> method, but it never gets set on my GUI under my <code>onCli... | java android | [1, 4] |
5,219,809 | 5,219,810 | Javascript date choose with next and prevous button | <p>I've a UI as shown below, where when use clicks on next button the text box changes to next date and when clicked on previous, should display previous date.</p>
<p>The complexity is that when user clicks on Weekview button it should show week i.e 6 days from selected date e.g. Tuesday 06 - Monday 12</p>
<p><img sr... | javascript jquery | [3, 5] |
936,736 | 936,737 | What is the difference between $.map and $.grep in jquery | <p>What is the difference between $.map and $.grep in jquery?</p>
<p>I want a simple answer as far as possible.</p>
<p>Thanks :)</p>
| javascript jquery | [3, 5] |
1,768,017 | 1,768,018 | need help converting c++ definitions to c# equivalent | <p>I'm using an API (written in c++) to connect to a DVR machine, actually I only have the .dll and the .lib files, and I want to do the job in .NET (C#).
So, the API doc contains definitions to all functions inside the dll, and I'm having a hard time trying to figure out how to translate those functions to equivalente... | c# c++ | [0, 6] |
4,563,161 | 4,563,162 | Android import project errors | <p>Hey everyone, I'm a beginner, so I'll try my best to explain this problem succinctly.</p>
<p>Basically, a friend of mine and I were playing around with the Android SDK, editing a simple RSS reader. We could launch it in the emulator and even install it on our real devices. </p>
<p>Fast forward a few days, I'm tryi... | java android | [1, 4] |
5,020,571 | 5,020,572 | jQuery on enter key submit form | <p>I built a simple form that submits whenever you press ENTER. It works fine, but whenever I tried running a <code>.post</code> inside of it, the text in the textarea breaks when I press enter instead of submitting. </p>
<p><strong>What I mean by breaking</strong></p>
<hr>
<p>The text in the textarea is <br />
| br... | javascript jquery | [3, 5] |
4,886,588 | 4,886,589 | android web scraping behind a secure login | <p>I've been racking my brain about this for a while, I've managed to send a post request to a https based login form using the android sdk, specifically the org.apache.http library. All seems well in that the response i get back from the server is 200 OK. </p>
<p>However, I can't figure out how to then scrape the pag... | java android | [1, 4] |
3,167,142 | 3,167,143 | Page URL delima - Controlling browser refresh | <p>I have a page that currently goes to the url <code>/edit/baseProductId</code> and it has a save functionality which creates a new product with the changes you've made. The trick here is that it's an ajax save, so the URL doesn't change. The problem is if the user refreshes the page it resets their form cause the U... | javascript jquery | [3, 5] |
1,390,159 | 1,390,160 | Upload files to WiFi IP | <p>I have two devices that connect to each other with bluetooth.</p>
<p>Now I have made a socket connection between the two and I want to send a file/upload to the ip address but not to the device.
Not just a file but an Index.html file, so you can actually view the file from your desktop's browser.
In a <a href="http... | java android | [1, 4] |
5,010,004 | 5,010,005 | android listitem from server and stores data to database | <p>i'm trying to do mail program. i've done this using jsonArray, Http protocals and some other functions. But, now i want to implement the program likely unread mails and starred mails. If i'm pressing anyof new mail it'll assign likely 1 to database. Otherwise, keep it 0. And, also if i want to set any mails in impor... | java android | [1, 4] |
1,239,557 | 1,239,558 | Iterate through a root directory and get all files in it? | <p>hi
i am creating a application and i want to know the each and every file which is present under that one folder .i.e. how can i iterate through a root directory and get the each files visit at list once.</p>
| c# asp.net | [0, 9] |
4,332,467 | 4,332,468 | Assigning an element an id when document is loaded so it can perform a different function when clicked? | <p>I'm trying to manipulate an <code>id</code> to use the same button to do more then 2 actions.</p>
<p>its something like:</p>
<pre><code>var id;
if(something == 2){
id = "id";
}else{
id = "id2";
}
$(".myClass").attr("id", id);
</code></pre>
<p>but, its not good, because if i try to use the <code>id</code> t... | javascript jquery | [3, 5] |
2,576,869 | 2,576,870 | inline to handle url redirect | <p>I am migrating a site from siteA.domain.com to siteB.domain.com. All the page paths remain the same. The problem is it's a gradual migration, and not every path is being migrated at the same time. So what I need to do is check the path the user is going to, and if it's a member of a list of migrated sites, then r... | c# asp.net | [0, 9] |
238,200 | 238,201 | jQuery .before() re-executing javascript | <p>I have a piece of code that is using .before() and the code it is moving has inline javascript which .before() re-executes. Is there a way to prevent .before() form re-executing javascript code?</p>
| javascript jquery | [3, 5] |
5,935,489 | 5,935,490 | Javascript passing variable to Jquery | <pre><code><script type="text/javascript">
function DoThings()
{
var txt = txtbox.value;
txt = /* passed info from code behind */
}
$(function() { var Tags=[ txt ]; $( "txtbox2").autocomplete({source: Tags});});
</script>
</code></pre>
<p>but i want to move it to the page. im unsure how i send the v... | javascript jquery asp.net | [3, 5, 9] |
1,862,141 | 1,862,142 | Passing Session[] and Request[] to Methods in C# | <p>In C#, How do you pass the Session[] and Request[] objects to a method?</p>
<p>I would like to use a method to parse out Session and Request paramaters for a .aspx page to reduce the size of my Page_Load method. I am passing quite a few variables, and need to support both POSTand GET methods. For most calls, not al... | c# asp.net | [0, 9] |
4,465,984 | 4,465,985 | Find requested page from masterpage load? | <p>Say I am in the masterpage load event. If the user is logged in, I need to redirect them away from Login.aspx, if not logged in, I need to redirect them to Login.aspx. But first, I need to know which page they were trying to access.</p>
<p>How can I get this information?</p>
<p>Thanks</p>
| c# asp.net | [0, 9] |
5,442,330 | 5,442,331 | Custom view in ListView disappears while scrolling in Android | <p>I wrote a simple custom view for rows in ListView. It works fine, but when I try to scroll the list, I see only white rows without content. And when scrolling is over, rows continue to show again. </p>
<p>This is how I draw a custom view: </p>
<pre><code> @Override
protected void onDraw(Canvas canvas) {
i... | java android | [1, 4] |
1,022,187 | 1,022,188 | Clear browser cache only on logout | <p>How can I clear browser cache only on logout, sure I can use the below:</p>
<pre><code>Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1));
Response.Cache.SetNoStore();
</code></pre>
<p>But this particular page which is a shopping bag page is accessible... | c# asp.net | [0, 9] |
4,111,667 | 4,111,668 | Resume timer with jQuery | <p>I am using the plugin from <a href="http://www.erichynds.com/jquery/a-new-and-improved-jquery-idle-timeout-plugin/" rel="nofollow">http://www.erichynds.com/jquery/a-new-and-improved-jquery-idle-timeout-plugin/</a></p>
<p>I want to Resume the timer. I wrote this, as I also want to get the data from server. But <stro... | javascript jquery | [3, 5] |
836,930 | 836,931 | Having a TableRow with TextView's underneath each other | <p>I'm currently having the following problem:</p>
<p>I've got a TableView that is given TableRow's to be added to it with data. I want each TableRow to contain 2 TextView's having a width of the parent and are underneath each other, for example:</p>
<pre><code>| TextView1.............. |
| TextView2.............. |
... | java android | [1, 4] |
3,239,060 | 3,239,061 | getting the last event data | <p>I am using an external jquery plugin (iosSlider. but it doesn't metter). The plugin triggers an event when I click the mouse and move it. The plugin triggers the event and supply data to the listener. But, it doesn't provide the original event object. The original event object contains data which I don't have in the... | javascript jquery | [3, 5] |
3,803,873 | 3,803,874 | Error: uncaught exception: Syntax error, unrecognized expression: inputnum | <p>I've inherited another developer's code for a project I'm working on. Here's an example of their code - notice the first comment... </p>
<pre><code>function disableSuggestButton(themePath) {
// could not see a better way of doing this :(
var row = $("input[type='text']:inputnum:inputnumsmall");
$(row).e... | javascript jquery | [3, 5] |
5,566,564 | 5,566,565 | getting image from remote server issue | <p>Just two things, is this a good simple way to grab images? also when i do try it on the android AVD nothing gets displayed on screen as well as in log_cat, no errors or crashes. Here is my code: </p>
<pre><code>public class MainActivity extends Activity {
Bitmap bitmap = null;
@Override
public void onCreate(Bundl... | java android | [1, 4] |
5,053,190 | 5,053,191 | How to set time for AlarmManager correctly? | <p>I have the following code:</p>
<pre><code> PendingIntent pi=PendingIntent.getBroadcast(getActivity(), id, i, 0);
manager.setRepeating(AlarmManager.RTC_WAKEUP, date.getTime(), 5000, pi);
</code></pre>
<p>This code works correctly, but there is one problem - for example, I set time as "15 october 2012", and i... | java android | [1, 4] |
2,761,383 | 2,761,384 | how to get the prefect url from html encoded url | <p>Folderpath\0\Microsoft%202007\chapter1\images</p>
<p>how can i remove %20 from this url path.</p>
| c# asp.net | [0, 9] |
4,976,821 | 4,976,822 | hover more than one element | <p>Is it possible to use more than one element in jQuery hover?
This code is only for <code>a</code> elements but how may you use it for <code>div</code>,<code>texterea</code>,<code>a</code> and <code>li</code> elements together?</p>
<p>Example:</p>
<pre><code>$("a").hover(function () {
var id = $(this).attr("cl... | javascript jquery | [3, 5] |
982,103 | 982,104 | How to set center of GoogleMap? | <p>I have following task: I have been making Android application, and I need to set drawable marker into center of Map that if I move map or zoom map this marker will continue point to center of Map, won't move with Map. How can I do it? </p>
| java android | [1, 4] |
4,553,387 | 4,553,388 | Java code optimalization - Two functions into one | <p>Hello I have this code:</p>
<pre><code>this.firstBtn.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
final CharSequence[] items = {"1", "2", "3"};
AlertDialog.Builder builder = new AlertDialog.Builder(SlovnikoidActivity.this);
builder.setTitle("test");
b... | java android | [1, 4] |
1,500,768 | 1,500,769 | Should i learn PHP (this is not vague..) | <p>I have been into Python i know a bit.
But what i really want is a good balance with web development and actual programs.
For that i'll have to learn more than one language for sure.
When i look at some companies (Google ) i see that Python has the power i thought it would have in web.
But i would have to write the s... | php python | [2, 7] |
4,340,800 | 4,340,801 | Php variable to JavaScript | <p>How to add the value of php variabele to jquery variable and adds them,i have a form that will take a value and post to second page where second page contains a div panel where the form checkboxes values are adding and subtracting,basically i want to add the submitted value from page1 to page2.Here is the code.I ha... | php javascript jquery | [2, 3, 5] |
277,497 | 277,498 | Solid background for android dialog | <p>In android 1.6, the background color is solid but in 2.3 or later, the dialog is transparent, more like opacity 80%. So I created new style</p>
<pre><code><style name="SolidDialog" parent="android:Theme.Dialog">
</style>
</code></pre>
<p>but what should I put inside ??</p>
| java android | [1, 4] |
3,114,968 | 3,114,969 | Android How to set String array into a single textview | <p>I'd like to try to set string array as text of the textview. How can I do that?</p>
<p>Below is what I've tried so far:</p>
<pre><code>String[] word = { "Pretty", "Cool", "Weird" };
tv.setText( word.length );
</code></pre>
<p>But it's throwing some errors. I'm new to Android/Java</p>
| java android | [1, 4] |
2,995,080 | 2,995,081 | Is it possible to Post Data from a Java application to a .php page? | <p>im trying to make a quick java app that posts data to a website just basic $_POST variables.
Is it possible?</p>
<p>Thanks.</p>
| java php | [1, 2] |
505,853 | 505,854 | Access URL in javascript/jquery? | <p>I want to create a variable for the url location, and change text depending on the input. For example, for bill.google.com, the value of the variable would be bill. For example.google.com, the value of the variable would be example. I don't know how to access the text in the url. Help?</p>
| javascript jquery | [3, 5] |
5,921,444 | 5,921,445 | JS not acting on .load()-ed html | <p>I have a puzzling conundrum:</p>
<p>I have this JS:
<em>EDIT updated JS</em></p>
<pre><code> $(".img-thumb").on("click", function(){ // exhibiting the same behaviour as .click()
thumbID = $(this).attr("id");
console.log(thumbID);
$(".gal-act").removeClass("gal-act");
$(this).addClass("gal-act"); //... | javascript jquery | [3, 5] |
1,501,917 | 1,501,918 | Need whole body tag mouseover function | <p>I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div. </p>
<p>My code is:</p>
<pre><code>$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
</code></pre>
| javascript jquery | [3, 5] |
385,105 | 385,106 | Send commands between two computers over the internet | <p>I wish to control my computer (and usb devices attached to the computer) at home with any computer that is connected to the internet. The computer at home must have a program installed that receives commands from any other computer that is connected to the internet. I thought it would be best if I do this with a web... | php java python javascript | [2, 1, 7, 3] |
3,408,475 | 3,408,476 | get the file size on file browsing | <p>i have an asp fileupload control, i want to know,,is it possible to get the filesize the moment i browse a file</p>
| c# asp.net | [0, 9] |
3,140,496 | 3,140,497 | Check Space in String | <p>I want to check that if my username contains space so then it alert so i do this it work but one problem i am facing is that if i give space in start then it does not alert.I search it but can't find solution, my code is this</p>
<pre><code>var username = $.trim($('#r_uname').val());
var space = " ";
var che... | javascript jquery | [3, 5] |
5,897,855 | 5,897,856 | jQuery Confirm box to leave or remain on a page | <p>I have an MVC2 C#.Net web app. When a user attempts to leave a view, I want to pop up a confirm box to alert them that they have made changes but not yet saved. </p>
<p>In a previous .Net 3.5 app, I used <code>window.onbeforeunload</code>. That doesn't seem to work in MVC3. What would be an appropriate place or eve... | javascript jquery | [3, 5] |
5,382,778 | 5,382,779 | Formatting Double with two dp | <p>From my decimalForm method below, i want to convert double value 7777.54 to 7 777,54 but i am getting 7 777 54. what have missed ? result should be 7 777,54</p>
<pre><code>public static String decimalForm(double value){
DecimalFormat df = new DecimalFormat("#,###,###.00");
String formatted_... | java android | [1, 4] |
594,153 | 594,154 | How can I make functions available to other javascript files? | <p>I have the following code:</p>
<p>$(document).ready(function () {</p>
<pre><code>function loginLinkClick(e) {
e.preventDefault();
$('#loginLink').unbind('click', loginLinkClick);
dialog(this);
}
function registerLinkClick(e) {
e.preventDefault();
$('#registerLink').unbind('click', registerLinkC... | javascript jquery | [3, 5] |
5,370,845 | 5,370,846 | generating string from exited characters | <p>I have a character array as shown below :</p>
<pre><code>char[] pwdCharArray = "abcdefghijklmnopqrstuvwxyzABCDEFG" +
"HIJKLMNOPQRSTUVWXYZ0123456789`~!@#$%^&*()-_=+[]{}\\|;:'\",<" +
".>/?".ToCharArray();
</code></pre>
<p>and from this char array, i want to generate a string of min... | c# java | [0, 1] |
177,151 | 177,152 | Javascript: Referring to control before page is loaded | <p>I have a composite control on an ASPX page. There is Javascript on the ASPX page that gets loaded before the control. Now, since the script refers to the control element which does not exist when the script is loaded, this is throwing a Javascript error of "Obect not defined". Attaching the script to the onload eve... | asp.net javascript | [9, 3] |
3,195,222 | 3,195,223 | How to apply table header sorting to divs by an individual list element? | <p>I'm creating a series of <code><div></code>s dynamically from an external query. Using Javascript a <code><div></code> is created and populated with separate list elements. The structure is something like:</p>
<pre><code><div class="container" id="1">
<li class="date"> </li>
&l... | javascript jquery | [3, 5] |
541,709 | 541,710 | How to convert Javascript code to Jquery code? | <p>Please help me, here is the code in Javascript, I need to change this code to Jquery.</p>
<pre><code>eval("parent.document.forms[0].strKey" +
intDimensionId).value = strIds[intDimensionId];
</code></pre>
| javascript jquery | [3, 5] |
3,660,550 | 3,660,551 | jQuery Odometer | <p>I would like to implement a jQuery odometer, similar to opower.com's website. So far, I was able to get a bit of the copied code to work, but there is such much extra code around their odometer script, my copied code is bloated and cumbersome, plus has incredible amount of styling that I do not like.</p>
<p>What I ... | php jquery | [2, 5] |
5,063,329 | 5,063,330 | Is there a good library of video tutorials for Android development? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="http://stackoverflow.com/questions/4904560/where-can-i-find-android-video-tutorials">Where can I find Android video tutorials?</a> </p>
</blockquote>
<p>Specifically some that may cater to an experienced developer (C#) but not necessarily familia... | java android | [1, 4] |
3,732,371 | 3,732,372 | Difference between Caching object and Hash map | <p>I was reading an article on Caching object in asp.net framework and I was looking on the class behavior. It has a HashMap like structure and looks like that I can actually instantiate a Hashmap and use it as collection.</p>
<p>What extra benefit does cache object bring over hashmap?</p>
| c# asp.net | [0, 9] |
2,123,621 | 2,123,622 | ASP.NET - Page.Form.Action error | <p>On my local development server, I am running version 2.0.50727.4955 on the live server I am running 2.0.50727.42.</p>
<p>On my live server I get:</p>
<p>Compiler Error Message: CS0117: 'System.Web.UI.HtmlControls.HtmlForm' does not contain a definition for 'Action'</p>
<p>On my development server everything works... | c# asp.net | [0, 9] |
2,872,738 | 2,872,739 | Merging two "(document).ready(function()"s | <p>I have two jquery/javascript codes but I couldn't merge them. Everytime one of the functions was disable. How can I merge the codes. Please help me, thanks.</p>
<p>First file:</p>
<pre><code>jQuery.noConflict();
jQuery(function(){
jQuery('ul.menu-primary').superfish({
animation: {opacity:'show'},
autoArrows: ... | javascript jquery | [3, 5] |
5,882,735 | 5,882,736 | Check if javascript is disabled? | <p>If I have a website that makes use of javascript and the user will get the most full experience of the website if they have javascript enabled, but it would still be fully functional even if javascript was disabled. Is there a way to check if the user has javascript disabled for the browser they are using, so I can ... | c# javascript asp.net | [0, 3, 9] |
4,651,549 | 4,651,550 | Moving from C# to C++ | <p>I'm a slightly-below average programmer in C#, and I only write apps with GUIs. I might be getting a Mac soon. Since there isn't the .NET Framework or Visual Studio on Mac, I'm going to be using Xcode and Cocoa. I think this will be a good opportunity to switch to a well known and well supported language (C++). I le... | java c++ | [1, 6] |
5,402,507 | 5,402,508 | Iterating over an array of objects with multiple properties using $.each | <p>I have an array of objects called "Contractors" in which each contractor will be displayed in a box on the screen so they have the properties "id", "posx" and "posy". I want to be able to change the coordinates onclick from what they are currently to a line on the bottom of the screen where they will be displayed se... | javascript jquery | [3, 5] |
649,082 | 649,083 | 7-zip compression in asp.net web site | <p>I am trying to use 7-zip compression to create a zip of a sample file as given in the example
<a href="http://www.dotnetperls.com/7-zip" rel="nofollow">http://www.dotnetperls.com/7-zip</a>
As the URL says, "you must specify "Copy if newer" or "Copy always" to copy files such as executables to the output directory."... | c# asp.net | [0, 9] |
2,718,868 | 2,718,869 | How can I convert php string value to android string value? | <pre><code>public static String ConnDB() throws ParseException, IOException {
// TODO Auto-generated method stub
String webAddress = "http://10.0.0.1:8080/jspbook/AppStore/NewFile.php";
HttpGet httpGet = new HttpGet(webAddress);
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response ... | php android | [2, 4] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.