Hi,
i've developed an android app that's fetches an xml file and displays this data via several markers on the map. This works fine so far.
The problem right now is that when i switch the orientation of the phone (portrait-landscape or vice versa) the markers disappear for a small moment, the xml processing is started again and then they…
I need to store log files and config files for my application. Where is the best place to store them?
Right now I'm just using the current directory, which ends up putting them in the Program Files directory where my program lives.
The log files will probably be accessed by the user somewhat regularly, so %APPDATA% seems a little hard to…
Not long after upgrading to VS2010, my application won't shut down cleanly. If I close the app and then hit pause in the IDE, I see this:
The problem is, there's no context. The call stack just says [External code], which isn't too helpful.
Here's what I've done so far to try to narrow down the problem:
deleted all extraneous…
Hey,
I have a WPF application based on Prism4. When performing slow operations, I want to show a busy screen. I will have a large number of screens, so I'm trying to build a single solution into the framework rather than adding the busy indicator to each screen.
These long running operations run in a background thread. This allows…
I am developing a GA for a school project and I've noticed that upon evaluating my functions for fitness, an individual is equivalent to its inverse.
For example, the set (1, 1, -1, 1) is equivalent to (-1, -1, 1, -1). To shrink my search space and reach a solution more efficiently, how can I avoid my crossovers from searching…
I'm planning on learning 3d game development for the iphone using a 3d engine, but because of lack of tutorials for the iphone I was planning on using C++ game tutorials and making the necessary changes.
The problem is that I've had limited success when searching for things such as 'c++ 3d fps tutorial ' I dont really get…
Question
How do you pass the correct value to udf_slope's second parameter type?
Attempts
CAST(Y.YEAR AS FLOAT), but that failed (SQL error).
Y.YEAR + 0.0, but that failed, too (see error message).
slope(D.AMOUNT, 1.0), failed as well
Error Message
Using udf_slope fails due to:
Can't initialize function 'slope';…
I'm trying to use the gdata java client library on android and have managed a decent hack to get it working. However because the jar for gdata had some package discrepancies with android I had to import the source into my project. This source is dependent on the JavaMail API and the JavaBeans Activation Framework as…
I'm working on a simple Python script that can use subprocess and/or os to execute some commands, which is working fine.
However, when the script exits I'd like to cd the actual Terminal (in this case OS X) so on exit, the new files are ready to use in the directory where the have been created. All the following…
hi, i've got two lists A and B, B = A + C - D. All elements are unique, no duplicates. How do i get the lists of:
(1) the new items added, C
(2) the old items removed, D
C and D aren't more than 10000 elements or so.
Edit
Crap, sorry guys - forgot the important detail - these are both text files, not in memory…
Quest
A query selects locations that begin with Vancouver, which are in a 5 minute radius from one another.
SQL Code
The following SQL abomination does the trick:
SELECT
NAME
FROM
STATION
WHERE
DISTRICT_ID = '110'
AND NAME LIKE 'Vancouver%'
AND LATITUDE BETWEEN
(SELECT round((min(LATITUDE) +…
I have made application in which I have kept calendar,now I need that if admin changes his calendar and if it is affected to user and if that user is currently looking that calendar then whatever changes Admin has done that should reflect to user without refreshing the page,
just like when email comes to Gmail…
Hi everyone,
A friend of mine is a Java developer, who's using *NIX for ages. He claims that *NIX is for real Java geeks, whereas WIN is for dummies (and I'm one of them, according to him) and girls. When I ask him to argue his position, and explain, what's so good for Java developer on *NIX, he starts…
I'm having an issue with a control I'm building that contains a table where the body is scrollable. The rows have a click() function handler established like:
/**
* This function is called when the user clicks the mouse on a row in
* our scrolling table.
*/
$('.innerTable…
This really seems like a bug to me, but perhaps some databinding gurus can enlighten me? (My WinForms databinding knowledge is quite limited.)
I have a ComboBox bound to a sorted DataView. When the properties of the items in the DataView change such that items are resorted, the SelectedItem in…
Given a base class with the following interface:
public class Base
{
public virtual IEnumerable<string> GetListOfStuff()
{
yield return "First";
yield return "Second";
yield return "Third";
}
}
I want to make a derived class that overrides the…
I have a .ksh script that calls a perl pgm. The perl pgm creates some important data that the .ksh script needs to act on. Example:
.ksh pgm
#!/usr/bin/ksh
abc.pl > $logFile
# perl pgm creates variable $importantData See below.
# HOW DO I GET THE .KSH SCRIPT TO SEE $importantData…
I am trying to create a database field merge into a document (rtf) using php
i.e if I have a document that starts
Dear Sir,
Customer Name: [customer_name], Date of order: [order_date]
After retrieving the appropriate database record I can use a simple search and replace to insert the…
Hi,
I have an app that requires two builds - one is a demo app, the other uses the same codebase but uses a flag to introduce different functionality.
The identifier must be different each time (e.g. com.siteA.appA and com.siteB.appB).
However it doesn't appear to be trivial to use…
Hi experts,
Assuming you've already had a chance to look through the lambda syntax proposed for Java7 (and the other things that have happened with Java, after Oracle has bought Sun + obvious problems in Java Community Process), what do you think is the future of Java language? Should…
| id | url | title | menu_id |
------+--------+--------+----------
| 1 | http://| link 1 | 1 |
| 2 | http://| link 2 | 2 |
| 3 | http://| link 3 | 3 |
| 4 | http://| link 4 | 4 |
Hi, I was wondering if its possible using PHP to reorder the above…
I'm trying to compare 2 dates using javascript. 1 at the end of the month and 1 at the beginning. I need to compare these 2 dates in seconds so I'm using the Date.UTC javascript function.
Here's the code:
var d = Date.UTC(2010,5,31,23,59,59);
document.write(d);
var d2 =…
The Spread Toolkit (http://www.spread.org) allows for easy distributed messaging using publish-subscribe semantics.
Is it possible to use this toolkit on EC2?
What other pub-sub message buses can be used on EC2 (other than Amazon's SQS)?