Can anyone tell or define more what is "ancestor" and give an example on it and also what it is for? I just can't grasp what it really is.
Reference: http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_ancestor
Thanks.
Can anyone help on how to use the matrix scaletype to zoom an imageview and also how to use the translate method so that it can be focused at the center? I have tried using webview to be able to use the zooming and scrolling functionalities i needed but it is not nice to look at.
As per subject.
I have some constants hash defined like so:
#define CONST 40
I've set a break point in my program. How do I print the value of that constant? (I know I can just look at the source code, but I want to be sure of it)
I have this scenario: I have a chain of query handlers, the first is to query the cache, if the cache can't answer it or the answer is stale, then hit a database, if it can't find the answer or the answer is stale again, then query a remote web service.
But I am not sure if this is the right way to use this pattern, since the work flow is pretty…
I have an array that I have to add a new value to array value. I am new to arrays.
how do I loop thru the array and add to the value in the existing array.
Using SQL profiler, I was able to find the query generated from Nhibernate was executed in the
EXEC sp_executesql N'select ...'
fashion.
I am wondering if there is any way to force Nhibernate to generate the plain
Select ...
statement instead.
The reason I want this is because apparently SQL Server generated different execution plans for…
I'm new.
i have a popup code that when user click anywhere in the HTML page, a popup window shows up:
(function () {
document.onclick = function () {
var sUrl = "http://URL.com";
if (typeof daily_capping == "undefined") var daily_capping = 10;
if (typeof capping_minutes == "undefined") var capping_minutes = 60;
…
I just move my Magento store to my localhost environment for testing use, I also using Git to maintain code, but after I move all the files to my local environment, I can't login my admin page, but I can still see my frontend pages, and the git, the database, seems works well.
When I type a wrong admin/password to my admin page, it still gives…
I am pretty new to Django and I met a problem in handling image upload using ModelForm.
My model is as following:
class Project(models.Model):
name = models.CharField(max_length=100)
description = models.CharField(max_length=2000)
startDate = models.DateField(auto_now_add=True)
photo = models.ImageField(upload_to="projectimg/", null=True,…
I need to change the emulator's default time zone. It worked in command line with -timezone option. But when I tried it in eclipse android's launch options. it didn't work. I set it in Window-preferences-android-launch-default emulator options. Am I setting it in a wrong place?
I used this query URL
http://maps.google.com/maps?q=from+A+to+B&output=kml
,which is given in the answer to this question. But after I tried it, it doesn't work with coordinates. It works with address names tho. I guess I could use google's geocoding to get the addresses first. But I wonder if there is another way to get the…
I am using rails beta 3 and I have a erb page named index.html.erb for discussions controller. In that page, I have a link as following:
<%= link_to 'Delete', {:action='destroy', :id=@discussion}, :confirm="Are you sure", :method='post' %
Which is supposed to generate a link to delete a discussion, however, the generated html is …
I'm wondering if it is possible to rerender just one element in a listview? I assume by calling notifyDatasetChanged() is gonna rerender the whole list?
Thanks,
We have a a product developed on Windows for years. The product is composed of one Eclipse workspace and about 20 projects.
On Windows, we ask every developer check out projects into d:\dev\product folder, and copy a unified Workspace to d:\dev\prod_workspace. This way, whenever a new machine is set, we simply copy files to the same…
I have my nginx conf file so that when ever a mobile device visits my site the url gets rewritten to m.mysite.com I did it by adding the following
set $mobile_rewrite do_not_perform;
if ($http_user_agent ~* "android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge…
I'm using unix sort to sort a comma delimited file with multiple columns. Thus far, this has worked perfectly for sorting the data either numerically or in alphabetical order:
Example file before any sorting:
C,United States,WA,Tacoma,f,1
A,United States,MA,Boston,f,0
B,United States,NY,New York,f,5…
I have a regex, for example ([m]{2}|(t){1}). It matches ma and t and doesn't match bla.
I want to negate the regex, thus it must match bla and not ma and t, by adding something to this regex. I know I can write bla, the actual regex is however more complex.
I have regex (for example)
([m]{2}|(t){1})
and it matches ma and t and doesnt match bla
I want it to match bla and doesnt match ma and t
by adding something to this regex, i know i can write bla, my real-life regex is more complex.
I'm trying to implement pop-up menus in Java JTree. I've sub-classed DefaultTreeCellRenderer (to change node appearance) and DefaultTreeCellEditor (to create Components to attach event listeners to, since apparently the Components that DefaultTreeCellRenderer.getTreeCellRendererComponent() returns…
how to get value without <br/> tag using regex n java?
my String is:
<Div>
West Newton, MA 02465
<br/>USA
</Div>
output should be like:
West Newton, MA 02465
USA
How?
I am trying to replicate the results from a paper.
"Two-dimensional Fourier Transform (2D-FT) in space and time along sections of constant latitude (east-west) and longitude (north-south) were used to characterize the spectrum of the simulated flux variability south of 40degS." - Lenton et…
In this Issue: John Papa, Tim Heuer, Jeff Blankenburg(-2-, -3-), Jesse Liberty, Jay Kimble, Wei-Meng Lee, Paul Sheriff, Mike Snow(-2-, -3-), Samuel Jack, James Ashley, and Peter…
I have an index, with a field "Affiliation", some example values are:
"Stanford University School of Medicine, Palo Alto, CA USA",
"Institute of Neurobiology, School of Medicine, Stanford University, Palo Alto, CA",
"School of Medicine, Harvard University, Boston MA",
"Brigham &…