Hi,
How can I maintain the position of my ListView in my activity when I go to another activity (by launching another intent) and then come back (press the back button)?
Thank you.
Hi,
Is there anyway in JavaScript which emulate user clicks an anchor?
Mozilla(Firefox ) does not implement that.
https://developer.mozilla.org/en/DOM/element.click
But is there any browser which does?
Hi,
Can you please tell me if there is any DOM API which search for an element with given attribute name and attribute value:
Something like:
doc.findElementByAttribute("myAttribute", "aValue");
Thank you.
Hi,
I am looking for HTTP parsing library for C/C++.
I have looked curl library, but it seems it is a http client library.
I am looking for a library which parses HTTP header (e.g. a way to
get the query string, get cookie, get request url, get Post Data)?
Thank you.
I've got the following code; however it's not given me the desired result - what I am after is as per the image below, what am I doing wrong?
<style>
table.control_grid tr {
text-align: center;
width: 200px;
}
table.control_grid td {
width: 120px;
height: 48px;
}
table.control_grid a {
text-decoration: none;
}…
I have a database table that contains numerous PDF blob files. I am attempting to combine all of the files into a single ZIP file that I can download and then print.
Please help!
<?php
include '../config.php';
include '../connect.php';
$session = $_GET['session'];
$query = "SELECT $tbl_uploads.username,…
I have the following text
<pattern name="pattern1"/>
<success>success case 1</success>
<failed> failure 1</failed>
<failed> failure 2</failed>
<unknown> unknown </unknown>
<pattern name="pattern2"/>
<success>success case 2</success>
<otherTag>There…
Suppose I have an application a search for all gas stations within 10 mile radius of a certain location. However one side of this location is surrounded by a mountain range that you have to drive 50 miles to get around. You would not want to return results from the other side of the mountain. What are some good…
I'm new to C#, and I'm trying to convert this code from java into C#.
static public double euclidean_2(double[] x, double[] y)
{
if (x.length != y.length) throw new RuntimeException("Arguments must have same number of dimensions.");
double cumssq = 0.0;
for (int i = 0; i <…
Reasoning: I'm trying to convert a large library from Scheme to Python
Are there any good strategies for doing this kind of conversion? Specifically cross-paradigm in this case since Python is more OO and Scheme is Functional.
Totally subjective so I'm making it community wiki
Hi,
I have a ListView in my android application.
If I flick up/down the ListView, which method will return my 'selected' element in my list View? How about if I use the track ball to navigate up/down my list view, which method will return the index of my selected element?
Thank you.
Given a file tree - a directory with directories in it etc, what software would you recommend to create a diagram of the file-tree as a graphic file that I can embed in a word processor document
I prefer vector (SVG, EPS, EMF...) files.
The tool must run on Windows, but preferably cross-platform.
The tool…
Hi,
In C++, there is a fwrite() which writes a buffer to a file on disk:
http://www.cplusplus.com/reference/clibrary/cstdio/fwrite/
Can you please tell me if there is any buffer inside that fwrite implementation?
i.e. if I call fwrite() multiple times (say 10 times), does it actually invoke file i/o 10…
I have a collection of span elements. In the code I have a global variable that represents the "selected" object. Using the click event when a span is clicked I reset the object's class, reset the global variable, then set the object to the variable and change its class (to make it "highlighted"). This…
So the real problem is the lack of an onReleaseOutside function. I found some examples of how to bypass this during a drag function but it was not applicable for a text input.
The problem is that when a user selects some text in textinput and mouses off the application area and then mouses up, I'm…
I want to test integration of dao-layer with my service-layer in a unit-test. So I need to setup some data in my database (hsql). For this setup I need an own transaction at the begining of my testcase to ensure that all my setup is really commited to database before starting my testcase.
So…
Alright, here is my issue, I have two tables, one named firstnames and the other named lastnames. What I am trying to do here is to find 100 of the possible combinations from these names for test data. The firstnames table has 5494 entries in a single column, and the lastnames table has 88799…
i am running a mac with mamp and mamp pro. how do i check if i have apc enabled and if its not enabled or not installed how do i install it? thanks
i am trying to get the apc upload loader to work that i found online and it gets stuck on NAN% when im uploading.
this is a link:…
One of the downsides of web.config/app.config is that it's just Magic Strings everywhere, since it's just an XML file.
Interpreted languages like PHP or Ruby have the advantage that the configuration is just code that is executed. In .net, doing stuff in code requires a…
I need help making this loop to move a label move smoothly across the screen using count for the animation (its required). The labels location is currently in location 0,0 I'd like to make it go in a square right - down - left - back to its original position
how can I…
How to pass variables to gnu makefile from command line arguments? In other words I want to pass some arguments which will eventually become variables in makefile.